TONOFF (time-delay, on, off)
The TONOFF instruction delays turning on an output on a true rung, and then delays turning off the output on the false rung.
Operation details: If the EN parameter is used with TONOFF, 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.
TONOFF

Parameter | Parameter type | Data type | Description |
---|---|---|---|
IN | Input | BOOL | Input control.
|
PT | Input | TIME | The on-delay time setting defined using the Time data type. |
PTOF | Input | TIME | The off-delay time setting defined using the Time data type. |
Q | Output | BOOL | TRUE: The Programmed On-delay time is elapsed and Programmed Off-delay time is not elapsed. |
ET | Output | TIME | Current elapsed time. Possible values range from 0ms through 1193h2m47s294ms. If the Programmed On-delay time is elapsed and the Off-delay timer is not starting, the elapsed time (ET) remains at the on-delay (PT) value. If the Programmed Off-delay time is elapsed and the Off-delay timer is not starting, the elapsed time (ET) remains at the off-delay (PTOF) value until the rising edge occurs again. |
TONOFF examples
TONOFF function block diagram example

TONOFF ladder diagram example

TONOFF structured text example

Results


Provide Feedback