Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G ユーザーズマニュアル

ページ / 936
143
FX
3G
/FX
3U
/FX
3UC
 Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
4 Devices in Detail
4.11 Index Register [V and Z]
1
In
trodu
ct
ion
2
O
ver
vi
ew
3
In
st
ru
ct
ion 
Li
st
4
D
evices 
in D
etail
5
Specifi
ed t
he
D
evice &
 
C
onst
ant
6
Bef
ore 
Pr
ogr
am
m
ing
7
B
asic 
In
st
ru
ct
ion
8
FNC0
0-F
NC0
9
Pr
ogr
am
 Flow
9
FN
C
10-FN
C
19
Mo
ve
 &
 Co
mp
are
10
FNC2
0-F
NC2
9
Ar
ith.
 &
 Logic 
O
per
ati
on
4.11.3 Indexing of devices
Available devices and the contents of indexing are as described below:
→ For indexing method and cautions, refer to Section 5.7.
Decimal devices/numeric values: M, S, T, C, D, R, KnM, KnS, P and K
For example, when "V0 = K5" is specified and "D20V0" is executed, an instruction is executed for the device number
D25 (D20 + 5).
Constants can be indexed also.  When "K30V0" is specified, an instruction is executed for decimal value K35 (30 + 5).
Octal devices: X, Y, KnX and KnY
For example, when "Z1 = K8" is specified and "X0Z1" is executed, an instruction is executed for the device number
X10 (X0 + 8: addition of octal value).  When indexing for a device whose device number is handled in octal, a numeric
value converted into octal is added for the contents of V and Z.
Accordingly, note that when "Z1 = K10" is specified "X0Z1" indicates that X12 is specified, and X10 is not specified.
Hexadecimal numeric values: H
For example, when "V5 = K30" is specified and a constant "H30V5" is specified, it is handled as H4E (30H + K30).
When "V5 = H30" is specified and a constant "H30V5" is specified, it is handled as H60 (30H + 30H).