DTEvery

 Function Block - Generate a pulse signal with long period.

Inputs

Input

Data Type

Range

Unit

Default

Description

Run

BOOL

FALSE, TRUE

N/A

No default

When TRUE, the signal generation is enabled.

Days

DINT

1 to 65535

Days

No default

Period : number of days.

TM

Time

0 to 86,399,999

Milliseconds

No default

Rest of the period (if not a multiple of 24h).

Outputs

Output

Data Type

Range

Unit

Description

Q

BOOL

FALSE, TRUE

N/A

Pulse signal.

Remarks

  • This function block provides a pulse signal with a period of more than 24h.
    • The period is expressed as:
         DAYS * 24h + TM
  • Example: Specifying DAYS=1 and TM=6h means a period of 30 hours.

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

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

See Also