The following script was put in by a 3rd party integrator. It does not seem to be working even though the script is set to running and auto start is checked. Hearbeat_In and Heartbeat_Out are Controller Bools to an AB PLC. The tags are running, all are updating and there are no errors. When heartbeat_in goes to 1, heartbeat_out is not changing. I have tried rebooting the EWON.
// Monitor incoming pulses from PLC, send a response pulse
Onchange “Heartbeat_In”, “@heartbeat”
Function heartbeat
If Heartbeat_In@=1 Then
Heartbeat_Out@=1
Endif
ENDFN