Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 219

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Timer and Counter Instructions
Description
Flags
Precautions
186
Area
Index Registers
Indirect addressing
using Index Registers
TIML(542)/TIMLX(553) is a decrementing ON-delay timer with units of 0.1-s
that uses an 8-digit SV and an 8-digit PV.
When the timer input is OFF, the timer is reset, i.e., the timer's PV is reset to
the SV and its Completion Flag is turned OFF.
When the timer input goes from OFF to ON, TIML(542)/TIMLX(553) starts
decrementing the PV in D2+1 and D2. The PV will continue timing down as
long as the timer input remains ON and the timer's Completion Flag will be
turned ON when the PV reaches 0000 0000.
The status of the timer's PV and Completion Flag will be maintained after the
timer times out. To restart the timer, the timer input must be turned OFF and
then ON again or the timer's PV must be changed to a non-zero value (by
MOV(021), for example).
Timer input
SV
Timer PV
Completion Flag
(Bit 00 of D1)
Name
Label
Error Flag
ER
Unlike most timers, TIML(542)/TIMLX(553) does not use a timer number.
(Timer area PV refreshing is not performed for TIML(542)/TIMLX(553).)
Since the Completion Flag for TIML(542)/TIMLX(553) is in a data area it can
be forced set or forced reset like other bits, but the PV will not change.
The timer's PV is refreshed only when TIML(542)/TIMLX(553) is executed, so
the timer will not operate properly when the cycle time exceeds 100 ms
because the timer increments in 100-ms units.
The timer's Completion Flag is refreshed only when TIML(542)/TIMLX(553) is
executed, so a delay of up to one cycle may be required for the Completion
Flag to be turned ON after the timer times out.
When TIML(542)/TIMLX(553) is in a program section between IL(002) and
ILC(003) and the program section is interlocked, the PV will be reset to the SV
and the Completion Flag will be turned OFF.
When an operating TIML(542)/TIMLX(553) timer is in a program section
between JMP(004) and JME(005) and the program section is jumped, the PV
will retain its previous value. Be sure to take this fact into account when
TIML(542)/TIMLX(553) is programmed between JMP(004) and JME(005).
D1
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
Operation
ON if BCD was specified and the PV contained in D2+1
and D2 is not BCD.
ON if the SV contained in S+1 and S is not BCD.
OFF in all other cases.
Section 3-5
D2
S

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents