Omron CQM1H - PROGRAM Programming Manual page 108

Programmable controllers; inner boards
Table of Contents

Advertisement

High-speed Counter Board
Stopping and Restarting
the Counting Operation
Examples
The following is an explanation of the use of INI(61). Refer to Reset Methods
on page 71 for an explanation of the use of the reset methods.
Changing PV with INI(61)
INI(61) is used to change the PV of high-speed counters 1 to 4.
High-speed counter No.
High-speed counter 1
High-speed counter 2
High-speed counter 3
High-speed counter 4
Leftmost
Rightmost four
four digits
digits
P1 + 1
P1
Note After matching the final target value in a target value comparison table, the
comparison process returns automatically to the first target value in the table.
Therefore, following completion of a sequence of comparisons, the process
can be repeated by initializing the PV.
It is possible to stop the counting operation of one of the high-speed counters
1 to 4 by turning ON a control bit. The PV of the counter will be retained.
The counting operation can be stopped by turning ON bits 12 to 15 of IR 212
for slot 1 or AR 05 for slot 2. These bits correspond to high-speed counters 1
to 4. Turn OFF these bits to restart the counting operation. The high-speed
counter will restart from the value at which it was stopped.
Note The Counter Operating Flag can be used to determine whether the count
operation is running or stopped (0: Stopped; 1: Operating).
High-speed counter
High-speed counter 1
High-speed counter 2
High-speed counter 3
High-speed counter 4
The following example illustrates the use of high-speed counter 1 on a High-
speed Counter Board mounted in slot 2. Target value comparison is per-
formed to turn ON bits in the internal/external bit patterns stored in memory
according to the PV of the counter. The status of the internal output bits is
used to control the frequency of a contact pulse output.
The Reset Bit is kept ON in the program so that the PV of the counter is reset
on the phase Z signal after the last target value has been reached.
Before running the program, the PC Setup should be set as shown below, and
the CQM1H restarted to enable the new setting in DM 6611.
(@)INI(61)
P: Port specifier
P
C: 002
C
P1: First PV word
P1
Value specified in P
Slot 1
101
102
103
104
Ring Mode
F8000000 to 07FFFFFF Hex
F8388608 to 08388607 BCD
(The leftmost digit will be F Hex
if the number is negative.)
Counter Operating Flag
Slot 1
IR 20812
IR 20912
IR 21012
IR 21112
Section 2-1
Slot 2
001
002
003
004
Ring Mode
00000000 to 07FFFFFF Hex
00000000 to 08388607 BCD
Slot 2
IR 24012
IR 24112
IR 24212
IR 24312
83

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents