Instruction Parameters
Supported PLC Series
| PLC-AES | PLC-FB | PLC-ES |
|---|---|---|
| ✓ | ✓ | ✓ |
Supported Data Registers
| M | X | Y | K | L | F | T | C | S | Z | R | Q | D | @D | Constant | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| t | – | – | – | – | – | – | ✓ | – | – | – | – | ✓ | – | – | – |
| v | – | – | – | – | – | – | – | – | – | ✓ | – | ✓ | ✓ | – | – |
Supported Flags
| Flag | Bit | Support |
|---|---|---|
| Error | F11.0 | ✓ |
| Zero | F11.1 | – |
| Carry | F11.2 | – |
Number of Steps
| Steps |
|---|
| 3 |
Operands
| Operand | Description |
|---|---|
| t | The first operand. Entries are only timer data registers. |
| v | The second operand. Entries are unsigned WORD data registers or constants. This is the value the timer will count down from. The unsigned value range is 0 ~ 65,535 (216-1). The Hexadecimal value range is H0000 ~ HFFFF. Signed value entries will be treated as unsigned values. |
Notice
Error Flag (F11.0) Notice
The error flag, F11.0, will be ON for one scan when the address of the data register assigned by Z exceeds its range. The valid range of the data register Z is Z128 ~ Z1023 when using Function Block implementation.
Instruction Behavior
The TMR instruction behaves as follows:
- The data register T assigned to t is a BOOL data register.
- TS and TC express the detailed value of the data register T assigned to t.
- TC is a WORD data register used for the current time value of t.
- TS is a WORD data register used for the time setting value of t.
- The value of TS is equal to the value of v.
- TS and TC express the detailed value of the data register T assigned to t.
- The value of TC increases when the instruction is energized.
- When the value of TC equals the value of v, TC energizes or turns ON.
- If TC is affected by the RST instruction, the value of TC is 0, and the timer turns OFF.
- If the TMR instruction deenergizes, TC will retain its value.
- If the value needs to be retained in instances of power failure, save TC to a K data register.
- K data registers support memory latching.
- If the value needs to be retained in instances of power failure, save TC to a K data register.
- The actual time for the timer data register t is calculated as follows:
- Actual Time = v × time unit (100ms or 10ms)
- The timer contact assigned to t can be used as an A or B contact.
- When the timer contact meets the RST instruction, the current value is 0 and the timer turns OFF.
Timer Length
Please refer to the PLC Parameter section for more information about 10ms and 100ms timers.
Ladder Diagram Examples
TMR

The TMR instruction starts from a WORD value, v, and counts down to 0. The time is saved in a timer data register, t. If the instruction deenergizes, the value of TC is retained.

When the contact M0.4 is powered ON, the data register TC.3 counts up to 90.

When the contact M0.4 is powered OFF, the data register TC.3 retains the current value. In this case, 47.

When the contact M0.4 is powered ON, the data register TC.3 continues counting to 90. While the contact M0.4 is powered ON, the timer contact, T.3 is powered ON. As a result, the coil Y3.0 is energized.

When the contact M0.5 is powered ON, the timer contact T.3 is reset. The value of the data register TC.3 is reset to 0.
Memory Monitor

This is the result of the data register TC.3 counting up to 90 after the value 63 is retained.

This is the result of the timer contact T.3 once the value of TC.3 is 90.
