Counter Area (C) - Omron CP1L Operation Manual

Sysmac cp series
Hide thumbs Also See for CP1L:
Table of Contents

Advertisement

Timers and Counters
Instruction name
TIMER: TIM/TIMX(550)
HIGH-SPEED TIMER:
TIMH(015)/TIMHX(551)
ONE-MS TIMER:
TMHH(540)/TMHHX(552)
ACCUMULATIVE TIMER:
TTIM(087)/TTIMX(555)
TIMER WAIT:
TIMW(813)TIMWX(816)
HIGH-SPEED TIMER WAIT:
TMHW(815)/TMHWX(817)
Forcing Bit Status
Restrictions
4-9-2

Counter Area (C)

The following table shows when timers will be reset or maintained.
Effect on PV and Completion Flag
1
Mode change
PLC start-up
PV → 0
PV → 0
Flag → OFF
Flag → OFF
Note
1. If the IOM Hold Bit (A500.12) is ON, the PV and Completion Flag will be
retained when a fatal error occurs (including execution of FALS instruc-
tions) or the operating mode is changed from PROGRAM mode to RUN or
MONITOR mode or vice-versa. The PV and Completion Flag will be
cleared when power is cycled.
2. If the IOM Hold Bit (A50012) is ON and the PLC Setup's IOM Hold Bit Sta-
tus at Startup setting is set to protect the IOM Hold Bit, the PV and Com-
pletion Flag will be retained when the PLC's power is cycled.
3. Since the TIML(542), TIMLX(553), MTIM(543), and MTIMX(554) instruc-
tions do not use timer numbers, they are reset under different conditions.
Refer to the descriptions of these instructions for details.
4. The present value of TIM, TIMX(550), TIMH(015), TIMHX(551), TM-
HH(540), TMHHX(552), TIMW(813), TIMWX(816), TMHW(815) and TMH-
WX(817) timers programmed with timer numbers 0000 to 2047 will be
updated even when jumped between JMP and JME instructions or when
in a task that is on standby. The present value of timers programmed with
timer numbers 2048 to 4095 will be held when jumped or when in a task
that is on standby.
Timer Completion Flags can be force-set and force-reset.
Timer PVs cannot be force-set or force-reset, although the PVs can be
refreshed indirectly by force-setting/resetting the Completion Flag.
There are no restrictions in the order of using timer numbers or in the number
of N.C. or N.O. conditions that can be programmed. Timer PVs can be read as
word data and used in programming.
The 4,096 counter numbers (C0000 to C4095) are shared by the CNT,
CNTX(546), CNTR(012), CNTRX(548), CNTW(814), and CNTWX(818)
instructions. Counter Completion Flags and present values (PVs) for these
instructions are accessed with the counter numbers.
When a counter number is used in an operand that requires bit data, the
counter number accesses the Completion Flag of the counter. When a
counter number is used in an operand that requires word data, the counter
number accesses the PV of the counter.
2
CNR(545)/CN
RX(547)
(JMP-JME) or
Tasks on
standby
PV → 9999
PVs refreshed in
operating timers
Flag → OFF
PV Maintained
PVs refreshed in
operating timers
Section 4-9
Operation in
Jumps and Interlocks
Jumps
Interlocks
(IL-ILC)
4
PV → SV
(Reset to SV.)
Flag → OFF
PV Maintained
---
---
157

Advertisement

Table of Contents
loading

Table of Contents