EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 745

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
712
High-speed Counter/Pulse Output Instructions Section 3-20
Reading a PV (C = 0000 hex)
If C is 0000 hex, PRV(881) reads a PV as shown in the following table.
Reading Status (C = 0001 hex)
If C is 0001 hex, PRV(881) reads status as shown in the following table.
0100 to 0107 hex:
Interrupt input in
counter mode
OK Not allowed. Not allowed. Not allowed.
1000 or 1001 hex:
PWM output
Not allowed. OK Not allowed. Not allowed.
P: Port specifier C: Control data
0000 hex:
Read PV
0001 hex:
Read status
0002 hex:
Read range
comparison
results
0003 hex:
Pulse output
read high-
speed
counter
frequency
Port and mode Operation Setting range
Pulse output (P =
0000 to 0003 hex)
The present value of the
pulse output is stored in
D and D+1.
8000 0000 to 7FFF FFFF hex
(-2,147,483,648 to
2,147,483,647)
High-speed
counter
input (P =
0010 to
0013 hex)
Linear
Mode
The present value of the
high-speed counter is
stored in D and D+1.
8000 0000 to 7FFF FFFF hex
(-2,147,483,648 to
2,147,483,647)
Ring
Mode
0000 0000 to FFFF FFFF hex
(0 to 4,294,967,295)
Interrupt inputs in
counter mode
(P = 0100 to 0107
hex)
The present value of the
interrupt input is stored
in D.
0000 to FFFF hex
(0 to 65,535)
Port and
mode
Operation Results of reading
Pulse out-
put
The pulse output
status is stored in
D.
High-
speed
counter
input
The high-speed
counter status is
stored in D.
PWM out-
put
The PWM output
is stored in D.
015
D
000 0 0 0 0 0
Pulse Output Stopped Error Flag
OFF: No error
ON: Pulse output stopped due to erro
r
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
015
D
000 0 0 0 0 0 000000
Comparison In-progress Fla
g
OFF: Stopped
ON: Comparing
PV Overflow/Underflow Flag
OFF: Normal
ON: Error
015
D
000 0 0 0 0 0 0000000
Pulse Output In-progress Flag
OFF: Stopped
ON: Outputting

Table of Contents

Related product manuals