We use cookies to optimize site functionality and provide the best possible experience.
View our new Privacy and Protection of Personal Data here.
Accept Settings
INDEX

HUR Series Modbus RTU Remote I/O Devices User Manual

1. About HUR Series Modbus RTU Remote I/O Devices

The HUR Series Modbus RTU Remote I/O Devices are input and output modules for rugged industry and infrastructure sites.

They add digital and analog inputs and outputs to a Modbus RTU master, such as a PLC, a SCADA computer or a gateway, over one RS485 line.

The series has five I/O groups, each in a DC and an AC power version:

The I/O options can be combined on one RS485 line, which gives flexibility and suits many different applications.

  • HUR118 and HUR218: 8 digital optocoupler outputs.
  • HUR128 and HUR228: 8 digital relay outputs.
  • HUR318 and HUR418: 8 digital inputs.
  • HUR518 and HUR618: 8 analog inputs.
  • HUR555 and HUR655: 5 analog outputs.

The DC models are HUR118, HUR128, HUR318, HUR518 and HUR555. The AC models are HUR218, HUR228, HUR418, HUR618 and HUR655.

The two models of one I/O group have the same terminals and the same Modbus registers.

Every module has one RS485 port. The modules on one line are told apart by their Modbus address, 1 to 247.

The modules are built for a wide temperature range and a wide power input range, which makes them a cost-effective choice for a remote I/O system.

Output modules keep their outputs in a defined state when the line or the master fails.

Data, settings and firmware updates use the same RS485 line.

The figure shows a typical application: a PLC, SCADA computer or gateway reads and writes several HUR RTU modules on one RS485 line.

Typical application: a Modbus RTU master and four HUR RTU modules on one RS485 line, with the field devices

four HUR RTU modules side by side (old manual chapter 1)

2. Hardware Features

The HUR Series Modbus RTU Remote I/O Devices come in several versions with different I/O options:

  • 8 channel digital optocoupler output, 5 - 275 V AC/DC, 100 mA per channel
  • 8 channel digital relay output, 5 A 250 V AC / 30 V DC per channel
  • 8 channel digital optocoupler input, 12 - 275 V AC/DC
  • 8 channel analog input, 0 - 10 V or 0 - 20 mA, selectable for each channel
  • 5 channel analog output, 4 - 20 mA

Every version can be ordered with a DC power input (9 - 48 V DC) or with an AC power input (100 - 240 V AC, 50 - 60 Hz, 120 - 370 V DC).

the 10 RTU models - five I/O groups (8DO, 8DO, 8DI, 8AI, 5AO) in a DC and an AC power version

The modules communicate in Modbus RTU over a standard RS485 serial line. The speed is selectable (9600, 19200, 57600, 115200 or 230400 bit/s) and the frame is 8N1, 8E1 or 8O1. The default is 115200 bit/s with 8N1.

2.1 Features

  • The device address can be changed with Modbus RTU commands (1 to 247).
  • The device parameters, such as the device up time, the read counter and the firmware date and version, can be monitored with Modbus commands.
  • Modbus RTU over RS485 with selectable speed (9600 to 230400 bit/s) and frame (8N1, 8E1, 8O1).
  • Easy to use test and parameter change software: ZTerminal.
  • Firmware update over the RS485 line with the A/B method: the new firmware is loaded into a second memory area, and the running firmware is replaced only after the new image is complete and checked.
  • AC or DC wide range power input options.
  • Operating temperature from -40 to 85 C for the DC models and from -25 to 70 C for the AC models.
  • Rugged metal housing, IP 40.
  • DIN rail mounting.
  • Write lock for the settings and a diagnostic block with frame and error counters.
  • Inputs are processed in the module: counters with debounce on the digital inputs, 4 - 20 mA wire-break status and a low-pass filter on the analog inputs.

See 8.1 "Line settings" for the speed and the frame, and 10.1 "Update over RS485 (A/B)" for the firmware update.

2.2 Extra Features for Output Models

  • The output values at power up can be set per output, and the output values are kept over the automatic restart.
  • Communication watchdog: when the master stops polling, the outputs go to user-defined safe values. Each output can also keep its last value. The watchdog time is 1 to 3600 s (0 = off).
  • Automatic restart period: the module restarts itself every 1 to 255 hours (default 24 h, 0 = off). The output values are kept over the restart.

See 8.3 "Communication watchdog" and 8.4 "Automatic restart".

3. Installation

3.1 DIN rail

Each device has a DIN rail kit on the rear panel. The kit fixes the device on the DIN rail.

rear of the module with the DIN rail clip (old manual chapter 3)

module mounted on a DIN rail (old manual chapter 3)

  1. Slant the switch and mount the metal spring to the DIN rail.
  2. Push the switch toward the DIN rail until you hear a click.

The housing is metal, IP 40, 43 x 95 x 124 mm (width x depth x height) and weighs approx. 400 g.

3.2 Power and RS485 wiring

The power input is on the top panel. See 5.1 "DC models" and 5.2 "AC models".

  • DC models: 9 - 48 V DC. The input is protected against reverse polarity, so it can be connected in any direction.
  • AC models: 100 - 240 V AC, 50 - 60 Hz (120 - 370 V DC).

The RS485 terminal on the front panel has 3 pins: GND, B and A. Connect 2 wires and GND.

Give every module on the same RS485 line its own Modbus address (1 to 247).

a Modbus RTU master and two modules on one RS485 line (A, B, GND to pins 3, 2, 1), power input on the top panel

3.3 Installation notes

  • The default Modbus address is 1. A module accepts the addresses 1 to 247.
  • A module with an empty settings memory starts with the address 1, the speed 115200 bit/s with 8N1, the write lock off and the automatic restart every 24 hours.
  • In the empty-memory state the output modules have the watchdog off and keep the last value as the safe value. The 8DI modules have the debounce off, and the 8AI modules have the filter off and no channel in the 4 - 20 mA mode.
  • 8AI modules: check the loop polarity and the position of the channel switch before you power the loop. A reversed loop carries no current and the channel reads 0.
  • 5AO modules: the analog outputs are polarity sensitive. The load is a 24 V loop with 250 ohm or a 12 V loop with 125 ohm.
  • The digital inputs (HUR318, HUR418) take 12 - 275 V AC/DC per input, and their polarity is free.
  • The relay outputs are rated 5 A 250 V AC / 30 V DC per channel for a resistive load.
  • The relay contacts need a minimum load of 5 V DC 100 mA; a smaller signal load is outside the relay rating.
  • The module has no contact suppression (RC snubber or varistor). Add it at the load for contactors, valves and motors.

4. Front Panel Description

4.1 HUR118 & HUR218

The HUR118 and HUR218 have 8 digital optocoupler outputs. The front panel has these parts:

front panel of HUR118 / HUR218 with callouts 1-5 (old manual 4.1)

  1. System LED: flashes during normal operation.
  2. Tx LED: flashes when the device sends Modbus RTU packages.
  3. Rx LED: flashes when the device receives Modbus RTU packages.
  4. RS485 terminal: terminal connector for 2 wire RS485 connection and GND.
  5. Output status LEDs: show which output is ON (conducting) and which is OFF (cut off). LED 1 to 8 belong to output 1 to 8.
  6. Output channels: 8 output channels. Polarity is not important. There are 2 pins for each connection and 16 connection pins in total. The outputs are 5 - 275 V AC/DC, 100 mA optocoupler outputs.

The RS485 terminal pins: pin 1 is GND, pin 2 is B and pin 3 is A.

  • LED ON: the output is ON, the circuit is closed and running.
  • LED OFF: the output is OFF, the circuit is open and cut off.

The outputs have 3750 V rms isolation for 1 minute, overvoltage protection of 275 V and a non-repetitive peak pulse current of 80 A.

4.2 HUR128 & HUR228

The HUR128 and HUR228 have 8 digital relay outputs. The front panel has these parts:

front panel of HUR128 / HUR228 with callouts (old manual 4.2)

  1. System LED: flashes during normal operation.
  2. Tx LED: flashes when the device sends Modbus RTU packages.
  3. Rx LED: flashes when the device receives Modbus RTU packages.
  4. RS485 terminal: terminal connector for 2 wire RS485 connection and GND.
  5. Output status LEDs: show which output is ON (conducting) and which is OFF (cut off). LED 1 to 8 belong to output 1 to 8.
  6. Output channels: 8 relay output channels (normally open). Polarity is not important. There are 2 pins for each connection and 16 connection pins in total. Maximum 5 A 250 V AC / 30 V DC for each channel (resistive load).

The RS485 terminal pins: pin 1 is GND, pin 2 is B and pin 3 is A.

  • LED ON: the output is ON, the circuit is closed and running.
  • LED OFF: the output is OFF, the circuit is open and cut off.

The relay has 3 kV between the coil and the contacts.

4.3 HUR318 & HUR418

The HUR318 and HUR418 have 8 digital optocoupler inputs. The front panel has these parts:

front panel of HUR318 / HUR418 with callouts (old manual 4.3)

  1. System LED: flashes during normal operation.
  2. Tx LED: flashes when the device sends Modbus RTU packages.
  3. Rx LED: flashes when the device receives Modbus RTU packages.
  4. RS485 terminal: terminal connector for 2 wire RS485 connection and GND.
  5. Input channels: 8 input channels. Polarity is not important. There are 2 pins for each connection and 16 connection pins in total. The inputs are 12 - 275 V AC/DC optocoupler inputs.

The RS485 terminal pins: pin 1 is GND, pin 2 is B and pin 3 is A.

The inputs have 4470 V rms isolation for 1 minute and overvoltage protection of 275 V.

The module reads the state of every input and counts the rising edges of every input with a 16 bit counter. See 7.3 "Digital input models".

4.4 HUR518 & HUR618

The HUR518 and HUR618 have 8 analog inputs. The front panel has these parts:

front panel of HUR518 / HUR618 with callouts (old manual 4.4)

  1. System LED: flashes during normal operation.
  2. Tx LED: flashes when the device sends Modbus RTU packages.
  3. Rx LED: flashes when the device receives Modbus RTU packages.
  4. RS485 terminal: terminal connector for 2 wire RS485 connection and GND.
  5. Operation mode selection switches for the analog inputs: an 8 pin switch selects the operation mode of each analog input, 0 - 10 V or 0 - 20 mA.
  6. Input channels: 8 input channels. Polarity is important. All inputs refer to a common point. 2 common points and 8 analog inputs make 10 connection pins in total.

The RS485 terminal pins: pin 1 is GND, pin 2 is B and pin 3 is A.

Switch position ON: the channel is a current input (mA). Switch position OFF: the channel is a voltage input (0 - 10 V). Switch 1 to 8 belong to input 1 to 8.

A channel in the mA position reads 0 - 20 mA with the scale mA = 20 x raw value / 65535. The converter saturates at about 20 mA.

For a 4 - 20 mA sensor, set the channel mode to 1 by Modbus. The module then reports status 1 (open wire) when the signal falls below about 2 mA, and status 3 (saturated) at full scale.

The analog inputs have 16 bit resolution. An optional low-pass filter can be set.

The analog inputs are isolated from the RS485 and power side as one group (1 kV DC, 1 s test).

4.5 HUR555 & HUR655

The HUR555 and HUR655 have 5 analog outputs. The front panel has these parts:

front panel of HUR555 / HUR655 with callouts (old manual 4.5)

  1. System LED: flashes during normal operation.
  2. Tx LED: flashes when the device sends Modbus RTU packages.
  3. Rx LED: flashes when the device receives Modbus RTU packages.
  4. RS485 terminal: terminal connector for 2 wire RS485 connection and GND.
  5. Output channels: 5 output channels. Polarity is important. There are 2 pins for each connection and 10 connection pins in total. The outputs are 4 - 20 mA analog outputs, designed for a 24 V loop with 250 ohm load or a 12 V loop with 125 ohm load.

The RS485 terminal pins: pin 1 is GND, pin 2 is B and pin 3 is A.

The analog outputs have overvoltage protection up to 40 V.

5. Top Panel Description

5.1 DC models

The DC models are HUR118, HUR128, HUR318, HUR518 and HUR555. The top panel has these parts:

top panel of the DC models with callouts 1-3 (old manual 5.1)

  1. Power input DC: 9 - 48 V DC. The input is polarity protected, so the power input can be connected in any direction.
  2. Power LED: turns ON when the device has power.
  3. Reset button: resets the device.

The DC power input has reverse polarity protection, thermal shutdown and current limit.

5.2 AC models

The AC models are HUR218, HUR228, HUR418, HUR618 and HUR655. The top panel has these parts:

top panel of the AC models with callouts 1-3 (old manual 5.2)

  1. Power input AC: 100 - 240 V AC (120 - 370 V DC), 50 - 60 Hz.
  2. Power LED: turns ON when the device has power.
  3. Reset button: resets the device.

The AC models are Class II. The isolation from the power input to the output is 3 kV AC.

6. Usage Scenarios and Connection Diagrams

HUR Series Modbus RTU Remote I/O Devices can be used in different scenarios. The usages are not limited to these examples: you can build your own usage scenario.

6.1 Scenario 1: Write digital outputs

A field controller or a central control software can write the state of digital field devices over Modbus RTU, for example to turn on a light or to turn on a valve. The outputs are optocoupler outputs or relay outputs.

scenario 1 - a Modbus RTU master writes the optocoupler and relay outputs of HUR118 and HUR128 for lights, valves and motors

The following devices can be used for this application:

  • HUR118 and HUR218: 8 channel optocoupler output, 5 - 275 V AC/DC, 100 mA.
  • HUR128 and HUR228: 8 channel relay output, 5 A 250 V AC / 30 V DC.

NOTE:

The output models can keep their outputs in a defined state when the master stops polling. See 8.3 "Communication watchdog".

6.2 Scenario 2: Read digital inputs

A field controller or a central control software can read the state of digital field devices over Modbus RTU, for example the state of a light or of a circuit breaker. The inputs are optocoupler inputs.

scenario 2 - a Modbus RTU master reads the digital inputs of HUR318 (light status, breakers)

The following devices can be used for this application:

  • HUR318 and HUR418: 8 channel optocoupler input, 12 - 275 V AC/DC.

NOTE:

Each digital input also has a pulse counter. See 7.3 "Digital input models".

6.3 Scenario 3: Read analog inputs

A field controller or a central control software can read analog field devices over Modbus RTU, for example temperature sensors or pressure sensors. The inputs can be set to 0 - 10 V or 0 - 20 mA.

scenario 3 - a Modbus RTU master reads the analog inputs of HUR518 (temperature and pressure sensors)

The following devices can be used for this application:

  • HUR518 and HUR618: 8 channel analog input, 0 - 10 V or 0 - 20 mA selectable.

NOTE:

For a 4 - 20 mA sensor, each channel can be set to the 4 - 20 mA mode, which reports an open wire. See 7.4 "Analog input models".

6.4 Scenario 4: Write analog outputs

A field main controller or a central control software can write analog values for secondary field control devices, for example to generate an analog value such as the flow of a fluid for a field control device. The outputs are 4 - 20 mA analog outputs.

scenario 4 - a Modbus RTU master writes the 4 - 20 mA analog outputs of HUR555 for field control devices

The following devices can be used for this application:

  • HUR555 and HUR655: 5 channel analog output, 4 - 20 mA.

6.5 Scenario 5: Modbus TCP over a REDZ CKL gateway

REDZ CKL Series Modbus serial to Ethernet gateways connect a field serial device to a TCP/IP network, so that a software on a server or a TCP/IP device can control the device remotely. With a CKL gateway you can connect HUR Series Modbus RTU Remote I/O Devices and read them remotely.

HUR RTU modules at remote sites: behind a REDZ CKL gateway over Ethernet, and over a LoRa radio link with REDZ TLM gateways

With the CKL and TLM gateways the HUR modules stay at remote sites, and the master reads and writes them over a TCP/IP network or over a radio link.

The CKL gateway in the field is set for transparent communication and works as a TCP server to serial device gateway. The HUR modules are connected to it over the RS485 line.

The master reads the status of the field devices, for example temperature sensors or pressure sensors. The communication protocol is Modbus TCP thanks to the CKL connection. The inputs are 0 - 10 V or 0 - 20 mA selectable analog inputs.

NOTE:

The baud rate and the framing of the gateway serial port must be the same as the speed and framing set in the HUR modules. See 8.1 "Line settings".

The following devices can be used for this application:

  • CKL154: Modbus serial to Ethernet gateway, 2 x 10/100 Ethernet ports, 1 x RS232 and 1 x RS485.
  • CKL254: Modbus serial to Ethernet gateway, 2 x 10/100 Ethernet ports, 1 x RS232 and 1 x RS485.
  • CKL655: Modbus serial to Ethernet gateway, 2 x 10/100 Ethernet ports and 1 x BPL (Broadband Power Line) link, 1 x RS232 and 1 x RS485. To use this model you must create a Broadband Powerline network with REDZ devices, using CKL or BSB series.
  • HUR518 and HUR618: 8 channel analog input, 0 - 10 V or 0 - 20 mA selectable.

6.6 Scenario 6: Over a LoRa radio link with REDZ TLM gateways

REDZ TLM Series LoRa based RF gateways link RS232 and RS485 serial devices and create a network over radio. With TLM gateways you can connect HUR Series Modbus RTU Remote I/O Devices with field control devices over a radio network and build a wireless automation.

The TLM gateway works as a serial to LoRa RF gateway in client mode. Client mode is suggested for serial communication, because the TCP server functions are not used. The serial communication is enabled and its settings follow the field device.

The master reads the status of digital field devices, for example the state of a light or of a circuit breaker. The communication protocol is Modbus RTU over the LoRa radio network thanks to the TLM connection. The inputs are optocoupler inputs.

NOTE:

The baud rate and the framing of the gateway serial port must be the same as the speed and framing set in the HUR modules. See 8.1 "Line settings".

The following devices can be used for this application:

  • TLM154: 868 MHz LoRa based gateway, 2 x 10/100 Ethernet ports, 1 x RS232 and 1 x RS485.
  • TLM254: 868 MHz LoRa based gateway, 2 x 10/100 Ethernet ports, 1 x RS232 and 1 x RS485.
  • TLM655: 868 MHz LoRa based gateway, 2 x 10/100 Ethernet ports and 1 x BPL (Broadband Power Line) link, 1 x RS232 and 1 x RS485. To use this model you must create a Broadband Powerline network with REDZ devices, using TLM or BSB series.
  • HUR318 and HUR418: 8 channel optocoupler input, 12 - 275 V AC/DC.

7. MODBUS Definitions

HUR RTU modules are Modbus RTU slaves on one RS485 line. The build default of the line is 115200 bit/s, 8N1. Speed and framing can be changed (see 8.1 "Line settings").

Every I/O group has its own function codes and registers. The two models of a pair (DC power and AC power) have the same registers.

ModelsGroupInputs and outputs
HUR118, HUR2188DO8 optocoupler outputs, 5 - 275 V AC/DC, 100 mA
HUR128, HUR2288DO8 relay outputs, 5 A 250 V AC / 30 V DC
HUR318, HUR4188DI8 optocoupler inputs, 12 - 275 V AC/DC
HUR518, HUR6188AI8 analog inputs, 0 - 10 V or 0 - 20 mA
HUR555, HUR6555AO5 analog outputs, 4 - 20 mA

The group names 8DO, 8DI, 8AI and 5AO are used in the register tables of this chapter. HUR118, HUR218, HUR128 and HUR228 are one group because their registers are the same.

the register blocks 0x0001 ... 0x00E3 and the I/O groups that have them

7.1 Addressing and function codes

Every module has a Modbus address from 1 to 247. The factory address is 1. Several modules can share one line when each has its own address.

anatomy of a Modbus RTU request - address, function, start register, quantity, CRC

Address 0 is the broadcast address. A module never answers a request to address 0. See 8.5 "Broadcast".

Register addresses in this chapter are the address field of the frame, written in hex. They start at 0x0000. The high byte is always 0.

The data of a module starts at address 0x0001. Output 1, input 1 or channel 1 is address 0x0001, not 0x0000.

Reference numbers such as 40128 are not used here. Use the frame address (0x0080 = 128).

A 16-bit value is sent with the high byte first. A 32-bit value uses two registers, the high register first.

These function codes are used.

CodeNameUse
0x01Read Coil StatusRead the outputs of an 8DO module.
0x02Read Input StatusRead the inputs of an 8DI module.
0x03Read Holding RegistersRead settings, monitoring values, counters and safe values of every module.
0x04Read Input RegistersRead the analog inputs of an 8AI module and the set values of a 5AO module.
0x05Force Single CoilSwitch one output of an 8DO module.
0x06Preset Single RegisterWrite one register: a setting, a power-up value, a counter reset or a 5AO output.
0x0F (15)Force Multiple CoilsSwitch all outputs of an 8DO module at once.
0x10 (16)Preset Multiple RegistersWrite 1 to 8 registers in one request. This code is new in firmware 3.0.

Each group answers only the codes that fit its hardware.

GroupRead codesWrite codes
8DO0x01, 0x030x05, 0x06, 0x0F, 0x10
8DI0x02, 0x030x06, 0x10
8AI0x03, 0x040x06, 0x10
5AO0x03, 0x040x06, 0x10

A function code that a group does not have is answered with exception 01. For example, function code 0x05 sent to an input module gets exception 01.

A frame is the module address, the function code, the data and the CRC. The CRC is the standard Modbus CRC16. It is sent with the low byte first. The examples in this manual show a complete frame with its CRC.

The first byte of the response follows the request after about 5 ms. This time can be set from 1 to 20 ms (see 8.1 "Line settings").

Requests that a module cannot accept are answered with an exception. See 7.8 "Exception responses".

NOTE:

The examples use the module address 1. Replace it with the address of your module. The CRC changes with every byte of the frame.

7.1.1 Reference numbers

Many PLC, SCADA and test tools number the Modbus data from 1 (reference numbers). The Modbus standard sends data element n with the address n - 1, so the reference number of an address in this manual is the address + 1, with the prefix of its data type.

DataFunction codesAddress in this manualReference number (from 1)
Outputs of HUR118 / 128 / 218 / 228 (coils)01, 05, 150x0001 to 0x000800002 to 00009
Inputs of HUR318 / 418 (discrete inputs)020x0001 to 0x000810002 to 10009
Analog inputs of HUR518 / 618, outputs of HUR555 / 655 (input registers)040x0001 to 0x000830002 to 30009
Settings, counters, monitoring, diagnostics, update (holding registers)03, 06, 160x0040 to 0x00E340065 to 40228
Analog outputs of HUR555 / 655 (written as holding registers)06, 160x0001 to 0x000540002 to 40006

Other tools take the address of this manual directly. Check the form of your tool with a known register, for example the module address 0x0080.

NOTE:

The old manual of these modules used 40000 + address (for example 40128 for 0x0080); with the standard rule the reference number of 0x0080 is 40129.

7.2 Digital output models

HUR118, HUR218, HUR128 and HUR228 have 8 outputs. Output 1 to output 8 are the addresses 0x0001 to 0x0008. The outputs are read with function code 0x01 and switched with 0x05, 0x0F or 0x10 and 0x06.

7.2.1 Read the outputs (function code 0x01)

This request reads outputs 1 to 8 of the module with address 1.

Request: 01 01 00 01 00 08 6C 0C
  01             module address 1
  01             function code 0x01, read coil status
  00 01          address of the first output (output 1)
  00 08          number of outputs, 8
  6C 0C          CRC (low byte first)

Response: 01 01 01 19 90 42
  01             module address 1
  01             function code 0x01
  01             number of data bytes to follow, 1 (8 outputs, 8 bits)
  19             outputs 1 to 8, 0x19 = 0001 1001: outputs 1, 4 and 5 on (bit 0 = output 1)
  90 42          CRC (low byte first)

Bit 0 is output 1 and bit 7 is output 8. In the example 0x19 means outputs 1, 4 and 5 are on and outputs 2, 3, 6, 7 and 8 are off.

A start address or a quantity outside 1 to 8 is answered with exception 02 or 03.

7.2.2 Settings and monitoring

The settings 0x0080 to 0x0091 and the monitoring registers 0x00A0 to 0x00A8 are described in 7.6 "Settings and monitoring registers". For this group these registers are important.

AddressRegisterValuesFactory value
0x0080 (128)Modbus address1 to 2471
0x0081 (129)Keep the output values over an automatic restart1 = on, 0 = off1
0x0082 (130)Use the power-up values of the block 0x0040 to 0x00471 = on, 0 = off0

The factory value of 0x0082 is 0 (disabled). Earlier versions of this manual printed it as '0x01: Disabled'.

This request reads the three registers 0x0080 to 0x0082.

Request: 01 03 00 80 00 03 04 23
  01             module address 1
  03             function code 0x03, read holding registers
  00 80          address of the first register, 0x0080 (128)
  00 03          number of registers, 3
  04 23          CRC (low byte first)

Response: 01 03 06 00 01 00 01 00 00 4D 75
  01             module address 1
  03             function code 0x03
  06             number of data bytes to follow, 6
  00 01          0x0080: module address 1
  00 01          0x0081: keep output values, on
  00 00          0x0082: power-up values, off
  4D 75          CRC (low byte first)

Read the monitoring registers with function code 0x03 from address 0x00A0.

7.2.3 Power-up output values

A module can start with chosen output values. The values are kept for the next power-up. Write the values to the registers below and set 0x0082 to 1. The block is read with function code 0x03 and written with 0x06 or 0x10.

OutputAddressRegister
10x0040 (64)Power-up value of output 1, used if 0x0082 is 1
20x0041 (65)Power-up value of output 2
30x0042 (66)Power-up value of output 3
4 to 80x0043 to 0x0047 (67 to 71)Power-up values of outputs 4 to 8, in the same order

NOTE:

Earlier versions of this manual listed these registers as 65 to 72 (0x41 to 0x48). That was one address too high. The correct block is 0x0040 to 0x0047 (64 to 71).

Use 0 for off and 1 for on. This request reads the 8 registers.

Request: 01 03 00 40 00 08 45 D8
  01             module address 1
  03             function code 0x03
  00 40          address of the first register, 0x0040 (64)
  00 08          number of registers, 8
  45 D8          CRC (low byte first)

Response: 01 03 10 00 01 00 01 00 00 00 00 00 01 00 01 00 01 00 01 9A D8
  01             module address 1
  03             function code 0x03
  10             number of data bytes to follow, 16 (8 registers)
  00 01          output 1: on
  00 01          output 2: on
  00 00          output 3: off
  00 00          output 4: off
  00 01          output 5: on
  00 01          output 6: on
  00 01          output 7: on
  00 01          output 8: on
  9A D8          CRC (low byte first)

This request sets the power-up value of output 3 to 1. Output 3 is the register 0x0042.

Request: 01 06 00 42 00 01 E8 1E
  01             module address 1
  06             function code 0x06, preset single register
  00 42          register 0x0042 (66), power-up value of output 3
  00 01          value 1
  E8 1E          CRC (low byte first)

Response: 01 06 00 42 00 01 E8 1E
  01             module address 1
  06             function code 0x06
  00 42          register 0x0042
  00 01          value written, 1
  E8 1E          CRC (low byte first)

The response of function code 0x06 is a copy of the request.

7.2.4 Safe values for the watchdog

The registers 0x0048 to 0x004F hold the safe value of each output for the communication watchdog. A channel with 0xFFFF keeps its last value. The factory value is 0xFFFF. See 8.3 "Communication watchdog".

OutputAddressValues
1 to 80x0048 to 0x004F (72 to 79)0 = off, 1 = on, 0xFFFF = keep the last value. Any other value is answered with exception 03.

outputs - power-up rules, normal operation, safe values after the watchdog time, back by an output write

7.2.5 Write one output (function code 0x05)

This request switches output 7 on. Output 7 is the address 0x0007. Write 0xFF00 for on and 0x0000 for off.

Request: 01 05 00 07 FF 00 3D FB
  01             module address 1
  05             function code 0x05, force single coil
  00 07          address of the output, 0x0007 = output 7
  FF 00          0xFF00 = on, 0x0000 = off
  3D FB          CRC (low byte first)

Response: 01 05 00 07 FF 00 3D FB
  01             module address 1
  05             function code 0x05
  00 07          address of the output
  FF 00          state written
  3D FB          CRC (low byte first)

The response is a copy of the request, sent after the output has been switched.

NOTE:

Earlier versions of this manual showed output 7 as the address 0x0006. The first output is 0x0001, so output 7 is 0x0007.

The video shows a Modbus master program (Modbus Poll) reading the 8 inputs of an 8DI module with function code 0x02 while output 1 of an 8DO relay module is switched on and off with function code 0x05. The relay contact is wired to input 1 of the 8DI, so input 1 reads 1 while the relay is on and 0 after it is switched off.

7.2.6 Write all outputs (function code 0x0F)

This request writes outputs 1 to 8 in one frame. The data byte 0x98 is 1001 1000. Outputs 4, 5 and 8 are switched on and the others are switched off.

Request: 01 0F 00 01 00 08 01 98 C2 FF
  01             module address 1
  0F             function code 0x0F, force multiple coils
  00 01          address of the first output
  00 08          number of outputs, 8
  01             number of data bytes to follow, 1
  98             outputs 1 to 8, 0x98 = 1001 1000: outputs 4, 5 and 8 on (bit 0 = output 1)
  C2 FF          CRC (low byte first)

Response: 01 0F 00 01 00 08 05 CD
  01             module address 1
  0F             function code 0x0F
  00 01          address of the first output
  00 08          number of outputs written, 8
  05 CD          CRC (low byte first)

A quantity outside 1 to 8 is answered with exception 03.

7.2.7 Write registers (function codes 0x06 and 0x10)

Function code 0x06 writes one register. Function code 0x10 writes 1 to 8 registers. All registers of a 0x10 request are checked first. If one is refused, nothing is written.

This request enables the power-up values with function code 0x06. The registers 0x0080 to 0x0082 are settings.

Request: 01 06 00 82 00 01 E8 22
  01             module address 1
  06             function code 0x06
  00 82          register 0x0082 (130), use the power-up values
  00 01          value 1, enabled
  E8 22          CRC (low byte first)

Response: 01 06 00 82 00 01 E8 22
  01             module address 1
  06             function code 0x06
  00 82          register 0x0082
  00 01          value written, 1
  E8 22          CRC (low byte first)

This request writes the power-up values of outputs 1 and 2 with function code 0x10. Output 1 is on and output 2 is off.

Request: 01 10 00 40 00 02 04 00 01 00 00 A6 5F
  01             module address 1
  10             function code 0x10, preset multiple registers
  00 40          address of the first register, 0x0040
  00 02          number of registers, 2
  04             number of data bytes to follow, 4
  00 01          0x0040: output 1 on
  00 00          0x0041: output 2 off
  A6 5F          CRC (low byte first)

Response: 01 10 00 40 00 02 40 1C
  01             module address 1
  10             function code 0x10
  00 40          address of the first register
  00 02          number of registers written, 2
  40 1C          CRC (low byte first)

7.3 Digital input models

HUR318 and HUR418 have 8 inputs. Input 1 to input 8 are the addresses 0x0001 to 0x0008. The inputs are read with function code 0x02.

7.3.1 Read the inputs (function code 0x02)

This request reads inputs 1 to 8 of the module with address 1. Some tools call these inputs 10001 to 10008.

Request: 01 02 00 01 00 08 28 0C
  01             module address 1
  02             function code 0x02, read input status
  00 01          address of the first input (input 1)
  00 08          number of inputs, 8
  28 0C          CRC (low byte first)

Response: 01 02 01 44 A1 BB
  01             module address 1
  02             function code 0x02
  01             number of data bytes to follow, 1
  44             inputs 1 to 8, 0x44 = 0100 0100: inputs 3 and 7 on (bit 0 = input 1)
  A1 BB          CRC (low byte first)

Bit 0 is input 1 and bit 7 is input 8. In the example 0x44 means inputs 3 and 7 are on and the other inputs are off.

A start address or a quantity outside 1 to 8 is answered with exception 02 or 03.

7.3.2 Settings and monitoring

The module address is the register 0x0080. It is read with function code 0x03 and written with 0x06 or 0x10. The other settings and the monitoring registers are in 7.6 "Settings and monitoring registers".

This request reads the module address.

Request: 01 03 00 80 00 01 85 E2
  01             module address 1
  03             function code 0x03
  00 80          register 0x0080 (128)
  00 01          number of registers, 1
  85 E2          CRC (low byte first)

Response: 01 03 02 00 01 79 84
  01             module address 1
  03             function code 0x03
  02             number of data bytes to follow, 2
  00 01          module address, 1
  79 84          CRC (low byte first)

This request sets the module address to 2.

Request: 01 06 00 80 00 02 09 E3
  01             module address 1
  06             function code 0x06
  00 80          register 0x0080 (128)
  00 02          new module address, 2
  09 E3          CRC (low byte first)

Response: 01 06 00 80 00 02 09 E3
  01             module address 1
  06             function code 0x06
  00 80          register 0x0080
  00 02          value written, 2
  09 E3          CRC (low byte first)

7.3.3 Pulse counters

An 8DI module counts the rising edges of each input in a 16-bit counter. The counter of input 1 is the register 0x0040 and the counter of input 8 is 0x0047. A counter wraps at 65535.

InputAddressRegister
10x0040 (64)Pulse counter of input 1
20x0041 (65)Pulse counter of input 2
3 to 80x0042 to 0x0047 (66 to 71)Pulse counters of inputs 3 to 8, in the same order
  • Read the counters with function code 0x03.
  • Write the value 0 with function code 0x06 or 0x10 to reset one counter. Any other value is answered with exception 03.
  • The write lock does not stop a counter reset.
  • The counters start at 0 after a restart. With 0x0081 = 1 they are kept over the automatic restart.

NOTE:

Earlier versions of this manual did not describe the counters, and the counters could not be reset. Firmware 3.0 adds the reset.

This request reads the counters of inputs 1 to 8. Input 1 has counted 3 pulses and input 3 has counted 12 pulses.

Request: 01 03 00 40 00 08 45 D8
  01             module address 1
  03             function code 0x03
  00 40          address of the first counter, 0x0040
  00 08          number of registers, 8
  45 D8          CRC (low byte first)

Response: 01 03 10 00 03 00 00 00 0C 00 00 00 00 00 00 00 00 00 00 98 08
  01             module address 1
  03             function code 0x03
  10             number of data bytes to follow, 16
  00 03          input 1: 3
  00 00          input 2: 0
  00 0C          input 3: 12
  00 00          input 4: 0
  00 00          input 5: 0
  00 00          input 6: 0
  00 00          input 7: 0
  00 00          input 8: 0
  98 08          CRC (low byte first)

This request resets the counter of input 2. The counter of input 2 is the register 0x0041.

Request: 01 06 00 41 00 00 D9 DE
  01             module address 1
  06             function code 0x06
  00 41          register 0x0041, counter of input 2
  00 00          value 0, reset
  D9 DE          CRC (low byte first)

Response: 01 06 00 41 00 00 D9 DE
  01             module address 1
  06             function code 0x06
  00 41          register 0x0041
  00 00          value written, 0
  D9 DE          CRC (low byte first)

Function code 0x10 with the value 0 in every register resets all 8 counters in one request.

The video shows Modbus Poll reading the 8 counters of an 8DI module with function code 0x03 (registers 0x0040 to 0x0047; the program shows them in decimal as 64 to 71). Input 1 has counted 3 closings of the relay.

7.3.4 Input debounce

The register 0x008F is the debounce time in ms. The value 0 switches the debounce off. It is the factory value. A value from 1 to 255 means an input change is accepted after the input is stable for that time. The input state (function code 0x02) and the counters use the accepted state. A value above 255 is answered with exception 03.

The highest count rate is about 1 / (2 x N) for a debounce time of N ms. With 255 ms the module rejected pulses of 0.10 s and counted pulses of 0.65 s.

8DI debounce 255 ms - a 0.10 s pulse is rejected, a 0.65 s pulse is counted at its rising edge

This request sets the debounce time to 20 ms (0x0014).

Request: 01 06 00 8F 00 14 B8 2E
  01             module address 1
  06             function code 0x06
  00 8F          register 0x008F, debounce time
  00 14          20 ms
  B8 2E          CRC (low byte first)

Response: 01 06 00 8F 00 14 B8 2E
  01             module address 1
  06             function code 0x06
  00 8F          register 0x008F
  00 14          value written, 20
  B8 2E          CRC (low byte first)

The write lock stops a change of the debounce time (exception 04). See 8.2 "Write lock".

7.4 Analog input models

HUR518 and HUR618 have 8 analog inputs. Input 1 to input 8 are the addresses 0x0001 to 0x0008. The inputs are read with function code 0x04. Every channel has a switch for 0 - 10 V or 0 - 20 mA.

7.4.1 Read the inputs (function code 0x04)

Each input is a 16-bit value from 0 to 65535. The module converts the inputs again for every request. Reading 8 channels takes about 0.65 ms.

This request reads inputs 1 to 8. Only input 1 has a value in the example.

Request: 01 04 00 01 00 08 A0 0C
  01             module address 1
  04             function code 0x04, read input registers
  00 01          address of the first input (input 1)
  00 08          number of registers, 8
  A0 0C          CRC (low byte first)

Response: 01 04 10 2A B4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7E 24
  01             module address 1
  04             function code 0x04
  10             number of data bytes to follow, 16
  2A B4          input 1: 0x2AB4 = 10932
  00 00          input 2: 0
  00 00          input 3: 0
  00 00          input 4: 0
  00 00          input 5: 0
  00 00          input 6: 0
  00 00          input 7: 0
  00 00          input 8: 0
  7E 24          CRC (low byte first)

Use these formulas to convert the value. In the example 10932 is 3.336 mA in the current range and 1.668 V in the voltage range.

Switch of the channelFormulaExample for 10932
0 - 20 mAmA = 20 x value / 655353.336 mA
0 - 10 VV = 10 x value / 655351.668 V

NOTE:

The converter saturates at about 20 mA. A sound 20 mA signal reads as saturated in the channel status. A value above 20 mA cannot be told apart.

7.4.2 Settings and monitoring

The module address is the register 0x0080. It is read with function code 0x03 and written with 0x06 or 0x10, as for the 8DI group. The request frames are the same as in 7.3 "Digital input models". The other settings and the monitoring registers are in 7.6 "Settings and monitoring registers".

7.4.3 Channel mode and channel status

A channel can be set to the 4-20 mA mode. In this mode the module checks the channel for an open wire and for saturation. The value read with function code 0x04 is not changed by the mode.

channel status in the 4 - 20 mA mode - open wire below the threshold, normal, saturated

AddressRegisterValues
0x0050 to 0x0057 (80 to 87)Channel mode of channels 1 to 80 = unchecked (factory), 1 = 4-20 mA. A value above 1 is answered with exception 03.
0x0058 to 0x005F (88 to 95)Channel status of channels 1 to 8, read only0 = normal, 1 = open wire, 3 = saturated. The value 2 is reserved.
  • The status is 1 (open wire) when the channel is in mode 1 and the raw sample is below the threshold in 0x0091.
  • The status is 3 (saturated) when the channel is in mode 1 and the raw sample is 0xFFF0 or higher.
  • The status comes from the raw sample, not from the filter. Each channel is sampled every 80 ms.
  • A channel in mode 0 always has the status 0.

In a test an input wire was pulled out. The status of the channel changed to 1 in the same poll in which the value fell to 0, or in the next poll. When the wire was connected again the status returned to 0. Other channels did not change.

NOTE:

The status follows the sample at once. A bad contact can give a status 1 for a single read. Read the status again before you act on it.

This request sets channel 2 to the 4-20 mA mode. Channel 2 is the register 0x0051.

Request: 01 06 00 51 00 01 19 DB
  01             module address 1
  06             function code 0x06
  00 51          register 0x0051, mode of channel 2
  00 01          value 1, 4-20 mA mode
  19 DB          CRC (low byte first)

Response: 01 06 00 51 00 01 19 DB
  01             module address 1
  06             function code 0x06
  00 51          register 0x0051
  00 01          value written, 1
  19 DB          CRC (low byte first)

This request reads the status of the 8 channels. Channel 2 has an open wire.

Request: 01 03 00 58 00 08 C5 DF
  01             module address 1
  03             function code 0x03
  00 58          address of the first status register, 0x0058
  00 08          number of registers, 8
  C5 DF          CRC (low byte first)

Response: 01 03 10 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 E6 D8
  01             module address 1
  03             function code 0x03
  10             number of data bytes to follow, 16
  00 00          channel 1: normal
  00 01          channel 2: open wire
  00 00          channel 3: normal
  00 00          channel 4: normal
  00 00          channel 5: normal
  00 00          channel 6: normal
  00 00          channel 7: normal
  00 00          channel 8: normal
  E6 D8          CRC (low byte first)

The channel modes are settings. The write lock stops a change of a mode (exception 04). The status registers can always be read.

7.4.4 Filter and open-wire threshold

The register 0x0090 sets a low-pass filter for all channels. The value 0 switches the filter off. It is the factory value. Then the value read with function code 0x04 is the input at the moment of the request. A value from 1 to 6 turns the filter on and the value read with function code 0x04 is the filtered value. A value above 6 is answered with exception 03.

The time constant for each value k is in the table.

Value k of 0x0090Time constant
1About 160 ms
2About 320 ms
3About 640 ms
4About 1.3 s
5About 2.6 s
6About 5.1 s

With the filter on, each channel is sampled every 80 ms. The time constant is about 2^k x 80 ms. A channel in mode 1 is sampled in the same way, with or without the filter.

The register 0x0091 is the open-wire threshold in the unit of the value read with function code 0x04. The factory value is 6553, which is 2 mA (mA = 20 x value / 65535). A channel in mode 1 shows the status 1 when its raw sample is below the threshold.

This request sets the threshold to 3 mA. The value is 3 x 65535 / 20 = 9830, which is 0x2666.

Request: 01 06 00 91 26 66 42 6D
  01             module address 1
  06             function code 0x06
  00 91          register 0x0091, open-wire threshold
  26 66          value 0x2666 = 9830, 3 mA
  42 6D          CRC (low byte first)

Response: 01 06 00 91 26 66 42 6D
  01             module address 1
  06             function code 0x06
  00 91          register 0x0091
  26 66          value written, 9830
  42 6D          CRC (low byte first)

This request sets the filter to k = 3.

Request: 01 06 00 90 00 03 C9 E6
  01             module address 1
  06             function code 0x06
  00 90          register 0x0090, filter
  00 03          k = 3
  C9 E6          CRC (low byte first)

Response: 01 06 00 90 00 03 C9 E6
  01             module address 1
  06             function code 0x06
  00 90          register 0x0090
  00 03          value written, 3
  C9 E6          CRC (low byte first)

NOTE:

Check the loop polarity and the channel switch before you power a 4-20 mA loop. A reversed loop carries no current and the channel reads 0. A channel in mode 1 with the value 0 then shows an open wire.

7.5 Analog output models

HUR555 and HUR655 have 5 outputs of 4 - 20 mA. Output 1 to output 5 are the addresses 0x0001 to 0x0005. The outputs are set with function codes 0x06 and 0x10 and read back with 0x04.

7.5.1 Set the outputs (function codes 0x06 and 0x10)

A value from 0 to 1000 sets the output. The value 0 is 4 mA and the value 1000 is 20 mA. A value above 1000 is answered with exception 03.

OutputAddressRegister
10x0001Set value of analog output 1
2 to 50x0002 to 0x0005Set values of analog outputs 2 to 5, in the same order

The module has 5 outputs. A write to 0x0006, 0x0007 or 0x0008 is answered with exception 02.

Use this formula to calculate the value for a current. Examples: 4 mA is 0, 12 mA is 500 and 20 mA is 1000.

value = round((mA - 4) x 1000 / 16)
mA    = value x 16 / 1000 + 4

This request sets output 2 to 14.45 mA. The value is (14.45 - 4) x 1000 / 16 = 653, which is 0x028D.

Request: 01 06 00 02 02 8D E9 0F
  01             module address 1
  06             function code 0x06
  00 02          register 0x0002, analog output 2
  02 8D          value 0x028D = 653, 14.45 mA
  E9 0F          CRC (low byte first)

Response: 01 06 00 02 02 8D E9 0F
  01             module address 1
  06             function code 0x06
  00 02          register 0x0002
  02 8D          value written, 653
  E9 0F          CRC (low byte first)

Function code 0x10 sets several outputs in one request. This request sets output 1 to 4 mA, output 2 to 12 mA and output 3 to 20 mA.

Request: 01 10 00 01 00 03 06 00 00 01 F4 03 E8 F7 F5
  01             module address 1
  10             function code 0x10
  00 01          address of the first output
  00 03          number of outputs, 3
  06             number of data bytes to follow, 6
  00 00          output 1: 0 = 4 mA
  01 F4          output 2: 500 = 12 mA
  03 E8          output 3: 1000 = 20 mA
  F7 F5          CRC (low byte first)

Response: 01 10 00 01 00 03 D1 C8
  01             module address 1
  10             function code 0x10
  00 01          address of the first output
  00 03          number of outputs written, 3
  D1 C8          CRC (low byte first)

If one value of a 0x10 request is above 1000, the module answers with exception 03 and writes none of the values.

The video shows Modbus Poll reading the 8 inputs of an 8AI module with function code 0x04 while output 1 of a 5AO module is set to 500, 750 and back to 0 with function code 0x06. The 5AO output drives a 4-20 mA loop into input 2 of the 8AI: the raw value of input 2 goes from about 13068 (4 mA) to about 39311 (12 mA) and 52479 (16 mA), and back.

7.5.2 Read the outputs (function code 0x04)

Function code 0x04 reads the set values of outputs 1 to 5 back. This request reads the 5 outputs.

Request: 01 04 00 01 00 05 61 C9
  01             module address 1
  04             function code 0x04, read input registers
  00 01          address of the first output
  00 05          number of registers, 5
  61 C9          CRC (low byte first)

Response: 01 04 0A 02 8D 00 00 00 00 00 00 00 00 49 E1
  01             module address 1
  04             function code 0x04
  0A             number of data bytes to follow, 10
  02 8D          output 1: 653
  00 00          output 2: 0
  00 00          output 3: 0
  00 00          output 4: 0
  00 00          output 5: 0
  49 E1          CRC (low byte first)

7.5.3 Settings and monitoring

The settings 0x0080 to 0x0082 and the monitoring registers are the same as for the digital output group. See 7.6 "Settings and monitoring registers". The request frames are shown in 7.2 "Digital output models".

7.5.4 Power-up output values

The registers 0x0040 to 0x0044 hold the value of each output at power-up. They are used when 0x0082 is 1. The value is in the same unit as the set value (0 to 1000). A value above 1000 is answered with exception 03.

OutputAddressRegister
10x0040 (64)Power-up value of output 1, used if 0x0082 is 1
2 to 50x0041 to 0x0044 (65 to 68)Power-up values of outputs 2 to 5, in the same order

The registers 0x0045 to 0x0047 are only there so that a read of 8 registers from 0x0040 works. They always read 0. A write to them is answered with exception 02.

This request reads 8 registers from 0x0040. Output 3 has the power-up value 75, which is 5.2 mA ((5.2 - 4) x 1000 / 16 = 75). The registers 0x0045 to 0x0047 read 0.

Request: 01 03 00 40 00 08 45 D8
  01             module address 1
  03             function code 0x03
  00 40          address of the first register, 0x0040
  00 08          number of registers, 8
  45 D8          CRC (low byte first)

Response: 01 03 10 00 01 00 01 00 4B 00 00 00 01 00 00 00 00 00 00 47 FD
  01             module address 1
  03             function code 0x03
  10             number of data bytes to follow, 16
  00 01          output 1: 1
  00 01          output 2: 1
  00 4B          output 3: 75 (0x004B)
  00 00          output 4: 0
  00 01          output 5: 1
  00 00          0x0045: always 0
  00 00          0x0046: always 0
  00 00          0x0047: always 0
  47 FD          CRC (low byte first)

This request sets the power-up value of output 3 to 75.

Request: 01 06 00 42 00 4B 69 E9
  01             module address 1
  06             function code 0x06
  00 42          register 0x0042, power-up value of output 3
  00 4B          value 0x004B = 75, 5.2 mA
  69 E9          CRC (low byte first)

Response: 01 06 00 42 00 4B 69 E9
  01             module address 1
  06             function code 0x06
  00 42          register 0x0042
  00 4B          value written, 75
  69 E9          CRC (low byte first)

NOTE:

Earlier versions of this manual printed two different CRC values for this request. The frame above has the correct CRC.

7.5.5 Safe values for the watchdog

The registers 0x0048 to 0x004C hold the safe value of outputs 1 to 5 for the communication watchdog. Use a value from 0 to 1000 or 0xFFFF to keep the last value. The factory value is 0xFFFF. The registers 0x004D to 0x004F read 0 and a write is answered with exception 02. See 8.3 "Communication watchdog".

7.6 Settings and monitoring registers

Every module has the same settings and monitoring registers. The settings 0x0080 to 0x0091 are stored in the module. The monitoring registers 0x00A0 to 0x00A8 are read only.

7.6.1 Data types

The data types of the registers are in the table: every register is an unsigned 16-bit value, except the monitoring values at 0x00A0 to 0x00A7, which are unsigned 32-bit values in two registers.

DataFunction codesType
Outputs and inputs (coils, discrete inputs)01, 02, 05, 151 bit per channel
Registers 0x0001 to 0x0091, 0x00C0 to 0x00E303, 04, 06, 16UInt16, unsigned 16-bit
Monitoring 0x00A0 to 0x00A703UInt32, unsigned 32-bit, two registers, high register first

The following table lists the settings. A register that belongs to another group reads 0 and a write to it is answered with exception 02.

AddressSettingValuesModules
0x0080 (128)Modbus address1 to 247, factory 1. Other values are answered with exception 03. A broadcast write moves every module on the line.All
0x0081 (129)Keep the output values over an automatic restart1 = on (factory), 0 = offAll
0x0082 (130)Use the power-up values of the block 0x0040 to 0x00471 = on, 0 = off (factory)All
0x0083 (131)Restart flagRead onlyAll
0x0084 (132)Broadcast mode0, 1 or 2. See 8.5 "Broadcast".All
0x0085 (133)Baud rate, applied after the next start0 to 5. See 8.1 "Line settings".All
0x0086 (134)Framing, applied after the next start0 = 8N1, 1 = 8E1, 2 = 8O1. See 8.1 "Line settings".All
0x0089 (137)Write lock0 = off (factory), 1 = on. See 8.2 "Write lock".All
0x008A (138)Write lock keyWrite 0x4C4B to open the write window. Reads 0.All
0x008B (139)Response turnaround in ms1 to 20, factory 5. See 8.1 "Line settings".All
0x008C (140)ReservedReads 0. A write is answered with exception 02.All
0x008D (141)Communication watchdog in s0 = off (factory), 1 to 3600. See 8.3 "Communication watchdog".8DO, 5AO
0x008E (142)Automatic restart in hours0 = off, 1 to 255, factory 24. See 8.4 "Automatic restart".All
0x008F (143)Input debounce in ms0 = off (factory), 1 to 255. See 7.3 "Digital input models".8DI
0x0090 (144)Analog filter k0 = off (factory), 1 to 6. See 7.4 "Analog input models".8AI
0x0091 (145)Open-wire thresholdFactory 6553 (2 mA). See 7.4 "Analog input models".8AI

The write lock stops a change of most of these settings. See 8.2 "Write lock".

Examples of read and write requests for the settings are in the sections of the groups. See 7.2 "Digital output models" and 7.3 "Digital input models".

7.6.2 Monitoring registers

The monitoring registers are read only. They are read with function code 0x03. Each is a 32-bit value in two registers.

AddressRegisterMeaning
0x00A0 (160)Modbus read counterThe number of read requests that the module has answered since the start. The value increases by 1 after each answer.
0x00A2 (162)Second counter, uptimeThe seconds since the start. The module restarts itself after the number of hours set in 0x008E (factory 24 h = 86400 s). See 8.4 "Automatic restart".
0x00A4 (164)Original firmware stampThe stamp that was written when the module was produced. It has the firmware date and version.
0x00A6 (166)Firmware stampThe stamp of the firmware that runs now. It differs from the original stamp when the firmware was updated in the field.
0x00A8 (168)ReservedReads 0.

7.6.3 Firmware version stamp

A stamp is a 32-bit value of 4 bytes. The first byte is the day. The second byte holds the month in its high 4 bits and the high 4 bits of the year in its low 4 bits. The third byte is the low byte of the year. The fourth byte is the firmware version in BCD.

StampDayMonthYearVersion byte
0x1A37E4010x1A = 260x3 = 30x7E4 = 20200x01
0x11B7EA300x11 = 170xB = 110x7EA = 20260x30 = version 3.0

The second stamp is the firmware 3.0 of 17 November 2026.

This request reads the four monitoring values 0x00A0 to 0x00A6. The module has answered 13 read requests, it has run for 2740 seconds and its firmware was updated in the field.

Request: 01 03 00 A0 00 08 44 2E
  01             module address 1
  03             function code 0x03
  00 A0          address of the first register, 0x00A0 (160)
  00 08          number of registers, 8 (four 32-bit values)
  44 2E          CRC (low byte first)

Response: 01 03 10 00 00 00 0D 00 00 0A B4 1A 37 E4 01 11 B7 EA 30 C7 C9
  01             module address 1
  03             function code 0x03
  10             number of data bytes to follow, 16
  00 00 00 0D    0x00A0: read counter, 13
  00 00 0A B4    0x00A2: uptime, 0x0AB4 = 2740 s
  1A 37 E4 01    0x00A4: original stamp, 26.03.2020
  11 B7 EA 30    0x00A6: firmware stamp, 17.11.2026 v3.0
  C7 C9          CRC (low byte first)

7.7 Diagnostic block

The registers 0x00C0 to 0x00D8 are diagnostic registers. They are read with function code 0x03. A single request can read all 25 registers.

The counters are sticky until they are cleared. Write 0 to 0x00C0 to clear them. The register 0x00C8 counts how often they were cleared.

AddressNameMeaning
0x00C0 (192)Restart cause0 after a firmware update or a software restart, 12 after a power-on.
0x00C1 (193)Longest loopThe longest pass of the main program loop in ms.
0x00C2 (194)Requests answeredThe number of requests that were answered.
0x00C3 (195)CRC errorsThe number of frames that were dropped because of a CRC error.
0x00C4 (196)Frames rejectedThe number of rejected frames. Frames of other modules on a shared line are counted too.
0x00C5 (197)Memory writesThe number of writes to the settings memory.
0x00C6 (198)Build identifierIdentifies the firmware build. Two builds with the same stamp have different identifiers.
0x00C7 (199)Line error flagsFlags that stay set: bit 0 overrun, bit 1 receive buffer full, bit 2 transmit buffer full.
0x00C8 (200)Number of clearsHow many times 0x00C0 was written with 0.
0x00C9 (201)Re-synchronisationsThe number of times the module found the start of a frame again.
0x00CA (202)BootloaderThe bootloader version in the high byte and capability bits in the low byte (0x011F on current modules).
0x00CB (203)Exceptions sentThe number of exception responses that the module has sent.
0x00CC (204)Register map versionThe register map version in the high byte and capability bits in the low byte. This firmware reads 0x04FF.
0x00CD (205)Hardware typeThe hardware code of the firmware image. See the table below.
0x00CE (206)Overrun errorsThe number of overrun errors of the serial line.
0x00CF (207)Receive buffer fullThe number of times the receive buffer was full.
0x00D0 (208)Transmit buffer fullThe number of responses that were dropped because the transmit buffer was full.
0x00D1 (209)Write lock stateThe high byte is the seconds left of the write window, or 0xFF when the lock is off. The low byte is the number of writes that were refused while locked.
0x00D2 (210)Parity errorsThe number of bytes that were dropped because of a parity error (8E1 and 8O1).
0x00D3 (211)Framing errorsThe number of bytes that were dropped because of a stop bit error.
0x00D4 to 0x00D6 (212 to 214)ReservedRead 0.
0x00D7 (215)Watchdog state1 after a watchdog timeout until the next output write. Output modules only. Other modules read 0.
0x00D8 (216)Watchdog timeoutsThe number of watchdog timeouts. Writing 0 to 0x00C0 clears it.

Only the register 0x00C0 can be written, and only with the value 0. The write lock does not stop it.

This request clears the diagnostic counters.

Request: 01 06 00 C0 00 00 89 F6
  01             module address 1
  06             function code 0x06
  00 C0          register 0x00C0
  00 00          value 0, clear the counters
  89 F6          CRC (low byte first)

Response: 01 06 00 C0 00 00 89 F6
  01             module address 1
  06             function code 0x06
  00 C0          register 0x00C0
  00 00          value written, 0
  89 F6          CRC (low byte first)

The video shows Modbus Poll reading the 25 registers of the diagnostic block of an 8DO module with function code 0x03 (0x00C0 to 0x00D8; the program shows the addresses in decimal as 192 to 216 and the values in hex).

7.7.1 Register map version and capability bits

The register 0x00CC tells what a module can do. The high byte is the register map version. This firmware has the version 4. The low byte holds capability bits.

The capability bits are in the table. This firmware sets all 8 bits.

BitCapability
0x01Exception responses
0x02Back-to-back requests to the same module
0x04Firmware update over RS485 (0x00E0 to 0x00E3)
0x08Broadcast mode 0x0084
0x10Response turnaround of 5 ms
0x20Write lock 0x0089 and 0x008A
0x40Baud rate register 0x0085
0x80Turnaround register 0x008B

A module with the old firmware 0.3 gives no answer or an exception for 0x00CC. This identifies an old module.

7.7.2 Hardware type

The code of each group is in the table.

GroupCode in 0x00CD
8DO15
8DI16
8AI17
5AO18

Modules that were delivered with the old bootloader report the code 7 for all groups.

This request reads the register map version and the hardware type. The module is an 8DO module (15 = 0x000F).

Request: 01 03 00 CC 00 02 04 34
  01             module address 1
  03             function code 0x03
  00 CC          address of the first register, 0x00CC
  00 02          number of registers, 2
  04 34          CRC (low byte first)

Response: 01 03 04 04 FF 00 0F 8B 37
  01             module address 1
  03             function code 0x03
  04             number of data bytes to follow, 4
  04 FF          0x00CC: 0x04FF, map version 4
  00 0F          0x00CD: 0x000F, hardware type 15
  8B 37          CRC (low byte first)

7.8 Exception responses

A module answers a request that it cannot carry out with an exception response. The response has 5 bytes: the module address, the function code with bit 7 set (0x80 added), the exception code and the CRC.

CodeNameReason
01Illegal functionThe function code does not exist for this group. Example: function code 0x05 sent to an 8DI module.
02Illegal data addressThe start address is outside the block, or the register cannot be written. Example: write to 0x0006 of an output module with 5 outputs. Update commands are function code 0x06 only, so function code 0x10 to 0x00E0 gets exception 02.
03Illegal data valueThe quantity runs past the block or the value is outside its range. Example: value 1001 for an analog output.
04Device failureThe write was refused because the write lock is on. See 8.2 "Write lock".

These requests were answered with exceptions in a test. The CRC of each frame is included.

8DI, function code 0x05 not supported: 07 05 00 01 FF 00 DD 9C
  07             module address 7
  05             function code 0x05
  00 01          address 0x0001
  FF 00          0xFF00
  DD 9C          CRC (low byte first)
Exception 01: 07 85 01 63 51
  07             module address 7
  85             0x05 + 0x80
  01             exception code 01
  63 51          CRC (low byte first)

8AI, start address outside the block: 02 04 00 09 00 01 E1 FB
  02             module address 2
  04             function code 0x04
  00 09          address 0x0009 (the block ends at 0x0008)
  00 01          number of registers, 1
  E1 FB          CRC (low byte first)
Exception 02: 02 84 02 32 C1
  02             module address 2
  84             0x04 + 0x80
  02             exception code 02
  32 C1          CRC (low byte first)

8AI, quantity runs past the block: 02 04 00 01 00 09 61 FF
  02             module address 2
  04             function code 0x04
  00 01          address 0x0001
  00 09          number of registers, 9
  61 FF          CRC (low byte first)
Exception 03: 02 84 03 F3 01
  02             module address 2
  84             0x04 + 0x80
  03             exception code 03
  F3 01          CRC (low byte first)

5AO, value 1001 is above 1000: 05 06 00 01 03 E9 18 F0
  05             module address 5
  06             function code 0x06
  00 01          register 0x0001
  03 E9          value 1001
  18 F0          CRC (low byte first)
Exception 03: 05 86 03 43 A0
  05             module address 5
  86             0x06 + 0x80
  03             exception code 03
  43 A0          CRC (low byte first)
  • A broadcast request never gets an exception.
  • A frame with a wrong CRC is ignored. The module does not answer and the register 0x00C3 counts it.
  • The register 0x00CB counts the exception responses that a module has sent.
  • Function code 0x10 checks all registers first. If one gets an exception, nothing is written.

NOTE:

Firmware 3.0 answers a request outside the registers of the group with an exception. Modules with firmware 0.3 answered such requests with wrong data or not at all.

8. Communication and Protection Settings

These settings change how a module behaves on the line and what it does when the master stops. All of them are Modbus registers. Each setting is stored in the module and kept after a power-off.

The registers are listed in 7.6 "Settings and monitoring registers". The settings are new in firmware 3.0. A module with the old firmware 0.3 does not have them.

8.1 Line settings

The baud rate and the framing are set with the registers 0x0085 and 0x0086. A new value is stored at once. It is applied when the module starts the next time. The build default is 115200 bit/s with 8N1.

changing the baud rate or framing - write 0x0085 / 0x0086, start again, change the master, read back

The values of 0x0085 are in the table. The value 0 is the build default of 115200 bit/s.

Value of 0x0085Baud rate
0Build default, 115200 bit/s
19600 bit/s
219200 bit/s
357600 bit/s
4115200 bit/s
5230400 bit/s

Use only the values of the table.

The values of 0x0086 are in the table. Each framing has 8 data bits and 1 stop bit.

Value of 0x0086Framing
08N1 (no parity)
18E1 (even parity)
28O1 (odd parity)

A value above 2 is answered with exception 03. Bytes with a parity error or a stop bit error are dropped. The registers 0x00D2 and 0x00D3 count them.

The response turnaround is the register 0x008B. It is the time in ms from the end of a request to the first byte of the response. It can be 1 to 20 ms and the factory value is 5. A value of 0 or above 20 is answered with exception 03. The setting is used at once. The module never answers faster than 3.5 characters at the active baud rate.

At 1 ms the shortest first byte was about 2 ms after the request. At 5 ms it was 6.8 ms or more. The values include the PC and its USB adapter.

This request selects 9600 bit/s. The module keeps answering at the old speed until it starts again.

Request: 01 06 00 85 00 01 59 E3
  01             module address 1
  06             function code 0x06
  00 85          register 0x0085, baud rate
  00 01          value 1, 9600 bit/s
  59 E3          CRC (low byte first)

Response: 01 06 00 85 00 01 59 E3
  01             module address 1
  06             function code 0x06
  00 85          register 0x0085
  00 01          value written, 1
  59 E3          CRC (low byte first)

This request selects even parity (8E1).

Request: 01 06 00 86 00 01 A9 E3
  01             module address 1
  06             function code 0x06
  00 86          register 0x0086, framing
  00 01          value 1, 8E1
  A9 E3          CRC (low byte first)

Response: 01 06 00 86 00 01 A9 E3
  01             module address 1
  06             function code 0x06
  00 86          register 0x0086
  00 01          value written, 1
  A9 E3          CRC (low byte first)

Follow these steps to change the line settings.

  1. Write the new value to 0x0085 or 0x0086. The module still answers at the old setting.
  2. Start the module again, for example by switching its power off and on.
  3. Change the setting of the master to the new baud rate or framing.
  4. Read 0x0085 and 0x0086 to check the new values.

WARNING:

All modules on one line need the same baud rate and framing. A module on a different setting only answers in its own setting.

NOTE:

The firmware update with the old trigger frame always uses 8N1 at the baud rate of the module, whatever 0x0086 says.

The write lock stops a change of these settings (exception 04). See 8.2 "Write lock".

8.2 Write lock

The write lock protects the settings against a change by mistake. When the lock is on, a write to a setting is answered with exception 04.

AddressRegisterValues
0x0089 (137)Write lock0 = off (factory), 1 = on. The value is stored.
0x008A (138)Write lock keyWrite 0x4C4B to open a write window of 120 s. Write 0 to close it. Reads 0.

The window is also open for 120 s after every start of the module. A module can be set up again after a start without the key.

write lock on - 120 s window after a start and after the key 0x4C4B, locked: exception 04

When the lock is on and the window is closed, these writes are answered with exception 04:

  • the settings 0x0080 to 0x0086, 0x0089, 0x008B and 0x008D to 0x0091
  • the power-up values 0x0040 and following and the safe values 0x0048 and following of an output module
  • the channel modes 0x0050 to 0x0057 of an 8AI module
  • the start of a firmware update (0x00E0 written with 1)

These are always free:

  • the outputs (function codes 0x05, 0x0F, and 0x06 or 0x10 for the data block)
  • the reset of the 8DI pulse counters (0x0040 and following written with 0)
  • the diagnostic reset (0x00C0 written with 0)
  • the key register 0x008A
  • the commands COMMIT, ABORT and RESUME of a firmware update
  • all reads

A function code 0x10 request that contains a locked register is refused as a whole with exception 04. Nothing is written.

The register 0x00D1 shows the state of the lock. The high byte is the seconds left in the window, or 0xFF when the lock is off. The low byte counts the writes that were refused.

  1. Write 1 to 0x0089. The lock is on. If the module started less than 120 s ago, the start-up window is still open for the rest of the 120 s.
  2. To change a setting later, write 0x4C4B to 0x008A. The window is open for 120 s.
  3. Change the setting. Write 0 to 0x008A to close the window at once.

This request opens the write window.

Request: 01 06 00 8A 4C 4B DC D7
  01             module address 1
  06             function code 0x06
  00 8A          register 0x008A, write lock key
  4C 4B          key 0x4C4B
  DC D7          CRC (low byte first)

Response: 01 06 00 8A 4C 4B DC D7
  01             module address 1
  06             function code 0x06
  00 8A          register 0x008A
  4C 4B          value written, 0x4C4B
  DC D7          CRC (low byte first)

Request, write lock on: 01 06 00 89 00 01 99 E0
  01             module address 1
  06             function code 0x06
  00 89          register 0x0089, write lock
  00 01          value 1, lock on
  99 E0          CRC (low byte first)

A write to a locked setting is answered like this. The module has the address 3 in the example.

Request, lock on, window closed: 03 06 00 81 00 01 19 C0
  03             module address 3
  06             function code 0x06
  00 81          register 0x0081
  00 01          value 1
  19 C0          CRC (low byte first)
Response: 03 86 04 E2 63
  03             module address 3
  86             0x06 + 0x80
  04             exception code 04
  E2 63          CRC (low byte first)

NOTE:

The update commands and the key are refused on broadcast addresses.

WARNING:

Some gateways send Modbus requests from a LoRaWAN downlink to the module without a register filter. Settings, including the write lock and its key, can then be written over LoRaWAN. Check who can send a downlink to the gateway.

8.3 Communication watchdog

The watchdog sets the outputs to safe values when the master stops polling the module. It is available in the output modules: 8DO (HUR118, HUR218, HUR128, HUR228) and 5AO (HUR555, HUR655). In an 8DI or 8AI module the register 0x008D reads 0 and a write is answered with exception 02.

communication watchdog - requests restart it, after the watchdog time the outputs go to the safe values

AddressRegisterValues
0x008D (141)Watchdog time in seconds0 = off (factory), 1 to 3600. A value above 3600 is answered with exception 03. The setting is stored and used at once.
0x0048 to 0x004F (72 to 79)Safe value of each output (8 outputs of an 8DO module, 5 outputs 0x0048 to 0x004C of a 5AO module)8DO: 0 or 1. 5AO: 0 to 1000. 0xFFFF = keep the last value (factory). Any other value is answered with exception 03.
0x00D7 (215)Watchdog state, read only1 while the outputs are in the safe state.
0x00D8 (216)Number of watchdog timeouts, read onlyCleared when 0 is written to 0x00C0.

The watchdog works like this.

  • Every valid request that is addressed to the module restarts the watchdog timer. Read requests count too. A request that was answered with an exception counts as well.
  • A broadcast request, a request to another address and a frame with a wrong CRC do not restart the timer.
  • When the time has passed, every output takes its safe value. An output with 0xFFFF keeps its last value. The register 0x00D7 becomes 1 and 0x00D8 increases by 1.
  • The time is counted in whole seconds. The timeout happens between S and S + 1 seconds after the last request. In a test with S = 3 there was no timeout 2.6 s after the last request and a timeout at 4.4 s.
  • The outputs stay in the safe state until the master writes an output again: function code 0x05 or 0x0F for 8DO, 0x06 or 0x10 for 5AO to 0x0001 to 0x0005. Read requests restart the timer but do not leave the safe state.
  • The timer starts at power-up. The safe values are not applied at start-up. The power-up rules of 0x0081 and 0x0082 apply. The safe state is not stored.

NOTE:

Set the watchdog time longer than the longest pause between two requests of your master to this module. Otherwise the outputs go to the safe state during normal operation.

This request sets the watchdog time to 10 s (0x000A).

Request: 01 06 00 8D 00 0A 99 E6
  01             module address 1
  06             function code 0x06
  00 8D          register 0x008D, watchdog time
  00 0A          10 seconds
  99 E6          CRC (low byte first)

Response: 01 06 00 8D 00 0A 99 E6
  01             module address 1
  06             function code 0x06
  00 8D          register 0x008D
  00 0A          value written, 10
  99 E6          CRC (low byte first)

This request sets the safe values of outputs 1 and 2 of an 8DO module. Output 1 goes on and output 2 keeps its last value.

Request: 01 10 00 48 00 02 04 00 01 FF FF A6 49
  01             module address 1
  10             function code 0x10
  00 48          address of the first safe value, 0x0048
  00 02          number of registers, 2
  04             number of data bytes to follow, 4
  00 01          output 1: 1, on
  FF FF          output 2: 0xFFFF, keep the last value
  A6 49          CRC (low byte first)

Response: 01 10 00 48 00 02 C1 DE
  01             module address 1
  10             function code 0x10
  00 48          address of the first register
  00 02          number of registers written, 2
  C1 DE          CRC (low byte first)

The write lock stops a change of the watchdog time and of the safe values (exception 04). See 8.2 "Write lock".

8.4 Automatic restart

A module restarts itself after a number of hours of uptime. This keeps a module stable over a long time. The register 0x008E sets the number of hours.

automatic restart - the uptime 0x00A2 reaches the hours of 0x008E, the module restarts

AddressRegisterValues
0x008E (142)Automatic restart in hours0 = off, 1 to 255. The factory value is 24, which is the fixed 86400 s of the old firmware. A value above 255 is answered with exception 03.
0x00A2 (162)Uptime in seconds, read onlyThe module restarts when this value reaches the hours of 0x008E in seconds (24 h = 86400 s).
  • The setting is stored and used at once.
  • If the uptime is already higher than the new time, the module restarts within seconds. In a test, 0x008E = 1 was written at an uptime above 1 hour and the module restarted after 13 s.
  • A value of 0 switches the automatic restart off.
  • With 0x0081 = 1 the module keeps its output values over the restart. An 8DI module also keeps its pulse counters.
  • After the restart the register 0x00C0 reads 0, the same as after any software restart.

This request sets the automatic restart to 24 hours (0x0018).

Request: 01 06 00 8E 00 18 E9 EB
  01             module address 1
  06             function code 0x06
  00 8E          register 0x008E, automatic restart
  00 18          24 hours
  E9 EB          CRC (low byte first)

Response: 01 06 00 8E 00 18 E9 EB
  01             module address 1
  06             function code 0x06
  00 8E          register 0x008E
  00 18          value written, 24
  E9 EB          CRC (low byte first)

The write lock stops a change of the time (exception 04). See 8.2 "Write lock".

8.5 Broadcast

A master can send one request to all modules of a line. Two broadcast addresses exist.

broadcast address 0 and 0xFF - writes applied, reads by the broadcast mode 0x0084

AddressBehaviour
0The standard Modbus broadcast. A module never answers a request to address 0, in any mode. Writes are applied and reads are ignored.
0xFFKept for compatibility. PC tools use it to find a module. The answer depends on the broadcast mode 0x0084.

The register 0x0084 is the broadcast mode. It applies to the address 0xFF.

Value of 0x0084Mode
0Discovery (factory). Broadcast reads are answered. The answer has the source address 0xFF.
1Only function code 0x03 reads are answered.
2Standard. Broadcast reads are not answered.
  • Broadcast writes (function codes 0x05, 0x06, 0x0F and 0x10) to 0 or 0xFF are applied in every mode. They are never answered.
  • A broadcast never gets an exception, even if the request is wrong.
  • The update commands (0x00E0) and the write lock key (0x008A) are refused on a broadcast.
  • A broadcast request does not restart the watchdog timer.

WARNING:

Several modules on one line answer a broadcast read at the same time. The answers collide. A broadcast write of 0x0080 moves every module on the line to the same address.

This request reads the module address with the compatibility address 0xFF. A module with the address 3 answers with the source address 0xFF when it is the only module on the line.

Request: FF 03 00 80 00 01 90 3C
  FF             broadcast address 0xFF
  03             function code 0x03
  00 80          register 0x0080, module address
  00 01          number of registers, 1
  90 3C          CRC (low byte first)

Response: FF 03 02 00 03 D1 91
  FF             source address 0xFF
  03             function code 0x03
  02             number of data bytes to follow, 2
  00 03          module address, 3
  D1 91          CRC (low byte first)

This request writes the watchdog time of all output modules of the line with the standard broadcast address 0. There is no answer.

Request: 00 10 00 8D 00 01 02 00 1E 35 15
  00             broadcast address 0
  10             function code 0x10
  00 8D          address of the register, 0x008D, watchdog time
  00 01          number of registers, 1
  02             number of data bytes to follow, 2
  00 1E          30 seconds
  35 15          CRC (low byte first)
No response. The modules apply the value.

9. ZTerminal Software

ZTerminal for Windows is the REDZ configuration and monitoring software for the HUR RTU modules. It talks to the modules over the RS485 line through a serial port of the PC.

  • ZTerminal runs on 64-bit Windows. It is one file, ZTerminal.exe. Unpack it and run it: nothing is installed.
  • You need a serial port on the PC, for example a USB to RS485 converter, connected to the RS485 line of the module. For the wiring see 3.2 "Power and RS485 wiring".
  • The full user guide of ZTerminal for Windows is at redzsoftware.com/zterminal/windows-manual/.

ZTerminal also has pages for other REDZ products. This chapter describes only the pages for the HUR RTU modules.

9.1 Connecting

  1. Open the serial port of the converter in the connection strip of the ZTerminal window. Use the same speed and the same framing as the module.
  2. On the HUR IO page, choose the module type in the variant list: 8DO, 8DI, 8AI or 5AO. The module does not report its type, so the choice is yours.
  3. Type the Modbus address of the module in the unit box. It starts at 1. Every request on the page goes to that address.
  4. The Read settings button reads the common settings of the module. The line next to the title then shows the Modbus address, the firmware version, the number of reads the module has answered and its uptime.

A new module runs at 115200 bit/s, 8N1. If the speed or the framing of the module was changed, use the changed values. See 8.1 "Line settings".

ZTerminal has a page for the HUR IO modules. The page works with four module types: 8DO (eight digital outputs), 8DI (eight digital inputs), 8AI (eight analog inputs) and 5AO (five analog outputs). It shows only the parts that belong to the type you select.

The types and the models: 8DO is HUR118, HUR218, HUR128 and HUR228. 8DI is HUR318 and HUR418. 8AI is HUR518 and HUR618. 5AO is HUR555 and HUR655.

NOTE:

After every write on this page, ZTerminal reads the values back. Check that the values read back are the ones you wanted. If a write failed, the session log at the bottom of the window gives the reason.

While a request runs, a thin bar moves under the header. If a request fails, the reason appears in red under the header.

NOTE:

If ZTerminal says that this model may not have a function, check the module type and the unit id first.

9.2 Detect type and Find unit id

The Detect type button asks the module a few read-only questions and selects the type that answered. The result sentence appears on the Diagnostics tab, and the session log lists each question. The result is only a suggestion: change the variant if you know better.

If nothing answers, the result says: Nothing answered. Check the unit id and the line, or pick the variant by hand.

The Find unit id button asks the module for its own Modbus address with a broadcast request. When the module answers, ZTerminal shows the address next to the title and puts it in the unit box. If nothing answers, a red message appears and the unit box keeps its value.

Use Find unit id with only one module on the line.

If the broadcast mode setting (0x0084) of the module is 2, the module does not answer broadcast reads and Find unit id finds nothing. See 8.5 "Broadcast".

9.3 Changing the Modbus address

The Modbus address row above the tabs is the same for all four types. Read settings fills the box with the current address.

  1. Type the new address, 1 to 247. Any other value stops with the message Modbus address must be 1..247, and nothing is sent.
  2. Click Write address. ZTerminal writes the address at once. There is no confirmation window.
  3. When the module confirms, ZTerminal switches the unit box to the new address and reads the settings again from it. The line next to the title shows the result.

If the write fails, the unit box keeps the old address. To undo a change, write the old address back in the same way while the unit box holds the new one.

WARNING:

While the write lock is on, the module refuses writes of settings, such as a new address, and answers with exception 04. Open the write window first. See 8.2 "Write lock".

9.4 The tabs

The page has three tabs: I/O, Output settings and Diagnostics. The Output settings tab appears only for 8DO and 5AO.

When you open a tab that has not been read yet, ZTerminal reads it once by itself. This only reads: nothing is written without a click.

9.5 Digital outputs (8DO)

8DO: the Digital card lists the outputs 1 to 8. The Read button reads the outputs. Each line shows ON or off and a tick box set to the same state.

ZTerminal 5.0.0 HUR IO page, I/O tab of the 8DO module at address 3 (v3.0): outputs 1 to 8 off

  • The Toggle button of a line switches that output to the opposite of its tick box and reads the outputs back.
  • The Write all from checkboxes button sets all eight outputs as the tick boxes show and reads the outputs back.

Both writes act on the live outputs at once, without a confirmation window. To undo, set the tick boxes back and write again.

9.6 Digital inputs and pulse counters (8DI)

8DI: the Digital card lists the inputs 1 to 8, each ON or off. The pulse counter card shows one counter for each input. The module counts each rising edge of an input. On this card the counters are read only.

ZTerminal 5.0.0 HUR IO page, I/O tab of the 8DI module at address 7 (v3.0): Digital card, inputs 1 to 8 off

A bouncing contact can add extra counts, and a power cut sets the counters to zero.

The check box Keep counters over the daily restart decides whether the counters survive the daily restart of the module. A power cut still sets them to zero. Tick or clear the box and click the Write next to it: ZTerminal writes only this setting and reads the settings back.

The reset of a counter and the debounce time of the inputs are written with Modbus requests. See 7.3 "Digital input models".

9.7 Analog inputs (8AI)

8AI: the Analog card lists the channels 1 to 8. The Read button reads them. Each line shows the raw reading, 0 to 65535, and the converted value.

ZTerminal 5.0.0 HUR IO page, I/O tab of the 8AI module at address 2 (v3.0): channel 2 13068 = 3.99 mA

Choose 0 - 20 mA or 0 - 10 V in the input type list to match how the input is wired. 65535 is 20 mA or 10 V. The choice only changes how the reading is shown: nothing is written to the module.

After each read, a line tells you how many channels answered. A channel that did not answer is shown empty.

The 4 - 20 mA mode with open wire status, the status of each channel and the filter of the analog inputs are written with Modbus requests. See 7.4 "Analog input models".

9.8 Analog outputs (5AO)

5AO: the Analog card lists the outputs 1 to 5. The Read button reads the value each output is set to. Each line has a box and a Write button.

ZTerminal 5.0.0 HUR IO page, I/O tab of the 5AO module at address 5 (v3.0): outputs 1 to 5 at 0

  1. Type the new value, 0 to 1000, in the box of the line. A value outside 0 to 1000 stops with a message and nothing is sent.
  2. Click Write. ZTerminal sets the output at once, without a confirmation window, and reads the outputs back. The line shows the value the module now reports. To undo, write the earlier value back.

The value 0 to 1000 is the range 4 - 20 mA: value = (mA - 4) x 1000 / 16.

9.9 Output settings (8DO and 5AO)

The Output settings tab (8DO and 5AO) decides what the outputs do when the module starts. Its card On restart and power-up has two boxes.

ZTerminal 5.0.0 HUR IO page, Output settings tab of the 8DO at address 3: restore ticked, power-up values 0

  • Restore outputs after the daily restart: whether the outputs return to their earlier state after the daily restart of the module.
  • Start outputs from the power-up values: after a power cut, each output starts from its power-up value in the card below.

Tick or clear both boxes and click the Write under the boxes. ZTerminal writes both settings and reads the settings back. To undo, change the boxes and write again.

The card below lists the power-up values: eight for 8DO, named Repower register 1 to 8, and five for 5AO, named Power-up value 1 to 5. The Read button reads them.

8DO: each value is 1 (the output starts on) or 0 (the output starts off). 5AO: each value is the start value of the output, 0 to 1000.

Type the value in the box of the row and click the Write of the row. Writing here does not move the live output. The value is used after the next power cut, if Start outputs from the power-up values is ticked. To undo, write the earlier value back.

9.10 Diagnostics

The Diagnostics tab shows the number of reads the module has answered, its uptime, the original firmware version and the updated version, or not upgraded. Press Read settings to refresh the values.

The tab also shows the result of the last Detect type.

9.11 Settings of firmware 3.0 and firmware update

The diagnostic block of the module, with the error counters and the restart cause, is read with Modbus requests. See 7.7 "Diagnostic block".

The line settings, the write lock, the communication watchdog and the other settings of firmware 3.0 are written with Modbus requests from your master. See chapter 8 "Communication and Protection Settings".

To update the firmware of a module, see chapter 10 "Firmware Upgrade".

10. Firmware Upgrade

10.1 Update over RS485 (A/B)

HUR modules with firmware 3.0 and the A/B bootloader can be updated over the same RS485 line, with Modbus requests. The new firmware is first loaded into a second memory area. The running firmware is replaced only after the new image is complete and checked.

Modules with firmware 3.0 have the A/B bootloader. ZTerminal 5.0.0 does not update them; the update tool for these modules is planned for a later release of ZTerminal for Windows. Until then, contact REDZ support for a firmware update of a module with firmware 3.0.

A/B update states IDLE, SESSION, COMPLETE, COMMIT_PENDING and the commands START, COMMIT, ABORT, RESUME

  • If you abort the update, or if the power fails while the image is loaded, the module keeps the running firmware.
  • If the power fails while the module switches to the new firmware, the module finishes the switch at the next start and runs the new firmware.
  • The image is checked before the switch. The hardware type and the image CRC must match, or the image is refused and the running firmware stays.

10.2 Legacy update

Modules with firmware 0.x (delivered with the legacy bootloader) are updated to firmware 3.0 with ZTerminal for Windows 5.0.0 over the RS485 line.

10.2.1 Which file

Use the LEGACY file of the module group made for the speed the module uses now, for example HUR_8_DigitalIn_v3.0_17112026_LEGACY_115200BAUD.bin for an 8DI module at 115200 bit/s (files for 9600, 19200, 57600 and 115200 bit/s). ZTerminal accepts only HUR legacy files but cannot tell the groups apart, so check the group in the file name.

10.2.2 Update steps

  1. Connect ZTerminal to the RS485 line: Serial, the COM port of the RS485 adapter, the speed and the framing the module uses now, then click Connect.
  2. Open the Firmware page, choose the device HUR, click Choose file... and select the LEGACY file. The page shows the file name and the number of packets.
  3. Keep the method Power cycle and click Start upload.
  4. When the screen shows Turn the device off and on, switch the power supply of the module off, wait a few seconds and switch it on again within the countdown. Switch only the power supply; do not unplug the RS485 cable or the adapter.
  5. When the screen shows Turn it off and on once more, switch the power supply off and on again. ZTerminal then writes the file at 19200 bit/s.
  6. Wait until the screen shows Done. The device runs the new firmware. On the bench, 291 packets took 80 s.
  7. Click Disconnect and then Connect before you use the HUR pages again: after the update the port stays at 19200 bit/s.

ZTerminal 5.0.0 Firmware page, HUR, Power cycle: first step 'Turn the device off and on' with the countdown

ZTerminal 5.0.0 Firmware page: second step 'Turn it off and on once more'

ZTerminal 5.0.0 Firmware page: writing, 160 / 291 packets

ZTerminal 5.0.0 Firmware page: all steps done, 'The device runs the new firmware'

WARNING:

If writing stops halfway, choose the method Recovery, keep the same file, switch the module off and on, and click Start upload again.

WARNING:

The trigger of the legacy update has no address. At power-up, all modules of the same hardware type on the same line and on the same power supply enter the update window and accept the image. Update with only one module on the line.

After the update the module runs firmware 3.0 and keeps its Modbus address; the diagnostic block reports the hardware type 7 (legacy bootloader).

NOTE:

After a legacy update, the module still uses the legacy update for later updates. Only a programmer installs the A/B bootloader. The programmer also resets the stored settings to the factory values.

11. Ordering Information

Order the module by its model name. The models come in pairs with the same I/O and the same Modbus registers: the DC model and the AC model of a pair differ only in the power input.

ModelDescriptionPortsPower input
HUR1188 channels 5 - 275 V AC/DC, 100 mA digital optocoupler output Modbus RTU remote I/O device1 x RS4859 - 48 V DC
HUR1288 channels digital 5 A 250 V AC / 30 V DC relay output Modbus RTU remote I/O device1 x RS4859 - 48 V DC
HUR2188 channels 5 - 275 V AC/DC, 100 mA digital optocoupler output Modbus RTU remote I/O device1 x RS485100 - 240 V AC (120 - 370 V DC), 50 - 60 Hz
HUR2288 channels digital 5 A 250 V AC / 30 V DC relay output Modbus RTU remote I/O device1 x RS485100 - 240 V AC (120 - 370 V DC), 50 - 60 Hz
HUR3188 channels 12 - 275 V AC/DC digital optocoupler input Modbus RTU remote I/O device1 x RS4859 - 48 V DC
HUR4188 channels 12 - 275 V AC/DC digital optocoupler input Modbus RTU remote I/O device1 x RS485100 - 240 V AC (120 - 370 V DC), 50 - 60 Hz
HUR5188 channels 0 - 10 V and 0 - 20 mA selectable analog input Modbus RTU remote I/O device1 x RS4859 - 48 V DC
HUR5555 channels 4 - 20 mA analog output Modbus RTU remote I/O device1 x RS4859 - 48 V DC
HUR6188 channels 0 - 10 V and 0 - 20 mA selectable analog input Modbus RTU remote I/O device1 x RS485100 - 240 V AC (120 - 370 V DC), 50 - 60 Hz
HUR6555 channels 4 - 20 mA analog output Modbus RTU remote I/O device1 x RS485100 - 240 V AC (120 - 370 V DC), 50 - 60 Hz

12. Product Selection

The table shows the power input and the I/O of every model.

FeatureHUR118HUR128HUR218HUR228HUR318HUR418HUR518HUR555HUR618HUR655
DC power input (9 - 48 V DC)●●●●●
AC power input (100 - 240 V AC, 50 - 60 Hz; 120 - 370 V DC)●●●●●
1 x RS485 port●●●●●●●●●●
8 channel 5 - 275 V AC/DC, 100 mA digital optocoupler output●●
8 channel digital 5 A relay output●●
8 channel 12 - 275 V AC/DC digital optocoupler input●●
8 channel 0 - 10 V and 0 - 20 mA selectable analog input●●
5 channel 4 - 20 mA analog output●●
LKM Series Electricity Meter Protocol to Modbus Protocol Gateways with MQTT (and LoRaWAN)
LKM Series Electricity Meter Protocol to Modbus Protocol Gateways with MQTT (and LoRaWAN)
STG Series WMBus (Wireless MBus) - Modbus Protocol Gateway with MQTT
STG Series WMBus (Wireless MBus) - Modbus Protocol Gateway with MQTT
TLM Series LoRa Modems and LoRaWAN EndNode Modems
TLM Series LoRa Modems and LoRaWAN EndNode Modems
CKL Series Modbus TCP and RTU Gateways and Serial to Ethernet Gateways
CKL Series Modbus TCP and RTU Gateways and Serial to Ethernet Gateways
BSB Series Industrial Unmanaged Ethernet Switch (with Broadband Power Line)
BSB Series Industrial Unmanaged Ethernet Switch (with Broadband Power Line)
HUR Series Modbus TCP and RTU Remote I/O Devices with MQTT (and LoRaWAN)
HUR Series Modbus TCP and RTU Remote I/O Devices with MQTT (and LoRaWAN)
BKV Series Industrial Converters and USB Tools
BKV Series Industrial Converters and USB Tools
MBC Series IEC62056-21 Protocol Auto Baud Changer
MBC Series IEC62056-21 Protocol Auto Baud Changer
KMK Series Optical Probes for Energy Meters
KMK Series Optical Probes for Energy Meters
REDZ Software Solutions
REDZ Software Solutions
LoRaWAN
LoRaWAN
In today's rapidly digitizing world, IoT (Internet of Things) devices and applications are becoming increasingly prevalent. In this context, long-range wireless communication technologies play a significant role. One such technology that stands out is LoRa, which offers an innovative solution for low-power, long-range wireless communication.
MQTT
MQTT
As the Internet of Things (IoT) continues to grow, the demand for efficient, lightweight, and reliable communication protocols becomes essential. One of the most popular protocols meeting these demands is MQTT (Message Queuing Telemetry Transport).
Broadband Power Line (BPL)
Broadband Power Line (BPL)
Broadband Powerline Technology (BPL), also known as Powerline Communication (PLC), represents a revolutionary approach to data transmission, leveraging the existing electrical power infrastructure to deliver broadband internet connectivity.
Wireless MBus (WMBus)
Wireless MBus (WMBus)
In an era defined by connectivity and data-driven decision-making, the need for efficient and reliable metering solutions has never been greater. Enter Wireless M-Bus (Meter-Bus) technology, a versatile and robust platform designed to revolutionize remote meter reading and data communication in utility management systems.
IEC62056-21 (for Electricity Meters)
IEC62056-21 (for Electricity Meters)
IEC 62056-21 is an international standard for communication with electricity meters. Developed by the International Electrotechnical Commission (IEC), this protocol standardizes the way data is exchanged between meters and various devices or systems, ensuring interoperability and efficient data management.
DLMS/COSEM (for Electricity Meters)
DLMS/COSEM (for Electricity Meters)
DLMS/COSEM (Device Language Message Specification / Companion Specification for Energy Metering) is the global standard for smart energy metering. It provides a highly secure, interoperable framework for reading and managing energy data across diverse utility networks.
P1 Companion Standard (for Electricity Meters)
P1 Companion Standard (for Electricity Meters)
Smart energy meters have become essential in monitoring and controlling energy usage. To facilitate better integration, communication, and functionality of these smart meters, standards are crucial. One such standard, particularly relevant in Europe, is the P1 Companion Standard.
Modbus RTU
Modbus RTU
Modbus RTU is a widely recognized and utilized communication protocol in the field of industrial automation. Developed by Modicon (now Schneider Electric) in 1979, it was designed to facilitate communication between various electronic devices, primarily programmable logic controllers (PLCs).
Modbus TCP
Modbus TCP
Modbus TCP, also known as Modbus TCP/IP, is a widely adopted communication protocol in the industrial automation sector. It was developed to enable Modbus communication over Ethernet networks, combining the reliability and simplicity of the Modbus protocol with the versatility of Ethernet.
Remote I/O
Remote I/O
Field inputs and outputs read and controlled from a distance over Modbus RTU, Modbus TCP, MQTT or LoRaWAN.
LoRa RF Communication
LoRa RF Communication
LoRa stands for Long Range and is a proprietary wireless modulation technique developed by Semtech. Essentially, LoRa is the physical layer, or the hardware, that allows long-range communication between devices.
MBus
MBus
M-Bus (Meter-Bus) is a robust European standard specifically designed for the remote reading of utility meters, such as electricity, gas, water, and heat. It utilizes a simple, polarity-independent two-wire system that transmits both data and power over long distances, making it highly cost-effective and immune to industrial noise.
USB
USB
Connect a PC to field devices and meters over one USB cable: RS232, RS485, P1, MBus, Wireless MBus and Ethernet, with the cable-connected converters and USB tools of the REDZ BKV series.