Flasher Output

The PLC code provides a clock output that can be used in any sequence. The timer block (fbFlashOn) specifies how long the clock is on, the second (fbFlashOff) how long the clock is off. Together they act like a flip-flop circuit that produces an on/off effect.

Copy

//--------------------------------Flasher Output--------------------------------
   {region "Description Flasher Output"}
   (*
   This PLC code is programmed to provide a flash output for use within any sequence.
   The timer block (fbFlashOn) provides the time for which the flash output is ON, the second (fbFlashOff) for the time it is OFF.
   Together they have the effect of a 'flip - flop' circuit to create an on / off effect.
   *)
   {endregion}

   fbFlashOff(IN:= NOT fbFlashOn.Q, PT:= T#1S);
   fbFlashOn(IN:= fbFlashOff.Q, PT:= T#1S , Q=>GVL_Global.stGlobalIf.xFlashOutput);

Last updated

Was this helpful?