Omron CS1G/H-CPUxxH Instructions Manual page 797

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

High-speed Counter/Pulse Output Instructions
776
Reading Status (C = 0001 hex)
If C is 0001 hex, PRV(881) reads status as shown in the following table.
Port and
Operation
mode
Pulse out-
The pulse
put
output sta-
D 0 0 0 0 0 0 0 0
tus is
stored in
D.
High-
The high-
speed
speed
D 0 0 0 0 0 0 0 0 0 0 0 0 0 0
counter
counter
input
status is
stored in
D.
PWM(891)
The
output
PWM(891)
D 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
output is
stored in
D.
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.
15
D 0 0 0 0 0 0 0 0
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.
Results of reading
15
0
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
Pulse Output Stopped Error Flag
OFF: No error
ON: Pulse output stopped due to error
15
0
Comparison In-progress Flag
OFF: Stopped
ON: Comparing
PV Overflow/Underflow Flag
OFF: Normal
ON: Error
15
0
Pulse Output In-progress Flag
OFF: Stopped
ON: Outputting
0
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
Section 3-21

Advertisement

Table of Contents
loading

Table of Contents