Scadabank.com
Basic Scripting
(Heartbeats)
Exercise #1 - Create a heartbeat with InTouch scripting that counts up at a rate of once per second, but gets reset (set to zero) every second by a tag in a different InTouch app.
Exercise #2 - Create a heartbeat with InTouch scripting that counts up at a rate of once per second, but gets reset (set to zero) every second by a tag in a PLC.
Exercise #1 - Create a heartbeat in an object using object scripting that counts up at a rate of once per second, but gets reset (set to zero) every second by a tag in a different object.
Exercise #2 - Create a heartbeat in an object using object scripting that counts up at a rate of once per second, but gets reset (set to zero) every second by a tag in a PLC.
Exercise #1 - Create a heartbeat in an Industrial Graphic using scripting that counts up at a rate of once per second, but gets reset (set to zero) every second by a Custom Property associated with an InTouch tag or a PLC tag.
Exercise #2 - Adjust the heartbeat scripting above so that it has a maximum count that will set the status of the heartbeat as BAD.
Exercise #3 - Adjust the graphic above to show the status text as either GOOD or BAD based on the value of heartbeat.