Lumel SM2 User manual

1
4-CHANNEL MODULE
OF ANALOG INPUTS
SM2 TYPE
USER’S MANUAL

2

3
CONTENTS
1. APPLICATION..............................................................................................5
2. MODULE SET ..............................................................................................6
3. BASIC REQUIREMENTS AND OPERATIONAL SAFETY..........................6
4. INSTALLATION............................................................................................9
4.1. Way of fixing ..........................................................................................9
4.2. Diagrams of external connections .........................................................9
5. HANDLING.................................................................................................12
5.1. Description of the MODBUS protocol implementation ........................12
5.2. Description of the MODBUS protocol function ....................................13
5.3. Map of registers...................................................................................16
5.4. Registers only for readout ...................................................................17
5.5. Registers for write and readout ...........................................................21
6. TECHNICAL DATA.....................................................................................33
7. BEFORE A DAMAGE WILL BE DECLARED............................................35
8. EXAMPLES OF THE SM2 MODULE PROGRAMMING............................36
9. ORDERING CODES...................................................................................40
10. MAINTENANCE AND WARRANTY...........................................................41

4

5
1. APPLICATION
the SM2 4-channel module of analog inputs is destined to convert standard sig-
nals, resistance or temperature signals into numerical data accessible through the
RS-485 or RS-232 port by means of the MODBUS protocol.
The measurement is carried out independently on four, galvanically insulated
between them channels. RS-485 and RS-232 output ports are galvanically insulated
from input signals and the supply. The module programming is possible by means of
the RS-485 or RS-232 port. In the set of SM2 module there is a connecting cable,
to connect with the PC computer (RS-232).
The SM2 module realises following functions:
mathematical operations on channels and between measuring channels,
conversion of measured or calculated quantities basing on the individual linear
characteristic,
storage of maximal and minimal values for each channel,
programming of the measurement averaging time, independently for each
channel,
handling of RS-485 and RS-232 interfaces in MODBUS protocol, both in ASCII
and RTU mode,
change of the OC type output state basing on set alarm values.
Fig. 1. View of the SM2 module

6
2. SET OF THE SM2 MODULE
The set consists of:
- SM2 module ............................................................................1 pc.
- user’s manual..........................................................................1 pc.
- warranty card...........................................................................1 pc.
- plug with screw terminals ........................................................4 pcs
- hole plug of the RS-485 and RS-232 sockets .........................2 pc
- RS-232 cable to connect to the computer (1.5 m.)..................1 pc
When unpacking the module, please check whether the type and execution
code on the data plate correspond to the order.
3. BASIC REQUIREMENTS, SAFETY INFORMATION
Symbols located in this service manual mean:
WARNING!
Warning of potential, hazardous situations. Especially important.
One must acquaint with this before connecting the module.
The non-observance of notices marked by these symbols can occa-
sion severe injuries of the personnel and the damage of the module.
CAUTION!
Designates a general useful note. If you observe it, handling of the
module is made easier. One must take note of this, when the module
is working inconsistently to the expectations. Possible consequences
if disregarded!
In the security scope the module meets the requirements of the EN 61010-1
standard.
Remarks concerning the operator safety:
1. General
The SM2 module is destined to be installed in measuring systems.
Non-authorized removal of the required housing, inappropriate use, incorrect
installation or operation create the risk of injury to personnel or damage to
equipment. For more detailed information please study the user’s manual.

7
All operations concerning transport, installation, and commissioning as well as
maintenance must be carried out by qualified, skilled personnel and national
regulations for the prevention of accidents must be observed.
According to this basic safety information, qualified, skilled personnel are
persons who are familiar with the installation, assembly, commissioning, and
operation of the product and who have qualifications necessary for their
occupation.
2. Transport, storage
Please observe the notes on transport, storage and appropriate handling.
Observe the climatic conditions given in Technical Data.
3. Installation
The module must be installed according to the regulation and
instructions given in this user’s manual.
Ensure proper handling and avoid mechanical stress.
Do not bend any components and do not change any insulation distances.
Do not touch any electronic components and contacts.
Modules may contain electrostatically sensitive components, which can easily
be damaged by inappropriate handling.
Do not damage or destroy any electrical components since this might
endanger your health!
4. Electrical connection
Before switching the module on, one must check the correctness of
connection to the network.
In case of the protection terminal connection with a separate lead one must
remember to connect it before the connection of the module to the mains.
When working on live modules, the applicable national regulations for the
prevention of accidents must be observed.
The electrical installation must be carried out according to the appropriate
regulations (cable cross-sections, fuses, PE connection). Additional
information can be obtained from the user’s manual.
Apply a two-wire cable for the connection to the network acc. to the
EN 61010-1 standard.
Do not connect the module to the network through an autotransformer.
In the building installation, a cut-out or a circuit-breaker should exist, situated
near the device and easy accessible to the operator. It should be marked as
the element switching the device out.

8
The documentation contains information about installation in compliance with
EMC (shielding, grounding, filters and cables). These notes must be observed
for all CE-marked products.
The manufacturer of the measuring system or installed devices is responsible
for the compliance with the required limit values demanded by the EMC
legislation.
5. Operation
Measuring systems including SM1 modules must be equipped with protection
devices according to the corresponding standard and regulations for
prevention of accidents.
After the instrument has been disconnected from the supply voltage, live
components and power connections must not be touched immediately
because capacitors can be charged.
The housing must be closed during operation.
The RS-232 socket serves only to connect the device (Fig.5) working with the
MODBUS protocol. When the module is not used place the hole plug in the
RS-232 socket of the module.
6. Maintenance and servicing.
Please observe the manufacturer’s documentation.
Read all product-specific safety and application notes in this user’s manual.
Before taking the module out, one must turn the supply off.
The removal of the module housing during the warranty contract period may
cause its cancellation.
4. INSTALLATION
4.1 Way of fixing
The SM2 module is fixed on a 35 mm rail in accordance with EN 60715. The module
housing is made of a self-extinguishing plastic. Overall dimensions of the housing:
45 120 100 mm. One must connect to the module, external wires with cross-
section up to 2.5 mm2
Overall dimensions and the fixing way are presented on the fig. 2.

9
Fig.2. Overall dimensions and way of fixing the module
4.2. External connection diagrams
Make the connection of input signals, supply
and interface acc. to the fig. 3, 4 and 5
Fig. 3
Connection way of external signals. The
connection diagram is also placed on the
module housing

10
Fig. 4 connection way of input signals
Taking in consideration electromagnetic interference one must use shielded wires
to connect input signals and output signals. The supply must be connected by a
two-wire cable, with the appropriate wire diameter ensuring its protection by means
of a safety fuse.
Measured signal
Connection way
4 voltage inputs 4 current inputs
4 x 0...10 V 4 x 0/4... 20 mA
Measured signal
Connection way
2 voltage inputs + 2 current inputs
4 resistance thermometer inputs
in 2-wire system or resistance
measurement
2 x 0...10 V 2 x 0/4... 20 mA
The polarization is optional when supplying by d.c. voltage.

11
Fig. 5 Connection way of RS-485 and RS-232
interfaces

12
5. HANDLING
After connecting external signals and switching the supply on, the SM2 module is
ready to work.
The lighted green diode signals the module work. The green diode (RxD) signals
the module polling, however the yellow diode (TxD) signals the module response.
Diodes should ignite in cycles during the data transmission, both through the
RS-232 and the RS-485 interface. One can program all module parameters by
means of RS-232 or RS-485.
The RS-232 port has constant transmission parameters in accordance with tech-
nical data, what enables the connection with the module even when programmed
parameters of the RS-485 digital output are unknown (address, mode, rate). The
RS-485 standard allows to the direct connection to 32 devices on a single serial
link up to 1200 m. To connect a greater number of devices, it is necessary to use
additional intermediate-separating systems.
The way of the interface connection is given in the user’s manual (fig.5). To obtain
the correct transmission, it is necessary to connect Aand Blines in parallel with their
counterparts in other devices. The connection must be carried out with a screened
wire. The screen must be connect to the protective terminal in a single point. The
GND line serves to the additional protection of the interface line at long connections.
One must connect it to the protective terminal (it is not necessary for the correct
interface work). To obtain the connection with the PC computer through the RS-485
port, an RS-232/RS-485 converter (e.g. PD51 of Lumel’s production) or an RS-485
interface card is indispensable. The marking of transmission lines for the card in the
PC computer depends on the card manufacturer. To obtain the connection through
the RS-232 port, the wire added to the module is sufficient. The connection way of
both ports (RS-232 and RS-485) is shown on the fig. 5.
The module can be connected to the device of master type only through one inter-
face port. In case of a simultaneous connection of both ports, the module will work
through the RS-232 interface.
5.1. Description of MODBUS protocol implementation
The transmission protocol describes ways of the information exchange between
devices through serial links.
The MODBUS protocol has been implemented in the module in accordance with the
PI-MBUS-300 Rev G specification of the Modicon company.
Set of parameters of the module serial link in the MODBUS protocol:
Module address - 1... 247
Baud rate - 2400, 4800, 9600, 19200, 38400, 57600,
115200 bit/s
Working modes - ASCII, RTU

13
Information unit - ASCII: 8N1, 7E1, 7O1
- RTU: 8N2, 8E1, 8O1, 8N1
Maximal response time - 300 ms.
The parameter configuration of the serial link is described in the further part of the
user’s manual. It consists on establishing the baud rate (Rate parameter), device
address (Adr parameter) and the information unit type (Mode parameter).
In case of the module connection with the computer through the RS-232 wire, the
module set automatically following transmission parameters:
Baud rate: 9600 bps,
Working mode: RTU 8N1,
Address: 1.
Notice: Each module connected to the communication network must:
have a unique address, different from addresses of other devices
connected to the network,
identical baud rate and information unit type,
the message sent with the address „0” is identified as the data
transmission mode (transmission to many devices)
Only one module can be connected to the master’s RS-232.
5.2. Description of the MODBUS protocol function
Following functions of the MODBUS protocol have been implemented in the
SM2 module
Code Signification
03 (03 h) Readout of n-register
06 (06 h) Write of a single register
16 (10 h) Write of n-registers
17 (11 h) Slave device identification
Opis funkcji
Readout of n-registers (code 03h)
The function is not accessible in the broadcast mode.
Example: Readout of 2 registers beginning by the register with the 1DBDh
address (7613)
Demand:
52 43
Device
address
Checksum
CRC
Function Register address
01 03 1D BD 00
Lo
Number of registers
02
Hi LoHi

14
42 8B
Device
address
Check-
sum
CRC
Function Number
of bytes
01 03 08
Value from the register
1DBD (7613)
40
Value from the register
1DBE (7614)
00 00 000000
803F
Answer:
Write of values in the register (code 06h)
The function is accessible in the broadcast mode.
Example: Write the register with 1DBDh (7613) address
Demand:
85 AD
Device
address
Checksum
CRC
Register address
01 06 1D BD 3F 00
80 00
Value for the register
1DBD (7613)
Function
Hi Lo
85 AD
Device
address
Checksum
CRC
Register address
01 06 1D BD 3F 00
80 00
Value from the register
1DBD (7613)
Function
Hi Lo
Answer:
Write in n-registers (code 10h)
The function is accessible in broadcast mode.
Example: Write of two registers beginning from the register with 1DBDh (7613)
address
Demand:
03 09
Device
address Checksum
CRC
Function
Number
of bytes
01 10 BD
Value for the register
1DBD (7613)
40
Value for the register
1DBE (7614)
00 00 00000080
3F
Hi
1D
Lo Hi Lo
00 02 08
Register
address Number of
registers
Answer:
52 43
Device
address
Checksum
CRC
Function Register address
01 03 1D BD 00
Lo
Number of registers
02
Hi LoHi

15
Device
address
Checksum
(CRC)
Function
01 11
XXXXXX
Device
address
Check-
sum
Function Number
of bytes
Device
identifier
Device
state
Field depending on
the device type
X1108 89 FF
Report identifying the device (code 11h)
Demand:
Device address - depends on the set value
Function - function number: 0x11
Number of bytes - 0x08
Device identifier - 0x89
Device state - 0xFF
Field depended of the
device - XXXXXX
Output of OC type - 0x01 - 2 outputs of OC type, 01 X X X X X
Type of input - Field depended on the module execution code:
- 0x00 - four 0...10 V voltage inputs, X 00 X X X X
- 0x01 - four 0/4...20 mA current inputs, X 01 X X X X
- 0x02 - two 0...10 V voltage inputs,
two 0/4...20 mA current inputs, X 02 X X X X
- 0x03 - four Pt100 inputs or four resistance
inputs up to 400 :, X 03 X X X X
Number of the
software version - software version implemented in the module
X X_ _ _ _4 - byte variable of float
Checksum - 2 bytes in case of work in RTU mode
- 1 byte in case of work in ASCII mode
Example:
Work in RTU mode, e.g. Mode = RTU 8N2 (value 0x02 in case of readout/write
through the interface
The device address is set on Adr=0x01
Answer:

16
The value is placed in the 32-bit register.
Registers can be read out and written.
Address Value type Description
range
7000-7200 float (32 bit)
7200-7400 float (32 bit) The value is placed in two successive 16-bit
registers. Registers contain the same data as
32-bit registers from the area
7600. Registers can be read out and written.
7600-7700 float (32 bit)
The value is placed in two successive 16-bit
registers. Registers contain the same data as
32-bit registers from the area 7500. The register
is for readout only
7500-7600 float (32 bit) The value is placed in the 32-bit register.
The register is for readout only.
It is the SM2 module:
- with two OC type outputs
- with four 0/4...20 mA current inputs
- software version: 1.00
5.3. Register map
Register map of SM2 series modules
For the SM2 module the answer frame has the following shape:
01 01 3F 80 00 00
Device
address
Check-
sum
Function Number
of bytes
Device
identifier
Device
state
Field depending on
the device type
01 11 08 89 FF C3 60

17
5.4. Registers only for readout
Name Unit Quantity name
Constant identifying the device7000 7500 Identifier r-
The value is located in two
successive 16-bite registers.
These registers include the
same data as 32-bite registers
from the area 7500.
The value is placed into 32-
bite registers.
Write (w)/Readout (r)
Value
0x89 - - h SM2 identifier
0x - - 00h Four 0...10 V voltage inputs
0x - - 01h Four 0/4...20 mA currents
0x - - 02h Two 0...10 V voltage input
Two 0/4...20 mA current input
0x - - 03h Four Pt100 inpus or
Four resistance inputs up to 400 :
7002 7501 Status 1 r - Status 1 is the register describing the present
module state
7004 7502 Status 2 r - Status 2 is the register describing the present
module state
7006 7503 W1 r - Measured value on the input 1
7008 7504 W2 r - Measured value on the input 2
7010 7505 W3 r - Measured value on the input 3
7012 7506 W4 r - Measured value on the input 4
7014 7507 WF r - Calculated value basing on the function
7016 7508 Min 1 r - Minimum of the measured value on the input 1
7018 7509 Max 1 r - Maximum of the measured value on the input 1
7020 7510 Min 2 r - Minimum of the measured value on the input 2
7022 7511 Max 2 r - Maximum of the measured value on the input 2
7024 7512 Min 3 r - Minimum of the measured value on the input 3
7026 7513 Max 3 r - Maximum of the measured value on the input 3
7028 7514 Min 4 r - Minimum of the measured value on the input 4
7030 7515 Max 4 r - Maximum of the measured value on the input 4
7032 7516 WF Min r - Minimum of the calculated value
7034 7517 WF Max r - Maximum of the calculated value

18
X X X X X X X X X X X X X X X X
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
bits
MSB LSB
Signalling of the lower input 4 range
exceeding
Signalling of the upper input 4 range
exceeding
Signalling of the lower input 3 range
exceeding
Signalling of the upper input 3 range
exceeding
Signalling of the lower input 2 range
exceeding
Signalling of the upper input 2 range
exceeding
Signalling of the lower input 1 range
exceeding
Signalling of the upper input 1 range
exceeding
Individual characteristic of the input 4
Individual characteristic of the input 3
Individual characteristic of the input 1
Individual characteristic of the input 2
Bit-15...12 Empty
Bit value is always equal 0
Bit-11 Signalling of the lower range exceeding of input 4
0 - normal work
1 - range exceeding
Bit-10 Signalling of the upper range exceeding of input 4
0 - normal work
1 - range exceeding
Bit-9 Signalling of the lower range exceeding of input 3
0 - normal work
1 - range exceeding
Bit-8 Signalling of the upper range exceeding of input 3
0 - normal work
1 - range exceeding
Bit-7 Signalling of the lower range exceeding of input 2
0 - normal work
1 - range exceeding
Bit-6 Signalling of the upper range exceeding of input 2
0 - normal work
1 - range exceeding
Description of the Status1 register

19
Bit-5 Signalling of the lower range exceeding of input 1
0 - normal work
1 - range exceeding
Bit-4 Signalling of the upper range exceeding of input 1
0 - normal work
1 - range exceeding
Bit-3 Individual characteristic of the input 4
0 - individual characteristic switched on
1 - individual characteristic switched off
Bit-2 Individual characteristic of the input 3
0 - individual characteristic switched on
1 - individual characteristic switched off
Bit-1 Individual characteristic of the input 2
0 - individual characteristic switched on
1 - individual characteristic switched off
Bit-0 Individual characteristic of the input 1
0 - individual characteristic switched on
1 - individual characteristic switched off
Bit-15 Empty
Bit value is always equal 0
Bit-14 Output 2 state of OC type
0 - OC switched off
1 - OC switched on
Description of the Status 2 register
X X X X X X X X X X X X X X X X
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
bits
MSB LSB
Output 2 state of OC type
Working mode and
information unit
Baud rate
Type of inputs
Output 1 state of OC type
State of input 4
State of input 3
State of input 2
State of input 1

20
Bit-13 Output 1 state of OC type
0 - OC switched off
1 - OC switched on
Bit-12 State of measuring input 4
0 - input switched off (lack of measurement)
1 - input switched on
Bit-11 State of measuring input 3
0 - input switched off (lack of measurement)
1 - input switched on
Bit-10 State of measuring input 2
0 - input switched off (lack of measurement)
1 - input switched on
Bit-9 State of measuring input 1
0 - input switched off (lack of measurement)
1 - input switched on
Bit-8...6 Working mode and information unit
000 - interface switched off
001 - 8N1 - ASCII
010 - 7E1 - ASCII
011 - 7O1 - ASCII
100 - 8N2 - RTU
101 - 8E1 - RTU
110 - 8O1 - RTU
111 - 8N1 - RTU
Bit-5...3 Baud rate
000 - 2400 bit/s
001 - 4800 bit/s
010 - 9600 bit/s
011 - 19200 bit/s
100 - 38400 bit/s
101 - 57600 bit/s
110 - 115200 bit/s
Bit-2...0 Type of inputs
000 - 4 x 0...10 V
001 - 4 x 0/4...20 mA
010 - 2 x 0...10 V, 2 x 0/4...20 mA
011 - 4 x Pt100 resistance thermometer inputs or
4 x resistance inputs up to 400 :
Table of contents
Other Lumel I/O System manuals
Popular I/O System manuals by other brands

Rockwell Automation
Rockwell Automation Allen-Bradley 1794-IJ2K installation instructions

Janus
Janus MOM-4 manual

Mitsubishi Electric
Mitsubishi Electric GT15V-75V4R1 user manual

Megmeet
Megmeet MC100 Series user manual

Moxa Technologies
Moxa Technologies ioLogik E2260 user manual

Kendrion
Kendrion Kuhnke FIO DI16 DO8 instruction manual

Grundfos
Grundfos IO 113 Installation and operating instructions

National Instruments
National Instruments PXI-8211 Getting started

FireClass
FireClass FC410MIO manual

Joy-it
Joy-it MotoDriver2 manual

Elpro Technologies
Elpro Technologies 905U-K user manual

ICP DAS USA
ICP DAS USA PCI-P16POR16U quick start guide