Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 912

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

High-speed Counter/Pulse Output Instructions
872
■ 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-
tus is
stored in
D.
High-
The high-
speed
speed
counter
counter
input
status is
stored in
D.
PWM(891)
The
output
PWM(891)
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 Pulse Output or High-speed Counter Frequency (C = 00@3 hex)
If C is 00@3 hex, PRV(881) reads the frequency being output from pulse out-
put 0 or 1 or the frequency being input to high-speed counter 0 and stores it in
D and D+1.
Results of reading
15
0
D 0 0 0 0 0 0 0 0
Pulse Output Status Flag
PV Overflow/Underflow Flag
Pulse Output Amount Set Flag
Pulse Output Completed Flag
Pulse Output In-progress Flag
No-origin Flag
At-origin Flag
Pulse Output Stopped Error Flag
15
0
D 0 0 0 0 0 0 0 0 0 0 0 0 0 0
15
0
D 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
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
OFF: Constant speed
ON: Accelerating/decelerating
OFF: Normal
ON: Error
OFF: Not set
ON: Set
OFF: Output not completed
ON: Output completed
OFF: Stopped
ON: Outputting
OFF: Origin established
ON: Origin not established
OFF: Not stopped at origin
ON: Stopped at origin
OFF: No error
ON: Pulse output stopped due to error
Comparison In-progress Flag
OFF: Stopped
ON: Comparing
PV Overflow/Underflow Flag
OFF: Normal
ON: Error
Pulse Output In-progress Flag
OFF: Stopped
ON: Outputting

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents