blink

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - Blinker.

Inputs

Input

Data Type

Range

Unit

Default

Description

RUN

BOOL

 

 

 

Enabling command.

CYCLE

TIME

 

 

 

Blinking period.

Outputs

Output

Data Type

Range

Unit

Description

Q

BOOL

 

 

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

BlinkDiag.gif (1933 octets)

FBD Language Example

BlinkFbd.gif (1343 octets)

FFLD Language Example

BlinkLd.gif (1418 octets)

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