Jack Schit
Member
Hi All,
I'm new to VBS scripting and I'm trying to write a simple script that will invert the state of a tag i.e FALSE to TRUE or TRUE TO FALSE when the script is run.
The scipt is running win WinCC V7.0.
I've created the following script but nothing seems to happen!
If HMIRuntime.Tags("hrly_log").FALSE Then
HMIRuntime.Tags("hrly_log").Write 1
Else
HMIRuntime.Tags("hrly_log").Write 0
End if
End Sub
Could anybody body give me some advice of what i'm doing wrong!
Thanks
Jack
I'm new to VBS scripting and I'm trying to write a simple script that will invert the state of a tag i.e FALSE to TRUE or TRUE TO FALSE when the script is run.
The scipt is running win WinCC V7.0.
I've created the following script but nothing seems to happen!
If HMIRuntime.Tags("hrly_log").FALSE Then
HMIRuntime.Tags("hrly_log").Write 1
Else
HMIRuntime.Tags("hrly_log").Write 0
End if
End Sub
Could anybody body give me some advice of what i'm doing wrong!
Thanks
Jack