6/5/2010 10:45 AM | |
Posts: 63 Rating:
|
Dear guyz, Is it possible in wincc to assign the tags to an i/o field on click event of a button. Suppose there are two buttons. On pressing button_1 the I/O fiels is assigned to tag_1 and if button_2 is pressed the same I/O is linked to tag_2 Thanks in anticipation Regards, HIKE Dear Hike, You can do this using c-script or vb script, Dont know about the scripting but i give u a simple solution for that which i have already use in my current project Create two I/O Field and attach both ur tag_1 & tag_2 to both I/O Field Say I/O_1 to tag_1 and I/O_2 to tag_2, now define one memory bit in ur programming side and also create it in WinCC Now for Button 1 define a direct connection of CONSTANT to 1 on Click event also for button 2 define a direct connection of CONSTANT to 0 on click event Then open the I/O Field properties and in Miscellaneous change display to NO in both I/O Now in Dynamic dialog of Display properties of I/O filed see attached Put Display properties to yas in TRUE And in the other Put yes in False For More Detail See attached Hope this helps From Mayank Patel AttachmentIO field.zip (239 Downloads) |
This contribution was helpful to
1 thankful Users |
6/5/2010 12:58 PM | |
Posts: 1 Rating:
|
Hello Mack, thanks for ur post it solves my complete problem to assign 2 tags in one I/O field yes it is not a standerd practice but helps me a lot Thanks Hitu |
6/5/2010 4:27 PM | |
Posts: 138 Rating:
|
How to assign it for Input output fields. |
6/6/2010 7:46 AM | |
Posts: 138 Rating:
|
Ayman Elotaify, I managed to do so using Internal Tags, Thanks for your support.
|
This contribution was helpful to
2 thankful Users |
Follow us on