17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

85 VRRD P Volume Read<br />

<strong>ES2</strong><br />

<strong>EX2</strong><br />

Controllers<br />

<strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong><br />

SE<br />

Type Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F VRRD, VRRDP: 5 steps<br />

S * *<br />

D * * * * * *<br />

<strong>ES2</strong>/<br />

<strong>EX2</strong><br />

PULSE 16-bit 32-bit<br />

<strong>ES2</strong>/<br />

<strong>ES2</strong>/<br />

<strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong> SE <strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong> SE <strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong> SE<br />

<strong>EX2</strong> <strong>EX2</strong><br />

Operands:<br />

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

Explanations:<br />

1. VRRD instruction is used to read the two variable resistors on PLC. The read value will be<br />

converted as 0 ~ 255 and stored in destination D.<br />

2. If the VR volume is used as the set value of timer, the user only has to turn the VR knob and<br />

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

certain constant.<br />

3. Flags: M1178 and M1179. (See the Note)<br />

Program Example:<br />

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

and stored in D0.<br />

2. When X1 = ON, the timer which applies D0 as the set value will start timing.<br />

X0<br />

VRRD K0 D0<br />

X1<br />

TMR T0 D0<br />

Points to Note:<br />

1. VR denotes Variable Resistor.<br />

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

Device Function<br />

M1178 Enable knob VR0<br />

M1179 Enable knob VR1<br />

D1178 VR0 value<br />

D1179 VR1 value<br />

3-237

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!