Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 911

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

High-speed Counter/Pulse Output Instructions
Description
P: Port specifier
0000 hex:
Read PV
0000 or 0001 hex:
OK
Pulse output
0010 or 0011 hex:
OK
High-speed
counter input
0100, 0101, 0102,
OK
or 0103 hex:
Interrupt input in
counter mode
1000 or 1001 hex:
Not allowed. OK
PWM (891) output
872
Area
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.
0001 hex:
0002 hex:
Read status
Read range
comparison
results
OK
Not allowed. OK (See
OK
OK
Not allowed. Not allowed. Not allowed. Not allowed. Not allowed. Not allowed.
Not allowed. Not allowed. Not allowed. Not allowed. Not allowed.
Note CJ1M CPU Units with unit version 3.0 or later only.
■ 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 =
0000 or 0001 hex)
High-speed
Linear
counter
Mode
input (P =
0010 or
Ring
0011 hex)
Mode
Interrupt inputs in
counter mode
(P = 0100, 0101,
0102, or 0103 hex)
P
---
---
---
---
C: Control data
00@3 hex: Read frequency
0003 hex:
0013 hex:
Pulse
10-ms
output read
sampling
high-speed
method
counter
frequency
Not allowed. Not allowed. Not allowed.
note.)
OK (high-
OK (See
speed
note.)
counter 0
(high-speed
only)
counter 0
only)
Operation
The present value of the
8000 0000 to 7FFF FFFF hex
pulse output is stored in
( 2,147,483,648 to
D and D+1.
2,147,483,647)
The present value of the
8000 0000 to 7FFF FFFF hex
high-speed counter is
( 2,147,483,648 to
stored in D and D+1.
2,147,483,647)
0000 0000 to FFFF FFFF hex
(0 to 4,294,967,295)
The present value of the
0000 to FFFF hex
interrupt input is stored
(0 to 65,535)
in D.
Section 3-21
C
D
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to
–2048 to +2047 ,IR15
DR0 to DR15, IR0 to
IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
0013 hex:
0013 hex:
100-ms
sampling
sampling
method
method
OK (See
OK (See
note.)
note.)
(high-speed
(high-speed
counter 0
counter 0
only)
only)
Setting range
1-s

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents