Function Block - Asymetric blinker.
RUN : BOOL
Enabling command
TM0 : TIME
Duration of FALSE state on
output
TM1 :
TIME Duration
of TRUE state on output
Q : BOOL Output blinking signal
The output signal is FALSE when the RUN input is FALSE. In LD language, the input rung is the IN command. The output rung is the Q output signal.
(* MyBlinker is a declared instance of BLINKA
function block *)
MyBlinker (RUN, TM0, TM1);
Q := MyBlinker.Q;
(* MyBlinker is a declared instance of BLINKA
function block *)
Op1: CAL MyBlinker (RUN, TM0, TM1)
LD MyBlinker.Q
ST Q