High-Speed Counter Pv Read - Prv(62) - Omron CPM1 Programming Manual

Hide thumbs Also See for CPM1:
Table of Contents

Advertisement

Timer and Counter Instructions
5-15-8 HIGH-SPEED COUNTER PV READ – PRV(62)
PRV(62)
P
C
D
Limitations
Description
High-speed Counter PV
(C=000)
There is an error in the operand settings.
INI(61) is executed in an interrupt subroutine while a pulse I/O or high-
speed counter instruction is being executed in the main program.
Ladder Symbols
@PRV(62)
P
C
D
This instruction is not available for SRM1 PCs.
In the CPM1/CPM1A PCs, P and C must be 000.
In CQM1 PCs, P and C must be 000, 001, or 002.
D and D+1 must be in the same data area.
DM 6143 to DM 6655 cannot be used for D.
When the execution condition is OFF, PRV(62) is not executed. When the exe-
cution condition is ON, PRV(62) reads data specified by P and C and writes it
to D or D and D+1.
The port specifier (P) specifies the high-speed counter or pulse output.
P
000
Specifies high-speed counter 0 or a pulse output from a bit.
001
Specifies high-speed counter 1 or a pulse output from port 1.
002
Specifies high-speed counter 2 or a pulse output from port 2.
Note CPM1/CPM1A PCs are equipped with high-speed counter 0 only.
The control data, C, determines which type of data will be accessed.
C
000
High-speed counter PV
001
Status of high-speed counter or pulse output
002
Range comparison results
If C is 000, PRV(62) reads the specified high-speed counter's PV and writes
the 8-digit value in D and D+1.
With high-speed counter 0, the PV can be F003 2767 to 0003 2767 in Up/
Down Mode, or 0000 0000 to 0006 5535 in Incremental Mode. The hexadeci-
mal value F in the most significant digit of PV indicates that the PV is negative.
Leftmost 4 digits
D+1
With high-speed counters 1 and 2 (CQM1 only), the PV can be F838 8607 to
0838 8607 in Linear Mode, or 0000 0000 to 0006 4999 in Ring Mode. The
Function
Data
Rightmost 4 digits
Up/Down Mode
D
F0032767 to 00032767
Section 5-15
Operand Data Areas
P: Port specifier
000, 001, or 002
C: Control data
000, 001, or 002
D: First destination word
IR, SR, AR, DM, HR, LR
Destination word(s)
D and D+1
D
D
Incrementing Mode
00000000 to 00065535
227

Advertisement

Table of Contents
loading

Table of Contents