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

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Timer and Counter Instructions
Operand Specifications
Description
Flags
Precautions
Area
CIO Area
---
Work Area
---
Holding Bit Area
---
Auxiliary Bit Area
---
Timer Area
0000 to 0015 (decimal)
Counter Area
---
DM Area
---
Indirect DM addresses
---
in binary
Indirect DM addresses
---
in BCD
Constants
---
Data Registers
---
Index Registers
---
Indirect addressing
,IR0 to ,IR15
using Index Registers
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
When the timer input is OFF, the timer specified by N 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, TMHH(540)/TMHHX(552) starts
decrementing the PV. 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.
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).
Name
Label
Error Flag
ER
Equals Flag
=
Negative Flag
N
Timer numbers are shared by the TIM, TIMX(550), TIMH(015), TIMHX(551),
TMHH(540),
TMHHX(552),
TIMWX(816), TMHW(815), and TMHWX(817) instructions. If two timers share
the same timer number, but are not used simultaneously, a duplication error
will be generated when the program is checked, but the timers will operate
normally. Timers which share the same timer number will not operate properly
if they are used simultaneously.
N
Operation
ON if N is indirectly addressed through an Index Register
but the address in the Index Register is not the PV
address of a timer.
ON if in BCD mode and S does not contain BCD data.
OFF in all other cases.
OFF or unchanged
OFF or unchanged
TTIM(087),
TTIMX(555),
Section 3-5
S
CIO 0 to CIO 6143
W0 to W511
H0 to H511
A0 to A959
T0000 to T4095
C0000 to C4095
D0 to D32767
@ D0 to @ D32767
*D0 to *D32767
BCD:
#0000 to 9999 (BCD)
"&" cannot be used.
Binary:
&0 to &65535 (decimal)
#0000 to #FFFF (hex)
DR0 to DR15
---
TIMW(813),
179

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents