DTEVERYPLCopen motion icon

Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - Generate a pulse signal with long period

Inputs

RUN : DINT    Enabling command
DAYS : DINT   Period : number of days
TM : TIME     Rest of the period (if not a multiple of 24h)

Outputs

Q : BOOL      PulseClosed When the step gets activated, the action is activated for a single execution, and possibly once again when the step is deactivated signal

Remarks

This block provides a pulse signal with a period of more than 24h. The period is expressed as:
    DAYS * 24h + TM

For instance, specifying DAYS=1 and TM=6h means a period of 30 hours.

ST Language

(* MyDTEVERY is a declared instance of DTEVERY function block *)
MyDTEVERY (RUN DAYS, TM);
Q := MyDTEVERY.Q;

FBD Language

FFLD Language

IL Language:

(* MyDTEVERY is a declared instance of DTEVERY function block *)
Op1: CAL MyDTEVERY (RUN DAYS, TM)
     FFLD  MyDTEVERY.Q
     ST  Q

See also

DTAT   Real time clock functions