TOF (timer, off-delay)

The TOF instruction increases an internal timer up to a given value.
Operation details: If the EN parameter is used with this instruction block, the timer starts incrementing when EN is set to TRUE, and continues to increment even if EN is set to FALSE.
Languages supported: Function block diagram, ladder diagram, structured text.
This instruction applies to the Micro810, L20E, L50E, and L70E controllers.
TOF
TOF
TOF parameters
Parameter
Parameter type
Data type
Description
IN
Input
BOOL
Input control.
  • TRUE: Falling edge detected, starts increasing internal timer.
  • FALSE: Rising edge detected, stops, and resets internal timer.
PT
Input
TIME
Maximum programmed time.
See Time data type.
Q
Output
BOOL
  • TRUE: Total time is not elapsed.
  • FALSE: Total time has elapsed.
ET
Output
TIME
Current elapsed time. Possible values range from 0ms through 1193h2m47s294ms.

TOF examples

TOF timing diagram
TOF timing diagram
TOF function block diagram example
TOF function block diagram example
TOF ladder diagram example
TOF ladder diagram example
TOF structured text example
TOF structured text example
Results
Results
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal