Timer instructions
914
Part III FP Instructions
TM_1ms_FB
Timer for 1ms intervals (0 to 32.767s)
For the TM_1ms_FB function block declare the following:
start start contact
each time a rising edge is detected, the set value SV is copied to the elapsed
value EV and the timer is started
SV set value
the defined ON-delay time (0 to 32.767s)
T timer contact
is set when the time defined at SV has elapsed, this means when EV
becomes 0
EV elapsed value
count value from which 1 is subtracted every 0.001s while the timer is running
Time
chart
start
SV
EV
T
X
0
X
0
download
PROG mode
RUN mode
ON
OFF
ON
OFF
The number of available timers is limited and depends on the settings in
the system registers 5 and 6.
The system timer functions (TM_1s, TM_100ms, TM_10ms, and TM_1s) use
the same NUM* address area as the system timer function blocks
(TM_1s_FB, TM_100ms_FB, TM_10ms_FB, and TM_1s_FB). For the timer
function blocks the compiler automatically assigns a NUM* address to
every timer instance. The addresses are assigned counting downwards,
starting at the highest possible address. In order to avoid errors (address
conflicts), these timer functions and function blocks should not be used
together in a project.
PLC types Availability of TM_1ms_FB (see page 1332)
Description
This timer for 0.001s units works as an ON-delay timer. If the start contact of the function block is
in the ON state, the preset time SV (set value) is started. When this time has elapsed, the timer
contact T turns ON.