5. CONFIGURATION
ATTENTION
Unlike other tasks of an application, when a mark is reached at MainTask debugging, the
MODBUS Ethernet Client instance task or any other MODBUS task will stop being executed
at the moment it tries to write in the memory area. This occurs in order to maintain data
consistency of memory areas while MainTask is not running.
5.5.8.2. MODBUS Ethernet Client configuration via Direct Representation (%Q)
To configure this protocol using direct representation (%Q), the following steps must be performed:
Configure the general parameters of the MODBUS protocol, such as: communication times and direct representation
variables (%Q) to receive diagnostics.
Add and configure devices by setting address, direct representation variables (%Q) to disable the relations, communica-
tion time-outs, etc.
Add and configure MODBUS relations, specifying the data type and MODBUS function, time-outs, direct representation
variables (%Q) to receive diagnostics of the relation and other to receive/write the data, amount of data to be transmitted
and relation polling.
The descriptions of each configuration are listed below in this section.
5.5.8.2.1. General parameters of MODBUS Protocol Client - configuration for Direct Representation (%Q)
The General parameters, found on the home screen of MODBUS protocol configuration (figure below), are defined as:
Figure 75: MODBUS Client Setup Screen
Protocol selection and direct representation variables (%Q) for diagnostics:
Setting Description
Default
Value
Options
%Q Start Address of Diag-
nostics Area
Initial address of the diag-
nostic variables
- 0 to 2147483628
Size Size of diagnostics 20 Disabled for editing
139