Skip to main content

IOMOD 8AI User Manual IEC 60870-5-103

Introduction

IOMod 8AI is a compact-sized stand-alone Modbus (RTU) or IEC-60870-5-103 analog input controller. 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, observation, process monitoring, testing and measurement at remote places. It is controlled over Modbus or IEC 60870-5-103 protocol, and can be used with any SCADA system.

Features

● 8 analog inputs, each configurable separately
● All inputs are capable of measuring electrical voltage or current
● Inputs can be recalibrated according to the needs of a user
● RS485 communication
● LED input indications, + Data transmission (Rx and Tx) indication.
● Configurable over USB
● Drag-and-Drop firmware upgrade over USB
● A small sized case with removable front panel
● DIN rail mount
● Operating temperature: from -30 to +70°C
● Power Requirements: 12-24 VDC

Operational Information

IOMod 8AI uses Modbus (RTU) or IEC 60870-5-103 protocol over RS485 interface. A protocol used by a device can be changed by uploading corresponding firmware. Default communication settings: 9600 baud/s baud rate, 8N1 port configuration, Slave address - 1.

Common configuration information

  1. Measurement type. A user can select measurement type (electrical current or voltage) on each channel individually.
  2. Sensitivity selection. To increase a resolution of input measurement capture, a user can define in which range measurement will occur. The best resolution will be achieved within a shortest selected range. For all possible configurations refer to Technical Information and Configuration over USB described later in this document.
  3.  Measurement limits can be selected, which in turn set thresholds on underflow or overflow error statuses. Also, if a scaled integer data type is selected, these limits will be converted to values using limits stated in Casting data range for Modbus protocol.
  4. Data type selection. A device can output float or scaled integer data types for each input individually for Modbus. Modbus input register read will then show raw float value (in milliamperes or millivolts) or scaled integer types. When a float data type is selected, each input will be represented as two Modbus registers (32-bits). These values can be later
    converted to IEEE-754 standard-compatible float values.
  5. Casting data range. A device is capable of converting measurements into desired decimal values in a linear manner. For Modbus, a user can select between floating point data type – which will return a raw measurement of either voltage or current and scaled integer type – which conversion is freely definable. Note that the specification for IEC-60870-5-103 only lets 13-bit signed measurands, therefore only cast representation of true value can be used with absolute limits being [-4095, 4095].
    Fig. 3.2 shows how raw measurement (current in this case) is converted to an integer type. Conversion is done by defining measurement limits (from -25mA to 25mA) and casting data range (from 0 to 100). Measurement limits define thresholds for overflow and underflow errors respectively; casting data range defines limits (from 0 to 100) that value should be between after recalculation. Such a recalculation can be used in applications that require measurements in relative units such as percentage.
    A device can round measurements to lower conversion limit (in this case – to zero) if a measurement is near it: ±15% of measurement value (Fig. 3.2). Live zero correction is a useful option for eliminating noise. As signals always have some noise level, such an option can compensate it to get a true zero value.Fig. 3.2. Conversion graph from raw measurement to cast integer

Fig. 3.2. Conversion graph from raw measurement to cast integer

IEC 60870-5-103 operational information

IOMod with IEC-60870-5-103 firmware uses a standard communication scheme. Initiation, control messages and queries are initiated by a master (controlling station), while IOMod device (controlled station) only answers requests and sends values. The first message sent by master should be RESET CU to restart communication. When acknowledge (ACK) packet is sent from a slave device, a master may proceed with acquiring General Interrogation and sending Time synchronization packets.
When this initialization is complete, master should poll IOMod device with Class 1 and Class 2 requests. Class 2 is used when master polls for cyclic data. The controlled device responds when spontaneous data exists and master then sends a request for Class 1. Controlled station responds with a time-tagged message.
As IOMod 8AI doesn’t have any digital inputs, only analog ones, general interrogation returns nothing. Values of measurements are returned cyclically without any additional request therefore commands sent will be ignored.

Technical information

System
Dimensions 101 x 119 x 17.5 mm
Case ABS, black
Working environment Indoor
Working temperature -30 +70°C
Recommended operating
conditions
5 – 60°C and 20 – 80%RH;
Configuration USB
Firmware upgrade USB – mass storage device
Electrical specifications
Inputs 16-bit resolution;
Channel-Independent Programmable
Input Ranges:
● Voltage input:
○ Bipolar: ±10.24 V, ±5.12
±2.56 V
○ Unipolar: 10.24 V, 5.12
● Current input:
○ Bipolar: ±51.2 mA, ±25.
and ±12.8 mA
○ Unipolar: 51.2 mA, 25.6
Overvoltage protection up to ±20V;
Power
Power Supply 9V to 33V
Current consumption 40mA @ 12VDC, 20mA @ 24VDC

Mounting and installation guide

IOMod 8AI RS485 interface

IOMod 8AI has 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 in Fig. 5.1.

 

image-1638433200572.png

Fig. 5.1. Typical IOMod connection diagram

IOMod 8AI has 1/8 Unit load receiver which allows having up to 255 units on a single line (compared to standard 32 units). To reduce reflections keep the stubs (cable distance from main RS485 bus line) as short as possible.

IOMod 8AI inputs

A typical application of IOMod 8AI unipolar and bipolar voltage inputs is shown in Fig. 5.2. See Configuration over USB chapter for instructions for analog input configuration.

image-1638433329644.png

Fig. 5.2. Voltage input connection diagram for IOMod device

All analog inputs can be configured as current inputs to connect 0-20 mA, 4-20 mA or other current output sensors. Typical application of IOMod 8AI unipolar and bipolar current inputs is shown in

Fig. 5.3. See Configuration over USB chapter for instructions for analog input configuration.

image-1638433409075.png

Fig. 5.3. Current input connection diagram for IOMod device

Configuration over USB

Driver installation

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

image-1638433464719.png

Fig. 6.1. Unsuccessful device software installation error

A user then should manually install drivers by selecting a downloaded driver folder:

  • Go to Control Panel -> Device Manager;
  • Select a failing device;
  • Press “Update driver software”; screen as in Fig. 6.2. should appear:

image-1638433541326.png

Fig. 6.2. Device driver software update message

  • Select “x86” driver for a 32-bit machine or x64 for a 64-bit machine. If not sure, select a root
    folder (folder in which x64 and x86 lay inside, as in Fig. 6.3).

image-1638433569486.png Fig. 6.3. Device driver folder content

IOMod configuration via PuTTY terminal

A configuration of IOMod device is done through CLI (Command Line Interface) on the virtual COM port. Drivers needed for Microsoft Windows to install VCOM will be provided. To open up CLI simply connect to specific V-COM port with terminal software (advised to use PuTTY terminal software. If other software is being used, a user might need to send <return> symbol after each command). When connected user should immediately see the main screen. 

image-1638435294666.png

Fig. 6.4. The main menu for IOMod 8AI, IEC-60870-5-103 version

Navigation is performed by sending digits or other symbols to a terminal. A user then proceeds by following on-screen instructions. For example, to set baud rate, press [2] to enter Communication settings screen; press [1] to edit; enter new configuration; press [RETURN] to save, or [ESC] to cancel changes. When done, press [0] (exit) before disconnecting device. Default values are set by pressing [7] on the main screen, and confirming changes [1].

If the terminal window is closed accidentally, a user can connect the terminal program again, and press any key on a keyboard to show the main menu again.

IEC-60870-5-103 Main Menu

 

Menu Name

Function

Values

Default Values

[1] Link Address Changing link address 1-247 1
[2] Baudrate, parity and stopbits

[1] Set 8 Data bits + 1 Stop bit

[2] Set 8 Data bits + 2 Stop bit
[3] Configure baud rate
[4] Configure Parity

[3] 100-256000
[4] None/ Odd /Even / Mark/ Space
3] 9600
[4] None
[3] Data addressing config

Enters configuring screen for Input address (function type)

1-255 160
[4] RS485 Terminating Resistor

RS485 120 Ohm Terminating Resistor

[1] Enable
[2] Disable
Enabled
6.

Individual channel configuration

Channel configuration screen (see Table “Individual Channel
Configuration”)

7.

Set Default Settings

Sets Default Settings

(1 to confirm, 0 to cancel)

-

8.

Firmware Upgrade

Mass Storage Device Firmware Upgrade

(1 to confirm, 0 to cancel)

-

9.

Diagnostics

Input / Output states

-

-

0.

Exit

Exit and disconnect

-

-

Individual channel configuration

  MenuName Function Values Default
Values
[1] Measure Current/Voltage Selecting this option
toggles measurement
selection
- -
[2] Change sensitivity Selecting a
measurement range
[1] [-10.24 V, 10.24
V],
[2] [-5.12 V, 5.12 V],
[3] [-2.56 V, 2.56 V],
[4] [0 V, 10.24 V],
[5] [0 V, 5.12 V]

[1]

[-10.24 V, 10.24 V]

[3] Measurement limits Entering floating point
values to use them for
marking
overflow/underflow
statuses
Floating values in a
range defined by
measuring sensitivity
-5 mV; 5mV
[0] Back Back to last menu
screen
   

Measurements’ calibration

Every device is shipped containing factory-predefined calibration coefficients. However, changing temperature and humidity conditions can affect the accuracy of measurements. To get the best accuracy, use the device at room temperature and if that is not possible, calibrate coefficients accordingly.
To enter the calibration screen (Fig. 6.6) from main menu press ‘@’ symbol.

image-1638434412722.png

Fig. 6.6. Analog inputs’ calibration screen

In the calibration screen, either current or voltage coefficients can be selected. Selecting current by pressing [1] should enter additional screen (Fig. 6.7). Calibrating voltage is an identical process therefore only current setting is explained.

image-1638434628095.png

Fig. 6.7. Current calibration screenimage-1638434684411.png

Fig. 6.8. Manual calibration coefficients’ setting

image-1638434687599.png

Fig.6.9. Automatic calibration coefficients’ setting

All configuration coefficients can either be configured all at once or individually. The coefficient setting for all channels is done manually only. Tweaking individual channels, however, can be automatic (Fig. 6.9) as well as manual (Fig. 6.8). Selecting automatic calibration polls values that user inputs and tweaks coefficients to minimize the additive error. It is therefore advised to scan several values differing by the same value interval to get the best results. Pressing ESC finishes calibration and saves coefficients to non volatile memory.

Protocol simulation over USB

After entering the diagnostics screen, protocol simulator can be turned on by pressing [9]. When it is on, the device will communicate over USB port rather than a RS-485 line. Communication on a RS-485 line is closed and all Modbus or IEC-60870-5-103 commands will only be accepted from USB. To exit this mode device must be restarted.

Firmware upgrade over USB

To update device firmware user must enter main configuration menu.
Enter Firmware update screen by pressing [8];
Confirm update by pressing [1];
Device now enters Firmware Upgrade mode. Device reconnects as mass storage device (Fig 6.10.).

image-1623933576298.pngFig. 6.10. Mass storage device warning

User then must delete existing file “firmware.bin”, and simply upload new firmware file by drag and drop. (Fig 6.11.)

image-1623933602252.pngFig. 6.11. Dragging and dropping new firmware file

Reconnect device and check firmware version. It should now represent the one it was updated to.

Testing With “THE VINCI” software

To test IOMod with default settings, a device should be connected through RS485 to IEC 60870-5-103 Master. Example using “The Vinci Expert” device as serial interface converter and adapter to PC with “The Vinci” software. Default settings for IEC-60870-5-103 – 9600 baud/s baud rate; 8 data, no parity, 1 stop bit. After opening “The Vinci” software choose IEC-60870-5-103 serial – Master mode. In “Settings” tab, choose station number (default – 1) and ASDU (default - 1); press “Start” and go to “Statistic” tab as shown in Fig. 7.2.

image-1638434927947.pngFig. 7.2. Testing IEC-60870-5-103 communication using “THE VINCI” software