Mitsubishi Electric MELSEC IQ-R series Reference Manual page 449

Programmable controller
Hide thumbs Also See for MELSEC IQ-R series:
Table of Contents

Advertisement

Access to index the device number
When accessing a device, indirect specification of the device number can be performed using index register.
Device
Device number
code
+
Z
Device modification
The access target can be switched with one message, by changing the value of the index register in CPU module programs.
Ex.
When accessing D4 by specifying D0 and Z0
Specify by the request data.
Device number
(Offset value)
Specify by the program of the CPU module.
Z0
(Stored value) 4
D0
+ +
0
(Device number)
D4
(Access destination)
D5
Ex.
When accessing M16 to M31 by specifying M0 and Z0 (Word units)
Specify this on the program of the CPU module.
Z0
16
(Stored value)
+
0
(Device number)
M0 to M15
M16 to M31
M32 to M47
0
+
4
Similar to the way of access to D4 by the following program.
Specify this in request data.
Device number
(Offset value)
0
+
Similar to the way of access to M16 to M31 by
16
the following program.
(Access destination)
Z0
4
Device number to access
=
MOVP K4 Z0
MOVP K
D0Z0
Z0
Device number to access
16
=
MOVP K16 Z0
MOVP K
K4M0Z0
Appendix 1 Read/Write by Device Extension Specification
APPENDICES APPENDIX
447
A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents