beautypg.com

Jsubscripts attached to double integer data, Jsubscripts attached to real number data, Jprogramming example using subscripts – Yaskawa MP930 User Manual

Page 96

background image

3.6 Registers

3 -37

J

Subscripts Attached to Double Integer Data

When a subscript is attached to double integer data, the value of I or J is added to the relay
number. For example, if I = 1, ML00000i will be the same as ML00001. ML00000j when J
= 0, and ML00000j when J = 1 will be as follows:

MW00002

MW00001

Higher-place word

MW00001

Lower-place word

MW00000

ML00000J when J = 0: ML00000

ML00000J when J = 1: ML00001

J

Subscripts Attached to Real Number Data

When a subscript is attached to double integer data, the value of I or J is added to the relay
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:

MW00002

MW00001

MF00000J when J = 0: MF00000

MF00000J when J = 1: MF00001

Higher-place word

MW00001

Lower-place word

MW00000

J

Programming Example Using Subscripts

The programming code shown in Figure 3.16 sets the sum of 100 registers from MW00100
to MW00199 in MW00200 using subscript J.

00000

FOR J = 00000 to 00099 by 00001

MW00200 + MW00100j

FEND

MW00200

MW00200

Figure 3.16 Programming Example Using a Subscript

Subscripts I and J cannot be used in motion programs.

3

INFO