I've only just got through my basic WinCC OA training, so still getting my head around element interactions etc.
I've defined a reference object (the ones you drag from the "objects" folder onto a panel, double click and link to a datapoint instance, let's say it's a valve) which is clickable and opens a child panel faceplate in the left corner of the main screen and a small pop up panel which sits on top of the object itself. The pop up holds some controls (same ones are available on the faceplate) and can be closed from the faceplate. I was wondering if there's a way to read the position of the reference object somehow to use it to re-open the pop up on top of the object? On the first click on the object the pop up panel is opened in relation to the reference point of the object and this operation is initiated inside the object in a script, but once action moves over to the faceplate, it's a completely different panel and I can't seem to find a way to get coordinates for a specific object to try and re-open the pop up in the same spot. I've seen a post on this forum which suggests using a moduleName.panelName: shape Name approach, but that info is exactly the same for all referenced objects as they all run in the same module / panel. If I double click on a configured referenced object I can see it's got it's own name, typically PANEL_REF##, but I can't make use of this as I don't know which icon was used to open the faceplate, I'd need to somehow find the object based on the referenced datapoint instance. Or somehow pass the X/Y position coordinates from the object to the faceplate panel...
Cheers,
Tom
Interaction between a child panel and a ref object
- tpjctrl
- Posts:145
- Joined: Tue May 08, 2018 10:30 am
Interaction between a child panel and a ref object
- Gertjan van Schijndel
- Posts:634
- Joined: Mon Aug 02, 2010 10:37 am
Re: Interaction between a child panel and a ref object
From your story I do not completely understand what you are doing. But if the position of the object does not change, you could pass the coordinates to the faceplate with dollar parameters.
Objects within a reference can be addressed with 'referenceName.shapeName', see also in the documentation/online help -> CONTROL -> Control graphics -> Graphics objects -> Graphics objects in references (qthelp://wincc_oa/doc/Control_Grafik/Grafikobjekt_in_Referenzen.htm)
Objects within a reference can be addressed with 'referenceName.shapeName', see also in the documentation/online help -> CONTROL -> Control graphics -> Graphics objects -> Graphics objects in references (qthelp://wincc_oa/doc/Control_Grafik/Grafikobjekt_in_Referenzen.htm)