![YASKAWA JEPMC-MP2300S-E Скачать руководство пользователя страница 172](http://html.mh-extra.com/html/yaskawa/jepmc-mp2300s-e/jepmc-mp2300s-e_user-manual_907071172.webp)
5.3 Registers
5.3.3 How to Use Subscripts i, j
5-40
5.3.3 How to Use Subscripts i, j
Two type of registers (i, j) are available as dedicated registers to modify the relay and register numbers. Both i and j
have the same function. They are used when you want to handle a register number as a variable.
An example for each register data type is given as explanation.
( 1 ) Bit Type Attached with a Subscript
( 2 ) Integer Type Attached with a Subscript
( 3 ) Long Integer or Real Type Attached with a Subscript
Program example using subscript
Equivalent
The result is a relay number
added with i or j value.
For example, MB000000i for
i=2 is the same as MB000002.
Also, MB000000j for j=27 is
the same as MB00001B.
Equivalent
The result is a register number
added with i or j value.
For example, MW00010i for
i=3 is the same as MW00013.
Also, MW00001j for j=30 is
the same as MW00031.
The result is a register number with an
added i or j value.
For example, “ML00000j for j=1” is the
same as ML00001. Also, “MF00000j for
j=1” is the same as MF00001.
However, as a word indicated by a regis-
ter number is the lower word for a long
integer/real type, for the same ML00001
and MF00001, be aware that an upper/
lower word of ML00001 and MF00001
for j=0 may differ from those of
MW00001
MW00002
MW00000
MW00001
MW00001
MW00002
MW00000
MW00001
Upper
word
L
ower
word
Upper
word
L
ower
word
L
ong
i
nteger
type
M
L
00000j
for
j
=
0
:
M
L
00000
M
L
00000j
for
j
=
1
:
M
L
00001
Rea
l
type
M
F
00000j
for
j
=
0
:
M
F
00000
M
F
00000j
for
j
=
1
:
M
F
00001
The left program uses a subscript j and
calculates the total amount of a hundred
registers from MW00100 to MW00199,
and stores the total amount in
MW00200.
Содержание JEPMC-MP2300S-E
Страница 14: ...MEMO ...
Страница 24: ...MEMO ...
Страница 114: ...MEMO ...
Страница 132: ...MEMO ...
Страница 154: ...5 2 User Programs 5 2 2 Motion Programs 5 22 2 Example using a ladder program ...
Страница 156: ...5 2 User Programs 5 2 2 Motion Programs 5 24 2 Example using a ladder program ...
Страница 190: ...MEMO ...
Страница 280: ...MEMO ...
Страница 300: ...7 3 Operation 7 3 5 How to Determine Input Error 7 20 Continued from the previous page ...
Страница 302: ...7 3 Operation 7 3 5 How to Determine Input Error 7 22 Application Example Continued on the next page ...
Страница 306: ...7 3 Operation 7 3 6 Management to Resume Slave CPU Synchronization 7 26 Application Example Continued on the next page ...
Страница 310: ...MEMO ...