3/25/2011 12:56 PM | |
Joined: 10/3/2010 Last visit: 5/24/2024 Posts: 1552 Rating: (188) |
Is there anyone who has a simple working example (fpt/pdl) of this? I want to create a faceplate with a single button which can set/reset a bit in an external tag (byte or word) and the button background color should change based on a bit of a second external tag. The idea is to use the faceplate instance dozens of times without the need to go into scripts for changing the tags & bits. Splitted from WinCC 7 - Faceplate instance I/O field smarttags. |
Last edited by: O_Moderator at: 3/28/2011 7:57 AMnew subject after splitting B r g d s , |
|
3/29/2011 12:03 PM | |
Posts: 291 Rating: (68) |
Hello SteBo, Please try the attached. Extract it & copy it to the \GraCS folder of your WinCC project. .... (I think I don't need to tell you in detail :D Just insert the faceplate (one or more instance will be fine!) into your picture. & Link your process tag to my "UserDefined" property, make its dynamic to be upon tag's change. Then you can try it in runtime. Left clicking the button --> set bit. Right clicking the button --> reset bit. Best regards, Komi AttachmentKomiFp_16Bit.zip (1992 Downloads) |
This contribution was helpful to2 thankful Users |
3/29/2011 3:24 PM | |
Joined: 10/3/2010 Last visit: 5/24/2024 Posts: 1552 Rating: (188) |
Thanks Komi, it would be great if this can work. |
B r g d s , |
|
3/30/2011 8:41 AM | |
Joined: 10/3/2010 Last visit: 5/24/2024 Posts: 1552 Rating: (188) |
At this point, I have 4 properties: Tag_Value01
I only want to show a button but hidden I/O fields for showing the linked tags values (for testing & debugging would be nice.
Action type wanted for now is seperated: set the bit on left mouse down, reset on release left mouse
Button background color should change to blue if Bit_Number02 of Tag_Value02 is high I have more idea's for this faceplate button but I think I got those extra features covered, it's mainly the external tags issue. |
Last edited by: SteBo at: 3/30/2011 8:42 AMB r g d s , |
|
3/31/2011 11:57 AM | |
Posts: 291 Rating: (68) |
Hello SteBo, Sorry for my delay. To be in brief, I'm now having problem in attaching my sample project to you. (its size exceeded the upload limit) In order to reduce its size, I upload the graphics only. I kindly ask you to extract the attachment & copy them into the GraCS folder of your project. You need to create 4 internal tag first!! (Please open the StartPage.pdl before creating your tags.) 1. Because you want two sets of Process Tags for the attributes of the faceplate. I'm calling them: Command Tag/Bit --- the target tag/bit while pressing the "Button" will set or reset. Status Tag/Bit --- The "Button"'s background color refer to. 2. I've tested and quite sure that After pressing the button, the value-change of the Command Tag/Bit will be written to the configured external process tag. 3. I put an additional faceplate in the picture. It's just for modifying the CommandTag more quickly. Good luck,
Komi AttachmentGraCS.zip (1185 Downloads) |
3/31/2011 12:49 PM | |
Joined: 10/3/2010 Last visit: 5/24/2024 Posts: 1552 Rating: (188) |
don't worry bout the delay, Komi, I'll try this and let you know how it works here asap anyway, already a big thanks for your efforts |
B r g d s , |
|
4/2/2011 7:11 AM | |
Posts: 291 Rating: (68) |
Hello SteBo, Sorry~ I need to apologize for that there's a "duplicate-reference" of the TagValue in my faceplate which leads to a overlap of updating the Tag's value in Runtime. (This will cause a slow-initialization of Graphics Runtime, too!) So... Please just delete one of the property-settings inside my faceplate as shown in the attached "overlap_DeleteThisOne.jpg". Sorry again for that I hadn't checked again of its performance! B.R., Komi
AttachmentPleaseModify.zip (885 Downloads) |
4/4/2011 8:37 AM | |
Joined: 10/3/2010 Last visit: 5/24/2024 Posts: 1552 Rating: (188) |
No apology needed Komi, your examples are very welcome and I'm starting to get an idea about how this kind of faceplate could/should work. Whenever I got my FPT-button ready like I need it, I'll post some feedback again here, but it still can take a litte while. |
B r g d s , |
|
4/8/2011 10:57 AM | |
Joined: 10/3/2010 Last visit: 5/24/2024 Posts: 1552 Rating: (188) |
things work fine, I adjusted a few things regarding my needs (like the 2 bits are replaced by properties instead of internal tags),... Your input is a much better help for understanding faceplates than the manuals Thanks once again |
B r g d s , |
|
4/8/2011 6:28 PM | |
Posts: 291 Rating: (68) |
Thanks a lot ~ SteBo!! Thanks for testing the faceplate & telling me it works!! Have a nice weekend,
Komi |
4/14/2011 1:17 PM | |
Joined: 10/3/2010 Last visit: 5/24/2024 Posts: 1552 Rating: (188) |
Hey Komi, I've used and changed one of your faceplate examples. Things work pretty except when the external tag value is 0, the color animation of the bits on the faceplate instances is not executed whenever opening the picture containing the faceplate instances. Could you please check this? Thanks in advance. best regards, SteBo Attachment16Bit_Display.zip (536 Downloads) |
Last edited by: SteBo at: 4/14/2011 1:33 PMMeanwhile, I solved this by putting a default input value "-1" see updated attachment B r g d s , |
|
Follow us on