Basic Instructions
2 − 43
Timer set time
The formula of the timer set time is [the time unit] × [set value]
The timer setting [n] must be a decimal constant from K1 to K32767.
− TMR is from 0.01 to 327.67 seconds in increments of 0.01 seconds.
− TMX is from 0.1 to 3276.7 seconds in increments of 0.1 seconds.
− TMY is from 1 to 32767 seconds in increments of 1 second.
Example:
When K43 is set in TMX, the set time is 0.1 × 43 = 4.3 seconds.
When K500 is set in TMR, the set time is 0.01 × 500 = 5
seconds.
Precautions during programming
In order to ensure correct timer operation, the TM instruction should be executed in every scan. Be aware of
this when using instructions like INT, JP and LOOP.
When a timer instruction is combined with an ANS or POPS instruction, take care that the syntax is correct.
Timer operation
The following is an example of setting the set value with a K constant. For an explanation of operation when
an set value area (SV) is specified, see the following pages.
1
When the mode is changed to RUN or when the power is turned on with the mode set to RUN, the
timer set value is transferred to the set value area (SV) with the same number.
TMX 5, K
T5
1
Transfers to SV area
SV5
30
30
Y10
X0
Set value
2
When the timer trigger rises from off to on, the setting is transferred from the set value area (SV) to the
elapsed value area (EV) with the same number. (The same operation takes place if the mode is
changed to RUN when the trigger is on.)
3
The value in the elapsed value area (EV) decrements every scan if the trigger stays on.
TMX 5, K
T5
2
Transfers to EV area
SV5
30
30
EV5
30
29
28
27
3
Decrements
Y10
X0