<< Click to Display Table of Contents >> Manual > Device Connection Guide > Mitsubishi Electric > Open Protocol (Ethernet) > Q/L Series > Connection example [Using Q Series CPU built-in port] |
overview
This is an example of a connection using the built-in Ethernet port of the QnUDE series and the CPU. If you want to connect using the Ethernet port of the CPU of the QnUDE, QnUDEH, L series, etc., please refer to this page.
Model used
item |
Model etc. |
PLC |
Q26UDEHCPU |
Communication Unit |
CPU Attached Port |
Configuration environment
item |
environment |
OS |
Windows7 Professional 64Bit |
tool |
GX-Developer Ver8.114U |
Configuration details
item |
setting |
Setting items |
Configuration Example |
PLC side settings |
Set with tools |
IP address |
192.168.0.100 |
Subnet Mask Pattern |
255.255.255.0 |
||
Default Router IP Address |
192.168.0.200 |
||
Communication data code setting |
Binary Code Communication |
||
RUN Write permission |
Allow |
||
protocol |
UDP |
||
Open Method |
MC Protocol |
||
Port number |
8192 (2000 hex) |
||
PC settings |
Unit Settings |
IP address |
192.168.0.1 |
Port number |
Automatic |
||
Communication Protocol |
UDP (Binary code communication) |
||
Folder and communication test settings |
Network Number |
0 |
|
PC Number |
FF |
||
Request unit I/O number |
03FF |
* Most of the settings on the computer will be adjusted to match the settings on the unit.
When setting the port number in GX-Developer, set it in hexadecimal. You can also set the port number freely. The port number on the PC side and the PLC side can be the same.
|
PLC side settings
Set up "Q26UDEHCPU". Settings are done using GX-Developer etc.
1.Start GX-Developer and create a new project.
2.Open the menu "Online" - "Connection Destination" and confirm that you can communicate with PLC.
3.Double-click "Parameter" - "PC Parameter" in the tree to display the "Parameter Setting" dialog as shown below, select "Built-in Ethernet Port Setting" and set as follows.
setting |
Setting contents |
IP address |
192.168.0.100 |
Subnet Mask Port |
255.255.255.0 (set the default gateway to be used) |
Default Router IP Address |
192.168.0.200 (Set the IP address of the router you are using) |
Communication data code setting |
Binary Code Communication |
Allow writing during RUN (KFTP and MC protocols) |
Check it |
4.Click "Open Settings" to display the Open Settings screen.
5.Set the following from the open settings screen
setting |
Setting contents |
protocol |
UDP |
Open Method |
MC Protocol |
Local station port number |
2000 |
Please note that when setting the port number in GX-Developer, it is set in hexadecimal. |
6.Click "Finish setting" to close the network parameter dialog. After that, go to "Online" - "Write to PC" to write the parameters to the PLC.
After setting the parameters, you must turn off the power to the PLC once to reflect the settings. Although a remote reset may be possible from the tool, we recommend turning off the power once to ensure that the settings are reflected.
|
If you do not press the Finish Settings button, the settings will not be reflected, so be sure to press the Finish Settings button before writing.
|
PC settings
Use the Server application to connect to the PLC for which you have set up communications.
1.Right-click "Application" - "Driver" in the tree and select Add Driver.
2.Select the following units from the displayed driver list and add them:
If you want to communicate using the ASCII protocol, select the ASCII protocol.
3.Open the properties of the added unit (U01) and click Communication Settings.
4.Configure the following in "PC Settings"
setting |
Setting contents |
Computer IP address |
192.168.0.1 |
Computer port number |
Automatic |
For models that directly connect to an Ethernet port such as QnUDE, you cannot specify the port number of the connection destination, so the port number on the PC side is "Automatic". |
5.Set the following in "Unit side settings"
setting |
Setting contents |
Unit IP Address |
192.168.0.100 |
Unit Port Number |
8192 (specified in decimal) |
6.Select "Ping Test" to check if the ping goes through normally.
If you see a message like "Ping test is success~", the test was successful.
7.Select the protocol in "Communication Details"
setting |
Setting contents |
protocol |
UDP (recommended) |
8.Perform a connection test to check the connection
If a message such as "Connection OK" is displayed, the connection is confirmed to be OK.
The CPU monitoring timer can be set in the "Other detailed settings" in the unit's communication settings dialog. The CPU monitoring timer is the waiting time on the PLC side from receiving a command from the computer until returning a response to that command. If you are referencing other PLC devices via MELSECNET or CC-Link, be sure to set an appropriate time (if you set the CPU monitoring timer to 0 and the other PLC goes into a state where its power is cut off, Ethernet communication itself will be disabled). For details, refer to the PLC manual. |
For information on the network setting parameters when checking the connection, please refer to "About network setting parameters". |