<< Click to Display Table of Contents >> Manual > Device Connection Guide > Mitsubishi Electric > Open Protocol (Ethernet) > Q/L Series > Connection example [Using Q Series Ethernet unit] |
overview
This is an example of a connection using the Q series and an Ethernet unit.
Model used
item |
Model etc. |
PLC |
Q02CPU |
Communication Unit |
QJ71E71 |
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 |
Port number |
8192 (2000 hex) |
||
PC settings |
Unit Settings |
IP address |
192.168.0.1 |
Port number |
8193 (2001 hex) |
||
Communication Protocol |
UDP (Binary code communication) |
||
Folder and communication test settings |
Network Number |
0 |
|
PC Number |
FF |
||
Request unit I/O number |
3FF |
* 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 "Q02CPU". 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 "Parameters" - "Network Parameters" in the tree, select "MELSECNET/Ethernet", and set as follows:
setting |
Setting contents |
Network Type |
Ethernet |
First I/O No. |
0000 |
Network No. |
1 |
Total number of (subsidiary) stations |
Not set |
Group No. |
1 |
Area code |
1 |
mode |
online |
Please set "First I/ONo." according to the position of "QJ71E71". |
4.Click "Operation Settings" to display the Ethernet Operation Settings screen.
5.Set the following in the Ethernet operation settings screen
setting |
Setting contents |
Communication data code setting |
Binary Code Communication |
Initial timing setting |
Always waiting for an OPEN (communication possible during STOP) |
IP address |
192.168.0.100 |
Allow writing during RUN |
Check it |
Send frame settings |
Ethernet (V2.0) |
TCP Liveness confirmation settings |
Use KeepAlive |
If you want to communicate using the ASCII protocol, select "ASCII code communication." |
6.Click "Open Settings" to display the Open Settings screen.
7.Set the following from the open settings screen
setting |
Setting contents |
protocol |
UDP |
Open Method |
Not set |
Fixed Buffer |
Reception |
Fixed Buffer Update Procedure |
With steps |
Pairing Open |
Do not pair |
Survival confirmation |
Do not confirm |
Local station port number |
2000 |
IP address of the communication partner |
192.168.0.1 |
Port number of the communication partner |
2001 |
Please note that when setting the port number in GX-Developer, it is set in hexadecimal. |
If you want to allow connections from any IP address, set the "Partner IP address" to "255.255.255.255". This will result in a "broadcast" connection, allowing connections regardless of the destination IP address. Please use this when you want to make a test connection. |
8.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 |
8193 (specified in decimal) |
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". |