blink

PLCopen motion icon

 Function Block - Blinker.

Inputs

Input

Data Type

Range

Unit

Default

Description

RUN

BOOL

FALSE, TRUE

 

 

Enabling command.

CYCLE

TIME

 

 

 

Blinking period.

Outputs

Output

Data Type

Range

Unit

Description

Q

BOOL

FALSE, TRUE

 

Output blinking signal.

Remarks

  • The output signal is FALSE when the RUN input is FALSE.
  • The CYCLE input is the complete period of the blinking signal.

Time Diagram

FBD Language Example

FFLD Language Example

  • In the FFLD Language, the input rung is the IN command.
    • The output rung is the Q output.

IL Language Example

(* MyBlinker is a declared instance of BLINK function block *)
Op1: CAL MyBlinker (RUN, CYCLE)
     FFLD  MyBlinker.Q
     ST  Q

ST Language Example

(* MyBlinker is a declared instance of BLINK function block *)
MyBlinker (RUN, CYCLE);
Q := MyBlinker.Q;

See Also