Timer - Mitsubishi Electric MELSEC iQ-R-R00CPU User Manual

Melsec iq-r series cpu module application user's manual
Table of Contents

Advertisement

Timer

This device starts measurement when the timer coil is turned on. When the current value reaches a setting value, time is up
and the contact is turned on. This timer is an up-timing type device and therefore the current value matches a setting value
when the timer time is up.
Types of timers
There are two types of timers: timer (T) which retains the current value in 16-bit units and long timer (LT) which retains it in 32-
bit units. The timer (T) and the long timer (LT) are different devices and the number of device points can be set for each of
them. In addition, there are the retentive timer (ST) and the long retentive timer (LST), both of which retain the current value
even if the coil is turned off.
Types of timers
Timer
*1 For the timer (T)/long timer (LT), the current value returns to 0 when the coil is turned off.
■Timer (T)
This device starts measurement when the coil of the timer is turned on. When the timer current value matches a setting value,
time is up and the timer contact is turned on. When the timer coil is turned off, the current value returns to 0 and the timer
contact is turned off.
X0
T0
2)
■Long timer (LT)
This device can count from 0 to 4294967295 to measure the time. If the measuring unit is set to 0.01ms, the measurable time
range of this device is from 0 to about 11.9 hours. The current value of the long timers is updated by adding a difference of the
counter which is used in the system when the OUT LT instruction is executed. Proper time can be measured even when the
coil instruction of the long timer cannot be executed once per scanning because the counters used in the system count
asynchronously with scanning. When the long timer coil is turned on, measurement starts and when the long timer current
value matches a setting value, time is up and the long timer contact is turned on. When the long timer coil is turned off, the
current value returns to 0 and the long timer contact is turned off.
X0
LT0
2)
*1 This figure shows the example when the long timer time limit value setting is 0.01ms.
• For the long timer contact to be turned on after the long timer coil is turned on, the next coil must be
executed after the long timer coil turned off and on. The long timer contact is not turned on simultaneously
when the long timer coil is off and on.
• The long timer (LT) can be used in interrupt programs. ( Page 67 Interrupt Program)
21 DEVICES
338
21.3 User Device
*1
Current value = 16 bits
Current value = 32 bits
X0
K10
T0
Coil of T0 (1))
1)
Y10
Contact of
T0 (2))
K100
X0
LT0
1)
Coil of LT0 (1))
Y10
Contact of
LT0 (2))
Timer (T)
Retentive timer (ST)
Long timer (LT)
Long retentive timer (LST)
ON
OFF
ON
OFF
1 second
OFF
ON
OFF
ON
OFF
1ms
OFF
Low-speed timer
High-speed timer
Low-speed retentive timer
High-speed retentive timer
ON
ON

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents