I developed a script on site and have been working on it in a VMware session with no PLCs and I noticed that one of the IF statements Im working on always runs. I had been using hardcoded values to test with but I noticed it still ran when I put the tag back in.
If Fix32.SCADA.TAG.F_CV = 1 Then
MsgBox ("Script Run")
End If
So even though the tag TAG has a current value of ???? the IF statement resolves and I get a message box. That seems kind of not right. Am I missing something, if it's anything other than a "1" why is it running?
If Fix32.SCADA.TAG.F_CV = 1 Then
MsgBox ("Script Run")
End If
So even though the tag TAG has a current value of ???? the IF statement resolves and I get a message box. That seems kind of not right. Am I missing something, if it's anything other than a "1" why is it running?