[?]: Set/reset Bit From Subroutin Script Wincc Flexible

ProTool, WinCC flexible, WinCC, PP/OP/TP/TD/MP
alfredo
Posts: 8
Joined: Thu Feb 14, 2008 4:05 pm
Location: Europe

[?]: Set/reset Bit From Subroutin Script Wincc Flexible

Post by alfredo »

I realized with the script a routine standard for managing functions with the recipes and everything worked well, and that the problem would also need to set and / or reset a bit different for every point (which is different depending on recipe), I thought of combining a parameter where support one bit from the table of variables but when runs can only read it and when I try to write it gives me error, someone has done such a thing.
Example:

Code: Select all

Sub Scripts (Bit_A)
Bit_A = True //not work
End Sub
Thank you for any information
sania
Site Admin
Posts: 1387
Joined: Sat Aug 13, 2005 6:15 am

Post by sania »

what with it?

Code: Select all

Sub Scripts (Bit_A) 
SetBit Bit_A
End Sub
P.S.for help use right-click in body of script