jlimon13
Member
I was wondering if intouch is capable of index addressing? I have a 104 graphics that all need a different tooltip status depending on the PLC tag value. I was trying to accomplish this by using an IF script that ran only when the window is open. So to save time I was trying to do it with and index, but I couldnt get it to work or not sure if its even possible.
Here is an example of the script very basic:
IF PLC_Tag_## = 2 THEN Internal_Tag_## = "Disabled";
ELSE IF PLC_Tag_## = 3 THEN Internal_Tag_## = "Faulted";
ELSE Internal_Tag_## = "OK";
ENDIF;
ENDIF;
Now where the ## its from 1 to 104. I know I could do it by doing a script for each, but that will take way to long. So I was trying to see if it could have and index to accomplish this and only have one Script.
Thanks in advance
Here is an example of the script very basic:
IF PLC_Tag_## = 2 THEN Internal_Tag_## = "Disabled";
ELSE IF PLC_Tag_## = 3 THEN Internal_Tag_## = "Faulted";
ELSE Internal_Tag_## = "OK";
ENDIF;
ENDIF;
Now where the ## its from 1 to 104. I know I could do it by doing a script for each, but that will take way to long. So I was trying to see if it could have and index to accomplish this and only have one Script.
Thanks in advance