Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
15 Applied Instructions (External Device (optional device))
15.7 VRSC / Volume Scale
409
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
11
Applied Instructions
(Data Operation)
12
Applied Instructions
(High Speed
Processing)
13
Applied Instructions
(Handy
Instruction)
14
Applied Instructions
(External FX I/O
Device)
15
Applied Instructions
(External Device
(optional device))
16
Applied Instructions
(External Device)
17
Applied Instructions
(Data Transfer 2)
18
Applied Instructions
(Floating Point)
19
Applied Instructions
(Data Operation 2)
20
Applied Instructions
(Positioning
Control)
15.7 VRSC / Volume Scale
Outline
This instruction reads out the value determined in the variable resistor graduations.
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
Function and operation explanation
This instruction reads the value of a variable analog potentiometer on the
variable analog potentiometer board attached to the main unit as a
numeric value in the range from 0 to 10.
However, the actual scale value does not always correspond to the
switching position of the variable analog potentiometer scale (0 to 10).
This instruction converts into a binary value the scale value of a variable
analog potentiometer specified in , and transfers the converted binary
value to .
FX3U(C) FX3G(C) FX3S FX2N(C) FX1N(C) FX1S FXU/FX2C FX0N FX0(S)
Instruction
name
Operation
Execution
form
Expression in each language
Structured ladder/FBD ST
VRRD 16 bits Continuous VRSC(EN, s, d);
VRRDP 16 bits Pulse VRSCP(EN, s, d);
Variable Description Data type
Input
variable
EN Execution condition Bit
Variable resistor number for reading out the graduations ANY16
Output
variable
ENO Execution state Bit
Storage destination of variable resistor graduations ANY16
Operand
type
Bit Devices Word Devices Others
System User Digit designation System User
Special
Unit
Index
Cons
tant
Real
Number
Character
String
Pointer
XYMTCS
D.b
KnX KnY KnM KnS T C D R
U\G
VZModifierKH E
""
P
S1 S2
zzz
zzzzzz
S2
zz z
VRSC
EN
s
ENO
d
VRSCP
EN
s
ENO
d
X000
VRSC
EN ENO
d
D1sK1