3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-251
API Mnemonic
Operands
Function
85
VRRD P
S, D
Volume Read
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
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
Operands:
S
: Variable resistor number (0~1)
D
: Destination for storing the values
Description:
1.
VRRD instruction is used to read the two variable resistors of ELC-PC/PH/PV models. The
read value will be scaled to a decimal range of 0 to 255 and stored in destination
D
.
2.
For information on flags: M1178 and M1179 see the Note below.
Program Example:
Variable resistor values are used in this example as
set points for two timers. The VRRD instructions read
the VR values as decimal values from 0-255. Since
the timers are 100ms time-base timers, the range for
the VR values as presets for these timers are 0-25.5
seconds.
M1000
VRRD
D100
X20
TMR
D100
T0
T0
Y0
X21
TMR
D101
T1
T1
Y1
END
K 0
VRRD
D101
K 1
Note:
1.
VR means VARIABLE RESISTOR.
2.
ELC-PC/PH/PV models, the Variable Resistor. values are from the special D registers below
and the M bits are used to enable each VR.
Device
Function
M1178 Start
volume
VR0
M1179 Start
volume
VR1
D1178 VR0
value
D1179 VR1value
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...