■
Precautions for programming
● Insert the UNITSEL instruction immediately before this instruction and specify the unit (built-
in ET-LAN in the CPU unit) and the connection number.
● For [S1] and [S2], specify the starting address of the device area that stores the string data
that indicates the information to be read, or a character constant. When specifying a device
area for an operand, set string data using the SSET instruction in advance. However, the
ESSET instruction cannot be used because the format is different. Both upper and lower
case characters can be used. "Abcd", "ABCD" and "abcd" are all synonymous.
● This instruction is not available in interrupt programs.
■
Setting of the operands [S1] and [S2]
Setting item Settings
S1 Read type
When specifying reading IPv4 address Specify "IPv4".
When specifying reading IPv6 address Specify "IPv6".
S2 Read target ■ Refer to "Data to be read and the number of words".
D
Read
destination
Specify the destination device address to which the state is read out.
■
Data to be read and the number of words
Data to be read and the number of words vary depending on the combination of [S1] and [S2].
[S1][S2]
Storage
location
Name
Number
of words
Forma
t
Description
[S1]: "IPv4"
[S2]: "MAC"
[D] - [D+3]
Master unit IP address
(IPv4)
4
Decim
al
Master unit IPv4 address
[D+4]- [D+7] Subnet mask (IPv4) 4
Decim
al
Subnet mask
[D+8]- [D
+11]
Default gateway (IPv4) 4
Decim
al
Default gateway
[D+12]- [D
+14]
Master unit MAC address 3
Hexad
ecimal
Master unit MAC address
Total number of words 15 -
[S1]: "IPv4"
[S2]:
"CONNECT"
[D] - [D+3]
Master unit IP address
(IPv4)
4
Decim
al
Master unit IPv4 address
[D+4]- [D+7] Subnet mask (IPv4) 4
Decim
al
Subnet mask
[D+8]- [D
+11]
Default gateway (IPv4) 4
Decim
al
Default gateway
[D+12]
Destination IP address
type
1
Decim
al
0:IPv4
[D+13]- [D
+16]
Destination IP address 4
Decim
al
Destination IP address (for IPv4)
(Note 2)
Total number of words 17 -
[S1]: "IPv4"
[S2]:
"CONNECT
1"
[D] - [D+3]
Master unit IP address
(IPv4)
4
Decim
al
Master unit IPv4 address
17.2 ETSTAT (Acquiring Ethernet Unit Information: IP/MAC/Destination)
17-6 WUME-FP7CPUPGR-12