Select template project icon and give a name to your project.
Select the GOC43 target version , and prefered programming languages. (This example we won't write any line of code)
Select Ethernet from the Devices tab of the left project tree with right mouse click. Chose Add device..
From fielbuses tree find modbus master and add device to the Ethernet configuration.
1.4 Master device parameters
1.4.1 General settings
Leave everything default, only modify if you not statisfied these settings.
1.4.2 Modbus TCP Master I/O Mapping
For Modbus Bus cycle options choose Main task.
1.5 Slave device parameters
1.5.1 General
Set IP address of the slave device and port number (def :502)
1.5.2 Modbus Slave Channel
Set 1 channel for read (4 Holding register) and 1 channel for write (4 Holding register)
In the IO mapping windows you can check your final setup.
1. 6 Login and download project
1.6.1 Establish connection with GOC43
Select device, then scan your network searching for PLC.
1.6.2 Setup your PLC parameters
1.6.3 Login and download project
1.6.4 Start PLC
Click on the "play" icon
During download you will see the GOC system menu. After that screen will be white, because we did not add any visualization element to the project.
2. Setup FX5U Modbus TCP Slave
2.1 Create a new project
2.2 Setup Ethernet
2.2.1 Set IP address of the PLC and subnetmask
2.2.2 Add modbus connection to the ethernet configuaration window
Finish setup with pressing the Apply button
2.2.3 checiking Modbus register allocation
Leave default
2.3 Compile and download
Select parameter + program
Accept all pop up
window, and follow reset instruction. (Reset method: Run-stop-reset switch hold
down till error LED lit on the PLC 2-3 times then switch to RUN state)
3. Test
3.1 Use IEC Objects for communication monitoring
3.1 Write Values to FX5 PLC
Prepare some value directly to cyclic exchange registers
Check them in GX Works 3 buffer memory windows.
3.2 Read Values from FX5U