21 DEVICES
21.2 User Devices
209
21
Timer (T/ST)
Device whereby measurement starts when the timer coil is turned ON, time up occurs when current value reaches the setting
value, and the contact is turned ON. The timer is an addition type counter. When time is up, the current value and setting
value are the same value.
Types of timers
There are timers (T) for which current value is maintained in 16 bits, and retentive timers (ST) that maintain the current value
even when the coil is turned OFF.
*1
*1 Current value of timers (T) becomes "0" when the coil is turned OFF.
■Timer (T)
Measurement starts when the timer's coil is turned ON. Time up occurs when the current value of the timer matches the
setting value and the timer's contact is turned ON. When the timer's coil is turned OFF, the current value becomes "0" and the
timer's contact is turned OFF.
■Retentive timer (ST)
Measures time for which the coil is ON. Measurement starts when the retentive timer's coil is turned ON, and when the current
value matches the setting value (time up), the retentive timer's contact is turned ON. The current value and ON/OFF status of
the contact are maintained even if the retentive timer's coil is turned OFF. When the coil is turned back ON, measurement
resumes from the current value maintained. The current value is cleared and the retentive timer is turned OFF by the RST
ST instruction.
■Low-speed timer/Timer/High-speed timer (T/ST)
Low-speed timers, timers and high-speed timers are the same device. The timer is specified (by instruction) as a low-speed
timer, timer, or high-speed timer. If for example, you specify "OUT T0," the timer is a low-speed timer (100 ms); if you specify
"OUTH T0," it is a timer (10 ms); if you specify "OUTHS T0," it is a high-speed timer (1 ms). The same goes for retentive
timers.
■Routine timer (T)
The routine timer is a timer (100ms) that can operate even with a program that is not necessarily executed with every scan.
Eight timers can be used at the maximum. This timer counts when the OUT T instruction, the ANS instruction, or the END
instruction is executed.
To use a routine timer, it is necessary to set the parameter. (Page 211 Routine timer setting)
Y10
T0
T0
2)
X0
1)
3)
K10
OFF
T0 contact (3))
ON
ON
OFF
T0 coil (1))
ON
OFF
X0
1
second
RST ST0
X1
Y10
ST0
ST0
2)
X0
1)
4)
3)
K200
0
ST0 contact (3))
ON
OFF
ST0 coil (1))
ON
OFF
X0
5
seconds
15 seconds
1 150 150
151 199
200 0
OFF
Current value is held even if
the coil (1)) is turned OFF.
Contact remains ON even if
the coil (1)) is turned OFF.
Current value of
ST0
Instruction
execution
RST ST0
instruction (4))