Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
467
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
16 External FX Device – FNC 80 to FNC 89
16.6 FNC 85 - VRRD / Volume Read
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
16.6 FNC 85 - VRRD / Volume Read
Outline
This instruction reads the analog value of a variable analog potentiometer board (FX3G-8AV-BD) attached to the FX3G
PLC main unit.
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
This instruction reads the analog value of a variable analog potentiometer board attached the PLC main unit.
This instruction converts the analog value of the variable analog potentiometer specified in into binary 8-bit
data, and transfers the numeric value in the range from 0 to 255 to .
Program example
1. Example in which the read analog value is used as the set value of an analog timer
The analog value of the variable analog potentiometer No.0 is converted into binary 8-bit data, and the value in the
range from 0 to 255 is transferred to D0.
The value of D0 is used as the set value of a timer.
When a value larger than 255 is required as the set value of a timer, the read value multiplied by a constant by the
FNC22 (MUL) instruction can be set indirectly as the timer constant.
Operand type Description Data type
Volume number [setting range: 0 to 7] 16-bit binary
Device to which the read analog value is transferred 16-bit binary
Oper-
and
Type
Bit Devices Word Devices Others
System User Digit Specification System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
XYMTCSD
.b KnX KnY KnM KnS T C D R
U\G
V Z Modify K H E "
"P
33 3 33
3333333 333
Mnemonic Operation Condition
16-bit Instruction
5 steps
VRRD
VRRDP
Mnemonic Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
P
FNC 85
VRRD
VOLUME READ
S
1
S
D
S
1
S
S
2
D
S
1
S
D
FNC 85
VRRD
Command
input
S
D
FNC 85
VRRD
K0 D0
Volume
number
Read
destination
X000
X001
T0
D0