Services
Configure the Modbus gateway
IX20 User Guide
401
Modbus address on different buses. For example, if there are two devices on two different
buses that have the same Modbus address of 10, you can create two clients on the gateway:
n
Client one:
l
Modbus address filter
set to
10
.
This will configure the gateway to deliver all messages that have the Modbus server
address of 10 to this device.
n
Client two:
l
Modbus address filter
set to
20
.
l
Adjust Modbus server address
set to
10
.
This will configure the gateway to deliver all messages that have the Modbus server
address address of 20 to the device with address 10.
16. Repeat these steps to configure additional clients.
17. Click
Apply
to save the configuration and apply the change.
Command line
1. Log into the IX20 command line as a user with full Admin access rights.
Depending on your device configuration, you may be presented with an
Access selection
menu
. Type
admin
to access the Admin CLI.
2. At the command line, type
config
to enter configuration mode:
> config
(config)>
3. Enable the Modbus gateway:
(config)> service modbus_gateway enable true
(config)>
4. Configure servers:
a. Add a server:
(config)> add service modbus_gateway server
name
(config service modbus_gateway
server
name
)>
where
name
is a name for the server, for example:
(config)> add service modbus_gateway server test_modbus_server
(config service modbus_gateway server test_modbus_server)>
The Modbus server is enabled by default. To disable:
(config service modbus_gateway server test_modbus_server)> enable false
(config service modbus_gateway server test_modbus_server)>