7 Application Instructions API 50-99
D V P - P L C A P P L I C AT I O N M A N U A L
7-105
API Mnemonic Operands
Function
86
VRSC P
Volume Scale
Controllers
ES/EX/SS SA/SX/SC EH/SV
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
*
*
*
*
*
*
*
*
VRSC, VRSCP: 5 steps
PULSE 16-bit 32-bit
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
S
: No. of VR
D
: Device for storing the scale of VR
Explanations:
1. Range
of
S
: 0 ~ 7; without function card: 0 ~ 1
2. See the specifications of each model for their range of use.
3. VRSC instruction is used for reading 2 points (No.0, No.1) of PLC or the VR rotary switch scale (0 ~ 10) in the 6
points of the function cards (No.2 ~ No.7) and storing the data in
D
. If the position of the VR falls in the middle of
two scales, VRSC will round up the value into an integer of 0 ~ 10.
Program Example 1:
When X0 = On, the scale of VR0 (0 ~ 10) will be stored in D10.
X0
VRSC
K0
D10
Program Example 2:
1. When the VR is used as DIP switch, they will correspond to scale 0 ~ 10 and only one of M10 ~ M20 will be On.
Use API 41 DECO instruction to decode the scales into M10 ~ M25.
2. When X0 = On, store the scale (0 ~ 10) of VR1 into D1.
3. When X1 = On, use API 41 DECO to decode the scales into M10 ~ M25.
X0
VRSC
K1
D1
X1
DECO
D1
M10
K4
M10
M11
M20
On when the scale is 0
On when the scale is 1
On when the scale is 10
Remarks:
If the MPU is not inserted with a VR extension card, and the No. of the rotary switches inVRRD or VRSC instruction in
the program are set as K2 ~ K7, errors will occur in the execution of grammar check.
Содержание DVP-PLC
Страница 1: ...PLC PLC...
Страница 28: ...1 Basic Principles of PLC Ladder Diagram DVP PLC Application Manual 1 24 MEMO...
Страница 192: ...4 Step Ladder Instructions DVP PLC Application Manual 4 22 MEMO...
Страница 250: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 38 X0 DIV D0 D10 D20 D0 D10 K4Y0 DIV...
Страница 270: ...6 Application Instructions API 00 49 DVP PLC Application Manual 6 58 RST M0 X0 RST T0 RST Y0 FMOV K0 D10 K5...
Страница 337: ...7 Application Instructions API 50 99 DVP PLC APPLICATION MANUAL 7 53 X10 STMR T10 K50 Y0 Y3 X10 Y1 Y2 5 sec 5 sec...
Страница 458: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 56 or relay itself See 2 3 for more information...
Страница 472: ...8 Application Instructions API 100 149 DVP PLC Application Manual 8 70 MEMO...
Страница 574: ...9 Application Instructions API 150 199 DVP PLC Application Manual 9 102 MEMO...