ModbusClientPresetRegisters

In this preset container you specify the numerical data type for all child preset registers, and whether individual child preset register values are written to the Modbus slave upon any change, or only collectively when the Write action of the ModbusClientPresetRegisters container is invoked.
Figure 15.   ModbusClientPresetRegisters properties
Image

You access these properties by expanding the Presets folder in the Nav tree and double-clicking the ModbusClientPresetRegisters.

Property Value Description
Starting Address additional properties

Specifies the address of the first holding register to write (prior to any offset address change as a result of using device-level Base Address), as a combination of:

  • Address Format— either Hex (default), Decimal, or Modbus
  • Address — numerical address, expressed in the selected format.
Absolute Starting Address read-only Differs from Data Address only if using the device Base Addresses. It is the sum of the Data Address value and the associated Base Address value (as configured in the parent Modbus device). This is the actual address that uses when writing the first register’s preset value.
Status read-only Displays the status of the container slot—can be fault if a previous write to a child preset register failed for some reason.
Write On Input Change true or false (default) Configures when to write a value to the register.

true writes a value when data coming in changes.

false ignores value changes.

Data Type drop-down Selects the location of the data in the slave device. Coils store on/off values. Registers store numeric values. Each coil or contact is 1 bit with an assigned address between 0000 and 270E. Each register is one word (16 bits, 2 bytes) as well as a data address between 0000 and 270E.

Actions

Two right-click actions on a Modbus Client Preset Registers container are as follows:

  • Write

    To write all the preset register values currently in child ModbusClientPresetCoil components.

  • Add Preset Register Value

    To add an additional child ModbusClientPresetRegister component, specifying its numerical value in the popup window. The component is added to the end of the existing slot order.