Configuring Output Devices
'Rocker ON and release switch.Manual_Override' = 0
End If
End Do
End If
PG3 Example Code: Sends the OFF Followed by a Release Packet
Variable OFF_VALUE As Integer
Variable RELEASE_VALUE As Integer
OFF_VALUE = 112
RELEASE_VALUE = 0
If ('Rocker OFF and release switch' = 0) Then
If ('Rocker OFF state variable' > 7) Then
'RPS Force Send' = Off
'Rocker OFF state variable' = 0
End If
Else
DoEvery 0.1S
'Rocker OFF state variable' = 'Rocker OFF state variable' + 1
If ('Rocker OFF state variable' = 1) Then
'OFF Value' = OFF_VALUE
'RPS Force Send' = Off
ElseIf ('Rocker OFF state variable' = 2) Then
// send the ON packet here
If ('RPS Send .Manual_Override' = On) Then
'RPS Send .Manual_Override' = Off
Else
'RPS Force Send' = On
End If
ElseIf ('Rocker OFF state variable' = 3) Then
'RPS Force Send' = Off
ElseIf ('Rocker OFF state variable' = 4) Then
'OFF Value' = RELEASE_VALUE
©
2022 Delta Controls Inc.
19