15-25
15 Ethernet
CP2E CPU Unit Software User’s Manual(W614)
15-4 FINS Communications
15
15-4-6 New FINS Commands
Precautions for Correct UsePrecautions for Correct Use
No response will be returned if the command ends normally. A response will be returned only if
an error occurs.
In some cases, send requests (SEND/RECV instructions) made from the PLC to the built-in
Ethernet port just before execution of the RESET command may not be executed.
Except for the FINS communications service sockets, all open sockets (for sockets services) are
closed immediately before resetting.
Response Codes
z ETHERNET PORT CONTROLLER DATA READ: 0501
Reads the following data from the Ethernet port, PLC model, PLC version, IP address, subnet mask,
FINS UDP port number, mode settings, Ethernet address.
Command Block
Response Block
Parameters
Model, Version (Response)
The PLC model and version are returned as ASCII characters occupying 20 bytes each (i.e., 20
characters each). If all bytes are not used, the remaining bytes will be all spaces (ASCII 20 Hex).
Example Model: CP2E-ETN21
Version: V1.00
IP Address, Subnet Mask (Response)
The built-in Ethernet port’s IP address and subnet mask are returned as 4 bytes each.
FINS UDP Port Number (Response)
The built-in Ethernet port’s UDP port number for FINS is returned as 2 bytes.
Mode Setting (Response)
The mode setting in the system setup is returned.
Response code Description
1004 Command format error
05 01
Command code
05 01 20 byte 20 byte 4 byte
Subnet
mask
4 byte
FINS UDP
ort number
Mode
settin
6 byte
Ethernet addressResponse
code
Command
code
Model Version IP address