// Online only. hb_tick is a global numeric intermediate variable (initial 0). // Change the value in the PLC approximately once per second. hb_tick = 1 - hb_tick; HEARTBEAT.PV = hb_tick;