1064
7 APPLICATION INSTRUCTIONS
7.27 Module Access Instructions
• These instructions read the module name in the slot specified by (H), and store the model name in the device specified by
(d) and later. The target modules are as follows.
• For (H), specify the start I/O number of the target module with upper 3 digits when it is represented by 4 hexadecimal digits.
• For the slot to be specified for the read target when specifying a module that occupies two slots, refer to the number of
occupied I/O points described in the manual for each module.
• To read the module name of a CPU module, specify the read start I/O number as in the following table.
• The result of instruction execution is stored in (d)+0, and a module name is stored in (d)+1 to (d)+9. The following table lists
the values to be stored in (d).
• When the read target module has a module name, the module name to be stored in (d)+1 and later is as follows.
The following table lists module name examples that are stored.
If the module name in the I/O assignment setting differs from that of the mounted module, the module name
held by the mounted module is stored.
• CPU module
• Input module
• Output module
• I/O combined module
• Intelligent function module
(1) Specify K4 or H4 as the start I/O number of the read-target module.
CPU module Read start I/O number
CPU No. 1 3E0H
CPU No. 2 3E1H
CPU No. 3 3E2H
CPU No. 4 3E3H
Condition (d)+0 (d)+1 to (d)+9
The read target module has a module name. 0 Module name held by a module
The read target module does not have a module name. 1 Character string consisting of module type and the
number of points
The read target slot is an empty slot. -1 0000H
The read target module is in the course of online exchange.
The I/O number specified in (H) is not the start number of a module.
• Nine words are used.
• The name is stored in ASCII characters.
• 00H is stored in the 18th character.
• If the number of characters is less than 17, 00H is stored in the remaining characters.
• The module name held by a module is stored. (Note that it may differ from the module name written to the rating plate.)
Target module Module name example stored
CPU module R04CPU
I/O module INPUT_16
Network module RJ71GP21-SX
RX10 RX10RX10
RJ71EN71
RX10CPU RX10
0000H 0010H 0020H 0030H 0040H 0060H
PW
(1)