101
Pulse I/O Board
Section 2-2
Starting and Stopping Comparison
1,2,3...
1.
Use CTBL(63) to save the comparison table in the CQM1H and begin com-
parisons.
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).
Note
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.
Note
These words are refreshed only once every cycle, so they may differ from the
actual PV.
(@)CTBL(63)
P
C
TB
P: Port
001: Port 1
002: Port 2
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
(@)INI(61)
P
001
000
P: Port
001: Port 1
002: Port 2
Leftmost four digits
Rightmost four digits
Linear Mode
Ring Mode
IR 233
IR 232
F8388608 to 08388607
(
−
8,388,608 to 8,388,607)
(The leftmost digit becomes F when the number is
negative.)
00000000 to 00064999
Port 1:
IR 235
IR 234
Port 2:
Содержание SYSMAC CQM1H Series
Страница 3: ...iv...
Страница 5: ...vi...
Страница 9: ......
Страница 11: ......
Страница 15: ...xvi...
Страница 87: ...62 Calculating with Signed Binary Data Section 1 7...
Страница 169: ...144 Serial Communications Board Section 2 6...
Страница 537: ......
Страница 565: ......
Страница 569: ......
Страница 573: ......
Страница 577: ......