Hello Guest it is December 08, 2019, 06:05:35 PM

Author Topic: How to create a simple toggle button?  (Read 120 times)

0 Members and 1 Guest are viewing this topic.

How to create a simple toggle button?
« on: November 26, 2019, 03:04:49 PM »
Can anyone explain how to create a simple toggle button (code/script) that I can use to turn on/off an output or trigger a Modbus command?  Thanks much for any replies/guidance/links/videos/etc.

Offline TPS

*
  •  1,415 1,415
    • View Profile
Re: How to create a simple toggle button?
« Reply #1 on: November 29, 2019, 03:24:46 PM »
If IsActive(OUTPUT1) Then
    DeactivateSignal (OUTPUT1)
Else
    ActivateSignal (OUTPUT1)
End If
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.