Chapter 9 Ethernet Communication Module AH10/15EN
9-15
9.3.4 Introduction of the Related Instructions
After AH10/15EN-5A is installed, users need to write a program to control the related functions of
AH10/15EN-5A. The users can read data from a control register in AH10/15EN-5A by means of the
instruction FROM, and write data into a control register in AH10/15EN-5A by means of the
instruction TO.
API
Instruction code Operand Function
1400 D FROM P
m
1
,
m
2
,
m
3
,
D
1
,
D
2
,
n
Reading the data from the control
register in the special module
Device
X Y M S T C HC D L SM SR E PR K 16# “$”
DF
m
1
m
2
m
3
D
1
D
2
n
Pulse instruction 16-bit instruction (13 steps) 32-bit instruction (13 steps)
AH500 AH500 AH500
Symbol:
m
1
:
Rack code Word/Double word
m
2
:
Slot code Word/Double word
m
3
:
Control register number Word/Double word
D
1
:
Device in which the data is
stored
Word/Double word
D
2
:
Device in which the error
code is stored
Word/Double word
n
:
Data length Word/Double word
Explanation:
1. Users can use this instruction to read data from a control register in a network module into an
AH500 series PLC.
2. The operand m
1
should be in the range of 1 to 8. 1 represents a main rack, and 2~8 represent
extension racks.
3. The operand m
2
should be in the range of 0 to 11. If the rack code is 1, the slot code should be
in the range of 0 to 11. If the rack code is in the range of 2 to 8, the slot code should be in the
range of 0 to 7.
4. The operand m
3
specifies the control register number.
5. When the instruction FROM is executed, D
2
is set to 0. When an error occurs, D
2
is not set to 0.
Please refer to the additional remark below for more information about the error codes.
6. The operand n used in the 16-bit instruction should be in the range of 1 to 256, and the
operand n used in the 32-bit instruction should be in the range of 1 to 128.
7. Only the 32-bit instructions can use the 32-bit counter.
8. Please refer to the regulation of the operands in the instruction TO for more information about
the numbering of network modules.