3. Instruction Set

API

Mnemonic

Operands

Function

 

Controllers

 

 

 

 

 

 

 

 

85

VRRD

P

 

Volume Read

ES2

SS2 SA2 SX2

SE

 

EX2

 

 

Type

Bit Devices

 

Word devices

 

Program Steps

 

OP

X

Y

M

S K

H

KnX

KnY

KnM

KnS

T

 

C

D

E

F

VRRD, VRRDP: 5 steps

S

 

 

 

*

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D

 

 

 

 

 

 

 

 

*

*

*

*

 

*

*

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

16-bit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

 

 

32-bit

 

 

 

 

 

 

 

ES2/

SS2

SA2

SX2

SE

ES2/

SS2

SA2

SX2

SE

ES2/

SS2

SA2

SX2

SE

 

 

 

 

 

 

 

 

EX2

EX2

EX2

 

 

 

 

 

 

 

 

 

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.

X0

VRRD K0 D0

X1

TMR T0 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

 

 

3 - 2 3 7

Page 353
Image 353
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Vrrd, Volume Read