Function Block - Blinker.
RUN : BOOL
Enabling command
CYCLE : TIME Blinking period
Q : BOOL Output blinking signal
The output signal is FALSE when the RUN input is FALSE. The CYCLE input is the complete period of the blinking signal. In LD language, the input rung is the IN command. The output rung is the Q output signal.
(* MyBlinker is a declared instance of BLINK
function block *)
MyBlinker (RUN, CYCLE);
Q := MyBlinker.Q;
(* MyBlinker is a declared instance of BLINK
function block *)
Op1: CAL MyBlinker (RUN, CYCLE)
LD MyBlinker.Q
ST Q