BlinkA
Function Block
A function block groups an algorithm and a set of private data. It has inputs and outputs. - Asymmetric blinker.
Inputs
|
Input |
Data Type |
Range |
Unit |
Default |
Description |
|---|---|---|---|---|---|
|
RUN |
BOOL |
|
|
|
Enabling command. |
|
TM0 |
TIME |
|
|
|
Duration of FALSE state on output. |
|
TM1 |
TIME |
|
|
|
Duration of TRUE state on output. |
Outputs
|
Output |
Data Type |
Range |
Unit |
Description |
|---|---|---|---|---|
|
Q |
BOOL |
|
|
Output blinking signal. |
Time Diagram
Remarks
- The output signal is FALSE when the RUN input is FALSE.
FBD Language
FFLD Language
- In the FFLD language, the input rung is the IN command.
- The output rung is the Q output.
IL Language
(* MyBlinker is a declared instance of BLINKA function block *)
Op1: CAL MyBlinker (RUN, TM0, TM1)
FFLD MyBlinker.Q
ST Q
ST Language
(* MyBlinker is a declared instance of BLINKA function block. *)
MyBlinker (RUN, TM0, TM1);
Q := MyBlinker.Q;
See Also





