MITSUBISHI MELSEC Ethernetunit setting
A configuration of Built-in Ethernet port is shown
here.
MELSEC-Q series Ethernet configuration
It is possible to set by using the parameter screen of GX Works in the MELSEC-Q series though it was necessary to set Ethernet parameters of IP address and the port number, etc. by the ladder program in the MELSEC-A series.
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
Network parameter
Explanation
- Open the "Network Parameter" screen, and you configure Network type Settings is "Ethernet". If you install "QJ71E71" to slot 0(beside CPU), you configure the Ethernet unit Starting I/O No. is “0” and the Network No. is “1”,Group No. is "0", Station No. is "1".
Ethernet operations
You push the "Operation setting" button, open "Ethernet operation".It is necessary to configure the "Ethernet operations" as follow.
Sample setting
Communication data code:Binary code
Initial timing : Always wait for OPEN
IP address:"192.168.0.4"(DEC.)
Enable Write at RUN time:Checked
Send fram setting:Ethernet(V2.0)
TCP Existence confirmation setting:Use the keepAlive.
Explanation
- OPC Server doesn't support ASCII code communication. If you share a software which supports only ASCII code as like MX-Component, please use an automatic open UDP/IP port.
- Please check "Enable Write at RUN time", if you can write to PLC device from outside(OPC Server).
- Existence confirmation setting by PING is to send ICMP packet, Existence confirmation setting by KeepAlive is to send ACK packet. It may become to impossible to reconnect PLC without PLC's reset,if you select the existence confirmation setting by PING.
- The use of the Keep Alive function to perform existence checks is recommended when the Q Series is used. Ethernet units that have serial numbers with 05051 or later as the upper five digits and function version B or later can use this function.For other models, use Ping.
You push the "Initial setting" button of Network parameter screen. It is necessary to configure the "Initial setting" as follow.
Sample setting
Destination existence conformation starting interval:20(×500ms)
Destination existence conformation interval timer:10(×500ms)
Destination existence conformation resend: 3(times)
*The existence confirmation processing will be performed 3 times at 10 seconds intervals after communication has been stopped for 5 seconds.
*The default value "10 minutes" means that it is impossible to communicate for 10 minutes after communication has been stopped.
Initial setting
Explanation
- If the communication trouble occurs by the cable determination or the influence of the collision, etc, OPC Server becomes time-out error when it can't receive the response from PLC in the set time. OPC Server can't communicate though it retries to communicate for the set times , and OPC Server tries to reconnect after it closes the connection. At this time, it is not possible to be reconnected be not of Ethernet (The port is in the state of the unclose) it of the unit in the state of LISN, and set the living confirmation parameter appropriately, please.
You push the "Open settings" of Network parameter screen. It is necessary to configure the "Initial setting" as right.
Sample setting
Port1025 (0x401):UDP
Port1026 (0x402):TCP(Unpassive)
Port1027 (0x403):TCP(Fullpassive)
Open settings
Explanation
- Please select "Procedure exist" at Fixed buffer communication procedure.
- Please input Port No by hex digit format.
- Please select "Confirm" at Existence confirmation.
- It it not neccessary to configure Open settings if you use an automatic open UDP/IP port(5000).