beautypg.com

Applicable program areas operands, 2 instructions, P: port specifier c: control data – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 347

background image

2-311

2 Instructions

CP1E CPU Unit Instructions Reference Manual(W483)

High-speed

Counter/Pulse

Ou

tp
ut I

n

stru

ctio

ns

2

PR

V

PRV

Applicable Program Areas

Operands

P: Port Specifier

C: Control Data

Instruction

Mnemonic

Variations

Function

code

Function

HIGH-SPEED

COUNTER PV READ

PRV

@PRV

881

PRV(881) reads the High-speed counter PV and pulse output PV
and interrupt input PV in counter mode.

Symbol

PRV

Area

Step program areas

Subroutines

Interrupt tasks

Usage

OK

OK

OK

Operand

Description

Data type

Size

P

Port specifier

---

1

C

Control data

---

1

D

First destination word

WORD

Variable

P

Port

0000 hex

Pulse output 0

0001 hex

Pulse output 1

0010 hex

High-speed counter 0

0011 hex

High-speed counter 1

0012 hex

High-speed counter 2

0013 hex

High-speed counter 3

0014 hex

High-speed counter 4

0015 hex

High-speed counter 5 (Cannot be used in CP1E-E10D - )

1000 hex

PWM(891) output 0

C

PRV(881) function

0000 hex

Reads the PV.

0001 hex

Reads status.

0002 hex

Reads range comparison results.

00

3 hex

P = 0000 or 0001: Reads the output frequency of pulse output 0 or pulse output 1.

C = 0003 hex

P = 0010: Reads the frequency of high-speed counter input 0.

C = 0013 hex: 10-ms sampling method

C = 0023 hex: 100-ms sampling method

C = 0033 hex: 1-s sampling method

D: First destination word

PRV(881)

P

C

D

P: Port specifier

C: Control data

This manual is related to the following products: