Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
15 Applied Instructions (External Device (optional device))
15.6 VRRD / Volume Read
406
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
15.6 VRRD / Volume Read
Outline
This instruction reads out the value determined by the variable resistor.
1. Format and operation, execution form
2. Set data
3. Applicable devices
S: Refer to "Cautions".
Function and operation explanation
The analog value of variable resistor No. is converted into BIN 8 bits, and
0 to 255 are transferred to D0.
As an application example, D0 is used as timer preset value.
The analog timer is obtained by this operation.
As the timer constant value, if a value of more than 256 is necessary, the
product of take-in value multiplied by the constant by MUL instruction is
set indirectly as the timer constant.
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 VRRD(EN, s, d);
VRRDP 16 bits Pulse VRRDP(EN, s, d);
Variable Description Data type
Input
variable
EN Execution condition Bit
Variable resistor No. to be read out ANY16
Output
variable
ENO Execution state Bit
Storage destination of variable resistor value ANY16
Operand
type
Bit Devices Word Devices Others
System User Digit designation System User
Special
Unit
Index
Con
stant
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
VRRD
EN
s
ENO
d
VRRDP
EN
s
ENO
d
X001
X000
VRRD
EN
s
ENO
d
OUT_T
EN
TCoil
TValue
ENO
TC0
D0
D0K0