AutomationView Documentation

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:


Syntax

Sequence Visual Editor

  1. Select an action on a step and open the Instruction picker (Alt or right-click -> Edit Qualifier & Instruction).
  2. Select Timers -> RTO.
  3. Enter the preset duration (PT, for example T#60s) and optionally select a boolean reset variable in the R input slot.

Action T_run_hours with the RTO instruction badge, the PT preset chip and the hours_reset reset chip
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


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)

See Also