Back to Index

Definition: t_reset("id") — Allowed: string literal id; Not allowed: expression id.

Clears the state of ton or tof timers sharing the same id. Use it to restart elapsed time or DONE bits, especially with retentive timers.

Example

if (in(2)) {          // manual reset button
  t_reset("fan_tail");
}

// elsewhere
if (tof("fan_tail", in(1), 10000, 1)) {
  out(3) = 1;
}