Przejdź do głównej zawartości

OB-215 Operating Manual

Ta treść nie jest jeszcze dostępna w Twoim języku.

OB-215 Digital I/O Module

NOVATEK-ELECTRO LTD

Intelligent industrial electronic

DIGITAL I/O MODULE OB-215

OPERATING MANUAL

Quality control system on the development and production complies with requirements ISO 9001:2015

Dear customer,

Company NOVATEK-ELECTRO LTD. thanks you for purchasing our devices.

You will be able to use properly the device after carefully studying the Operating Manual.

Keep the Operating Manual throughout the service life of the device.

UKRAINE, Odesawww.novatek-electro.com

Digital I/O module OB-215 (hereinafter referred to as the device or OB-215) can be used as the following:

  • remote DC voltage meter (0 – 10 V);
  • remote DC meter (0 – 20 mA);
  • remote temperature meter with the ability to connect sensors NTC (10 KB), PTC 1000, PT 1000 or digital temperature sensor DS/DHT/BMP;
  • temperature regulator for cooling and heating plants;
  • pulse counter with saving the result in memory;
  • pulse relay with switching current up to 8 A;
  • interface converter for RS-485 – UART (TTL).

OB-215 provides:

  • equipment control using relay output with switching capacity up to 1.84 kVA;
  • tracking the state (closed/open) of the contact at the dry contact input.

RS-485 interface provides control of the connected devices and reading of the sensors readings via the ModBus protocol.

Parameter setting is set by the user from the Control Panel using the ModBus RTU/ASCII protocol or any other program that allows working with the ModBus RTU/ASCII protocol.

The status of the relay output, the presence of the power supply and the data exchange are displayed using indicators located on the front panel (Fig. 1, it. 1, 2, 3).

The overall dimensions and layout of the device are shown in Fig. 1.

OB-215 front panel and overall dimensions

1 – indicator of data exchange via RS-485 interface (it is on when data is being exchanged);

2 – indicator of the status of the relay output (it is on with closed relay contacts);

3 – indicator « ⏻ » is on when there is supply voltage;

4 – terminals for connecting RS-485 communication;

5 – device power supply terminals;

6 – terminal for reloading (resetting) the device;

7 – terminals for connecting sensors;

8 – output terminals of relay contacts (8 А).

Figure 1 – OB-215 front panel and overall dimensions

Table 1 – Basic Technical Specifications

ParameterValue
Rated power supply voltage12 – 24 V
The error of measuring DC voltage in the range of 0-10 V, min1%
The error of measuring DC in the range of 0-20 mA, min1%
Temperature measurement range (NTC 10 KB)-25…+125 °C
Temperature measurement error (NTC 10 KB) from -25 to +70±1°C
Temperature measurement error (NTC 10 KB) from +70 to +125±2 °C
Temperature measurement range (PTC 1000)-50…+120 °C
Temperature measurement error (PTC 1000)±1°C
Temperature measurement range (PT 1000)-50…+250 °C
Temperature measurement error (PT 1000)±1 °C
Max. pulses frequency in “Pulse Counter/Logic Input” mode200 Hz
Max. voltage given on an «IO1» input12 V
Max. voltage given on an «IO2» input5 V
Readiness time, max≤ 2 s
Max. switched current with active load8 А
Maximal power consumption≤ 1 W
Quantity and type of relay contact (switching contact)1
Communication InterfaceRS (EIA/TIA)-485
ModBus data exchange protocolRTU / ASCII
Rated operating conditionContinuous
Climatic design versionNF 3.1
Protection rating of the deviceIP20
Permissible contamination levelII
Electric shock protection classIII
Wire cross-section for connection0.5 – 1.0 mm²
Tightening torque of screws0.4 N·m
Weight≤ 0.07 kg
Overall dimensions, H×W×L90×65×18 mm

The device meets the requirements of the following: EN 60947-1; EN 60947-6-2; EN 55011; EN 61000-4-2

  • Installation is on standard 35 mm DIN-rail
  • The device remains functional at any position in space
  • Housing material is self-extinguishing plastic
  • Harmful substances in amounts exceeding maximum permissible concentrations are not available

Table 2 – Settings for OB-215

DescriptionRangeFactory settingTypeW/RAddress (DEC)
Operation mode:0…81UINTW/R100

Operation mode values:

  • Digital signals measurement:
    • 0 – pulse counter
    • 1 – logic input/pulse relay
  • Analog signals measurement:
    • 2 – voltage measurement
    • 3 – current measurement
  • Temperature measurement:
    • 4 – NTC (10KB) sensor
    • 5 – PTC1000 sensor
    • 6 – PT 1000 sensor
  • Interface transformation mode:
    • 7 – RS-485 – UART (TTL)
    • 8 – digital sensor (1-Wire, I2C)*

Connected digital sensor (Address 101)

DescriptionRangeFactory settingTypeW/RAddress (DEC)
0 – DS18B20 (1-Wire); 1 – DHT11 (1-Wire); 2 – DHT21/AM2301 (1-Wire); 3 – DHT22 (1-Wire); 4 – BMP180 (I2C)0…40UINTW/R101
Temperature correction-99…990INTW/R102

Relay control (Address 103)

DescriptionRangeFactory settingTypeW/RAddress (DEC)
Relay control mode0…70UINTW/R103

Relay control values:

  • 0 – control is disabled
  • 1 – relay contacts are opened at a value above the upper threshold, they are closed at a value below the lower threshold
  • 2 – relay contacts are closed at a value above the upper threshold, they are opened at a value below the lower threshold
  • 3 – relay contacts are opened at a value above the upper threshold or below the lower threshold and are closed at a value below the upper threshold and above the lower threshold
  • 4…7 – similarly 0…3 respectively, for the secondary parameter of the digital sensor

Thresholds (Addresses 104–105)

DescriptionRangeFactory settingTypeW/RAddress (DEC)
Upper threshold500…2500250UINTW/R104
Lower threshold-500…25000UINTW/R105

Pulse counter mode (Address 106)

DescriptionRangeFactory settingTypeW/RAddress (DEC)
Pulse counter mode0…20UINTW/R106

Pulse counter mode values:

  • 0 – counter on the leading edge of the pulse
  • 1 – counter on the trailing edge of the pulse
  • 2 – counter on both edges of the pulse

Additional settings

DescriptionRangeFactory settingTypeW/RAddress (DEC)
Switch debouncing delay**1…250100UINTW/R107
Number of pulses per counting unit***1…655348000UINTW/R108

RS-485 settings

DescriptionRangeFactory settingTypeW/RAddress (DEC)
RS-485: 0 – ModBus RTU; 1 – ModBus ASCII0…10UINTW/R109
ModBus UID1…1271UINTW/R110
Rate of exchange0…53UINTW/R111

Rate of exchange values:

  • 0 – 1200
  • 1 – 2400
  • 2 – 4800
  • 3 – 9600
  • 4 – 14400
  • 5 – 19200
DescriptionRangeFactory settingTypeW/RAddress (DEC)
Parity check and stop bits0…20UINTW/R112

Parity check and stop bits values:

  • 0 – no, 2 stop bits
  • 1 – even, 1 stop bit
  • 2 – odd, 1 stop bit

UART(TTL)→RS-485 settings

DescriptionRangeFactory settingTypeW/RAddress (DEC)
Rate of exchange UART(TTL)→RS-4850…53UINTW/R113

Rate of exchange UART(TTL)→RS-485 values:

  • 0 – 1200
  • 1 – 2400
  • 2 – 4800
  • 3 – 9600
  • 4 – 14400
  • 5 – 19200
DescriptionRangeFactory settingTypeW/RAddress (DEC)
Stop bits for UART(TTL)→RS-4850…20UINTW/R114

Stop bits for UART(TTL)→RS-485 values:

  • 0 – 1 stop bit
  • 1 – 1.5 stop bits
  • 2 – 2 stop bits
DescriptionRangeFactory settingTypeW/RAddress (DEC)
Parity check for UART(TTL)→RS-4850…20UINTW/R115

Parity check for UART(TTL)→RS-485 values:

  • 0 – None
  • 1 – Even
  • 2 – Odd

Password protection

DescriptionRangeFactory settingTypeW/RAddress (DEC)
ModBus password protection****: 0 – disabled; 1 – enabled0…10UINTW/R116
ModBus password valueA-Z, a-z, 0-9adminSTRINGW/R117-124

Relay control settings

DescriptionRangeFactory settingTypeW/RAddress (DEC)
Timeout of communication before relay disconnection, s (Used when relay control is disconnected)0…360000UINTW/R128
Relay pulse period, ms (Used when relay control is disabled)20…20000200UINTW/R129

Value conversion settings

DescriptionRangeFactory settingTypeW/RAddress (DEC)
Value Conversion: 0 – disabled; 1 – enabled0…10UINTW/R130
Minimum Input Value0…20000UINTW/R131
Maximum Input Value0…20002000UINTW/R132
Minimum Converted Value-32767…327670INTW/R133
Maximum Converted Value-32767…327672000INTW/R134

Notes:

  • W/R – type of access to the register as write/read.
  • * The sensor to be connected is selected at address 101.
  • ** The delay used in switch debouncing in the Logic Input/Pulse Relay mode; the dimension is in milliseconds.
  • *** Only used if the pulses counter is on. The column “Value” indicates the number of pulses at the input, after registration of which, the counter is incremented by one. Recording to memory is performed with a periodicity of 1 minute.
  • **** If ModBus Password Protection is enabled (address 116, value “1”), then to access the recording functions, you must write the correct password value to addresses 51-59.

Table 3 – Output Contact Specifications

Operation modeMax. current at U~250 VMax. switching power at U~250 VMax. continuous permissible AC / DC voltageMax. current at Ucon = 30 V DC
cos φ=18 А2000 VA275/30 V0.6 А

The product is intended for operation in the following conditions:

  • Ambient temperature: from minus 35 to +45 °С
  • Atmospheric pressure: from 84 to 106.7 kPa
  • Relative humidity (at temperature of +25 °С): 30 … 80 %

If the temperature of the product after transportation or storage differs from the ambient temperature at which it is supposed to be operated, then before connecting to the mains keep the product under the operating conditions within two hours (because of condensation may be on the product elements).

It is not allowed to leave exposed portions of wire protruding beyond the terminal block.

Error when performing the installation works may damage the device and connected devices.

OB-215 connection diagram for analog signals measurement mode

OB-215 connection diagram for digital sensors

For a reliable contact, tighten the terminal screws with the force indicated in Table 1.

When reducing the tightening torque, the junction point is heated, the terminal block may be melted and wire can burn. If you increase the tightening torque, it is possible to have thread failure of the terminal block screws or the compression of the connected wire.

  1. Connect the device as shown in Fig. 2 (when using the device in the analog signals measurement mode) or in accordance with Fig. 3 (when using the device with digital sensors). A 12 V battery can be used as a power source. Supply voltage can be read (Table 6, address 7).

To connect the device to the ModBus network, use CAT.1 or higher twisted pair cable.

  1. Switch on the power of the device.

After the power is on, the indicator « ⏻ » lights up. The indicator flashes for 1.5 seconds. Then the indicators and «RS-485» light up (Fig. 1, pos. 1, 2, 3) and after 0.5 second they go out.

To change any parameters you need:

  • download the OB-215/OB-216 Control Panel program at www.novatek-electro.com or any other program that allows you to work with ModBus RTU/ASCII protocol.
  • connect to the device via RS-485 interface;
  • perform the necessary settings for the OB-215 parameters.

During the data exchange, the “RS-485” indicator flashes, otherwise the “RS-485” indicator does not light up.

In this mode, the device measures the readings of sensors connected to the inputs “IO1” or “IO2” (Fig. 1, it. 7), and depending on the settings, performs the necessary actions.

In this mode, the device converts the data received via the RS-485 interface (Modbus RTU/ASCII) to the UART (TTL) interface (Table 2, address 100, value “7”). More detailed description see in Transformation of UART (TTL) interfaces to RS-485.

Connect the external device as shown in Fig. 2 (e). Set up the device for operation in the Pulse Counter Mode (Table 2, address 100, value “0”).

In this mode, the device counts the number of pulses at the input “IO2” (of duration no less than the value indicated in Table 2, Address 107, value in ms) and stores the data in memory with a periodicity of 1 minute. If the device has been turned off before 1 minute has ended, the last stored value will be restored upon power-up.

If you change the value in the register (Address 108), all the stored values of the pulse meter will be deleted.

When the value specified in the register (address 108) is reached, the counter is incremented by one (Table 6, address 4:5).

To set the initial value of the pulse counter it is necessary to write-down the required value into the register (Table 6, address 4:5).

When selecting Logic Input/Pulse Relay mode (Table 2, Address 100, Value 1), or changing the Pulse meter mode (Table 2, Address 106), if the relay contacts were closed “C – NO” (LED lights up), the device will automatically open the “C-NO” contacts (LED turns off).

Logic Input Mode

Connect the device according to Fig. 2 (d). Set up the device for operation in the Logic Input/Pulse Relay Mode (Table 2, address 100, value “1”), set the required pulse count mode (Table 2, address 106, value “2”).

If the logic state on the “IO2” terminal (Fig. 1, it. 6) changes to a high level (rising edge), the device opens the contacts of the “C - NO” relay and closes the contacts of the “C - NC” relay (Fig. 1, it. 7).

If the logic state on the “IO2” terminal (Fig. 1, it. 6) changes to a low level (falling edge), the device will open the contacts of the “C - NC” relay and close the “C - NO” contacts (Fig. 1, it. 7).

Pulse Relay Mode

Connect the device according to Fig. 2 (d). Set up the device for operation in the Logic Input/Pulse Relay Mode (Table 2, address 100, value “1”), set Pulse Counter Mode (Table 2, address 106, value “0” or value “1”). For short-time pulse with duration of at least the value specified in Table 2 (Address 107, the value in ms) at the «IO2» terminal (Fig. 1, it. 6), the device closes the contacts of the “C - NO” relay and opens the contacts of the “C - NC” relay.

If the pulse is repeated for a short time, the device will open the contacts of the “C - NO” relay and close the “C - NC” relay contacts.

Connect the device according to Fig. 2 (b). Set up the device for operation in the Voltage measurement mode (Table 2, address 100, value “2”). If it is necessary that the device monitors the threshold voltage, it is required to write a value other than “0” in the “Relay control” register (Table 2, address 103). If required, set the operation thresholds (Table 2, address 104 – upper threshold, address 105 – lower threshold).

In this mode, the device measures the DC voltage. The measured voltage value can be read at address 6 (Table 6).

Voltage values are derived to one hundredth of a volt (1234 = 12.34 V; 123 = 1.23 V).

Connect the device according to Fig. 2 (a). Set up the device for operation in the “Current measurement” mode (Table 2, address 100, value “3”). If it is necessary for the device monitors the threshold current, it is required to write a value other than “0” in the “Relay control” register (Table 2, address 103). If required, set the operation thresholds (Table 2, address 104 – upper threshold, address 105 – lower threshold).

In this mode, the device measures DC. The measured current value can be read at address 6 (Table 6).

Current values are derived to one hundredth of a milliampere (1234 = 12.34 mА; 123 = 1.23 mА).

Connect the device according to Fig. 2 (c). Set up the device for operation in the Temperature measurement mode (Table 2, address 100, value “4”, “5”, “6”). If it is necessary for the device monitors the threshold temperature value, it is required to write a value other than “0” in the register “Relay control” (Table 2, address 103). For set the operation thresholds to write a value in address 104 - upper threshold and address 105 - lower threshold (Table 2).

If it is required to correct the temperature, it is necessary to record the correction factor in the “Temperature Correction” register (Table 2, Address 102). In this mode, the device measures the temperature with the help of thermistor.

Temperature values are derived to one tenth of a Celsius degree (1234 = 123.4 °С; 123 = 12.3 °С).

The device supports the digital sensors listed in Table 2 (address 101).

The measured value of the digital sensors can be read at the addresses 11–15, Table 6 (depending on what value the sensor measures). The query time period of digital sensors is 3 s.

In case if it is required to correct the temperature measured by the digital sensor, it is necessary to enter the temperature correction factor in register 102 (Table 2).

If a value other than zero is set in the register 103 (Table 2), the relay will be controlled based on the measured values in register 11 (Table 6).

Temperature values are derived to one tenth of a Celsius degree (1234 = 123.4 °С; 123 = 12.3 °С).

When connecting sensors via the I2C interface, refer to the specific sensor’s passport.

Connect the device according to Fig. 3 (a). Set up the device for operation in RS-485-UART (TTL) mode (Table 2, address 100, value “7”).

In this mode, the device receives (transmits) data via the RS-485 ModBus RTU/ASCII interface (Fig. 1, it. 4) and converts them to the UART interface.

Example of query and response is shown in Fig. 10 and Fig. 11.

Conversion of the Measured Voltage (Current) Value

Section titled “Conversion of the Measured Voltage (Current) Value”

To convert the measured voltage (current) to another value, it is necessary to enable the conversion (Table 2, address 130, value 1) and adjust the conversion ranges.

For example, the measured voltage should be converted to bars with such sensor parameters: voltage range from 0.5 V to 8 V corresponds to a pressure of 1 bar to 25 bar. Conversion Ranges Adjustment: minimum input value (address 131, value of 50 corresponds to 0.5 V), maximum input value (address 132, value of 800 corresponds to 8 V), minimum converted value (address 133, value of 1 corresponds to 1 bar), maximum converted value (address 134, value of 25 corresponds to 25 bars).

Converted value will be displayed in the register (Table 6, address 16).

Restarting the Device and Reset to Factory Settings

Section titled “Restarting the Device and Reset to Factory Settings”

If the device needs to be restarted, the “R” and ”–” terminals (Fig. 1) must be closed and held for 3 seconds.

If you want to restore the factory settings of the device, you must close and hold the “R” and ”–” terminals (Fig. 1) for more than 10 seconds. After 10 seconds, the device automatically restores the factory settings and reloads.

Operation with RS (EIA/TIA)-485 Interface via ModBus Protocol

Section titled “Operation with RS (EIA/TIA)-485 Interface via ModBus Protocol”

OB-215 allows data exchanging with external devices via the serial interface of RS (EIA/TIA)-485 via ModBus protocol with the limited set of commands (see Table 4 for a list of supported functions).

When constructing a network, the principle of the master-slave organization is used where OB-215 acts as the slave. There can be only one master node and several slave nodes in the network. As the master node is a personal computer or a programmable logic controller. With this organization, the initiator of the exchange cycles can only be the master node.

The queries of the master node are individual (addressed to a particular device). OB-215 performs transmission, responding to individual queries of the master node.

If errors are found in receiving queries, or if the received command cannot be executed, OB-215 as the respond generates an error message.

Addresses (in decimal form) of command registers and their purpose are given in Table 5.

Addresses (in decimal form) of additional registers and their purpose are given in Table 6.

Table 4 – List of supported functions

Function (hex)PurposeRemark
0x03Reading one or more registersMaximum 50
0x06Writing one value to the register

Table 5 – Command Register

NameDescriptionW/RAddress (DEC)
Command registerCommand codes:W/R50

Command codes:

  • 0x37B6 – switch on the relay
  • 0x37B7 – switch off the relay
  • 0x37B8 – switch on the relay, then after a preset pulse period (register 129) switch it off
  • 0x472C – write settings to flash memory
  • 0x4757 – load settings from flash memory
  • 0xA4F4 – restart the device
  • 0xA2C8 – reset to factory settings
  • 0xF225 – reset the pulse counter (all the values stored in the flash memory are deleted)
NameDescriptionW/RAddress (DEC)
Entering ModBus Password (8 characters ASCII)To access the recording functions, set the correct password (the default value is “admin”). To disable the recording functions, set any value other than the password. Admissible characters: A-Z; a-z; 0-9W/R51 – 59

Notes:

  • W/R – type of access to the write/read register;
  • address of the form “50” means the value of 16 bits (UINT);
  • address of the form “51 – 59” means a range of 8-bit values.

Table 6 – Additional registers

NameDescriptionW/RAddress (DEC)
IdentifierDevice identifier (value 27)R0
Firmware version20R1
Pulse counterW/R4:5
Measured value*R6
Supply voltage of the deviceR7
Pulse frequency (Hz)Counter growth rate, number of pulses per secondR8

Digital sensors

NameDescriptionW/RAddress (DEC)
Temperature (× 0.1°С)R11
Humidity (× 0.1%)R12
Pressure (Pa)R13:14

Converting

NameDescriptionW/RAddress (DEC)
Converted valueR16

Notes:

  • W/R – type of access to the register as write/read;
  • address of the form “1” means the value of 16 bits (UINT);
  • address of the form “2:3” means the value of 32 bits (ULONG).
  • * Measured value from analog sensors (voltage, current, temperature).

Table 6 (continued) – Status Register (Address 2:3)

BitDescription
bit 00 – pulse counter is disabled; 1 – pulse counter is enabled
bit 10 – counter for leading edge of the pulse is disabled; 1 – counter for leading edge of the pulse is enabled
bit 20 – counter for trailing edge of the pulse is disabled; 1 – counter for trailing edge of the pulse is enabled
bit 30 – counter for both pulse edges is disabled; 1 – counter for both pulse edges is enabled
bit 40 – logical input is disabled; 1 – logical input is enabled
bit 50 – voltage measurement is disabled; 1 – voltage measurement is enabled
bit 60 – current measurement is disabled; 1 – current measurement is enabled
bit 70 – temperature measurement by NTC (10 KB) sensor is disabled; 1 – temperature measurement by NTC (10 KB) sensor is enabled
bit 80 – temperature measurement by the PTC 1000 sensor is disabled; 1 – temperature measurement by the PTC 1000 sensor is enabled
bit 90 – temperature measurement by PT 1000 sensor is disabled; 1 – temperature measurement by PT 1000 sensor is enabled
bit 100 – RS-485 → UART(TTL) is disabled; 1 – RS-485 → UART(TTL) is enabled
bit 110 – UART (TTL) protocol data is not ready to be sent; 1 – UART (TTL) protocol data is ready to be sent
bit 120 – DS18B20 sensor is disabled; 1 – DS18B20 sensor is enabled
bit 130 – DHT11 sensor is disabled; 1 – DHT11 sensor is enabled
bit 140 – DHT21/AM2301 sensor is disabled; 1 – DHT21/AM2301 sensor is enabled
bit 150 – DHT22 sensor is disabled; 1 – DHT22 sensor is enabled
bit 16Reserved
bit 170 – BMP180 sensor is disabled; 1 – BMP180 sensor is enabled
bit 180 – the input «IO2» is open; 1 – the input «IO2» is closed
bit 190 – relay is Off; 1 – relay is On
bit 200 – there is no overvoltage; 1 – there is overvoltage
bit 210 – there is no reduction in voltage; 1 – there is reduction in voltage
bit 220 – there is no overcurrent; 1 – there is overcurrent
bit 230 – there is no decrease of current; 1 – there is decrease of current
bit 240 – there is no temperature rise; 1 – there is temperature rise
bit 250 – there is no temperature reduction; 1 – there is temperature reduction
bit 290 – the device settings are stored; 1 – the device settings are not stored
bit 300 – instrument is calibrated; 1 – instrument is not calibrated

The exchange protocol has clearly defined message formats. Compliance with the formats ensures the correctness and stability of the network.

OB-215 is configured to operate with one of two formats of data bytes: with parity control (Fig. 4) and without parity control (Fig. 5). In parity control mode, the type of control is also indicated: Even or Odd. Transmission of data bits is performed by the least significant bits forward.

By default (during manufacture) the device is configured to operate without parity control and with two stop bits.

Byte transfer is performed at speeds of 1200, 2400, 4800, 9600, 14400 and 19200 bps. By default, during manufacturing, the device is configured to operate at a speed of 9600 bps.

Byte format with and without parity control

Figure 4, 5 – Byte format with parity control (top) and without parity control (bottom)

The frame length cannot exceed 256 bytes for ModBus RTU and 513 bytes for ModBus ASCII.

In ModBus RTU mode the start and end of the frame are monitored by silence intervals of at least 3.5 bytes. The frame must be transmitted as a continuous byte stream. The correctness of frame acceptance is additionally controlled by checking the CRC checksum.

The address field occupies one byte. The addresses of the slaves are in the range from 1 to 247. Fig. 6 shows the RTU frame format.

RTU frame format

Figure 6 – RTU frame format

In ModBus ASCII mode the start and end of the frame are controlled by special characters (symbols (’:’ 0x3A) – for start of the frame; symbols (‘CRLF’ 0x0D0x0A) – for the end of the frame). The frame must be transmitted as a continuous stream of bytes. The correctness of frame acceptance is additionally controlled by checking the LRC checksum.

The address field occupies two bytes. The addresses of the slaves are in the range from 1 to 247. Fig. 7 shows the ASCII frame format.

ASCII frame format

Figure 7 – ASCII frame format

The sending device generates a checksum for all bytes of the transmitted message. OB-215 similarly generates a checksum for all bytes of the received message and compares it with the checksum received from the transmitter. If there is a mismatch between the generated checksum and the received checksum, an error message is generated.

The checksum in the message is sent by the least significant byte forward, it is a cyclic verification code based on the irreducible polynomial 0xA001.

Subroutine for CRC checksum generation in C language:

uint16_t GenerateCRC(uint8_t *pSendRecvBuf, uint16_t uCount)
{
const uint16_t Polynom = 0xA001;
uint16_t crc = 0xFFFF;
uint16_t i;
uint8_t byte;
for(i=0; i<(uCount-2); i++){
crc = crc ^ pSendRecvBuf[i];
for(byte=0; byte<8; byte++){
if((crc & 0x0001) == 0){
crc = crc >> 1;
}else{
crc = crc >> 1;
crc = crc ^ Polynom;
}
}
}
return crc;
}

The checksum in the message is transmitted by the most significant byte forward, which is a longitudinal redundancy check.

Subroutine for LRC checksum generation in C language:

uint8_t GenerateLRC(uint8_t *pSendRecvBuf, uint16_t uCount)
{
uint8_t lrc = 0x00;
uint16_t i;
for(i=0; i<(uCount-1); i++){
lrc = (lrc + pSendRecvBuf[i]) & 0xFF;
}
lrc = ((lrc ^ 0xFF) + 2) & 0xFF;
return lrc;
}

Function 0x03 – Reading a Group of Registers

Section titled “Function 0x03 – Reading a Group of Registers”

Function 0x03 provides reading of the contents of registers OB-215. The master query contains the address of the initial register, as well as the number of words to read.

OB-215 response contains the number of bytes to return and the requested data. The number of registers returned is limited to 50. If the number of registers in the query exceeds 50 (100 bytes), the response is not divided into frames.

An example of the query and response in ModBus RTU is shown in Fig. 8.

Example of reading registers (Function 0x03)

Figure 8 – Example of reading registers (Function 0x03)

The function 0x06 provides recording in one OB-215 register. The master query contains the address of the register and the data to be written.

The device response is the same as the master query and contains the register address and the set data. An example of the query and response in ModBus RTU mode is shown in Fig. 9.

Example of writing to a register (Function 0x06)

Figure 9 – Example of writing to a register (Function 0x06)

Transformation of UART (TTL) Interfaces to RS-485

Section titled “Transformation of UART (TTL) Interfaces to RS-485”

In the interface transformation mode, if the query was not addressed to OB-215, it will be redirected to the device connected to «IO1» and «IO2». In this case the indicator «RS-485» will not change its state.

An example of query and response to the device on UART (TTL) line is shown in Fig. 10.

Example of query and response on UART (TTL) line

Figure 10 – Example of query and response to the device on UART (TTL) line

An example of recording to one register of the device on UART (TTL) line is shown in Fig. 11.

Example of writing to a register on UART (TTL) line

Figure 11 – Example of recording to one register of the device on UART (TTL) line

Error codeNameComments
0x01ILLEGAL FUNCTIONIllegal function number
0x02ILLEGAL DATA ADDRESSIncorrect address
0x03ILLEGAL DATA VALUEInvalid data
0x04SERVER DEVICE FAILUREFailure of controller equipment
0x05ACKNOWLEDGEData is not ready
0x06SERVER DEVICE BUSYSystem is busy
0x08MEMORY PARITY ERRORMemory error

It is not allowed water penetration on terminals and internal elements of the device.

During operation and maintenance the regulatory document requirements must be met, namely:

  • Regulations for Operation of Consumer Electrical Installations;
  • Safety Rules for Operation of Consumer Electrical Installations;
  • Occupational Safety in Operation of Electrical Installations.

Recommended frequency of maintenance is every six months.

Maintenance Procedure:

  1. Check the connection reliability of the wires, if necessary, clamp with the force 0.4 N·m;
  2. Visually check the integrity of the housing;
  3. If necessary, wipe the front panel and the housing of the device with cloth.

Do not use abrasives and solvents for cleaning.

The device in the original package is permitted to be transported and stored at the temperature from minus 45 to +60 °C and relative humidity of no more than 80 %, not in aggressive environment.

The lifetime of the device is 10 years.

Shelf life is 3 years.

Warranty period of the device operation is 5 years from the date of sale.

During the warranty period of operation, the manufacturer performs free repair of the device, if the user has complied with the requirements of the Operating Manual.

Warranty service is performed at the place of purchase or by the manufacturer of the device. Post-warranty service of the device is performed by the manufacturer at current rates.

Before sending for repair, the device should be packed in the original or other packing excluding mechanical damage.

For all questions, please contact the manufacturer:

“Novatek-Electro” Ltd.

www.novatek-electro.com

59, Mykhailo Boltenko (Admiral Lazarev) str., Odesa, Ukraine, 65007

Tel: +38 (067) 565 37 68 +38 (050) 359 39 11 +38 (063) 301 30 40

VN241024