APPENDICES APPENDIX
Appendix 1 Read/Write by Device Extension Specification
453
A
Device extension specification example (when do not perform index modification)
Access D100 by specifying the subcommand 0080 and using devices for indirect specification '@D0'.
Store the address of D100 in D0 with a program before executing the command.
■Data communication in ASCII code
■Data communication in binary code
Device extension specification example (Index modification)
Access D100 by specifying subcommand 0080 and specify the index modified device for indirect specification @D0Z2.
Before executing the command, store the D100 address in D4 and '4' in Z2 with the program.
■Data communication in ASCII code
■Data communication in binary code
ADRSETD100D0
D0
D100
D1
Specify by the request data. Specify by the program of the CPU module.
(Device number)
Address of the access destination (D100) can be
stored to D0 and D1 by the following program.
(Access destination)
The address of the
access destination
(D100)
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
40
H
8
38
H
0
30
H
0
30
H
0
30
H
0
30
H
D
44
H
*
2A
H
Device
code
Device number
Indirect
specification
Subcommand
Device
modification
@
00
H
A8
H
00
H
80
H
00
H
00
H
08
H
00
H
00
H
00
H
00
H
00
H
00
H
Device modification
Indirect specification
Subcommand
Device
code
Device
number
4
04
4
0
ADRSETD100D4
MOVPK4Z2
Z2
D0
D4
D5
Z2
D100
Specify by the request data.
Device number
(Offset value)
Device number for extension specification
Specify by the program of the CPU module.
Store Z2 to 4 by the following program.
(Stored value)
(Device number)
The address of the
access destination
(D100)
Address of the access destination (D100) can be
stored to D4 and D5 by the following program.
(Access destination)
+
+
=
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
0
30
H
Z
5A
H
0
30
H
2
32
H
0
30
H
0
30
H
0
30
H
40
H
8
38
H
0
30
H
0
30
H
0
30
H
0
30
H
D
44
H
*
2A
H
Device
code
Device number
Indirect
specification
Subcommand
Device
modification
@
00
H
A8
H
00
H
80
H
00
H
02
H
48
H
00
H
00
H
00
H
00
H
00
H
00
H
Device modification
Indirect specification
Subcommand
Device
code
Device
number