Omron CS1G/H-CPUxxH Instructions Manual page 796

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

Advertisement

High-speed Counter/Pulse Output Instructions
Description
Area
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
PRV(881) reads the data specified in C for the port specified in P. The possi-
ble combinations of data and ports are shown in the following table.
P: Port specifier
0000 or 0001 hex:
Pulse output
0010 or 0011 hex:
High-speed counter
input
0100, 0101, 0102, or
0103 hex: Interrupt
input in counter mode
1000 or 1001 hex:
PWM (891) output
Reading a PV (C = 0000 hex)
If C is 0000 hex, PRV(881) reads a PV as shown in the following table.
Port and mode
Pulse output (P =
The present value of the
0000 or 0001 hex)
pulse output is stored in
D and D+1.
High-speed
Linear
The present value of the
counter
Mode
high-speed counter is
input (P =
stored in D and D+1.
0010 or
Ring
0011 hex)
Mode
Interrupt inputs in
The present value of the
counter mode
interrupt input is stored
(P = 0100, 0101,
in D.
0102, or 0103 hex)
P
C
---
---
---
---
See descrip-
See descrip-
tion of oper-
tion of oper-
and.
and.
---
---
---
---
---
---
C: Control data
0000 hex:
0001 hex:
Read PV
Read status
OK
OK
OK
OK
OK
Not allowed.
Not allowed.
OK
Operation
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)
0000 to FFFF hex
(0 to 65,535)
Section 3-21
D
@ D00000 to @ D32767
*D00000 to *D32767
---
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –
2048 to +2047 ,IR15
DR0 to DR15, IR0 to
IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
0002 hex:
0003 hex:
Read range
Read high-
comparison
speed
results
counter
frequency
Not allowed.
Not allowed.
OK
OK (high-
speed
counter 0
only)
Not allowed.
Not allowed.
Not allowed.
Not allowed.
Setting range
775

Advertisement

Table of Contents
loading

Table of Contents