Skip to main content

IOMOD 8DI4RO User Manual IEC 60870-5-101

Introduction

IOMod 8DI4RO is a small-size stand-alone Modbus RTU, IEC 60870-5-103 or IEC-60870-5-101 digital input and relay output controller (protocol depends on firmware). IOmod can be used for industrial applications, where digital signaling is used and robust communication is needed. IOmod is an ideal solution for applications such as data acquisition, control, and process monitoring at remote places. This user manual is written for IEC 60870-5-101 protocol firmware version.

Features

  • 8 digital inputs;

  • Configurable active input signal polarity or input inversion;

  • 4 relay outputs;

  • Galvanically isolated inputs and outputs;

  • Pulsed or latched mode for individual outputs;

  • Configuration over USB console or MODBUS RTU;

  • Values with data and time information;

  • Drag and Drop firmware upgrade over USB mass storage;

  • Modbus RTU, IEC-60870-5-103, IEC-60870-5-101 communication over RS485;

  • Software selectable RT 120 Ohm termination resistor on RS485 interface;
  • LED indication for input/output and data transmission;

  • Easy integration with WCC Lite gateway and CloudIndustries.eu platform;

Operational information

IOmod 8DI4RO uses Modbus RTU, IEC 60870-5-103, or IEC 60870-5-101 protocol to communicate with the master device over the RS485 interface. Protocol used by the device can be changed by uploading the corresponding firmware. Default communication settings are 9600 baud rate, 8E1, Link address – 1.

IOmod 8DI4RO configuration can be changed over a USB interface with a terminal console like PuTTY or similar.

Status LED

Status LED can be in 2 colors :

Blue - Device connected to USB.

Green - Normal operation.

Rx/Tx LED

The RX/TX LED on the IOMod flashes when data is either being transmitted or received via the RS485 port.

IEC 60870-5-101 working information

Initialization

IOmod uses a standard IEC-60870-5-101 communication scheme. Initiation, control messages, and queries are initiated by the master (controlling station), while the IOmod device (controlled station) only answers these requests. Therefore, the first message should be sent by the master to request status of link (function code = 9). This message is answered by IOmod with the status of link (function code = 11) if link is available. Otherwise there is going to be no response. After receiving the status of link the master will send Reset of remote link command (function code = 0) to restart the communication. The IOMod can respond with either acknowledgment (function code = 0, ACK) or Negative Acknowledgment (function code = 1, NACK). If IOMod respond is ACK then the initialization procedure is finished. The described procedure enables the master to proceed with sending other messages defined by the IEC-60870-5-101 protocol. 

Data polling

When initialization is complete, the master may request data from the IOmod device with general interrogation. Although according to the protocol specification IOMod will send data on value change.  The 8DI4RO IOMod responds with data type 1 (M_SP_NA_1) a single-point information.

Output control

To control device outputs master (controlling station) sends a command conforming to the IEC-60870-5-101 protocols. The IOAs for outputs are 101 (RO1), 102 (RO2), 103 (RO3) and 104 (RO4). By sending the 45-type command (C_SC_NA_1, single point command) with the selected IOA you can either turn ON or OFF outputs. Negative acknowledgement is returned if the sent command is not configured. For example wrong IOA address or Data Type.

Inputs

The IOAs for the inputs are:  9 (DI1), 10 (DI2), 11 (DI3), 12 (DI4), 13 (DI5), 14 (DI6), 15 (DI7) and 16 (DI8).

Time synchronization

To initiate the time synchronization between devices the master must send a Clock Sync command. The command type is C_CS_NA_1 (103) and the Cause of Transmission (COT) has to be 6. The command has to be sent to the correct link address and CASDU, which is the same as the link address by default. If the sent frame is correct the IOMod will respond with a C_CS_NA_1 (103) type command with the COT (cause of transmission) of 0x07 and the p/n bit will be set to 0 (positive confirmation). Also the command will be time-tagged with the device time. If the time synchronization feature is disabled or the command is sent to an undefined CASDU the response is the same except the p/n bit will be set to 1 (negative confirmation) and the COT byte will be equal to 0x47.

General interrogation

General Interrogation (GI) is initiated by the master sending the General Interrogation command. The command type is C_IC_NA_1 (100) and the Cause of Transmission (COT) has to be 6. The command has to be sent to the correct link address and CASDU, which is the same as the link address by default. If the sent frame is correct the IOMod will respond with a C_IC_NA_1 (100) type command with the COT (cause of transmission) of 0x07 and the p/n bit will be set to 0 (positive confirmation). Otherwise, it will respond with the same command just that the p/n bit will be set to 1 (negative confirmation) and the COT byte will be equal to 0x47. Then the device will begin to send all of its data. If the GI was successful the IOMOD will also send another 100 type command with the COT (cause of transmission) of 10 (ActTerm) meaning the general interrogation is over.

Device configuration

Input inversion and polarity selection

Unlike 8DI8DO IOmod 8DI4RO does not have pull-up resistors. If user desires to turn input status on, when that input signal is low, user then inverts inputs logically. All input indication LED’s stay the same (are not inverted).

Input / Output grouping

Sometimes two inputs or two outputs must be captured as one DPI input or output. Inputs and outputs can be grouped into the pairs of two. This allows outputs to be controlled by one DPI command (of address of first output in the group). Only two neighbor pins can be grouped into pair, while first pin in pair must be an odd number pin. When grouped, second pin in the pair is not used anymore – all requests for this pin generate an error. For example – RO1.1-2 and RO2.1-2 can be grouped, after that RO2.1-2 is not used; RO2.1-2 and RO3.1-2 cannot be grouped; RO3.1-2 and RO4.1-2 can be grouped, but RO4.1-2 is not used then, etc.

Fig. 1. picture shows outputs and inputs ungrouped and controlled independently. In this mode, General Interrogation will be composed of 4 output states and 8 input states.

image-1686316977136.png

Fig. 1.

Let's consider a situation shown in Fig. 2. In the picture below first two relay outputs are grouped into pair. Also 3rd and 4th inputs are grouped into pair. Now, General interrogation will be composed of 3 output states (with RO2.1-2 missing), and 7 input states (with IN4 missing). Output and input numbers is represented by “Info number” in protocol.

image-1686317211227.png

Fig. 2.

Input filter

Input filter is a simple glitch filter with time input. This filter time corresponds to stable time that input must achieve before sending a status change.

Output pulse time

User can configure outputs to be pulse controlled – it means that output will be turned on for configured amount of time. When this time runs out, output is turned off. This is useful when pulse toggle relays are used. Output pulse is independent from output grouping option and can be used on both grouped and ungrouped outputs. When output is grouped, device will allow only one command completion at a time – when output is already turned ON, other “turn ON” requests will be responded with NACK. If user desires latching outputs to be used, output pulse time is set to 0.

In the picture below is depicted an example of pulse output usage. Inputs and outputs are grouped, and output pulse time is set to 1s. When user sends ON command, RO2.1-2 are pulsed for 1s, and relay is set. This will connect NO contact and IN2 will turn on (assuming it is not inverted). When user sends OFF command, RO1.1-2 are pulsed, and relay is reset, turning IN1 on.

Output detection with inputs

Users can detect an output change with inputs.

image-1685528321967.png

Fig. 3.

To find out if relays are turned on, user can connect relay outputs to IOmod inputs (maximum allowed voltage must be taken into account). When relays are turned on, device responds with IEC-60870-5-101 protocol message “Remote Operation”. If inputs are never turned on or off, device will send “Remote Operation” message after time-out period, with current input statuses. Time-out period is configured by user as a Feedback Time.

Technical information

 

System

 

1.

Dimensions

101 x 119 x 22.5 mm

2.

Case

IP20, blend PC/ABS self-extinguishing, black

3.

Working environment

Indoors

4.

Operating temperature

 from -30°C to +70°C

5.

Humidity

5-95% RH (non-condensing)

6.

Configuration

USB – serial console, MODBUS RTU

7.

Firmware upgrade

USB – mass storage device


Electrical specifications

 


Inputs


8.

Nominal input voltage range

12-48VDC

9.

Isolation

8 X 3kV(rms)

10.

Maximum input voltage

60VDC


Output relay contacts ratings


11.

Isolation

4 X 3kV(rms)

12.

Rated resistive load

5 A (at 250 VAC or at 30 VDC)

13.

Rated inductive (L/R=7ms) load

2 A (at 250 VAC or at 30 VDC)

14.

Maximum switching voltage

277 VAC

125 VDC

15.

Maximum switching current

5 A


Power


16.

Power Supply

12-24 VDC / 9-33 VDC (full range)

17.

Current consumption

70 mA


In the Fig. 5. you can see internal structure of 8DI4RO IOmod. An important fact to metion is that as it can be noticed in the scheme below all inputs are isolated. However ground connection is common for all phototransistors.

image-1686118899750.png

Fig. 4.

Mounting and installation guide

IOmod 8DI4RO RS485 interface

IOmod 8DI4RO has an integrated 120Ω termination resistor which can be enabled or disabled over USB configuration. It is recommended to use termination at each end of the RS485 cable. See typical connection diagram on Fig. 6.


image-1685090662096.png

Fig. 5.

IOmod 8DI4RO has 1/8 Unit load receiver which allows to have up to 256 units on line (compared to standard 32 units). To reduce reflections, keep the stubs (cable distance from main RS485 bus line) as short as possible when connecting device.

IOmod 8DI4RO inputs

Typical application of IOmod 8DI4RO inputs is shown on Fig. 2. When default configuration for inputs is applied, user will see inputs connected to +12-24V as “high” or state “1” and input status LED will glow.

image-1685526626572.png

Fig. 6.

User also can configure to enable software input inversion. With this configuration, user will see inputs connected to 0V (see Fig. 3.) as “high” or state “1”, input status LED will NOT glow.

IOmod 8DI4RO outputs

IOmod 8DI4RO has 4 relay outputs. Internal clamp diodes are connected to each output which makes IOmod 8DI4RO ideal for driving inductive loads like relays. Maximum 10A per output is allowed. For higher loads outputs can be connected in parallel. Make sure your power supply can provide enough power. Typical application of outputs is shown on Fig. 4.

image-1685526638712.png

Fig. 7.

Configuration over USB

Driver installation

Device requires USB drivers to work as a Virtual COM port. First-time connection between device and computer could result in “Device driver software was not successfully installed” error (Fig. 5.).

image-1612534299922.png

Fig. 8.

Drivers can be installed from Wiki Esleseta -> Downloads -> IOMOD Series Downloads-> Firmware and tools -> IOMOD USB drives for Windows;

User then manually installs drivers by selecting downloaded driver folder:
Go to Control Panel -> Hardware and Sound -> Device Manager 
Select failed device;
Press “Update driver software”; screen in Fig. 6. should appear:

image-1612534334561.png

Fig. 9.

Select “x86” driver for 32-bit machine, or x64 for 64-bit machine. If not sure, select root ("vcom") folder (folder in which x64 and x86 lays inside).

 

image-1612534415666.png

Fig. 10.

IOmod configuration with PuTTY terminal

Configuration of IOmod device is done through CLI (Command Line Interface) on a virtual COM port. Drivers needed for MS Windows to install VCOM will be provided. To open up CLI simply connect to specific V-COM port with terminal software (it is advised to use PuTTY terminal software. If other software is being used, user might need to send <return> symbol after each command). When connected user should immediately see main screen. Accidental close of the terminal window doesn’t stop USB connection, user can connect terminal program again, and press any key on keyboard to show up main menu again.

image-1686317516890.png

Fig. 11.

Navigation is performed by sending numbers to terminal. User then proceeds by following further on-screen instructions. For example, to set Baud rate, press [2] to enter baud rate screen, press [3] to enable or disable Terminating Resistor. When done, press [0] (exit) before disconnecting device. Default values is set by pressing [7] on main screen and confirming changes [1]. Baud rate window is shown in Fig. 8.

image-1686317561151.png

Fig. 12.

A lot of options can be changed after entering Input / Output configure screen (Fig. 9.). These include filter time, output pulse time, input and output configuration, output detection with inputs screens.

image-1684822541836.png

Fig. 13.

Input (Fig. 10.) and output grouping screen show the connection between neighbor pins. Vertical bars show that input or outputs are not grouped. 

image-1684822780784.png

Fig. 14.

A connection between a grouped pair of inputs or outputs is depicted by a slash and a backslash that connects beneath the pair (Fig. 11.).

image-1684823503734.png

Fig. 15.

Changes in the device and firmware version are shown in a Diagnostics Screen. Such diagnostics screen for IOmod 8DI4RO is shown in Fig. 12.

image-1686317589928.png

Fig.  16.


Main Menu


Menu name

Function

Values

Default values

1.

Link Address

Setts Link address

1-255

1

2.

Baudrate & bits(9600, 8+1) E Parity

Enters configuring screen for communication settings

8+1 or 8+2 (Data + Stop),

None, Odd, Even, Mark, Space (Parity)

9600,

8+1, Parity -Even

3.

RS485 Terminating Resistor

RS485 120 Ohms Terminating Resistor

1 – 2 (Enable/Disable)

Disabled

4.

Input pull-up enable and Input State Inversion

Enables input pull-up resistor. Inputs then activated by low signal;

Input inversion (Inverts input states in protocol logic)

1 – 2 (Enable/Disable)

Both disabled

5.

Input / Output configure

Enters screen for configuring (see 6.1 – 6.5 rows below)

-

-

5.1

Input grouping;

Groups or ungroups inputs

8 inputs ungrouped / 4 pairs grouped

All inputs ungrouped by default

5.2

Output grouping;

Groups or ungroups outputs

8 outputs ungrouped / 4 pairs grouped

All outputs ungrouped by default

5.3

Input filter time;

Input glitch filter – minimum stable time to detect input

1 – 60000 milliseconds

100

5.4

Output pulse time and select timeout;

Sets short and long pulse time and selects timeout for individual outputs.

0 – 60000 milliseconds (0 if not used)

0

6. Protocol settings;

Sets the time mode for info objects, IOA size and enables or disables the use of command qualifier for output pulses.

-

-

6.1 Toggle 24/56 bit time

Changes toggle bit time either to 24 or to 56

24/56

56

6.2 Change IOA size

Changes IOA size

1-3

1

6.3 Toggle use of command qualifier

Enables or disables toggle use of command qualifier

Disabled/Enabled

Enabled

7.

Set default settings;

Sets Default Settings

(1 to confirm, 0 to cancel)

-

8.

Firmware update;

Mass Storage Device Firmware Upgrade

(1 to confirm, 0 to cancel)

-

9.

Diagnostics screen;

Input / Output states

-

-

0.

Exit;

Exit and disconnect

-

-

Protocol simulator

When entered diagnostics screen, user can turn on USB protocol simulator mode by pressing [9]. When protocol simulator is turned on, device will communicate through USB port rather than RS-485 line. Communication on RS-485 line is closed and all IEC-101 commands will be accepted only from USB. To exit this mode user must restart device.

Firmware upgrade over USB

To update device firmware user must enter main configuration menu and enter Firmware upgrade screen by pressing [8] is shown in Fig. 13.

image-1686317615010.png

Fig. 17.

Confirm upgrade by pressing [1];

Device should enter a Firmware Upgrade mode. It means that device switches from USB Console mode into Mass storage device and computer recognize it as USB Storage.

Usually after confirming the upgrade a window with an error message appears (Fig. 14)

image-1684309195611.png

Fig. 18.

User then must delete existing file “firmware.bin”, and simply drag and drop new firmware file.

image-1684309930468.png

Fig. 19.

Finally, reconnect device and check firmware version. Lastly, you may want to set default settings by pressing [7].