EasyManua.ls Logo

Delta DVP-ES2 - Page 411

Delta DVP-ES2
1006 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
3-290
API
Mnemonic Operands Function
Controllers
ES2/
EX2/
EC5
SS2
SA2
SX2
SE
86 VRSC P
Volume Scale Read
Type
OP
Bit Devices Word devices Program Steps
X
Y
M
S
K
H
KnX
KnY
KnM
KnS
T
C
D
E
F
VRSC, VRSCP: 5 steps
S
*
*
D
*
*
*
*
*
*
PULSE
16-bit
32-bit
ES2/
EX2
/
EC5
SS2
SA2
SX2
SE
ES2/
EX2/
EC5
SS2
SA2
SX2
SE
ES2/
EX2/
EC5
SS2
SA2
SX2
SE
Operands:
S: Variable resistor number (0~1) D: Destination device for storing scaled value
Explanations:
VRSC instruction reads the scaled value (0~10) of the 2 VRs on PLC and stores the read data in
destination device D as an integer, i.e. if the value is between 2 graduations, the value will be
rounded off.
Program Example 1:
When X0 = ON, VRSC instruction reads the scaled value (0 to10) of VR No. 0 and stores the read
value in device D10.
X0
VRSC K0 D10
Program Example 2:
Apply the VR as digital switch: The graduations 0~10 of VR correspond to M10~M20, therefore only
one of M10 ~M20 will be ON at a time. When M10~M20 is ON, use DECO instruction (API 41) to
decode the scaled value into M10~M25.
1. When X0 = ON, the graduation (0~10) of VR No.1 will be read out and stored in D1.
2. When X1 = ON, DECO instruction will decode the graduation (0~10) into M10~M25.

Table of Contents

Other manuals for Delta DVP-ES2

Related product manuals