6 Basic System Operation
6.4.4 Using Subscripts i and j
6-28
(4) Subscripts Attached to Real Number Data
When a subscript is attached to real number integer data, the value of i or j is added to the register number. For
example, if i = 1, MF00000i will be the same as MF00001. MF00000j when j = 0, and MF00000j when j = 1 will
be as follows:
Programming Example Using Subscripts
The program shown in Figure 6.4 sets the sum of 100 registers from MW00100 to MW00199 in MW00200
using subscript j.
Figure 6.4 Programming Example Using a Subscript
J=0
のとき
MF00000J
:
MF00000
J=1
のとき
MF00000J
:
MF00001
上位ワード
MW00001
下位ワード
MW00000
MW00002
MW00001
Upper-place
word
Lower-place
word
MF00000j when j = 0: MF00000
MF00000j when j = 1: MF00001
EXAMPLE
00000
FOR J = 00000 to 00099 by 00001
MW00200 + MW00100j
FEND
MW00200
MW00200