Detailed description how to configure connection between Iconics Suite SCADA and FX5 plc controller via MODBUS.
FX5 side configuration
Open Your FX5 project in
GX Works3 to add new MODBUS connection.
Go to the
Navigation tree -> Parameter -> FX5UCPU -> Module Parameter -> Ethernet Port.
Then from the
Module Parameter Ethernet Port tab please open
External Device Configuration -> Detailed Setting.
Drag and drop
MODBUS/TCP connection from
Module List -> Ethernet Selection -> Ethernet Device (General) -> MODBUS/TCP connection. Save and close actual window.
Now go to the MODBUS detailed settings to configure/confirm the devices addresses.
Confirm the devieces addresses then click OK.
Workbench application side configuration
Open the Workbench and go to :
ProjectExplorer -> YourProjectName -> DataConnectivity -> Modbus -> Channels. Open context menu and select
Add Channel
Please add
Channel Name, IP address and click
Apply.
Remember to open the TCP port (default 502) on the PC.
Go to the
Project tree and in
Modbus branch open context menu on
Address Space and select
Add Device.
Name Your device,
select Channel (the one You just configured for Your FX5), select
Device Type to Default Device Type. Click
Apply. In case of FX5 check the "Use zero based register addressing".
Go to the
project tree. Open context menu on
Your Device and select
Add Data Item.
Name Your
Data Item. Select
Location Type. Click
Apply.
Now You can check Your connection by reading D0 register by Data Explorer application.
Pay attention that on FX5 side the starting address starts from 0 but in the Workbench by default the starting address starts from 1. If You want You can change the starting address to 0 on Device card in Address Space.