Timer instructions Chapter 23
Rockwell Automation Publication 2080-RM001D-EN-E - February 2015 625
TONOFF delays turning on an output on a true rung, then delays turning off the
output on the false rung.
Arguments
Parameter Parameter type Data type Description
IN Input BOOL If Rising Edge (IN) turns from 0 to 1, the On-delay timer starts.
If the Programmed On-delay time is elapsed and the Falling Edge (IN) turns
from 1 to 0, the Off-delay timer starts and resets the elapsed time (ET).
If the Programmed On-delay time is elapsed and the Falling Edge (IN) turns
from 1 to 0, the Off-delay timer starts. If the Programmed On-delay time is
not elapsed and the Rising Edge (IN) turns from 0 to 1, the On-delay timer
starts.
PT Input TIME On-delay time setting.
PTOF Input TIME Off-delay time setting.
Q Output BOOL If 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 to 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.
Tip: If you use the EN parameter with this block, the timer starts incrementing
when EN is set to TRUE, and continues to increment even if EN is set to FALSE.