4. Configuration
108
MODBUS Ethernet Client
This protocol is available for all Hadron Xtorm Series CPUs on its Ethernet channels. When selecting
this option at MasterTool Xtorm, the CPU becomes a MODBUS communication client, allowing the
access to other devices with the same protocol, when in Run Mode.
In order to configure this protocol, perform the following steps:
Add the MODBUS Ethernet Client protocol instance to one of the available Ethernet channels
(NET 1 to NET 6).
To execute this procedure, see Inserting a Protocol Instance.
Set the Ethernet interface (see Ethernet Interfaces Configuration ).
Set the general parameters of MODBUS Client protocol, with TCP protocol or RTU via TCP.
Add and set devices, defining IP address, port, slave address and communication time-out
(available on the Device Advanced Settings button).
Add and set the MODBUS mappings, specifying the variable name, data type, data initial
address, data size and variable which will receive the quality data.
Add and set the MODBUS requests, specifying the desired function, the scanning time of the
request, the initial address (reading/writing), the data size (reading/writing), the variable that will
receive the quality data, and the variable responsible for disabling the request.
The following items describe each one of these settings.
MODBUS Client Protocol General Parameters
The general parameters, found in the configuration initial screen of the MODBUS protocol (Figure
4-18), are defined as:
Figure 4-18. MODBUS TCP Client General Parameters
Configuration
Description
Default
Options
Connection Mode
Protocol selection
TCP
RTU over TCP
TCP
Table 4-59 MODBUS TCP Client General Settings
MODBUS Client Diagnostics
The diagnostics and commands of the configured MODBUS TCP Client protocol are stored in
variables of type T_DIAG_MODBUS_ETH_CLIENT_1, which are described in Table 4-60: