Professional Documents
Culture Documents
A AL1x4x Mitsubishi Rev1 en
A AL1x4x Mitsubishi Rev1 en
1 Inhalt
2 Set Ethernet and Ethernet/IP settings with LR Device ................................................................................................................................................................... 3
3 Open Mitsubishi Development Tool GX Works3 then Configure network with “Connection Destination” .................................................................................. 5
3.1 First time configuration .......................................................................................................................................................................................................... 5
3.2 Edit Parameter of PLC ............................................................................................................................................................................................................. 9
3.3 Add new External Device ......................................................................................................................................................................................................11
3.4 Write to PLC .......................................................................................................................................................................................................................... 15
4 Configuration in Predefined Protocol Support Function ..............................................................................................................................................................17
4.1 Protocol settings ................................................................................................................................................................................................................... 17
4.2 Packet Setting ....................................................................................................................................................................................................................... 21
4.3 Write the Predefined Protocol Function to PLC built-in Memory ........................................................................................................................................ 26
5 Configuration the Program of GX-Works3 ................................................................................................................................................................................... 28
5.1 MODBUS TCP communication procedure ............................................................................................................................................................................ 28
1. Establishes a connection ...................................................................................................................................................................................................... 28
2. Executes the protocols .........................................................................................................................................................................................................29
3. Closes a connection .............................................................................................................................................................................................................. 30
4. Error handling ....................................................................................................................................................................................................................... 31
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Connect PC with LR Device to IoT port X23 of the IO-Link Master and press the button “Read from device (1)”
In case that the device is not in the same network segment, it is only possible to change the IP settings. You will only see the MAC address of the
device (2).
Choose an IP-Address for the IoT port (3) and download the configuration (4). After the download, the parameters are read again, and you have
full access to all parameters.
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Modify the fieldbus settings to the desired values and “Write to device (3)”
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
3 Open Mitsubishi Development Tool GX Works3 then Configure network with “Connection Destination”
3.1 First time configuration
Open GX-Works3 “Connection Destination” then choose “Other Connection Method” and press it, Please make sure the connection PC with IoT
port either X21 or X22 and the PC, PLC and AL1940 should be connect to a switch hub is better
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Select Interface PC side I/F, PLC side I/F and Other Station setting as below picture then press the button “Connection Channel List”
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Please choose your connection channel and press the button “OK“
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Back to below screen then press the button „ Connection Test“, you will see the Sucessfully connection meessage if the setting is correct, After
please press the „OK“ button, to confiure the
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Open the Navigation Window then click the Module Parameter, Please enter the PLC IP address and Subnet Mask what you’re setting Basic
Setting of PLC
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Double Click the Detail Setting of External Device Configure as described below
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
"Navigation window" [Parameter ] [FX5UCPU] [Module Parameter] [Ethernet Port] [Basic Settings] [External Device
Configuration] double click <Detailed Setting> of "External Device Configuration", “Drag and drop the "Active Connection Module" from
"Module List" to the left side on the window. Execute the settings as described below.
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Please full fill IP address and port number into PLC and Sensor/Device (Modbus TCP server, AL1940) column as your environment
MODBUS TCP Port (Set the IP Address of slave station) : 502, PLC Port is not fixed (Set the port No. of master station).
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Please choose the „predefined Protocol“ in column name which „Communication Method“ as described below. Finally please press the
button “Apply” to confirm all your setting.
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
After done your configuration, Please write the configuration to your PLC as described below
Please click the submenu “write to PLC” in Online of Menu bar
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Please check the module or Data name to write to PLC what you have done. If everything is ok press the button “Execute” to download
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Please use the protocol setting as below, Because AL1940 used function code 03 Holding Registers for process value
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Setting Data Storage Area for each element name to compile the message of AL1940 for request packet
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Please set the Send Data Storage Area of Head holding register number
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Please click the “Write to Module” function under the Online of Menu bar
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Please click the button “Execute” to download the predefined protocol function
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
3. Closes a connection
Close a connection of the slave station for communication by SP.SOCCLOSE instruction.
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Note: Please change the instruction name to ZP.CLOSE If you use development tool is GX Works2.
4. Error handling
Check close status and error handling
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3
Remember: Please noted, because we connect a O5D150 to port 1 and here we only show how to get the process value from AL1940, but the about
the information of distance still need to divide into switch status and distance value as below IODD file described.
Please fill the address 1000 (Port 1 used 1000, Port used 2000, etc.)
How to connect an Modbus TCP Master to
Mitsubishi PLC FX-5U with GX Works3