Lumel SM3 User manual

1
2-CHANNEL MODULE
of LOGIC or COUNTER
INPUTS
SM3 TYPE
USERS MANUAL
Microlectra bv.
www.microlectra.nl [email protected]

3
CONTENTS
1. APPLICATION .............................................................................5
2. MODULE SET .............................................................................6
3. BASIC REQUIREMENTS, OPERATIONAL SAFETY .................7
4. INSTALLATION ...........................................................................9
4.1. Module mounting ..................................................................9
4.2. Terminal description ............................................................10
5. SERVICE ...................................................................................12
5.1. Description of the MODBUS protocol implementation ........13
5.2. Description of the MODBUS protocol functions ..................13
5.3. Map of module registers .....................................................16
5.4. Set of module registers .......................................................17
6. IMPULSE COUNTER ................................................................26
6.1. Main counter .......................................................................26
6.2. Auxiliary counter .................................................................26
7. CONFIGURATION of IMPULSE INPUTS .................................27
7.1. Active state .........................................................................27
7.2. Active state duration ...........................................................27
7.3. Impulse weight ....................................................................28
7.4. Default parameters .............................................................29
8. TECHNICAL DATA ....................................................................30
9. BEFORE a DAMAGE WILL BE DECLARED ...........................32
10. ORDERING CODES ..................................................................32
11. MAINTENANCE AND GUARANTEE ........................................33

5
1. APPLICATION
nModule of logic inputs
The SM3 module of two logic inputs is destined to collect logic states of logic
inputs and make them accessible to computer-based industrial systems working
on the base of the RS-485 interface.
The module has 2 logic inputs and RS-485 interface with MODBUS RTU and
ASCII transmission protocols.
RS-485 and RS-232 ports are galvanically isolated from input signals and
supply.
The module programming is possible by means of the RS-485 or RS-232 port.
In the SM3 module set there is a connecting cable to connect with the PC
computer (RS-232).
Module parameters:
- two logic inputs,
- RS-485 communication interface with MODBUS RTU and ASCII transmission
protocols to operate in computer-based systems with the optical transmission
signalling based on LED diodes,
- configurable baud rate: 2400, 4800, 9600, 19299, 38400 bit/s.
nModule as an impulse converter.
The SM3 module working as an impulse converter is destined to add measuring
devices equipped with impulse inputs, e.g. watt-hour meters, heat-meters, gas-
meters, flow transducers a.s.l., to computer systems. Then, the SM3 converter
enables the remote readout of the counter state in automatized accounting
systems.
The converter has 2 impulse inputs and RS-485 interface with MODBUS RTU
and ASCII transmission protocols, what enables its application in computer
systems with LUMEL-3000, Wizcon, Fix, In Touch, Genesis 32 (Iconics) and
other visualization programs.
Converter parameters:
two impulse inputs, independently configured:
- programmable active state of inputs (high level or low level of the input
voltage),
- programmable filter for input impulses with level of defined duration time
(separately for high and low level),
- impulse counting up to the value 4.294.967.295 and with protection
against erasing from the application level,
- auxiliary impulse counters with the possibility of erasing in any time,
- non-volatile registers storing the weight of counted impulses,

6
Fig. 1 View of the
SM3 module
- 4 separate registers containing the result of the counter value divisions with
weight values of counted impulses,
RS-485 communication interface with MODBUS RTU and ASCII transmission
protocols to work in computer systems with optical transmission signalling on
LED diodes,
configurable baud rate: 2400, 4800, 9600, 19200, 134800 bit/s,
programming interface on the frontal plate of RJ type (TTL levels),
several ways of transmission parameter configuration:
- programmed by means of the programming interface RJ on the frontal
plate,
- programmed from the application level, by means of the RS-485 bus,
storage of the counter state in the non-volatile memory together with the CRC
checksum,
counting of supply decays,
detection of emergency states.
2. MODULE SET
SM3 module .............................................. 1 pc
users manual ............................................ 1 pc
guarantee card .......................................... 1 pc
hole plug of the RS-232 socket ................. 1 pc
RS-232 cable to connect with the
1 pc computer (1.5 m) ............................... 1 pc
When unpacking the module, please check the delivery
completeness and whether the type and version code
on the data plate correspond to the order.

7
3. BASIC SAFETY REQUIREMENTS, OPERATIONAL SAFETY
Symbols located in this service manual mean:
WARNING!
Warning of potential, hazardous situations. Especially impor-
tant. One must acquaint with this before connecting the module.
The non-observance of notices marked by these symbols can
occasion severe injuries of the personnel and the damage of the
instrument.
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 SM3 module is destined to be mounted on a 35 mm rail.
Non-authorized removal of the required housing, inappropriate use, incorrect
installation or operation creates the risk of injury to personnel or damage to
equipment. For more detailed information please study the users manual.
Do not connect the module to the network through an autotransformer.
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.
The RS-232 socket serves only to connect devices (Fig. 5) working with the
MODBUS Protocol. Place a hole plug in the RS-232 module socket if the
socket is not used.
2. Transport, storage
Please observe the notes on transport, storage and appropriate handling.
Observe the climatic conditions given in specifications.

8
3. Installation
The module must be installed according to the regulation and instructions
given in this users 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.
Instruments 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 instrument 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 instrument to the mains.
When working on live instruments, 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 users guide.
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 SM3 modules, must be equipped with protection
devices according to the corresponding standard and regulations for preven-
tion 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.
6. Maintenance and servicing
Please observe the manufacturers documentation.
Read all product-specific safety and application notes in this users manual.

9
Before taking the instrument housing out, one must turn the supply off.
The removal of the instrument housing during the guarantee
contract period may cause its cancellation.
Fig. 2. Overall and mounting dimensions
4. INSTALLATION
4.1. Module fixing
The module is designed to be fixed on a 35 mm rail (EN 60715). The module
housing is made of a self-extinguishing plastic.
Housing overall dimensions: 22.5 x 120 x 100 mm. One should connect external
wires with a cross-section of 2.5 mm2(from supply side) and of 1.5 mm2(from
input signal side).

10
Fig.3
Electrical connections
of the SM3 logic input
module
There are three diodes on the frontal plate:
green - when lighting, signals the supply on,
green (RxD) - signals the data reception
by the module,
yellow (TxD) - signals the data transmission
by the module.
1 GND line of logic inputs
2 IN1 line - logic input No 1
3 5 V d.c. line
4 IN2 line - logic input No 2
5 GND line of the RS-485 interface
6, 7 Lines supplying the module
8 A line of the RS-485 interface with
optoisolation
9 B line of the RS-485 interface with
optoisolation
Description of SM3 module lead-outs Table 1
Terminal description
Terminal
nr
An exemplary way of logic input connections is
presented below
Fig.4 Connection of logic inputs
4.2. Terminal description
One must connect the supply and external signals in accordance with fig. 3, 4 and
5. Particulars lead-outs are described in the table 1.
NOTE: One must pay a particular attention on the correct connection of
external signals (see table 1).

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

12
NOTE:
Taking into consideration electromagnetic interference, one must use shielded
wires to connect logic input signals and RS-485 interface signals. The shield
must be connected to the protective terminal in a single point. The supply
must be connected by a two-wire cable with a suitable wire diameter, ensuring
its protection by an installation cut-out.
5. SERVICE
After connecting external signals and switching the supply, the SM3 module is ready
to work. The lighted green diode signals the module operation. The green diode
(RxD) signals the module polling, however the yellow diode (TxD), the module
answer. Diodes should cyclically light during the data transmission, both through
the RS-232 and RS-485 interface. The signal + (terminal 3) is the 5 V output with
the admissible 50 mA load. One can use it for supply external circuits.
All module parameters can be programmed by means of RS-232 or RS-485. The
RS-232 port has constant transmission parameters in compliance with technical
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 the direct connection to 32 devices on a single serial
link of 1200 m long. To connect a higher number of devices it is necessary to use
additional intermediary-separating devices (e.g. PD51 converter/repeater). The
manner to connect the interface is given in the module users manual (fig. 5). To
obtain a correct transmission it is necessary to connect lines A and B in parallel with
their equivalents in other devices. The connection should be made by a shielded
wire. The shield must be connected 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 (that is not necessary for the correct
interface operation).
To obtain the connection with the PC computer through the RS-485 port, an
RS-232/RS-485 interface converter is indispensable (e.g. a PD51 converter) or an
RS-485 card. The marking of transmission lines for the card in the PC computer
depends on the card producer. To realise the connection through the RS-232 port,
the cable added to the module is sufficient. The manner of both port connection
(RS-232 and RS-485) is presented on the Fig.5.
The module can be connected to the Master device only through one interface
port. In case f the simultaneous connection of both ports, the module will correctly
operate with the RS-232 port.

13
5.1. Description of the MODBUS protocol implementation
The transmission protocol describes ways of information exchange between
devices through the serial interface.
The MODBUS protocol has been implemented in the module in compliance with
the PI-MBUS-300 Rev G specification of the Modicon company.
Set of serial interface parameters of modules in the MODBUS protocol:
module address 1...247
baud rate 2400, 4800, 19200, 38400 bit/s
operating mode ASCII, RTU
information unit ASCII: 8N1, 7E1, 7O1,
RTU: 8N2, 8E1, 8O1, 8N1
maximal response time 300 ms
The parameter configuration of the serial interface is described in the further part of
this users manual. It consists on the settlement of the baud rate (Rate parameter),
device address (Address parameter) and the type of the information unit (Mode
parameter).
In case of the module connection to the computer through the RS-232 cable, the
module sets automatically transmission parameters on values:
Baud rate: 9600 b/s
Operating mode: RTU 8N1
Address: 1
Note: Each module connected to the communication network must:
have a unique address, different from addresses of other devices c
onnected in the network,
have the identical baud rate and information unit type,
the command transmission with the address 0 is identified as broad-
casting mode (transmission to many devices).
5.2. Description of MODBUS protocol functions
Following MODBUS protocol functions has been implemented in the SM3 module:
Code Meaning
03 (03 h) Readout of n-registers
04 (04 h) Readout of n-input registers
06 (06 h) Write of a single register
16 (10 h) Write of n-registers
17 (11 h) Identification of slave device
Description of the MODBUS protocol functions Table 2

14
Readout of n-registers (code 03h)
Function inaccessible in data broadcasting mode.
Example: Readout of 2 registers beginning from the register with the 1DBDh
(7613) address:
Request:
52 43
Device
address
Checksum
CRC
Function
Register
address
Hi
01 03 1D BD 00
Register
address
Lo
Number of
registers
Hi
Number of
registers
Lo
02
Response:
42 8B
Device
address
Checksum
CRC
Function Number
of bytes
01 03 08
Value from the register
1DBD (7613)
40
Value from the register
1DBE (7614)
00 00 000000803F
Response:
C2 FC
Device
address
Checksum
CRC
Function
Register
address
Hi
01 04 0F A3 00
Register
address
Lo
Number of
registers
Hi
Number of
registers
Lo
01
Readout of n-registers wejciowych (kode 04h)
Function inaccessible in the data broadcasting mode.
Example: readout of one register with the 0FA3h (4003) address beginning from
the register with 1DBDh (7613).
Request:
78 F0
Device
address
Checksum
CRC
Function Number
of bytes
01 04 02
Value from the
register
0FA3 (4003)
01
00
Write of the value into the register (code 06h)
The function is accessible in the broadcasting mode.
Example: Write of the register with 1DBDh (7613) address.
Request:
85 AD
Device
address
Checksum
CRC
Register
address
Hi
01 06 1D BD 3F
Register
address
Lo
00
80 00
Value from the register
1DBD (7613)
Function

15
Response:
85 AD
Device
address
Checksum
CRC
Function
Register
address
Hi
01 06 1D BD 3F
Register
address
Lo
00
80 00
Value from the register
1DBD (7613)
Write to n-registers (code 10h)
The function is accessible in the broacasting mode.
Example: Write 2 registers beginning from the register with 1DBDh (7613) ad-
Request:
03 09
Device
address
Check-
sum
CRC
Function
Number
of bytes
01 10 BD
Value from the register
1DBD (7613)
40
Value from the
register
1DBE (7614)
00 00 00000080
3F
Hi
1D
Lo Hi Lo
00 02 08
Register
address
Number of
registers
Response:
Device
address
Checksum
(CRC)
Function
Register
address
Hi
Number of
registers
Hi
01 10 1D BD 00 D7 80
Register
address
Lo
Number of
registers
Lo
02
Device address - 01
Function - function No: 0x11;
Number of bytes - 0x06
Device Identifier - 0x8B
Device state - 0xFF
Software version No - version implemented in the module: 1.00
XXXX - 4-byte variable of float type
Checksum - 2 bytes in case of work in RTU mode
- 1 byte in case of work in ASCII mode
Report identifying the device (code 11h)
Request:
Device
address
Checksum
(CRC)
Function
01 11 C0 2C
3F 80 00 00
Device
address Checksum
Function Number of
bytes
Device identier Device
state
Software version
number
01 11 06 8C FF
Response:
A6 F3

16
5.3. Map of module registers
Register map of the SM3 module Table 3
4000-4100 int, float (16 bits)
4200-4300 int (16 bits) The value is placed in 16-bit registers.
The register contents corresponds to the
32-bit register content from the 7600 area.
Registers can be read out and write.
7600-7700 float (32 bits)
The value is placed in 16-bit registers.
Registers are only for readout.
7500-7600 float (32 bits) The value is placed in the 32-bit register.
Registers are only for readout.
The value is placed in the 32-bit register.
Registers can be read out and written.
Addresse
range Value type Description
Microlectra bv.
Hermanus Boerhaavestraat 6. 3261 ME Oud-Beijerland. Netherlands.
Tel 31(0)186-616290 Fax 31(0)186-610349 www.microlectra.nl [email protected]

17
5.4. Set of module registers
Set of registers for readout the SM3 module. Table 4
Name Quantity name
Constant identifying the device (0x8B)
4000
Identifier
The value is placed in
16-bit registers
Range
Register type
int
Status1 is the register describing current
states of logic inputs
Status2 is the register describing current
transmission parameters.
4001 Status 1 int
4002
Status 2 int
Value of read out state of the input 1
Value of read out state of the input 2
Result obtained through making the division
operation of the main counter and the weight
value, for input 1 (the register counts the number
of millions of the whole result) higher word.
4003 0... 1
W1 int
4004 0... 1
W2 int
Result obtained through making the division
operation of the main counter and the weight
value, for input 1 (the register counts the
number of millions of the whole result) lower
word.
4005 WMG1_H
long
4006 WMG1_L
Result obtained through making the division
operation of the main counter and the weight va-
lue, for input 1 (the register counts the number
of millions of the whole result) higher word.
Result obtained through making the division
operation of the main counter and the weight
value, for input 1 (the register counts the
number of millions of the whole result) lower
word.
Result obtained through making the division
operation of the main counter and the weight va-
lue, for input 2 (the register counts the number
of millions of the whole result) higher word.
Result obtained through making the division
operation of the main numerator and the
weight value, for input 2 (the register counts
the number of millions of the whole result)
lower word.
long
4007 WMP1_H
4008 WMP1_L
long
4009 WMG2_H
4010 WMG2_L

18
4011 WMP2_H
long
4012 WMP2_L
Result obtained through making the division
operation of the main counter and the weight va-
lue, for input 2 (the register counts the number
of millions of the whole result) higher word.
Result obtained through making the division
operation of the main counter and the weight
value, for input 2 (the register counts the
number of millions of the whole result) lower
word.
Result obtained through making the division
operation of the main counter and the weight va-
lue, for input 1 (the register counts the number
of millions of the whole result) higher word.
Result obtained through making the division
operation of the main counter and the weight
value, for input 1 (the register counts the
number of millions of the whole result) lower
word.
4013 WG1_H
0... 999999 float
4014 WG1_L
Result obtained through making the division
operation of the main counter and the weight va-
lue, for input 1 (the register counts the number
of millions of the whole result) higher word.
Result obtained through making the division
operation of the main counter and the weight
value, for input 1 (the register counts the
number of millions of the whole result) lower
word.
4015 WP1_H
0... 999999 float
4016 WP1_L
Result obtained through making the division
operation of the main counter and the weight va-
lue, for input 2 (the register counts the number
of millions of the whole result) higher word.
Result obtained through making the division
operation of the main counter and the weight
value, for input 2 (the register counts the
number of millions of the whole result) lower
word.
4017 WG2_H
0... 999999 float
4018 WG2_L
Result obtained through making the division
operation of the main counter and the weight va-
lue, for input 2 (the register counts the number
of millions of the whole result) higher word.
Result obtained through making the division
operation of the main counter and the weight
value, for input 2 (the register counts the
number of millions of the whole result) lower
word.
4019 WP2_H
0... 999999 float
4020 WP2_L

19
4021 LG1_H
long
4022 LG1_L
4023 LP1_H
4024 LP1_L
4025 LG2_H
4026 LG2_L
4027 LP2_H
4028 LP2_L
4029 Status3
int
4030 Reset
int
0... (232 - 1)
Value of the main impulse counter for the
input 1 (higher word)
Value of the main impulse counter for the
input 1 (lower word)
Value of the main impulse counter for the
input 1 (higher word)
Value of the main impulse counter for the
input 1 (lower word)
Value of the main impulse counter for the
input 2 (higher word)
Value of the main impulse counter for the
input 2 (lower word)
long
0... (232 - 1)
long
0... (232 - 1)
Value of the auxiliary impulse counter for the
input 2 (higher word)
Value of the auxiliary impulse counter for the
input 2 (lower word)
long
0... (232 - 1)
Error status of the device
Counter of the number of device supply
decays
0... (216 - 1)

20
Set of registers to readout the SM3 module (addresses 75xx) Table 5
Name Quantity name
Constant identifying the device (0x8B)
7500
Identifier
The value is placed in 32-bit
registers
Range
Register type
float
The status 1 is the register describing current
logic input states
The status 2 is the register describing current
transmission parameters
7501 Status 1 float
7502
Status 2 float
Value of the read out state of the input 1
Value of the read out state of the input 2
Result obtained through making the division
operation of the main counter and the weight
value, for input 1
7503 0... 1
W1 float
7504 0... 1
W2 float
7505 WG1
7506 WP1
Result obtained through making the division
operation of the auxiliary counter and the
weight value, for input 1
Result obtained through making the division
operation of the main counter and the weight
value, for input 2
Result obtained through making the division
operation of the auxiliary counter and the
weight value, for input 2
7507 WG2
7508 WP2
7509 LG1
7510 LP1
0... (216 - 1)
Value of the main impulse counter for the
input 1
Value of the auxiliary impulse counter for the
input 1
Value of the main impulse counter for the
input 2
Value of the auxiliary impulse counter for the
input 2
Status of device errors
Counter of the number of device supply decays
7511 LP2
7512 LP2
7513 Status3
7514 Reset 0... (216 - 1)
float
float
float
float
float
float
float
float
float
float
0... (232 - 1)
0... (232 - 1)
0... (232 - 1)
0... (232 - 1)

21
Description of the status register 1
Bit-15...2 Not used
State 0
Bit-1 State of the IN2 input
0 - open or inactive state,
1 - short-circuited or active state
Bit-0 State of the IN1 input
0 - open or inactive state,
1 - short-circuited or active state
XXXXXXXXXXXXXXXX
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
bits
MSB LSB
State IN1
State IN2
Description of the status register 2
Bit-15...6 Not used
State 0
Bit-5...3 Operating mode and information unit
000 interface turned off
001 8N1 - ASCII
010 7E1 - ASCII
011 7O1 - ASCII
100 8N2 - RTU
101 8E1 - RTU
110 8O1 - RTU
111 8N1 - RTU
XXXXXXXXXXXXXXXX
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
bits
MSB LSB
Operating mode
and information
unit
Baud rate

22
Bit-1...0 FRAM memory error Main counter 1
00 - lack of error
01 - error of write/readout from the memory space 1
10 - error of write/readout from memory spaces 1 and 2
11 - error of write/readout of all memory blocs
(loss of counter value)
Bit-5...4 FRAM memory error Auxiliary counter 1
00 - lack of error
01 - error of write/readout from the 1 st memory space
10 - error of write/readout from the 1 st and 2 nd memory spaces
11 - error of write/readout of all memory blocs
(loss of the counter value)
Bit-9...8 FRAM memory error Main counter 2
00 - lack of error
01 - error of write/readout from the 1 st memory space
10 - error of write/readout from the 1 st and 2 nd memory spaces
1 and 2
11 - error of write/readout of all memory blocs (loss of the counter
value)
Bit-2...0 Baud rate
000 - 2400 bit/s
001 - 4800 bit/s
010 - 9600 bit/s
011 - 19200 bit/s
100 - 38400 bit/s
Description of the status register 3
XXXXXXXXXXXXXXXX
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
bits
MSB LSB
FRAM memory
error - Main
counter 1
FRAM memory
error - Auxil.
counter 1
FRAM memory
error - Main
counter 2
FRAM memory
error - Auxil.
counter 2
Table of contents
Other Lumel Control Unit manuals
Popular Control Unit manuals by other brands

Allen-Bradley
Allen-Bradley DeviceNet 1747-SDN/B installation instructions

Grundfos
Grundfos CIM 260 instructions

Bently Nevada
Bently Nevada 3500 Galvanic Isolator Interface manual

Parker
Parker DN80 Installation, operation and maintenance manual

Hirschmann
Hirschmann Dragon PTN Series user manual

Bürkert
Bürkert 0255 operating instructions