4. Configuration
114
T_DIAG_MODBUS_ETH_MAPPING_1 variable type for each one of the requests, on the
"ReqDiagnostics" GVL.
Generate Disabling Variables:
The disabling symbolic variables can be generated automatically
through the "Generate Disabling Variables" button. A click on it creates a BOOL variable for each
one of the requests, on the "Disables" GVL.
Configuration of MODBUS relations:
The number of settings, default and possible values vary
according to the data type and MODBUS function (FC).
Function Code:
The available MODBUS functions (FC) are cited below:
Function Type
Code
Description
DEC
HEX
Access to Variables
1
0x01
Read coils (FC 01)
2
0x02
Read input status (FC 02)
3
0x03
Read holding registers (FC 03)
4
0x04
Read input registers (FC 04)
5
0x05
Write a coil (FC 05)
6
0x06
Write a holding register (FC 06)
15
0x0F
Write multiple coils (FC 15)
16
0x10
Write holding registers (FC 16)
22
0x16
Writing mask of the register (FC 22)
23
0x17
Reading/writing of holding registers (FC 23)
Table 4-66. MODBUS Client Functions
Polling:
This parameter indicates how often the communication set for this request must be
performed. By the end of a communication will be awaited a time equal to the value configured in
the Polling field and after that, a new communication will be executed.
Read Data Start Address:
Field for the initial address of the MODBUS read data.
Read Data Size:
The minimum value for the read data size is 1 and the maximum value depends on
the MODBUS function (FC) used, as below:
1.
Read Coils (FC 1): 2000
2.
Read Input Status (FC 2): 2000
3.
Read Holding Registers (FC 3): 125
4.
Read Input Registers (FC 4): 125
5.
Reading/writing of holding registers (FC 23): 121
Read Data Range:
This field shows the MODBUS read data range configured for each request. The
initial address plus the read data size will result in the range of read data for each request.
Write Data Start Address:
Field for the initial address of MODBUS write data.
Write Data Size:
The minimum value for the size of the write data is 1 and the maximum value
depends on the MODBUS function (FC) used, as below:
1.
Writing of Coil (FC 5): 1
2.
Writing of Holding Registers (FC 6): 1
3.
Writing of Multiple Coils (FC 15): 1968
4.
Writing of Holding Registers (FC 16): 123
5.
Writing mask of the register (FC 22):
6.
Reading/writing of holding registers (FC 23): 121
Write Data Range:
This field shows the MODBUS write data range configured for each request.
The initial address of writing plus the size of the write data will result in the range of write data for
each request.