beautypg.com

Delta DVP-ES2 User Manual

Page 353

background image

3 . I n s t r u c t i o n S e t

3 - 2 3 7

API Mnemonic

Operands

Function

85

VRRD P

Volume Read

Controllers

ES2
EX2

SS2 SA2 SX2

SE

Bit Devices

Word devices

Program Steps

Type

OP

X Y M S K H KnX KnY KnM KnS T

C

D

E F

S

*

*

D

*

*

*

*

*

*

VRRD, VRRDP: 5 steps

PULSE 16-bit 32-bit

ES2/

EX2

SS2 SA2 SX2 SE

ES2/

EX2

SS2 SA2 SX2 SE

ES2/

EX2

SS2 SA2 SX2 SE

Operands:

S: Variable resistor number (0~1) D: Destination device for storing read value

Explanations:

1.

VRRD instruction is used to read the two variable resistors on PLC. The read value will be

converted as 0 ~ 255 and stored in destination D.

2.

If the VR volume is used as the set value of timer, the user only has to turn the VR knob and

the set value of timer can be adjusted. When a value bigger than 255 is required, plus D with a

certain constant.

3.

Flags: M1178 and M1179. (See the Note)

Program Example:

1.

When X0 = ON, the value of VR No.0 will be read out, converted into 8-bit BIN value (0~255),

and stored in D0.

2.

When X1 = ON, the timer which applies D0 as the set value will start timing.

X1

TMR

T0

D0

X0

VRRD

K0

D0

Points to Note:

1.

VR denotes Variable Resistor.

2.

SX2 supports built-in 2 points of VR knobs which can be used with special D and M.

Device

Function

M1178 Enable

knob

VR0

M1179 Enable

knob

VR1

D1178 VR0

value

D1179 VR1

value

This manual is related to the following products: