![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030911.webp)
871
High-speed Counter/Pulse Output Instructions
Section 3-21
Description
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.
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.
Index Registers
---
---
---
Indirect addressing
using Index Registers
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to
–2048 to +2047 ,IR15
DR0 to DR15, IR0 to
IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Area
P
C
D
P: Port specifier
C: Control data
0000 hex:
Read PV
0001 hex:
Read status
0002 hex:
Read range
comparison
results
00
@
3 hex: Read frequency
0003 hex:
Pulse
output read
high-speed
counter
frequency
0013 hex:
10-ms
sampling
method
0013 hex:
100-ms
sampling
method
0013 hex:
1-s
sampling
method
0000 or 0001 hex:
Pulse output
OK
OK
Not allowed.
OK (See
note.)
Not allowed.
Not allowed.
Not allowed.
0010 or 0011 hex:
High-speed
counter input
OK
OK
OK
OK (high-
speed
counter 0
only)
OK (See
note.)
(high-speed
counter 0
only)
OK (See
note.)
(high-speed
counter 0
only)
OK (See
note.)
(high-speed
counter 0
only)
0100, 0101, 0102,
or 0103 hex:
Interrupt input in
counter mode
OK
Not allowed.
Not allowed.
Not allowed.
Not allowed.
Not allowed.
Not allowed.
1000 or 1001 hex:
PWM (891) output
Not allowed.
OK
Not allowed.
Not allowed.
Not allowed.
Not allowed.
Not allowed.
Port and mode
Operation
Setting range
Pulse output (P =
0000 or 0001 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 or
0011 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, 0101,
0102, or 0103 hex)
The present value of the
interrupt input is stored
in D.
0000 to FFFF hex
(0 to 65,535)
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...