RTO (Retentive On-Delay Timer)
Accumulates elapsed time across multiple activations and outputs TRUE when the total reaches the preset duration.
Description
The RTO (Retentive Timer On-Delay) instruction retains its elapsed time .ET when .IN turns FALSE and resumes counting on the next activation:
.INisTRUE: Timer accumulates elapsed time.ET..INisFALSE: Timer pauses and retains.ET..ET >= .PT: Output.QbecomesTRUE..R(Reset) isTRUE: Resets.ETto0and.QtoFALSE. You can bind an optionalRreset variable directly in the action operand slot or reset the timer with theRqualifier.
Syntax
Sequence Visual Editor
- Select an action on a step and open the Instruction picker (
Altor right-click -> Edit Qualifier & Instruction). - Select Timers -> RTO.
- Enter the preset duration (
PT, for exampleT#60s) and optionally select a boolean reset variable in theRinput slot.

RTO keeps its elapsed time; the second chip is the reset input.
Python
from automation_machine import ActionInstruction
step.add_action("timer_name", "Timer description", instruction=ActionInstruction.RTO, duration=60000)
Parameters
- name: Timer instance name
- description: Action description
- qualifier:
ActionQualifierenum (default:ActionQualifier.N) - instruction:
ActionInstruction.RTO - duration: Target accumulated duration in milliseconds (for example
60000for 60 seconds) - R (optional operand): Boolean variable or condition that resets
.ETand.Q
Timer Variables
| Variable | Type | Description |
|---|---|---|
.IN |
BOOL |
Input signal: timer accumulates while TRUE |
.R |
BOOL |
Reset input: clears .ET to 0 and .Q to FALSE when TRUE |
.Q |
BOOL |
Output signal: TRUE when .ET >= .PT |
.PT |
TIME |
Preset target duration |
.ET |
TIME |
Accumulated elapsed time (retained across activations) |