TMR
TMR instruction accumulates time (set value) to set timer(S).
| |
S | Timer device address to set |
t | Accumulated (ACC) preset value |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. | Error | Zero | Carry | |||
TMR | S | - | - | - | - | - | - | o | - | - | - | - | - | - | 3 | - | - | - |
t | - | - | - | - | - | - | - | - | - | - | o | - | o |
When enabled, TMR instruction counts preset value (t) and when the accumulated value (ACC value) reaches preset value (t), Timer device(S) will be turned ON
You can set up the time base (t) in PLC Parameter.
According to Timer parameter, T0~T127 is 100ms and T128~T511 is 10ms.
(EX. TMR T5 100 : 10,000ms = 10sec.)
The TMR is a retentive timer. When the TMR instruction is disabled, it retains its ACC value.
The range of preset (t) : 0 ~ 65535
Example)
If M00 is ON, the TMR instruction counts up to 10sec. Even if M00 is disabled, TMR instruction retains its ACC value. When it reaches 10sec, T1 and Y10 are turned ON. If M01 is ON, T1 (ACC value) is cleared.
TMR retains ACC value (56) even if M00 is disabled.
When it reaches 10sec, T1 and Y10 are turned ON.