TOF / TOFR
Inputs
|
Input |
Data type |
Description |
|
IN |
BOOL |
Timer command. |
|
PT |
TIME |
Programmed time. |
|
RST |
BOOL |
Reset (TOFR only). |
Outputs
|
Output |
Data type |
Description |
|
Q |
BOOL |
Timer elapsed output signal. |
|
ET |
TIME |
Elapsed time. |
Time diagram

Remarks
The timer starts on a falling pulse of IN input. It stops when the elapsed time is equal to the programmed time. A rising pulse of IN input resets the timer to 0. The output signal is set to TRUE on when the IN input rises to TRUE, reset to FALSE when programmed time is elapsed.
TOFR is same as TOF but has an extra input for resetting the timer.
In LD language, the input rung is the IN command. The output rung is Q the output signal.
ST Language
MyTimer is a declared instance of TOF function block.
MyTimer (IN, PT);
Q := MyTimer.Q;
ET := MyTimer.ET;
FBD Language

LD Language

TOF / TOFR |
|
IEC 61131-3 Automation platform > Programming - Reference guide > Timers > TOF / TOFR |
Created with the Personal Edition of HelpNDoc: iPhone web sites made easy

