![Omron CJ1G-CPUxx Instructions Manual Download Page 797](http://html1.mh-extra.com/html/omron/cj1g-cpuxx/cj1g-cpuxx_instructions-manual_742491797.webp)
776
High-speed Counter/Pulse Output Instructions
Section 3-21
■
Reading Status (C = 0001 hex)
If C is 0001 hex, PRV(881) reads status as shown in the following table.
■
Reading the Results of Range Comparison (C = 0002 hex)
If C is 0002 hex, PRV(881) reads the results of range comparison and stores it
in D as shown in the following diagram.
■
Reading the High-speed Counter Output Frequency (C = 0003 hex)
If C is 0003 hex, PRV(881) reads the output frequency of high-speed counter
0 in Hz and stores it in D and D+1. The value will be between 0000 0000 and
0001 86A0 hex (0 and 100,000). Even if the output frequency exceeds
100 kHz, the maximum value, 0001 86A0 hex, will be stored.
Port and
mode
Operation
Results of reading
Pulse out-
put
The pulse
output sta-
tus is
stored in
D.
High-
speed
counter
input
The high-
speed
counter
status is
stored in
D.
PWM(891)
output
The
PWM(891)
output is
stored in
D.
0
15
D 0 0 0 0 0 0 0 0
Pulse Output Stopped Error Flag
OFF: No error
ON: Pulse output stopped due to error
Pulse Output Status Flag
OFF: Constant speed
ON: Accelerating/decelerating
PV Overflow/Underflow Flag
OFF: Normal
ON: Error
Pulse Output Amount Set Flag
OFF: Not set
ON: Set
Pulse Output Completed Flag
OFF: Output not completed
ON: Output completed
Pulse Output In-progress Flag
OFF: Stopped
ON: Outputting
No-origin Flag
OFF: Origin established
ON: Origin not established
At-origin Flag
OFF: Not stopped at origin
ON: Stpped at origin
Comparison In-progress Flag
OFF: Stopped
ON: Comparing
PV Overflow/Underflow Flag
OFF: Normal
ON: Error
0
15
D 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0
15
D 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Pulse Output In-progress Flag
OFF: Stopped
ON: Outputting
Comparison Result 1
OFF: Not in range ON: In range
Comparison Result 2
OFF: Not in range ON: In range
Comparison Result 3
OFF: Not in range ON: In range
Comparison Result 4
OFF: Not in range ON: In range
Comparison Result 5
OFF: Not in range ON: In range
Comparison Result 6
OFF: Not in range ON: In range
Comparison Result 7
OFF: Not in range ON: In range
Comparison Result 8
OFF: Not in range ON: In range
0
15
D 0 0 0 0 0 0 0 0
Summary of Contents for CJ1G-CPUxx
Page 3: ...iv N o t i c e ...
Page 5: ...vi ...
Page 21: ...xxii Conformance to EC Directives 6 ...
Page 35: ......
Page 1131: ...1110 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...