Timer instructions
930
Part III FP Instructions
TM_100ms
Timer for 100ms intervals (0 to 3276.7s)
Instead of using this FP instruction, we recommend using the related IEC instruction
TM_100ms_FB (see page 919).
Please refer also to Advantages of the IEC instructio
ns in the online help.
The TM instruction is a down type preset timer.
The area used for the instruction are:
Preset (Set) value area: SV
Count (Elapsed) value area: EV
When the mode is set to RUN mode, the Preset (Set) value is transferred to the SV. If the trigger of
the timer instruction start is in the ON-state, the Preset (Set) value is transferred to the EV from the
SV.
During the timing operation, the time is subtracted from the EV.
The scan time is also subtracted from the EV in the next scan.
The timer contact T turns ON, when the EV becomes 0.
Calculation of the timing operation:
timing operation = time set value - 0 to 1/4 of units (25ms) + scan time
Example:
1500ms time set value and 8ms PLC scan time
Upper limit = 1500 - 0 + 8 = 1508ms
Lower limit = 1500 -25 +8 = 1483ms
The result is a timing operation from 1483ms to 1508ms.
PLC types
Availability of TM_100ms (see page 1332)
Variable Data type Function
start BOOL starts timer
Num* timer address in system registers 5 and 6
Must be a constant
SV
ANY16
set value
T BOOL timer contact
Description
The TM_100ms instruction sets the ON-delay timer for 0.1s units (0 to 3276.7s).
Data types