11/22/2010 9:28 AM | |
Joined: 1/17/2006 Last visit: 4/16/2024 Posts: 800 Rating: (63) |
That would be something like this, (you have to have tags for your variables): if (GetTagBit("TagM140")==1 && GetTagBit("TagM141")==1) { SetTagBit("TagM142", TRUE); } else //you do not need another "if statement" in this case. { SetTagBit("TagM142", FALSE); } please read the attachment for more information about C-scripting. AttachmentWinCC C-Course[1].pdf (666 Downloads) |
Last edited by: Jaapie at: 11/22/2010 10:43 AMLast edited by: Jaapie at: 11/22/2010 9:30 AM |
|
11/22/2010 10:56 AM | |
Joined: 1/17/2006 Last visit: 4/16/2024 Posts: 800 Rating: (63) |
I made you an action with the tags: TagM140, TagM141 and TagM142 if you have these tags and put this script in your project it should work perfectly: AttachmentActionTagM14X.zip (204 Downloads) |
Follow us on