64
Firmware version 1.10 - Document version 1.06 - eng
LTDVE1CH-40F | INSTRUCTIONS MANUAL
The connection between the
outSocket
output of filter
ModbusTCP_Connect
and the two
inSocket
inputs of filters
ModbusTCP_Read:MultipleIntegerRegisters?
and
ModbusTCP_Close
are made
by drag and drop from the output to the inputs. Clicking on one filter instance will cause the filter
property inspector to open on the bottom left panel of the user interface.
Configure the
ModbusTCP_Connect
filter as shown in the following figure.
Figure 23. Configuration of ModbusTCP_Connect filter
Configure the
ModbusTCP_Read:MultipleIntegerRegisters?
filter as shown in the following figure.
Figure 24. Configuration of ModbusTCP_Read:MultipleIntegerRegisters? filter
The Modbus register at address 0 contains the device type as an unsigned 16-bit number. Changing
the values of parameters
inStartingAddress
and
inCount
will allow the reading of different
registers. Please refer to the Modbus register table of the controller for a list of all the registers
available, the read and write capabilities of each one and the relevant allowed values.
After the read has completed ensure to close the connection with the controller using the
ModbusTCP_Close?
filter.
15.3. Designing a simple program for writing a register
With the explained procedure, build the data-flow code shown in the following figure.