Omron SYSMAC CP Series Instruction & Reference Manual page 349

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

Reading a PV (C = 0000 hex)
Port and mode
Pulse output (P = 0000 or 0001 hex)
High-speed counter
Linear Mode
input (P = 0010 to 0015
hex)
Ring Mode
Reading Status (C = 0001 hex)
Port and mode
Pulse output
High-speed counter input
PWM(891) output
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.
CP1E CPU Unit Instructions Reference Manual(W483)
Operation
The present value of the pulse output is stored in
D and D+1.
The present value of the high-speed counter is
stored in D and D+1.
Operation
The pulse output status is stored in D.
The high-speed counter status is
stored in D.
The PWM(891) output is stored in D.
Setting range
8000 0000 to 7FFF FFFF hex
(−2,147,483,648 to 2,147,483,647)
8000 0000 to 7FFF FFFF hex
(−2,147,483,648 to 2,147,483,647)
0000 0000 to FFFF FFFF hex
(0 to 4,294,967,295)
Results of reading
15
0
D 0 0 0 0 0 0 0 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: Stopped at origin
Pulse Output Stopped Error Flag
OFF: No error
ON: Pulse output stopped due to error
15
0
D 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
15
D 0 0 0 0 0 0 0 0 0 0
2 Instructions
Comparison In-progress Flag
OFF: Stopped
ON: Comparing
PV Overflow/Underflow Flag
OFF: Normal
ON: Error
Count Direction
OFF: Decrementing
ON: Incrementing
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
2-313
2

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents