Omron CQM1H - PROGRAM Programming Manual page 128

Programmable controllers; inner boards
Table of Contents

Advertisement

Pulse I/O Board
Word
Counter 1
Counter 2
AR 05
AR 06
Example
• Operating Status
Bit
Name
00
High-speed Counter
Range Comparison Flags
01
02
03
04
05
06
07
08
High-speed Counter
Comparison Flag
09
High-speed Counter
Overflow/Underflow Flag
Using PRV(62)
The status of high-speed counters 1 and 2 can also be determined by execut-
ing PRV(62). Specify high-speed counter 1 or 2 (P=001 or 002) and the desti-
nation word D. The status information will be written to bits 00 and 01 of D.
Bits 02 to 15 will be set to 0.
(@)PRV(62)
The status of the specified high-speed counter is stored in bits 00 and 01 of
P1, as shown in the following table.
Bit
00
Comparison Operation Flag (0: Stopped; 1: Running)
01
High-speed Counter 1 and 2 PV Overflow/Underflow Flag (0: Normal; 1:
Underflow or overflow occurred)
Bits 04 to 07 indicate the pulse output status; all other bits are 0.
This example shows a program that outputs standard pulses from port 1 while
counting those pulses with high-speed counter 1. The high-speed counter
operates in Up/Down Mode, with the pulse output's CW pulses incrementing
the counter (B-phase input) and the CCW pulses decrementing the counter
(A-phase input). Before executing the program, set the PC Setup as follows
and restart the PC to enable the DM 6611 settings.
DM 6611: 0000 (High-speed Counter Mode).
DM 6643: 0002 (Port 1: Fixed duty factor pulse output, Linear Mode, Z-phase
signal with software reset, and Up/Down Mode).
Other PC Setup settings use the default settings. (Inputs are not refreshed
before interrupt processing.)
ON when meeting first
condition.
ON when meeting second
condition.
ON when meeting third
condition.
ON when meeting fourth
condition.
ON when meeting fifth
condition.
ON when meeting sixth
condition.
ON when meeting sev-
enth condition.
ON when meeting eighth
condition.
Indicates the status of the comparison operation.
0: Stopped
1: Running
Indicates the overflow/underflow status of the PV.
0: Normal (No overflow/underflow)
1: Overflow/Underflow has occurred
P: Port
P
001: Port 1
002: Port 2
000
D: Destination word
D
Function
Section 2-2
Function
When the high-speed
counter is used in range
comparison format, a bit
turns ON when the corre-
sponding condition is
met.
103

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?

This manual is also suitable for:

Sysmac cqm1h seriesSysmac cqm1h-cpu series

Table of Contents

Save PDF