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

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.

CYCLE

TIME

 

 

 

Blinking periodClosed Motor systems having a reciprocating or oscillating motor that operates synchronously with the periodicity of the source which supplies the electrical energy. The period of execution of a pipe is the time spent between two successive computations of set values for the same pipe. The period of execution of a pipe is specified by the PERIOD parameter of the input pipe block..

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 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, 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