Timer instructions
928
Part III FP Instructions
TM_10ms
Timer for 10ms intervals (0 to 327.67s)
Instead of using this FP instruction, we recommend using the related IEC instruction TM_10ms_FB
(see page 916).
Please refer also to Advantages of the IEC instructio
ns in the online help.
The areas 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 (2.5ms) + scan time
Example:
150ms time set value and 8ms PLC scan time
Upper limit = 150 - 0 + 8 = 158ms
Lower limit = 150 -2.5 +8 = 155.5ms
The result is a timing operation from 155.5ms to 158ms.
PLC types
Availability of TM_10ms (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_10ms instruction sets the ON-delay timer for 0.01 s units (0 to 327.67s).
Data types