Pulse I/O Board
1,2,3...
Note
Leftmost four digits
Port 1:
IR 233
Port 2:
IR 235
Starting and Stopping Comparison
1. Use CTBL(63) to save the comparison table in the CQM1H and begin com-
parisons.
(@)CTBL(63)
If C is set to 000, then comparisons will be made using the target value
method; if 001, they will be made using the range comparison method. In
both cases the comparisons will begin after the comparison table is regis-
tered. While comparisons are being performed, high-speed counter 1 and
2 interrupts will be executed according to the comparison table. Refer to
the explanation of CTBL(63) in SECTION 5 Instruction Set for details on
the contents of the comparison tables that are saved.
Note Although setting the value of C to 002 registers a target value com-
parison table, and setting C to 003 registers a range comparison ta-
ble, comparison does not start automatically. In these cases, INI(61)
must be used to start the comparison operation.
2. To stop comparisons, execute INI(61) as shown below. Specify port 1 or 2
in P (P=001 or 002).
(@)INI(61)
1. To restart comparisons, set the first operand to the port number, and the
second operand to "000" (execute comparison), and execute the INI(61) in-
struction.
2. A table that has been registered will be retained in the CQM1H during op-
eration (i.e., during program execution) until a new table is registered.
Reading the PV of High-speed Counters 1 and 2
The following two methods can be used to read the PVs of high-speed
counters 1 and 2:
• Reading the PV from memory
• Using PRV(62)
Reading the PV from Memory
The PVs of high-speed counters 1 and 4 are stored in the corresponding data
area words in the following way.
Rightmost four digits
IR 232
IR 234
Note These words are refreshed only once every cycle, so they may differ from the
actual PV.
P: Port
P
001: Port 1
C
002: Port 2
TB
C: Mode
000: Target value table registered and comparison begun
001: Range table registered and comparison begun
002: Target table registered only
003: Range table registered only
TB: Beginning word of comparison table
P: Port
P
001: Port 1
002: Port 2
001
000
Linear Mode
F8388608 to 08388607
(−8,388,608 to 8,388,607)
(The leftmost digit becomes F when the number is
negative.)
Section 2-2
Ring Mode
00000000 to 00064999
101
Need help?
Do you have a question about the CQM1H - PROGRAM and is the answer not in the manual?