====== TON Box Function ====== **On Delay Timer** Category: [[en-us_products:mpino_studio2:box_functions:timer|Timer Box Functions]] ===== Behavior ===== Accumulates time while the input is ON and turns the done state ON at the set value. When the input turns OFF, the current and done states reset to zero. ===== Syntax and Arguments ===== **Syntax:** ''TON T0 100'' * Arg 1 = target: timer memory T (16-bit) / DT (32-bit), stores the elapsed value * Arg 2 = time: 10ms ticks. Accepts 100 (=100 ticks=1s) or a time literal like 1m10s ===== Behavior Example ===== ^ Run condition ^ Before ^ Command entered ^ Expected result ^ | Left condition ON | T0=0 | ''TON T0 100'' | 1 s later → T0=100, T0 done contact=ON | {{ :en-us_products:mpino_studio2:timer-ton-taon-timing.svg?1000 |TON input, current value, and done state }} ===== Cautions ===== * A numeric time is a tick count. The TON family uses 10 ms per tick, and the TAON family uses 100 ms per tick. ===== Box Functions in the Same Category ===== * [[en-us_products:mpino_studio2:box_functions:timer:toff|TOFF View details]] — Off Delay Timer * [[en-us_products:mpino_studio2:box_functions:timer:tpl|TPL View details]] — Pulse Timer * [[en-us_products:mpino_studio2:box_functions:timer:tmon|TMON View details]] — Monostable / One-shot Timer * [[en-us_products:mpino_studio2:box_functions:timer:tmr|TMR View details]] — Retentive Timer * [[en-us_products:mpino_studio2:box_functions:timer:taon|TAON View details]] — On Delay Timer · 100ms * [[en-us_products:mpino_studio2:box_functions:timer:taoff|TAOFF View details]] — Off Delay Timer · 100ms * [[en-us_products:mpino_studio2:box_functions:timer:tapl|TAPL View details]] — Pulse Timer · 100ms * [[en-us_products:mpino_studio2:box_functions:timer:tamon|TAMON View details]] — Monostable Timer · 100ms * [[en-us_products:mpino_studio2:box_functions:timer:tamr|TAMR View details]] — Retentive Timer · 100ms