Fidelix FX-RP multiDISPLAY
Programming manual
page 28 of 38
field
Options (or example) description
MODBUSDEVICES
AUTO
MANUAL
Defines if modbusdevices are generated automatically or
manually. If AUTO is selected, defined modbusdevices are
generated by the information given in point names.
Also modbusdevices needed to write registers defined by
SENDREGISTERS will be created. However, if the read
registers from a slave are not available on the UI of the
master display, make sure you still manually add the
corresponding modbusdevice for those registers.
COMBINE
FALSE
or numeric value
Affects only if AUTO mode defined. Defines if Modbus
registers should be combined as a one larger
modbusdevices containing multiple registers.
This can speed up the communication by reducing the
number of different Modbus messages.
Maximum number of registers to combine can be defined
here (< 100), or if FALSE then registers are not combined.
TIMEOUT
numeric value
Affects only if AUTO mode defined. Defines timeout for
auto generated modbusdevices. Same timeout is used for
every device. Makes sure not to select a value that is too
small, especially during development!
MODBUSDEVICE
ADDRESS:1,
STARTREG:0,
COUNT:1,
TYPE:COIL,
TIMEOUT:180
Affects only if MANUAL mode defined.
Modbusdevices are defined by using the same format as
for point names. Multiple modbusdevices can be defined.
Also needed for reading values from one slave and writing
them to a second, while the read values are not shown on
the multiDISPLAY. In this case, it can be used in
combination with MODBUSDEVICES=AUTO.
MODBUSDEVICE
ADDRESS:10,
READREG:33,
WRITEREG:4,
COUNT:1,
TYPE:HOLDING,
TIMEOUT:250
Affects only if MANUAL mode defined. Use this to make a
field that shows the value of register 33, but that writes to
register 4. The slave will most likely handle the writing of
the value you write into register 4 into register 33. Don’t
forget to manually create the modbusdevice for register 4,
as this will only generate the device for register 33.
SENDREGISTERS
ADDRESS:1,
WRITEREG:9057,
FIXEDVALUE:1,
COUNT:1,
TIMEOUT:500
Send a fixed value to a certain register on a slave device
(for instance for a “communication is active” bit detection
that will be set to 0 again by the slave).
COUNT as a number uses Modbus code 16,
COUNT:SINGLE uses Modbus code 06.
SENDREGISTERS
ADDRESS:10,
WRITEREG:11,
COUNT:1,
FIXEDVALUE:45,
TIMEOUT:220,
SENDIF:TIMESCH1=12
Send a fixed value to a certain register on a slave device,
based on the value of an internal time schedule on the
display.
SENDREGISTERS
ADDRESS:8,
WRITEREG:125,
SOURCEREG:3007,
COUNT:5,
TIMEOUT:300
Send the display’s internal registers to a slave.
The example here will send the status of the five internal
time schedules to registers 0-4 of slave at address 8
SENDREGISTERS
ADDRESS:4,
WRITEREG:6,
SOURCEREG:
12.2458.HOLDING,
COUNT:1,
TIMEOUT:300
Send the register value from one slave to another register
on another slave. Don’t forget to define the slave address
that is being read as MODBUSDEVICE, if it is not visible
on the display’s interface, even when MODBUSDEVICES
= AUTO is selected!
Target registers are always Holding registers.