MITSUBISHI MELSEC CPU port(Ethernet) setting
The configuration of Ethernet unit is shown
here.
MELSEC-Q series Ethernet configuration
Ethernet parameters of IP address and the port number, etc. are set on the PC parameter screen of GX Works.
Network environment
This sample assume the following cases.
Host IP address:192.168.0.1
Host Port number:0
MELSEC IP address:192.168.0.4
MELSEC Port number:1025
PC parameter
Explanation
- You open the "Q parameter setting" of GX Works2, and "Built-in Ethernet port" tab is selected.
[Caution] Built-in Ethernet a port has the following restriction on PLC side.
- Automatic opening UDP port (the 5000th) cannot be used.
- Block Access Command cannot be used.
- It is impossible to access CPU on another station in a multiple CPU system.
- It is impossible to access CPU on another station via a network (MELSECNET).
- It is impossible to access Random access buffer.
- It is impossible to access buffer memory of the intelligent function module.
- It is impossible to use Q4E frame and A1E frame.
- In using TCP/IP, Existence Confirmation will be done 9 times for 5 seconds.
It is necessary to configure the "Q parameter setting" as follows.
Network environment
This sample assume the following cases.
IP address:192.168.0.4
Communication Data code:Binary data code
Enable Write at RUN time:Checked
PC parameter
Explanation
- OPC Server doesn't support ASCII code communication.
- Please check "Enable Write at RUN time", if you can write to PLC device from outside(OPC Server).
You push the "Open settings" button, open "Built-in Ethernet port open setting", it is necessary to configure "Protocol" and "Port No".
.
Sample setting
Port1025 (0x401):TCP(Unpassive)
Port1026 (0x402):UDP
PC parameter
Explanation
- Please input Port No by hex digit format.
- It is necessary to configure the open setting , because an automatic open UDP/IP port (5000) can't use.
- It is necessary to configure "MELSEFT Connection" at least one port, if you'd like to access by iQWorks.