Chapter 5 Configuration of Communication parameters
Sample program 2
To check Ethernet parameters
Slot No.
0 1
2
(for EH-CPU)
EH-ETH2
- -
*
R1
(00001)
To set s parameter area
The request of Ethernet Parameters getting
To set the target area (Unit 0, Slot 2)
To configure R110 as the control bit I/O No.
To configure WM140 as the starting area of destination
To configure 55 words for sending size
R7E3
WR013 = H1
WR014 = H200
ADRIO = (WR015, R110)
ADRIO = (WR016, WM140)
WR017 = 55
FUN200 (WR010)
(00003)
(00004)
(00002)
R110
R111
R1 = 0
(00005)
R112
R1 = 0
To set execution bit by setting R1 = 1.
FUN200 command execution
The process of normal completion
The process of error completion
Sample program 2
To check Ethernet parameters
Slot No.
0 1
2
(for EHV-CPU)
EH-ETH2
- -
*
R1
(00001)
To set s parameter area
The request of Ethernet Parameters getting
To set the target area (Unit 0, Slot 2)
To configure WM140 as the starting area of destination
To configure 55 words for sending size
R7E3
WR013 = H1
WR014 = H200
DR015 = ADR (WM140)
WR017 = 55
XYRW (WR010, R110)
(00003)
(00004)
(00002)
R110
R111
R1 = 0
(00005)
R112
R1 = 0
To set execution bit by setting R1 = 1.
XYRW command execution
The process of normal completion
The process of error completion
5-17