Chapter 5 Configuration of Communication parameters
Sample program 1
To set Ethernet parameters
Slot No.
0 1
2
(for EHV-CPU)
EH-ETH2
- -
*
R0
(00001)
To set s parameter area
The request of Ethernet Parameters putting
To set the target area (Unit 0, Slot 2)
To configure WM100 as the starting area of
source
To configure 55 words for sending size
R7E3
WR003 = H3
WR004 = H200
DR005 = ADR (WM100)
WR007 = 55
(00004)
R7E3
WM12D = H0BBC
WM12E = H0000
WM12F = H0BBD
WM130 = H0000
WM131 = H0BBE
WM132 = H0000
WM133 = H0BBF
WM134 = H0000
WM135 = H000F
WM136 = H0000
XYRW (WR000, R100)
(00006)
(00007)
(00005)
R100
R101
R0 = 0
(00008)
R102
R0 = 0
(00002)
R7E3
DM100 = H2001C080
DM102 = HFF00FFFF
DM104 = H20FFC080
WM106 = H0FA0
DM107 = H1001C0A8
DM109 = H00000000
DM10B = H00000000
DM10D = H00000000
IP Address of Self station
Subnet Mask
IP Address of Other station for Diagnosis
Port No. of Other station for Diagnosis
Default gateway address
Task Code Port 1 Logical Port No.
Task Code Port 1 Protocol
Task Code Port 2 Logical Port No
Task Code Port 2 Protocol
Task Code Port 3 Logical Port No
Task Code Port 3 Protocol
Task Code Port 4 Logical Port No
Task Code Port 4 Protocol
Timeout value
Transfer speed / Type
(00003)
R7E3
DM10F = H00000000
DM111 = H00000000
DM113 = H00000000
DM115 = H00000000
DM117 = H00000000
DM119 = H00000000
DM11B = H00000000
DM11D = H00000000
DM11F = H00000000
DM121 = H00000000
DM123 = H00000000
DM125 = H00000000
DM127 = H00000000
DM129 = H00000000
DM12B = H00000000
To set execution bit by setting R0 = 1.
XYRW command execution
The process of normal completion
The process of error completion
No use
No use
5-16