<< Click to Display Table of Contents >> Manual > Device Connection Guide > Mitsubishi Electric > Open Protocol (Ethernet) > iQ-R/iQ-L Series > Connection example [Using the iQ-R series CPU built-in port] |
overview
This is a connection example using the built-in Ethernet port attached to the CPU of the iQ-R series. Since the iQ-R series cannot be configured with GX-Developer, use GX-Works3.
Model used
item |
Model etc. |
PLC |
R08CPU |
Communication Unit |
CPU Attached Port |
Configuration environment
item |
environment |
OS |
Windows8 Professional 64Bit |
tool |
GX-Works3 Ver1.000A |
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.
PLC side settings
Set to "R08CPU". Settings are done using GX-Works3 etc.
1.Start GX- Works3 and create a new project.
2.Open the menu "Online" - "Connection Destination" and confirm that you can communicate with PLC.
3.Double-click "Parameters" - "Connected CPU name (R08CPU in this example)" - "Unit parameters" in the navigation tree and set the parameters as follows:
setting |
Setting contents |
Parameter setting method |
Set by parameters |
IP address |
192.168.0.100 |
Subnet mask |
255.255.255.0 (set according to your environment) |
Default Gateway |
192.168.0.200 (set according to your environment) |
RUN Write permission/prohibition setting |
Allow all at once (SLMP) |
Communication data code |
binary |
Setting the Open Method |
Do not open the program |
4.Select "Connection configuration settings for other device" to display the Ethernet configuration screen.
5.Add SLMP as a connected device on the Ethernet configuration screen
Select "SLMP connected device" from the unit list and add the device by dragging and dropping it onto the configuration screen.
6.Once the "SLMP connected device" has been added, perform the following settings.
setting |
Setting contents |
protocol |
UDP |
Port number |
8192 (specified in decimal) |
Survival confirmation |
No survival check |
When configuring the conventional Q Series etc. with GX-Developer, the port number had to be set in hexadecimal. However, when configuring the RCPU with GX-Works3, please note that the port number must be specified in decimal. |
7.Click "Apply settings and close" in the menu to apply the settings and close the screen.
8.Click "Apply" on the unit parameters screen to reflect the settings.
9.Write the parameters to the PLC by selecting "Online" - "Write to PLC" from the menu.
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.
|
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 QnUDV, 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". |