Omron CQM1H - PROGRAM Programming Manual page 157

Programmable controllers; inner boards
Table of Contents

Advertisement

Absolute Encoder Interface Board
Word
Counter 1
Counter 2
AR 05
AR 06
Operation Example
132
• Words Indicating Operational Status
Bit
Name
00
High-speed Counter
Range Comparison Flags
01
02
03
04
05
06
07
08
High-speed Counter
Comparison Flag
Using PRV(62)
The status of absolute high-speed counters 1 and 2 can also be determined
by executing PRV(62). Specify high-speed counter 1 or 2 (P=001 or 002) and
the destination word D.
@PRV(62)
The status of the specified high-speed counter is stored in bit 00 of D, as
shown in the following table.
Bit
00
Comparison Operation Flag (0: Stopped; 1: Running)
Bits 01 to 15 are set to 0.
This example shows programming that receives an input signal from an abso-
lute rotary encoder at port 1 and uses this input to control outputs IR 10000
through IR 10003. Absolute high-speed counter 1 is set for 8-bit resolution
and 360 ° Mode, and range comparisons are performed. Before executing the
program, set DM 6643 to 0100 (Port 1: 360 ° Mode, 8-bit resolution).
Other PC Setup settings use the default settings. (Inputs are not refreshed at
the time of 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
P
P: Port
001: Port 1
001
002: Port 2
D
D: First destination word
Function
Section 2-3
Function
When the high-speed
counter is used in range
comparison format, a bit
turns ON when the corre-
sponding condition is
met.

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