Timer
TIMER_START · V4.23Choose T0 to T3 and an Action: Start, Pause, Resume, Stop or Reset. Each action immediately advances to the next row without blocking the task. Only Start uses a preset in milliseconds.
Hexadecimal notation is used for IDs, indexes, modes and sentinel values where applicable. Physical quantities (such as pulses, milliseconds and pulse/s) remain in their native units. Macro names are shown only when defined by the firmware.
Input parameters
| Parameter | Initial value | Meaning |
|---|---|---|
Task timertimer_id | T0 | Current-task private timer T0 to T3. |
Actionaction | START | Start / Pause / Resume / Stop / Reset |
Presetpreset_ms | 1000 | Start only: 1 to 2147483647 ms; hidden for other actions. |
Initial values are editor defaults for a newly inserted instruction; configure them for the actual machine.
Firmware macro definitions
Hexadecimal equivalents of the firmware definitions; numeric values are unchanged.
#define MTGM_OP_TASK_TIMER_COUNT 0x04UExecution and usage
- Start counts from zero and clears the previous expiration state. Pause freezes the value; Resume continues only a paused timer and excludes paused time. Stop prevents Resume until a new Start. Reset clears and stops while retaining the last preset. Expiration does not automatically jump, fault or stop a task. See Section 9.2 for the action matrix.