BlinkA

PLCopen motion icon

 Function BlockClosed 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

FALSE, TRUE

 

 

EnablingClosed Enable signal for the drive, Hardware-Enable with 24V signal to X8, Software-Enable command by setup Software, fieldbus or permanently set. Both are required for enabling the drive. 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

FALSE, TRUE

 

Output blinking signal.

Remarks

  • The output signal is FALSE when the RUN input is FALSE.

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 BLINKA functionClosed A function calculates a result according to the current value of its inputs. 
A function has no internal data and is not linked to declared instances. block *)
Op1: CAL MyBlinker (RUN, TM0, TM1)
     FFLD  MyBlinker.Q
     ST  Q

ST Language Example

(* MyBlinker is a declared instance of BLINKA function block. *)
MyBlinker (RUN, TM0, TM1);
Q := MyBlinker.Q;

See Also