Device configuration

Apart from PLCs (Programmable Logic Controllers), Modbus-capable devices provide both industrial and commercial applications, such as electric-demand meters and lighting controllers, among many others. The configuration requirements for these devices vary greatly because the Modbus protocol does not specify which specific function codes are necessary in a device. The data type and format of register-held data are left up to the vendor. And, quite commonly, different byte-order storage schemes are used for storing 32-bit data types, such as float and long (integer).

The driver’s client networks (ModbusAsyncNetwork, ModbusTCPNetwork, and ModbusTCPGateway) provide four configuration properties, set at the network-level, that act as global Modbus defaults for all devices on the associated network. If needed, any (or all) of these settings can be overridden at the device-level.