geniusintraining
Lifetime Supporting Member + Moderator
Is there a one shot command in script?
The code I would like to write is indexing a system value by one when the input goes from false to true one time, I have tried several different things
This works but continues to count because, the input stays true for a longer period of time, I would like for the number just to index one, I know that I can do the logix in the PLC but…I would like to learn more script programming
Anyone know of any good reading material for the basics?, I am reading Wonderware’s manuals and RSView but would like more.
Many Thanks
The code I would like to write is indexing a system value by one when the input goes from false to true one time, I have tried several different things
Code:
IF NOT Discrete_Tag
THEN
System_Tag = (1 + System_Tag);
ENDIF;
This works but continues to count because, the input stays true for a longer period of time, I would like for the number just to index one, I know that I can do the logix in the PLC but…I would like to learn more script programming
Anyone know of any good reading material for the basics?, I am reading Wonderware’s manuals and RSView but would like more.
Many Thanks