MT-151 Hmi V2 en
MT-151 Hmi V2 en
MT-151 Hmi V2 en
MT-151 HMI V2
User Manual
MT-151 HMI V2
GSM/GPRS Telemetry Module for
monitoring and control
Wszelkie prawa zastrzeżone. Żaden fragment niniejszego dokumentu nie może być powielany lub kopiowany w
żadnej formie bez względu na stosowaną technologię – graficzną, elektroniczną lub mechaniczną, włączając
fotokopiowanie i/lub zapis cyfrowy, również w systemach przechowywania i wyszukiwania dokumentów – bez
pisemnej zgody Wydawcy.
Nazwy produktów wymienionych w niniejszym dokumencie mogą być Znakami Towarowymi i/lub zastrzeżonymi
Znakami Towarowymi należącymi do odpowiednich Właścicieli. Wydawca i Autor oświadczają, że nie roszczą do tych
znaków towarowych żadnych praw.
Pomimo, że niniejsze opracowanie tworzone było z zachowaniem wszelkiej należytej staranności, zarówno
Wydawca jak i Autor nie ponoszą żadnej odpowiedzialności za błędy lub pominięcia w jego treści jak również za
straty wynikłe z wykorzystania zawartej w niniejszym opracowaniu informacji lub ewentualnie towarzyszącego jej
oprogramowania. W żadnym wypadku Wydawca lub Autor nie będą odpowiedzialni za utratę zysku lub inne straty, w
tym handlowe, spowodowane lub rzekomo związane, bezpośrednio lub pośrednio, z niniejszym opracowaniem.
All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or
mechanical, including photocopying, recording, taping, or information storage and retrieval systems - without the
written permission of the publisher.
Products that are referred to in this document may be either trademarks and/or registered trademarks of the
respective owners. The publisher and the author make no claim to these trademarks.
While every precaution has been taken in the preparation of this document, the publisher and the author assume no
responsibility for errors or omissions, or for damages resulting from the use of information contained in this
document or from the use of programs and source code that may accompany it. In no event shall the publisher and
the author be liable for any loss of profit or any other commercial damage caused or alleged to have been caused
directly or indirectly by this document.
Publisher:
Firmware compability:
2.03
Require MTManager:
5.2.3.27 or higher
Index I
INDEX
I Module destination 1
II GSM requirements 2
IV Required programs 4
V Module design 5
1 Hardware
...................................................................................................................................
resources 5
Graphical display
.......................................................................................................................................................... 6
Display menu......................................................................................................................................................... 6
Binary inputs .......................................................................................................................................................... 6
Binary outputs .......................................................................................................................................................... 7
Analog inputs 4-20m
..........................................................................................................................................................
A 7
Analog inputs 0-10V
.......................................................................................................................................................... 7
Serial ports .......................................................................................................................................................... 7
Ethernet port .......................................................................................................................................................... 7
USB port .......................................................................................................................................................... 7
SD card reader.......................................................................................................................................................... 7
Real tim e clock.......................................................................................................................................................... 7
2 Internal...................................................................................................................................
resources 8
Logger .......................................................................................................................................................... 8
Registers .......................................................................................................................................................... 8
Counters .......................................................................................................................................................... 8
Tim ers .......................................................................................................................................................... 9
MT2MT buffer .......................................................................................................................................................... 9
Constant param..........................................................................................................................................................
eters 9
System flags .......................................................................................................................................................... 9
Control program
.......................................................................................................................................................... 9
3 SIM cards
...................................................................................................................................
slots 11
4 Antenna
................................................................................................................................... 11
5 Power...................................................................................................................................
supply 11
6 Enclosure
................................................................................................................................... 11
VI Connection diagrams 12
1 Binary...................................................................................................................................
inputs 12
2 Binary...................................................................................................................................
outputs 13
3 Analog
...................................................................................................................................
inputs 4-20mA 13
4 Analog
...................................................................................................................................
inputs 0-10V 14
5 Communication
...................................................................................................................................
ports 14
6 GSM antenna
................................................................................................................................... 16
7 SIM card
...................................................................................................................................
installation 16
8 SD memory
...................................................................................................................................
card installation 17
9 Power...................................................................................................................................
supply 18
© 2019 Inventia Sp. z o.o.
II Mobicon MT-151 HMI V2 User Manual
IX Configuration 29
1 Header
................................................................................................................................... 29
Module nam e.......................................................................................................................................................... 29
Module type .......................................................................................................................................................... 30
Module serial..........................................................................................................................................................
num ber 30
Modem firm w..........................................................................................................................................................
are version 30
IMEI num ber .......................................................................................................................................................... 30
Firm w are version
.......................................................................................................................................................... 30
Configuration..........................................................................................................................................................
file version 30
Configuration..........................................................................................................................................................
identifier 30
Last configuration
..........................................................................................................................................................
date 31
Last reading tim
..........................................................................................................................................................
e 31
2 General
................................................................................................................................... 31
Device identifier
.......................................................................................................................................................... 31
Module IP .......................................................................................................................................................... 31
Configuration..........................................................................................................................................................
passw ord 32
Configuration..........................................................................................................................................................
read disable 32
Error display tim
..........................................................................................................................................................
e 32
Recipient UDP..........................................................................................................................................................
port 32
UDP data fram..........................................................................................................................................................
e form at 33
GPRS transm ission
..........................................................................................................................................................
retries num ber 33
Transm ission..........................................................................................................................................................
tim eout 33
Tim e synchronization
.......................................................................................................................................................... 34
Module phone..........................................................................................................................................................
num ber (SIM1/SIM2) 34
Set local tim e .......................................................................................................................................................... 34
Transm ission..........................................................................................................................................................
channel 35
Address .......................................................................................................................................................... 35
Tim e sync interval
..........................................................................................................................................................
(days) 35
3 GSM ................................................................................................................................... 35
Num ber of SIM..........................................................................................................................................................
cards 35
Use of GPRS .......................................................................................................................................................... 35
Use of SMS .......................................................................................................................................................... 36
SIM1 .......................................................................................................................................................... 36
Address IP......................................................................................................................................................... 36
SIM card PIN
.........................................................................................................................................................
number 36
APN name ......................................................................................................................................................... 37
Authorization
......................................................................................................................................................... 37
APN user name
......................................................................................................................................................... 37
APN passw.........................................................................................................................................................
ord 37
GPRS testing.........................................................................................................................................................
interval (ping) 38
GPRS testing.........................................................................................................................................................
address (ping) 38
Roaming ......................................................................................................................................................... 38
SIM2 .......................................................................................................................................................... 38
Address IP......................................................................................................................................................... 39
SIM card PIN.........................................................................................................................................................
number 39
APN name ......................................................................................................................................................... 39
Authorization
......................................................................................................................................................... 39
APN user name
......................................................................................................................................................... 40
APN passw.........................................................................................................................................................
ord 40
GPRS testing.........................................................................................................................................................
interval (ping) 40
GPRS testing.........................................................................................................................................................
address (ping) 40
Roaming ......................................................................................................................................................... 40
GPRS .......................................................................................................................................................... 41
Sender IP address
.........................................................................................................................................................
control 41
Wait time after
.........................................................................................................................................................
disconnection 41
SMS .......................................................................................................................................................... 42
Daily SMS limit
......................................................................................................................................................... 42
Number of .........................................................................................................................................................
SMS sending retries 42
SMS limit exceed
.........................................................................................................................................................
information 42
Recipient of.........................................................................................................................................................
SMS limit exceed information 42
Answ er for .........................................................................................................................................................
blank SMS 43
Incoming SMS.........................................................................................................................................................
handling 43
Buffer address
.........................................................................................................................................................
holding incoming SMS (HREG) 44
Buffer address
.........................................................................................................................................................
holding sender phone number (HREG) 44
Buffer address
.........................................................................................................................................................
holding outgoing SMS (HREG) 45
Buffer address
.........................................................................................................................................................
holding receiver phone number (HREG) 45
Formats ......................................................................................................................................................... 45
Date format ......................................................................................................................................... 45
Time format ......................................................................................................................................... 46
Symbolic names
......................................................................................................................................................... 46
Number of symbolic .........................................................................................................................................
names 46
Symbolic name table ......................................................................................................................................... 46
Macros ......................................................................................................................................................... 47
Number of macros ......................................................................................................................................... 47
Macro table ......................................................................................................................................... 47
Authorized num ..........................................................................................................................................................
bers 47
Number of .........................................................................................................................................................
phone numbers 48
Number of .........................................................................................................................................................
IP addresses 48
Numbers from.........................................................................................................................................................
SIM phone-book alw ays allow ed 48
Phone ......................................................................................................................................................... 48
IP ......................................................................................................................................................... 49
4 Resources
................................................................................................................................... 49
Binary inputs ..........................................................................................................................................................
(I1 - I16) 49
Name ......................................................................................................................................................... 49
Input type ......................................................................................................................................................... 49
Filtering ......................................................................................................................................................... 50
Flow calculation
.........................................................................................................................................................
trigger 50
Flow scaling......................................................................................................................................................... 50
Impulse w eight
.........................................................................................................................................................
- multiplier 50
Impulse w eight
.........................................................................................................................................................
- divider 51
Offset - engineering
.........................................................................................................................................................
units 51
Hi alarm - engineering
.........................................................................................................................................................
units 51
Lo alarm - engineering
.........................................................................................................................................................
units 52
Alarm hysteresis
.........................................................................................................................................................
- engineering units 52
Binary outputs..........................................................................................................................................................
(Q1 - Q12) 52
Name ......................................................................................................................................................... 52
Input type ......................................................................................................................................................... 52
Filtering ......................................................................................................................................................... 53
Analog inputs..........................................................................................................................................................
4-20m A (AI1 - AI4) 53
Sampling frequency
......................................................................................................................................................... 53
Name ......................................................................................................................................................... 53
Engineering.........................................................................................................................................................
units 53
Low reference.........................................................................................................................................................
- internal units 54
Low reference.........................................................................................................................................................
- engineering units 54
High reference
.........................................................................................................................................................
- internal units 54
High reference
.........................................................................................................................................................
- engineering units 54
HiHi alarm -.........................................................................................................................................................
engineering units 54
Hi alarm - engineering
.........................................................................................................................................................
units 55
Lo alarm - engineering
.........................................................................................................................................................
units 55
LoLo alarm.........................................................................................................................................................
- engineering units 55
Alarm hysteresis
.........................................................................................................................................................
- engineering units 55
Deadband .........................................................................................................................................................
- engineering units 56
Analog inputs..........................................................................................................................................................
0-10V (AV1 - AV2) 56
Name ......................................................................................................................................................... 56
Engineering.........................................................................................................................................................
units 56
Low reference.........................................................................................................................................................
- internal units 56
Low reference.........................................................................................................................................................
- engineering units 56
High reference
.........................................................................................................................................................
- internal units 57
High reference
.........................................................................................................................................................
- engineering units 57
HiHi alarm -.........................................................................................................................................................
engineering units 57
Hi alarm - engineering
.........................................................................................................................................................
units 57
Lo alarm - engineering
.........................................................................................................................................................
units 57
LoLo alarm.........................................................................................................................................................
- engineering units 58
Alarm hysteresis
.........................................................................................................................................................
- engineering units 58
Deadband .........................................................................................................................................................
- engineering units 58
Counters (CNT1 ..........................................................................................................................................................
- CNT16) 58
Incrementing .........................................................................................................................................................
input 58
Active edge .........................................................................................................................................................
of incrementing input 59
Decrementing .........................................................................................................................................................
input 59
Active edge .........................................................................................................................................................
of decrementing input 59
Counting range
.........................................................................................................................................................
(32 bits) 59
Tim ers .......................................................................................................................................................... 60
Synchronous .........................................................................................................................................................
timers (CT1 - CT16) 60
Start [HH:MM] ......................................................................................................................................... 60
Period ......................................................................................................................................... 60
Days of w eek ......................................................................................................................................... 60
Days of month ......................................................................................................................................... 61
Months ......................................................................................................................................... 61
Asynchronous .........................................................................................................................................................
timers (CK1 - CK16) 61
Activating input ......................................................................................................................................... 61
Reset input ......................................................................................................................................... 62
Timer time unit ......................................................................................................................................... 62
Counting range in.........................................................................................................................................
timer units 62
Constant param ..........................................................................................................................................................
eters 62
Number of .........................................................................................................................................................
constant parameters 62
Number of .........................................................................................................................................................
constant parameters (textual) 63
Parameter .........................................................................................................................................................
1 - 128 63
Parameter .........................................................................................................................................................
1....72 (textual) 63
SD card .......................................................................................................................................................... 63
Use of card ......................................................................................................................................................... 63
Start ......................................................................................................................................................... 63
Period ......................................................................................................................................................... 63
Delete data.........................................................................................................................................................
older than 64
Delete data.........................................................................................................................................................
w hen low on memory 64
Display .......................................................................................................................................................... 64
Show status.........................................................................................................................................................
screens 66
Show w elcome
.........................................................................................................................................................
screen 66
User screen.........................................................................................................................................................
count 67
Chart count......................................................................................................................................................... 67
Passw ord .........................................................................................................................................................
protected data entry 67
Access code......................................................................................................................................................... 67
Data entry .........................................................................................................................................................
time interval [min.] 67
Welcome screen
......................................................................................................................................................... 68
Display time ......................................................................................................................................... 68
Line 1 ... 6 ......................................................................................................................................... 68
User screens
.........................................................................................................................................................
SCR1 ... 16 68
Display time ......................................................................................................................................... 68
Show inputs ......................................................................................................................................... 68
Show outputs ......................................................................................................................................... 69
Line 1 ... 6 ......................................................................................................................................... 69
Charts W1.........................................................................................................................................................
... 4 69
Chart name ......................................................................................................................................... 69
Display time ......................................................................................................................................... 69
Data acquisition ......................................................................................................................................... 70
Sample interval ......................................................................................................................................... 70
Register space ......................................................................................................................................... 70
Register address......................................................................................................................................... 70
Data scaling - multiplier
......................................................................................................................................... 71
Data scaling - divider ......................................................................................................................................... 71
Data format ......................................................................................................................................... 71
Y axis scaling ......................................................................................................................................... 71
Minimum value ......................................................................................................................................... 72
Maximum value ......................................................................................................................................... 72
5 Communication
...................................................................................................................................
ports 72
Modbus ID - Port..........................................................................................................................................................
1 72
Modbus ID - Port..........................................................................................................................................................
2 72
Modbus ID - Ethernet
.......................................................................................................................................................... 72
Modbus ID - GPRS.......................................................................................................................................................... 73
Port 1/Port 2 .......................................................................................................................................................... 73
Operating mode
......................................................................................................................................................... 73
Interface type
......................................................................................................................................................... 74
Transmission.........................................................................................................................................................
speed 74
Number of .........................................................................................................................................................
data bits 74
Stop bits ......................................................................................................................................................... 74
Parity ......................................................................................................................................................... 74
Modbus ......................................................................................................................................................... 75
Transparent .........................................................................................................................................................
mode 75
Max. data packet.........................................................................................................................................
size 75
Data frame delimiter ......................................................................................................................................... 75
Channel reservation .........................................................................................................................................
time 75
Modbus Master
.........................................................................................................................................................
mode 76
Delay after error .........................................................................................................................................
in communication w ith Slave 76
Number of read/w.........................................................................................................................................
rite data blocks 76
Response timeout.........................................................................................................................................
[s] 76
Data blocks (read/w .........................................................................................................................................
rite) 76
Modbus Slave ID................................................................................................................................... 76
Address space in ...................................................................................................................................
Slave 77
Mapped space address ...................................................................................................................................
- Slave 77
Mapped space size ................................................................................................................................... 77
Mapped space address ...................................................................................................................................
- Module 77
Counters (CNT1
..........................................................................................................................................................
- CNT16) 105
...................................................................................................................................
1 Module destination
Telemetry Module MT-151 HMI is a device which incorporates functions of industrial PLC
with integral graphical display, logger and protocol converter which enriching it with robust
wireless GSM/GPRS connectivity. Thanks to automating cellular network connection
reestablishing mechanizm to access to two independent GSM/GPRS networks Dual-SIM
technology used in this device ensures continuity of data flow not achieved in other
solutions. Ethernet and two serial ports are powerful tools, allows communicating with other
devices thus further expanding resources available to be used by user. With compact,
robust design, integral GSM modem, attractive technical features and easy to use
configuration tools the MT-151 HMI controller is an optimal solution for demanding wireless
telemetry, control, diagnostic, surveillance and alarm systems.
2 GSM requirements
To proper operation, the module needs a SIM card supplied by a GSM operator providing
GPRS and/or SMS services.
It is advised to use GPRS enabled SIM card with static IP addressing. The unique IP address
of the SIM card is an identification for the module within the APN. This enables module-to-
module and server-to-module communication within the APN structure. If SIM cards with
dynamic addressing are used, only module-to-server communication is possible.
A good and strong GSM signal in the place where the module's antenna is located is
necessary for the proper function of the module. Using the module in places where the
signal is weak may lead to interruptions in transmission and possible loss of transmitted data
along with increased costs generated by transmission retries.
Module design - this chapter presents the basic information about Module resources and
design elements. Her is the information about how does the module work and
how and where it may be employed. Chapter contains signaling description of
LED indicators which is necessary knowledge during module installation.
Module connection diagrams - contains diagrams and procedures for connecting MT-
151 with devices and external elements like sensors, antennas or the SIM
card.
4 Required programs
For proper start of working with the module has to be install an additional software for
configuration and communication with MT-151. In this manual we are often use a software
names that is cooperating with module. Below is available the short description of the
applications with information what is necessary to install on the computer on every stage
work with a device.
MTManager (MTM) (absolutely required for module setup and diagnostic) - main application
for MT\ML module management. Program allows a local and remote configuration of the
modules, programing of control algorithms, firmwares upgrade and resources monitor.
Application is available on MT-DISC, the DVD that is delivered with MT-151 or can be
downloaded after login on www.inventia.pl web site.
MTData Provider (MTDP) (required for data transmission setup and diagnostic) -
application for measurement data transmission in both ways, from and to the MT\ML
modules. MTData Provider receive data from modules and share it in CSV files and write it to
relational data base. The application supports OPC server functionality in two standards:
DA\UA.
MTSpooler (MTS) (not required for module setup or diagnostic) - service that is designed
for mass management of the MT modules configuration, especially for battery modules that
working in sleep mode by most time is naturally behavior (the GSM modem is not logged to
network). MTSpooler listens of module notification and after its receiving achieves tasks
that was planned before.
5 Module design
Module is equipped 128Mhz ARM Coretex M4 processor, 256kB of SRAM and 9MB of Flash
used for keeping module configuration, data logger and system information. Modules
supports SD cards up to 32GB.
Detailed configuration of the display with all parameters description is available on chapter
Display
It is recommended to manually synchronize modules real time clock during the first
configuration performed using the MTManager program.
NOTICE!
The RTC clock module does not automatically adjust to Daylight Saving
Time.
It is recommended to use UTC time to avoid loss of data during manual
time adjustments.
NOTICE!
The RTC clock is powered from an internal battery and as long as it is
operated, there is no need to set the time again after power-off.
Since the clock precision is not absolute, periodical time adjustment may
be necessary.
5.2.2 Registers
MT-151 HMI module provides access to measurements, and other data via 16-bit registers
divided into two groups according to Modbus device model - Input Registers (read only) and
Holding Registers (read/write access). Remote access to registers is possible via SMS, GPRS
(Modbus TCP and Standard Inventia protocol), serial ports (Modbus RTU) and Ethernet port
(Modbus TCP).
Internal registers start from address 1189 and Input register is zeroed after module restart
(e.g. power off, module update).
Holding registers to address 1188 are nonvolatile. Registers from 1189 to 8191
addresses are reset at startup of the module.
Input registers are reset at startup.
There is possibility to access single bits of Input and Holding Registers - or address them as
Binary Inputs for Input Registers and Binary Outputs for Holding Registers. Detailed
description of addressing method is described in Memory map chapter in Appendices.
Full list of registers is available in Memory map chapter in Appendices.
5.2.3 Counters
MT-151 HMI is equipped with 16 general purpose, internal counters.Their purpose is to
count pulses understood as binary state changes of any bit available in the memory map.
Each counter has one incrementing and one decrementing input and assigned 32-bit register
holding the difference of counted pulses. Initial state of the counters may be defined by
user activating MTManager menu item Initial settings (more info in MTManager manual).
5.2.4 Timers
MT-151 HMI module is equipped with 16 general purpose, programmable synchronous timers
CT1 - CT16 synchronized with module RTC. Their function is counting constant user defined
time intervals in range of 1 minute to 24 hours. The User may appoint months, days of
month and days of week in which the timer is active. In addition, there are available 16
general purpose programmable asynchronous timers CK1 - CK16. These timers start counting
when module is powered or reset and they are not synchronized with RTC clock.
Below a sample program is presented which executes start/stop algorithm with two
momentary inputs (I1 - start, I2 - stop) and one output (Q1).
5.4 Antenna
Connecting of the antenna is necessary for reliable data transmission from MT-151 HMI
module. SMA female type antenna socket is placed on module front panel. Proper antenna
placement is important during the module installation. In case of low GSM signal level using
the directional antenna with high gain may be necessary.
NOTICE!
Exceeding the range of power supply may cause faulty operation or can
damage the module!
5.6 Enclosure
MT-151 HMI module is encapsulated in standard IP40 housing made of plastic compliant
with safety requirements and protecting the module in standard operating environment.
The applied solution complies with standard industrial requirements for DIN rail mounting.
6 Connection diagrams
This chapter presents recommended wiring of external signals and installation procedure of
the components.
Binary inputs I1-I16 for proper operation, require connection the power to
Q+ and COM2 terminal
All binary inputs and outputs (I1-I16, Q1-Q12) from one group, galvanically isolated from
rest of module and share common ground (COM2)
Attention!
· Power cables length should be < 10m
· Signal cables length should be < 30m
· For longer cables it is advised to use external overvoltage protection
Attention!
· Power cables length should be < 10m
· Signal cables length should be < 30m
· For longer cables it is advised to use external overvoltage protection
Attention!
· Power cables length should be < 10m
· Signal cables length should be < 30m
· For longer cables it is advised to use external overvoltage protection
Attention!
· Power cables length should be < 10m
· Signal cables length should be < 30m
· For longer cables it is advised to use external overvoltage protection
Connector Description
name
TXD RS-232 - transceiver output
RXD RS-232 - receiver input
COM1 Signal ground level for both modes
D+ RS-485 - transceiver output
D- RS-485 - receiver input
For operation in RS-232 mode cable length should not exceed 15m.
Port 2 - RS-232 serial communication port with 5V/500mA power output. No optoisolation.
Port connector (RJ-12) is located on the front panel.
Pin Description
1 - Vcc +5V/500mA power output
2 – GND Signal ground level
3 – TXD Transceiver output
4 - RXD Receiver input
5 – RTS Handshake output (Ready To Send)
6 - CTS Handshake input (Clear To Send)
Pin Description
1 - TX+ Transceiver +
2 - TX- Transceiver -
3 - RX+ Receiver +
4 - NC Not connected
5 - NC Not connected
6 - RX- Receiver -
7 - NC Not connected
8 - NC Not connected
Proper antenna placement is important during the module installation. In case of low GSM
signal level using the directional antenna with high gain may be necessary.
To extract memory card a narrow flattened tool like small screwdriver is required. Press OK
button for 3 second, using arrow key, go to option Actions and select Remove SD card
option and press OK, select Yes below question Write pending data and remove SD card?
and confirm selection.
If data has been written, R/W indicator is switching off for 60 second. Using a tool press
gently the hidden card in socket until a click heard and release pressure. The card will eject
and it's ready to intercept by fingers. If card won't be removed during 60 seconds will be
switch on again.
Module is equipped with charger to charging the external battery. Maximal current is limited
to 400mA. For optimal charging we recommends to use 24V of nominal power supply.
Attention!
· Power cables length should be < 10m
· Signal cables length should be < 30m
· For longer cables it is advised to use external overvoltage protection
NOTICE!
Due to high peak current of MT-151 HMI power supply should be able to
deliver current >= 2A.
Improper power supply may results in faulty operation and can damage
the module!
Recommended connections diagrams for signal wires and the antenna are in
Connection diagrams chapter.
In order to login to GSM/GPRS network the basic information about the SIM card
and APN have to be provided to the module:
In GSM group:
Use of GPRS
Yes - if using GPRS packet transmission is intended
No - if the module is not going to use GPRS packet transmission
Use of SMS
Yes - if using SMS messaging is intended
No - if the module is not going to use SMS messaging
In GSM/SIM1 group:
These parameters are the only parameters required to login to GSM/GPRS network.
Bear in mind that the module with only the basic configuration does not have
ability to send data. After checking the ability to login the full configuration of
parameters has to be performed in order to use of intended extent.
After downloading the first configuration disconnect the USB and power cables,
insert the SIM card to SIM1 slot according to the instructions from previous
chapter and reconnect power cable. The module should login to the GSM/GPRS
network.
The status of the module may be verified on main status screen at OLED display.
More information in subchapter in Problem solving chapter.
Login sequence:
1. Module start
2. Verification of SIM card PIN code
3. Registration of modem in GSM network
4. Login to selected APN in GPRS network
The last, but very important element of modules startup is synchronizing the Real
Time Clock of the module with the computer clock. It is crucial since lack of
synchronization may result with faulty time stamping of the data in logger and may
lead to data loss. More information about time synchronization is in MTManager
user manual.
· Transparent
· Modbus Master
· Modbus Slave
· Flex Serial
· M-Bus
PORT 2 is a RS-232 serial port with 5V power output dedicated for communication with
control panels and other devices. It is not optoisolated. This port allows to power on the
external devices, available voltage 5VDC/500mA.
Available modes:
· Transparent
· Modbus Master
· Modbus Slave
· Flex Serial
Active transparent mode available receiving data in Modbus RTU type of commands. Module
verified syntax and CRC of all frames and in case of detection Modbus command matching ID
number with own ID. Equal ID execute the command and send an answer. The respond to
that command allowing user to get data directly from device.
Also polls and writes from external devices communicating with MT-151 HMI can be routed
to Port 1 according to rules defined in Modbus routing table. All those commands are
automatically translated to Modbus RTU protocol.
Buffer structure
Buffer length is 256 registers 16 bits each but only little endian is used for communication.
One 16 bits register store one byte. The big endian part is not in use.
Receiving data
Register PXRCV_NO controls data receiving. Register PXRCV_B1 … PXRCV_B512 collect raw
data. These registers together creates Receiving buffer.
At first the received data are stored in internal buffer, size 6kB and then insert into
Receiving buffer only when register PXRCV_NO value is 0. Along with data insert, module
write into register PXRCV_NO length of package value. Internal user program have to
process the data form receiving buffer when detect nonzero value on PXRCV_NO and when
finish processing, write 0 value in PXRCV_NO and thus allow to enter another data packet.
Received data are always inserted at the beginning of the buffer, first byte of packet goes
into register PXRCV_B1. Additionally in register HR5257 at first bit module placed 1 when
detect problem with receiving data like overload the buffer, like wrong parity or stop bits
and other. PXRCV_ERR bit is not automatically reset. Internal user program have to manage
of resetting the bit for proper communication diagnostics. State of this bit does not affect
on operation of receiving data algorithm and inform user only about the problems with
correct data receiving.
Sending data
Register PXSND_NO control sending operation. Sending buffer is composed from registers
PXSND_B1 … PXSND_B512. Writing non zero value into register PXSND_NO sends a package
of the data from Sending buffer at length equal the value that was enter to PXSND_NO.
Data is always send from the beginning of the buffer, first byte is taken from register
PXSND_B1. Register PXSND_NO is automatically reset to zero value after reading data from
Sending buffer. This means that next package to send can be prepared. Registers
PXSND_BX can be modified only when PXSND_NO register is set to 0 value. Additional in
holding registers space, mapped as binary output space is placed P2SND_ERR bit which is
set to 1 when error is detected while sending data (e.g into PXSND_NO was enter value
grates than 256). P2SND_ERR bit is not automatically reset. Internal user program have to
manage of resetting the bit for proper communication diagnostics.
8.1.5 M-Bus
M-Bus mode is an enlargement of Modbus Master mode with functionality called data
mirroring that read data from external Slave device and store it in the internal register space
of the module. The protocol is available only on port RS-232. This feature is developed in
the module for directly operations with devices that support the M-Bus protocol which are
used mainly in energy consumption measurements. Direct communication between MT-151
HMI module and M-Bus devices require use an external electrical M-Bus converter that
have to be connected to PORT 1. Converter name is RM-120 and is available in additional
accessories.
Implementation of the protocol in the module allows to choose how to address a device that
are connected to M-Bus line. There are two options:
· Energy
· Volume
· Mass
· Flow
· Temperature
· Pressure
· Power
· Time
· some other values with special identification number that can be added manually to
configuration of variables prepared for reading
Data reading
Data is reading according to configuration of each data blocks up to maximum 16. Each
block can mapped up to 16 independent configuration variables. The reading of one block
cannot be executed more often every 60 seconds. Processing of an information read from
external devices, its interpretation or scaling is made according to units selected in
configuration. The configuration of variables allow to choose number of final register and
data format to store the information after reading. Each variable has got additional
parameters as Logical Unit, Tariff, Storage and Type. This parameters allow to read
specific measurements from connected device and records the data to module into
appropriate registers. Variables assignment to register require the same values for all
parameters Value, Tariff, Storage and Type. It is possibility for reading the same quantity
for different Tariff and save this measurements in different registers. It is useful when
device connected to the module sent different type of data that depends from working
mode, example LQM-3 heat meter usually sends data as "Momentary" type but in case when
pulses are not detect the type is change to "Error".
Communication diagnostic
M-Bus mode, like other protocols in module, has got flags and bits for communication
diagnostic prepared in input registers space. State of these bits carry on information about
proper communication with every connected device and all variables from each block. Flags
are refreshed with every pool of the data, this is helpful to monitor state of communication
with device. Example: two variables are define for the same quantity, one as "Momentary"
type and second as "Error" type, emergency situation will be when flag for "Momentary" type
goes to value 0 and in the same time flags 'Error" goes to 1. Device communication bits are
located in register IREG350 (1 on bit X means correct data receiving from device X).
Variables communication bits of each variable for all devices are located on registers from
IREG351(DEVICE1) to IREG366(DEVICE16) (1 on bit X means correct receiving data from
variable X) Register IREG370 stored real address device that is answered for Broadcast type
of request.
This version of protocol implementation is prepared specially for proper works with heat
meters, if need it can be enlargement, please contact us to discus details.
All parameters and its description required to run communication in M-Bus mode are explain
in chapter Configuration.
module. If new data is saved to those registers by SMS, GPRS transmission, control program
or any other method, this new data will be written to Server.
In this mode MT-151 HMI is using Modbus TCP functions 1, 2, 3 and 4 for polls and 5, 6 for
writes.
For each data block there is TSLx_ok bit, where x is following number of data block, which
informs about proper communication within this data block.
Also polls and writes from external devices communicating with MT-151 HMI can be routed
to Ethernet device according to rules defined in Modbus routing table. All those commands
are automatically translated to Modbus RTU protocol.
Modbus TCP Client connects to servers using port 502.
8.3.1 Dual-SIM
A slot for Two SIM cards allow installing in MT-151 HMI cards from different providers.
Second transmission channel is used only when primary fails. One GSM connection is
supported by the modem in one time. Dual SIM function activate automatically when a both
SIM cards are selected in configuration.
Variable tree structure is defined as a MIB data base and can be saved in text files using
ASN1 (Abstract Syntax Notation One) notation. Variable tree MT-151 HMI has structure as
below:
Trap is a data packet send from device containing device ID, device IP address, timestamp
and Specific ID (trap ID). To basic data described above device can add additional data
from variable tree. Module adds to trap following variables in order as follows:
trapSourceStatus, trapSourceValue, trapSourceName, trapSourceType,
trapSourceIndex. Content of these variables can be set up in module configuration or can
be copied from defined registers, from holding registers address space, which allows to
dynamically assigning data to trap using user program.
While configuring a trap user defines triggering source of trap, Specific ID and values of
variables added to trap. Server receiving trap after analyzing variables values (especially
Specific ID) can connect trap with its description and present data in propels form. Since
basic trap types as well as meaning and ranges of variables are predefined in MIB file it is
essential that user when configuring traps used proper variable values as makes server
configuration much easier.
Request is a data packet sent to network device with query of the specific OID variable.
MT-151 HMI has got possibility to generate 32 variable requests for 16 variable receivers.
Control of Request sending is managed from internal program. Request response has to be in
numeric format.
All SNMP configuration parameters are grouped in SNMP subgroups within Communication
group in MT-151 HMI configuration.
More than 8000 registers in module is mapped on four variables blocks formatted just like
IEC tables with IEC variables. Module provide access to blocks of variables, numbered
subsequently and give access to subsequent registers or bits. This method allow user to
access any of MT-151 HMI registers by executing function "read variable" (C_RD_NA_1)
with correct IOA address. Module is responding with value fetched from resulting Modbus
register/bit.
20001 … 36384 M_SP_NA_1 HB0 … HB16383 Coils (HREG bits) from first 1024
registers
Additionally Module's configuration allows user to explicitly up to 200 variables on IOA range
from 1 to 1000 address. For each variable user can set type and choose address or bit from
internal memory map and allow access to them from IEC side. Each variable can own unique
name, marked with a time stamp and signed as variable that is delivered on global request
(interrogation). Global request is performed by command (C_IC_NA_1) with additional
parameter that determine distinction for general request or group request. Eight group of
parameters is ready to assignment the variables. Group request required enter an identify
number for specific group 1 … 8.
Configuration of IEC protocol in module allows to send spontaneous sending of data after
making a definition in Events table. There is maximum 32 events, each of them has got own
trigger to set and data to send. Events can sent single data and whole groups. Triggering of
the events can be controlled from internal user program using flags P1 - P256 as a trigger
source. IEC events are not depending from standard GPRS events that are distributed by
module.
IEC protocol provides time synchronization between Client and Server. This function is
disabled in default. Changing the setting of parameter in configuration allows to turn on the
IEC time synchronization if necessary.
First connection of the client to MT-151 HMI after reset makes a reply by sending the "end
of initialization" (M_EI_NA_1) message.
Communication handling (events and data sending) consist on Current sending buffer with
capacity of 250 records. Data in buffer are stored until the confirmation from Client comes.
This means that global requests with more than 250 variables in seconds time periods
cannot be executed correct because could exceeding a capacity. For increase speed of
sending confirmations by Clients and release this way a occupied buffer record, we
recommend to set on Client site timeout T2 between 3 … 5 seconds and W parameter to 4
or 5 value. Events prepared in configuration use Current sending buffer but they are stored
in non-volatile memory and can be sends with delay in case of temporary exceeding a
capacity.
9 Configuration
MT-151 HMI just like other MT devices is configured by using MTManager (MTM) which is
provided for free with all MT equipment.
MTManager is an unified program environment that allows setting up and maintaining whole
telemetric system or systems regardless of its scale. Possibility of arranging devices in
groups of projects or putting them in folders makes effective managing of telemetry system
easy.
All described on next pages parameters are available in MTManager configuration module
after adding MT-151 HMI to project. Detailed description of MTManager functionality is
provided in MTManager User Manual.
NOTICE!
Availability of different functions and parameters depends on module
firmware version and the settings of parameters they may be dependent
on.
For clarity and ease of use module configuration parameters of MT-151 HMI were divided
into logically or functionally connected groups in the following order:
· Header group - contains unchanged parameters describing the module, its firmware and
configuration.
· General group - contains basic configuration parameters.
· GSM group - contains parameters responsible for GSM/GPRS networking.
· Resources group - defines parameters of hardware and software resources related with
measurements.
· Communication ports group - contains parameters controlling both local and remote
communication using serial and Ethernet as well as GPRS transactions. It is possible to
set up routing rules for each port allowing to automatically passing data between
communication ports.
· Communication group - contains lists of transmission tasks to be carried out upon
occurrence of activating criteria.
There is also possibility to set up initial values for some of module resources (like counters)
using MTManager Presets tool.
9.1 Header
The header contains basic information describing the module, along configuration with
version number and version of configuration file stored by the program. Information
displayed is for information and verification purposes only and thus not available for user
configuration.
9.2 General
General group contains basic configuration and configuration protection parameters.
9.2.2 Module IP
Function - Displays IP address assigned to module by GSM
provider during last communication with module. It is
used for remote configuration via GPRS.
Data type - IP address
Range - 0.0.0.0 - 255.255.255.255
Default value - 0.0.0.0
Comments - When this field is left at default value 0.0.0.0 remote
communication with the module is impossible. IP
9.2.14 Address
Function - Selects the NTP server IP address.
Data type - Selection list
Range - Numbers defined in GSM -> Authorized numbers -> IP
list for data transmission
Default value - None
Comments - N/A
9.3 GSM
GSM group contains parameters responsible for GSM/GPRS networking. Proper configuration
of those parameters is essential for successful GSM and GPRS communication.
9.3.4 SIM1
SIM1 group contains parameters responsible for establishing GSM/GPRS communication using
SIM card inserted into SIM1 slot (the upper one).
9.3.4.1 Address IP
NOTICE!
Caution is vital, when setting the PIN code value. Entering incorrect PIN
code may cause modules start-up impossible and lock SIM card.
For security reasons module makes attempt to enter PIN code twice.
To unlock SIM card please follow procedure described in Problem solving chapter.
9.3.4.4 Authorization
Function - Defines APN user name, which will be used to log into
APN
Data type - Text
Range - Letters, numerals and special characters - max. 32
characters
Default value - N/A
Comments - Optional parameter used only if required by GSM
network operator
9.3.4.9 Roaming
9.3.5 SIM2
SIM2 group contains parameters responsible for establishing the GSM/GPRS communication
by using SIM card inserted into SIM2 slot (the lower one).
9.3.5.1 Address IP
NOTICE!
Caution is vital, when setting the PIN code value. Entering incorrect PIN
code may cause module start-up impossible and lock SIM card.
For security reasons module makes attempt to enter PIN code twice.
To unlock SIM card please follow procedure described in Problem solving chapter.
9.3.5.4 Authorization
Comments - N/A
Function - Defines APN user name, which will be used to log into
APN
Data type - Text
Range - Letters, numerals and special characters - max. 32
characters
Default value - N/A
Comments - Optional parameter used only if required by GSM
network operator
9.3.5.9 Roaming
Range - On
In case of absence of home network, the
module will attempt to login to other available
network
Off
Login into foreign networks is not allowed
Default value - Off
Comments - This parameter decides whether module will try to login
to available foreign networks in the absence of home
network. This is possible only when the SIM card in
module has the roaming service enabled.
9.3.6 GPRS
GPRS contains parameters applying to GPRS communication handling valid for both SIM
cards.
9.3.7 SMS
SMS contains parameters related to sending and receiving of text messages by MT-151
HMI module.
NOTICE!
Reaching set by the parameter limit results with unconditional stop of
SMS sending. One has to bear in mind that until 00:00 o'clock no
messages will be sent even in alarm situations!
Unsent due to limitation SMS messages are queued (the queue holds
up to 16 messages) and will be sent when it is possible (after
midnight). If the number of queued messages is higher than the limit
set by user, there is a risk of immediate consuming of the next day
limit.
Comments - N/A
Function - Defines the text of reply for empty SMS to the sender.
Data type - Text
Range - Letters, numerals and special characters - max. 160
characters
Default value - Hello, here MT-151
Comments - In replay message text may be used symbolic names
and macros following syntax rules defined in
Appendices in the SNCS commands syntax chapter.
By user program
Module received SMS messages and load the
content into local buffer (registers in HREG
sets in next parameters)
Receiving messages
System automatically check authorization for
sender phone numbers and enter the number
of signs into first register that is typed in
Buffer address holding incoming SMS. It is a
information for internal user program about
new message appears in local buffer. Next
registers are filled by content of the
message, each sign is stored to little-endian
part of the register. Register Buffer address
holding sender phone number is filled with
first digit of the phone number. Internal user
program must reset the value in first register
after the message processing is finished. This
action is a signal for an system program to
load another message into the local buffer.
Internal system queue of unprocessed
messages counts maximum 30 SMS
messages.
Sending messages
Sending SMS messages using internal user
program also requires a local buffer starting
9.3.7.11 Formats
Formats subgroup contains parameters allowing user to define formats of date and time
presented in SMS messages.
9.3.7.11.1 Date format
9.3.7.13 Macros
Macros group contains up to 16 user-defined macros. Macro may contain ASCII signs,
symbolic names, SMS commands and other macros that will be put in SMS text. In order to
use a macro in SMS put place there a name preceded by '*' sign in SMS text send from
mobile phone to module or in SMS text sent from module or other macro. Using macros
makes composing complex SMS texts and queries much more convenient and user friendly.
More about SMS messaging can be found in SNCS commands syntax chapter in Appendices.
9.3.7.13.1 Number of macros
data reception privileges. Numbers and addresses saved in this group are then used as
receivers in Rules.
9.3.8.4 Phone
9.3.8.5 IP
9.4 Resources
Group Resources encompasses a list of hardware and software resources available to
users.
9.4.1.1 Name
9.4.1.3 Filtering
where
y - flow value
a - Impulse weight - Multiplier (eng. units)
b - Impulse weight - Divider (eng. units)
c - Offset (eng. units)
9.4.2.1 Name
9.4.2.3 Filtering
9.4.3.2 Name
9.4.4.1 Name
9.4.6 Timers
Timers group contains configuration parameters of module timers.
9.4.6.1.2 Period
9.4.6.1.5 Months
Function - Defines the bit which state turns on (bit set to logical
1) or off (bit set to logical 0) timer
Data type - Number or Selection list
Range - 0 - 65535 or name from bit list (see bit list in
Appendices)
Default value - None
Function - Defines the bit which state resets timer. When bit is
set to logical 1 - timer it stopped and zeroed. When
bit is set to logical 0 - timer is counting.
Data type - Number or Selection list
Range - 0 - 65535 or name from bit list (see bit list in
Appendices)
Default value - None
Comments - Bit addresses 0 - 9999 point to analog inputs/binary
inputs address space while addresses 10000 - 65535
point to Internal registers/binary outputs address
space.
More information on calculating bit addresses can be
found in Memory map chapter in Appendices.
9.4.8 SD card
Micro SD card can be installed in the module and is designated for store data from internal
data logger. It is additional copy of the internal logger data. Information is stored in CSV
files in the similar format applied in MT-Data Provider. File creation frequency and managing
of free memory space is configurable. CSV file creation on the memory card is completely
independent from internal logger feature and its data distribution that is configurable by
events definition of record and rules sending of stored data blocks.
9.4.8.2 Start
9.4.8.3 Period
Function - Erases oldest files from memory card when run out of
on the card.
Data type - Selection list
Range - Yes
Old data files will be erased when the memory
card is full.
No
Old data files will not be erased, new files will
not be created.
Default value - No
Comments - N/A
9.4.9 Display
MT-151 HMI is equipped with 128x64 graphical panel used for presenting device status and
user information in both textual and graphical form. User has possibility to add his own
textual welcome screen, up to eight textual data screens and up to four charts. Presented
data and text can change dynamically according to changes of register values or bit states.
All screens change automatically in cycle. Status screens change automatically every 10s
while display time of the user defined screens is configurable. User can also navigate
through screens using arrow buttons located on right from screen. Pressing ESC button
stops automatic screen change mechanism for 5 minutes. Below is a description of each
screen.
Start screen
After power up the module or upload a new configuration on display is shown startup screen
with manufacturer logo and actual firmware version. Start screen cannot turned off.
Status screens
In default configuration module presents three status screens:
· Module status screen - presents digital I/Os state, module date and time, GSM modem
state/signal, GSM modem activity (Tx and Rx), program status (RUN, STOP, WAIT, NONE),
Ethernet link status ETH Lnk(if Ethernet is turned on) and serial ports activity (Tx and Rx
for active ports, only P1 is shown on the picture below).
· Current analog inputs status screen - presents in engineering units with engineering
unit name values measured on analog inputs AI1 - AI4 and digital I/Os state.
· Power and voltage analog inputs status screen - presents in engineering units with
engineering unit name values measured on analog inputs AV1 – AV2, mains power supply
voltage, battery voltage (if available) and digital I/Os state.
Last two status screens can be turned off in configuration while first one is always available
as it provides vital information about module status and/or errors.
User screens
User can define three types of screen:
· Welcome screen - optional screen that is displayed during module startup for user
defined time. It consists of 6 lines of static text 21 signs each. It's purpose to provide
information about integrator and/or technical support contact. This screen can present
only static text.
· User screens - up to 8 optional screens displayed during normal work by module. Screen
consists with 4 to 6 lines of text depending whether user configured screen to present
digital inputs and digital outputs/inputs state. It is possible to have one value per line that
can be changed using keyboard located left of screen. To do so user needs to push OK
button. First editable value is now highlighted and user can switch between available
editable variables using arrow keys. Pressing OK chooses variable for editing (highlight
starts blinking). Then user can choose value from available range by pressing OK. Pressing
ESC at any step exits data entry mode.
· Chart screens - up to 4 optional screens with charts presenting data change over time.
Each chart allows presenting up to 90 samples. Each chart is using 100 registers from
holding registers address space for data acquisition. Charts are using registers:
W1 7000 - 7099
W2 7100 - 7199
W3 7200 - 7299
W4 7300 - 7399
Registers are either filled automatically (parameter Data acquisition is set to Automatic) or
by user (parameter Data acquisition is set to User) manually, by external device or by user
program.
Length of units value on Y axis is limited to 4 symbols and one sign – values exceeding this
limit are rounded down and presented in engineering notation if needed, e.g. -32100 is
presented as -32K1, -31.99 is presented as -31.9
Range - 0 - 60
Default value - 30
Comments - N/A
9.5.5.6 Parity
9.5.5.7 Modbus
Data blocks defined in this group allow reading from and writing data to external Modbus
RTU Slave devices. Each block is matching group of addresses from one slave device with
group of registers in Internal registers address space in device. Data from external devices
is polled from external device and written into those registers. Saving new data to those
registers either by program or from remote via GPRS or other communication port or method
automatically saves this data into Modbus RTU Slave device.
9.5.5.9.4.1 Modbus Slave ID
Default value - 1
Comments - setting this value to 0 disables data block
MT-151 module with active Flex Serial mode selected in configuration and external device
connected to serial port allows communication in protocol different than Modbus. Whole
communication in Flex Serial mode is controlled in internal user program. Data transfer
between devices is using internal registers that are indicated in memory and operate as two
data buffers, read and write. Flex serial registers are described also with functional
description in chapter Communication Interfaces/Serial ports/Flex Serial
9.5.5.10.1 Max. data packet size [byte]
9.5.5.11.3 Addressing
Group of parameters described request rules of devices that is read by MT-151 with M-Bus
protocol. Each device can have separately configuration of addresses, resources and
variables for reading. In case of Broadcast addressing, only one position is on the list.
Unicast addressing allows connection up to 16 external devices.
9.5.5.11.4.1 Name
9.5.5.11.4.3 Address
Range:
0 - 255
In this frame some values are repeated each time for VIFE and for typical quantities (energy
and VIFE: ACFF00) - selection must be specified using additional parameters like Logical
unit and Tariff.
9.5.6 Ethernet
Subgroup Ethernet contains parameters configuring operation of Ethernet port.
No
The module exchanges information
(configuration, responses for queries) with
any IP address sending qualified query or
command. In this case the identification of
the sender goes by its current identifier.
Default value - Yes
Comments - Switching the control off enables verification of the
sender in the base of its currently assigned identifier
other than IP address (e.g. serial number). This allows
communication among units with dynamically assigned
IP addresses (within same APN).
Sender's identifier must reside on Authorized IP
addresses list in order to establish the communication.
9.5.6.4 IP address
9.5.6.8 Routing IP
9.5.6.9.2 IP
9.5.6.10.4 Ethernet IP
Default value - 0
Comments - N/A
Range - 0 - 8191
Default value - 116
Comments - N/A
Entries on this list may be easily added and deleted by using context menu activated by
right mouse button click on any position of the list in parameters window.
Modbus sensor from picture above is connected to Port 1 serial port and its Modbus ID is 1.
It can be accessed from Ethernet by PLC - it should poll MT-151 HMI using Modbus TCP
protocol for ID 7. This poll will be automatically translated to Modbus RTU and send to Port
1 with ID 1. This sensor can also be accessed from GPRS by Server. It should poll for ID 123
to get access to Modbus sensor.
9.6 Communication
Communication group contains parameters managing SMS and spontaneous data
transmission. Here you can configure when transmission will be triggered, what data or
message it will send and where it shall be send.
9.6.1.1 Active
9.6.2 Logger
Events subgroup contains parameters controlling logger functionality.
1 - 28
9.6.3 Events
Events subgroup contains definitions of changes of binary resources states (flags, inputs,
outputs, bits) which then can be used for triggering SMS and data sending in Rules and also
trigger record saving and logger transmission.
9.6.5 Rules
Rules subgroup consists of list of communication rules allowing to send SMS messages or
send selected Data blocks via GPRS when selected event occurs.
9.6.5.3 Rule
9.6.5.3.1 Name
9.6.5.3.4 Receiver
9.6.6 SNMP
Subgroup SNMP contains a list of transmission tasks performed by the module using SNMP
(Supports Traps and Requests).
9.6.6.5 Traps
9.6.6.5.1 Number of trap receivers
Range - 0-4
Default value - 0
Comments - N/A
8 counter (counter)
9 powering voltage (supplyVoltage)
If Trap data source parameter is set to Registers then
Type column is not visible and trapSourceType
variable value is copied from register
HR1032+5*(trap_index-1).
Index - Defines value which is sent as trapSourceIndex
variable. This value should provide information about
input channel (e.g. 2 for voltage analog input AV2) or
binary input number thus allowing to strictly
determining source of trap. User can set any value
from range:
0 - 65535
If Trap data source parameter is set to Registers then
Index column is not visible trapSourceIndex variable
value is copied from register HR1033+5*(trap_index-
1).
9.6.6.6 Requests
9.6.6.6.1 Number of request receivers
9.6.6.6.4.4 OID
9.6.7 Spooler
Spooler is a service that can be installed during MTManager installation. Spooler is designed
mostly to remote management of the battery modules that have sleep functions activated
all the time. Using Spooler user can change the configuration settings of the module
including the new firmware version uploading. Devices that are logged into GSM provider all
the time can be managed too. The most important features are module's time
synchronization and possibility for group management of the modules in the same time.
Spooler requires IIS (Internet Information Services) installed in the Windows OS system.
9.6.7.3 Address
9.6.8.2 T1 [s]
9.6.8.3 T2 [s]
Range - 1 - 30
Default value - 10
Comments - Recommended values T2 < T1
9.6.8.4 T3 [s]
9.6.8.5 K
9.6.8.6 W
0->1
rising edge (default value)
1->0
falling edge
0<->1
any edge
Data sent - Event content
Range:
Variable - single variable
Group - variable group
Data selection - allows to choose specific Variable or Group.
Selection depends from settings of column Data sent
9.7 Presets
In order to expand module application area it is furbished with initial settings for some
resources. It is necessary when the module is operating as a pulse counter for measuring
devices (e.g. water consumption meter with pulse output) having initial count other than
zero. Due to Presets the actual value of counter register may be equalized with mechanical
counter of the device thus not disturbing the functionality of the system.
In order to set Presets go to Configuration menu and select the Initial settings option or
click following icon on the toolbar.
The Presets icon is active only when the module is connected and selected transmission
channel is not set to Spooler. Sending data in Presets mode is possible only as sending
changes. Bear in mind that sending configuration changes result in immediate and
irrevocable updating of the resource.
When Presets mode is selected all configuration groups disappear from the panel and only
parameters that may have initial value set are displayed. For MT-151 HMI module those
parameters are counters CNT1 - CNT16.
After entering new value counter field turns yellow. It means that value visible in
MTManager is not written to device. To send new values to device press Write changes
button (second from the right on toolbar).
10 Problem solving
or - Currently
used SIM card
or - Device is
logged in GSM service on current SIM card
or - Correct
login into GPRS Service (GPRS LED light on) on current SIM card
Pressing OK Button, while signal strength bar is visible, allow to check which SIM card is in use.
If any pointer from group Q1-Q12 is blinking with 2Hz frequency, then module detected
difference between state of corresponding output bit and actual state of pin. It may happen
when outputs are not powered (Q+ pointer is off) or are connected directly to ground.
Executing the procedure unlocks the SIM card and enables module's proper operation.
11 Technical parameters
11.1 General
NOTICE!
Due to high momentary current consumption the power supply must be
capable of delivering > 2A of current.
Inappropriate power supply may result in faulty operation or can damage
the module!
NOTICE!
All dimensions in millimeters.
12 Safety information
13 Appendices
v2.03.01 - 2019-01-02
v2.02.04 - 2018-03-30
v2.02.03 - 2018-01-30
v2.02.02 - 2017-12-14
v2.02.01 - 2017-11-19
v2.00.05 - 2017-10-10
v2.00.04 - 2017-09-19
v2.00.02 - 2017-08-30
v2.00.01 - 2017-07-15
V2.03.01 - 2018-04-30
V2.02.02 - 2017-10-26
v2.00.04 - 2017-07-11
v2.00.01 - 2017-06-23
Internal application of a module is able to receive, process and send short text messages
(SMS). There is a set of command which can be put in SMS and e-mail message, allowing
the user to read from and write (SMS only) to internal registers placed in module's memory.
Some commands can be used in device configuration parameters for managing of contents
presentation on internal graphics panel.
Char
Description SMS Display
acter
Starts a command
ATTENTION! putting two hash
signs one after another will
prevent module from processing
command following it. However
# supported supported
after sending one of hash signs
will be deleted - this allows to
control resources of one module
from another, e.g. set binary
output Q1 to '1' (##HB128=1)
After reception of SMS message, internal application tries to parse SMS text and execute
command enclosed in it. Parsing process generates new message text, which is send back
to user (if module is allowed to, either by configuration or by presence/absence of '$' sign).
decimal format, and this value will be put in SMS sent back to user. Answer to this
command sent back will be:
>10
where 10 is value read from holding register 0.
If received SMS contains any other characters than correctly formatted commands, these
characters will be copied unaltered to message being sent back. This allows user to freely
compose text of return message and include register values together with some
informational text. For example, if user sends containing:
Both read and write commands can be expanded by adding a prefix, which defines data
format (notation). Prefix should be placed between '#' mark (command start) and register
symbol, and should contain one (or more) characters ended with a dot. For example, to
read an input register 4 in hexadecimal format, one should use a command:
#H.IR4
and module's answer will be:
>1FC8
Prefixes can also be used with write commands.
Command can operate on more than one register. Register count can be included in prefix,
after character denoting data format (which is then mandatory). For example, command:
#D2.HR4=123456
causes write 123456 to two registers, HR4 and HR5 (32-bit variable).
Full list of available prefixes is enclosed below.
User can define in MTManager own symbolic names in module's configuration and assign
them to registers. Then, such names can be used instead of register symbols. It allows user
to define "friendly" names for registers and to erase access to bit values. For example, if
user has defined symbolic name "output" and assigned it to bit 48 of internal registers space
(which is equal to 0 bit of HR3 register), then sending a command:
#output=1
causes module to write 1 to bit 0 of HR3 register. There are several predefined (internal)
symbolic names.
Apart from symbolic names, user can define macros. A macro is defined as a name and a
text assigned to this name. Parsing of received message begins with macro expansion.
Parser looks for words beginning with '*' sign and replaces such names with assigned
strings. Once macro expansions ends, new message text is being interpreted and commands
executed. It allows user to place both commands and symbolic names in macro text.
Furthermore, macros can contain another macro names ("nested" macros), but only those
defined higher in macro list. For example, if configuration contains following macros (in order
shown):
then macro *mttime used in macro number 3 (*state) will be correctly expanded and SMS
text:
*state
but expansion of macro 1 will not contain text assigned to macro name *mttime, therefore
text being executed after macro 1 was used will look like:
*mttime: counter of I1: #D2.HR4
Register spaces
Module's firmware distinguishes two register spaces: Input Registers and Holding Registers.
Access to register space can be made by calls to 16-bit registers or by calls to individual
bits.
Symbol Description
HR{0-n} Holding registers space. Read/write access. 16-bit registers.
IR{0-n} Input registers space. Read only. 16 bit registers.
Bit access to holding registers space. One can access
individual bits (or groups of bits). Read/Write. Bit mapping is
HB{0-16*n}
as follows: bits 0-15 correspond to holding register 0, bits
16-31 - to holding register 1 and so on.
Bit access to input registers space. One can access
individual bits (or groups of bits). Read only. Bit mapping is
IB{0-16*n}
as follows: bits 0-15 correspond to input register 0, bits 16-
31 - to input register 1 and so on.
Register symbols can be preceded by prefixes, which can define amount of data being
processed and data format.
Available prefixes:
Prefix Description
Binary format, 16 characters (bits) default, bits from most to
least significant.
B[1-4] Prefix can contain register count (1-4) being processed
(register symbol defines lowest register) - in resulting string,
rightmost character corresponds to bit with lowest number.
Decimal format, 1-5 characters, unsigned.
Prefix can contain register count (1-4) being processed
D[1-4] (register symbol defines lowest register) - number returned is
decimal notation of n*16 bit value where most significant bit is
placed in register with lowest address (big-endian).
Hexadecimal format, 4 characters.
Prefix can contain register count (1-4) being processed -
H[1-4]
returned string contains n*4-character groups, leftmost group
correspond to register with lowest address (big-endian).
S Decimal format, 1-5 characters (with '-' sign when needed),
signed.
Access to single register treated as 16-bit signed value.
F[1-3] Converts decimal value to floating point number. Number next to
prefix defines number of digits after dot.
Prefix Description
B[1-64] Binary format. Amount of bits being displayed provided in prefix.
Bits are presented in order from least to most significant
(opposite to binary representation of whole register).
D[1-64] Decimal format. Value presented is calculated from amount of
bits provided in prefix, with bit with lowest address being least
significant (little endian)
H[1-64] Hexadecimal format. Value presented is calculated from amount
of bits provided in prefix, with bit with lowest address being
least significant (little endian)
Name Description
Other examples:
Read decimal number consisting from 6 bits starting from address 64 (Input Register 4):
#D6.IB64
Read Holding Register address 122 with two decimal places presentation:
#F2.HR122
Write texts from registers starts from HR7000 address to register 0:
#T.HR7000
Read the constant textual parameter value depends from bit address number 272 (I1) from
analog inputs space (include binary input space). If the input I1=0 then will be read a value
of the text parameter under index 1 (0+1). If the Input I1=1 then will be read a value of the
text parameter under index 2 (1+1):
#TXT(#IB272+1)
Trap number 1 has Specific ID set to 20, which according to MIB file means that
synchronous/asynchronous timer reached its threshold. Triggering bit is set to CT5 and
triggering edge to 0->1, which means that this trap will be triggered when timer CT5 will
count up to its threshold and set its flag to 1. Timer5 is the name of a trap. Status is set to
7, which according to MIB file means that timer reached its threshold, while type set to 6
informs that this timer is synchronous. Index identifies which timer it is.
Trap number 2 informs about alarm on analog input (Specific ID=10 – alarm on analog input).
Trap is triggered by activation of LoLo alarm on analog input AV2. Status set to 6 informs
that this is LoLo alarm. Type set to 4 informs that alarm was triggered on voltage analog
input, while index points analog input AV2. Value provides information about current value of
analog input by addressing its register.
Trap number 3 is triggered by falling edge on binary input I1. Specific ID set to 30 informs
that it is triggered by change of binary input logical state. Status set to 9 informs that this
binary input was turned off. Type set to 2 informs that this binary input is internal module
binary input while index points to first binary input.
· Triggering bit and Triggering edge – they point to rising edge of program flag P1
· Trap name – it is set to Text constant parameter with index set up by value stored in
space (HR1032)
· trapSourceIndex from register address 1033+5*(trap_index-1) in holding registers
This configuration allows to control from program when trap is send and what information it
carries. This allows sending data from external sources and using it to trigger traps.
However it is possible to send only one trap per program cycle.
Below is sample program controlling trap sending. It sends data from external binary inputs
(up to 16) which are mapped to REG3 register. It assumes that names are stored in text
table from position 1 to 16.
#include "MT-151.h"
#define INPUT_REG REG3 // register containing external binary inputs state
#define LOCAL_REG REG4
#define MASK REG6
#define TRAP_STATUS hreg &1030 // SNMP variables registers
#define TRAP_VALUE hreg &1031
#define TRAP_TYPE hreg &1032
#define TRAP_INDEX hreg &1033
#define TRAP_NAME hreg &1034 // trap name index
IF NOT P1 JMP check // there was jump in previous cycle?
BCPY 0, P1 // if yes – reset flag
JMP end
check:
BXOR INPUT_REG, LOCAL_REG, REG5 // check if there was change in inputs state
NE REG5, 0, P1 // set flag if there is a change
IF P1 JMP select // seek for changed bit
JMP end
select:
1. Mnemonics used in text messaging (SMS) which are described in SNCS commands
syntax chapter of MT-151 HMI manual. Those commands allow to present values of
single bits and registers in various forms (integer number, floating point number, hex,
ASCII encoded text). Detailed description is provided in mentioned manual.
3. On screen editable values – mnemonics used before preceded with exclamation mark
(! sign) are editable. In addition you can limit changes range after a colon sign (: sign).
By providing minimum and maximum value separated by semicolon. Range applies to
actual value of register doesn't depend on presentation format (e.g. as floating point
value).
!#HR1027
presents and allows to change value in full range of register 1027 from Holding registers
address space
!#HR1027:10,100
presents and allows to change value in range from 10 to 100 of register 1027 from
Holding registers address space
!#HB48
presents and allows changing sate of Q1 output
!#TXT(HB48+1)
presents and allows changing state of Q1 output. Output state is presented as text
(index 1 for value 0 and index 2 for value 1)
!#TXT(HB48+1:0,1)
presents and allows changing state of Q1 output. Output state is presented as text
(index 1 for value 0 and index 2 for value 1). In addition changes of variable value are
limited to range from 0 to 1
To make texts more clear it is possible to change text alignment from default left to
right alignment. For this purpose is used vertical bar sign (| sign). Every text placed
after that sign is right aligned. Entering in line text:
I1 state: | #IB272
Register Function
offset
+0 Time in seconds before taking next data sample.
+1 Number of samples presented on screen (max. 90)
+2 Timestamp of last sample (LoHi) – format is exactly the
same as used by RTC module
+3
+3 and available in Timestamp register
+4 First 14 bits are used for storing address of sampled
register. 15 th bit is pointing out
Header
sampled register address space (0 – holding registers
address space, 1 – analog inputs address space).
+5 “Sample taken” flag
+6 Sampling interval in seconds
+7 Reserved for future functionality
+8 Reserved for future functionality
+9 Reserved for future functionality
+10 Newest sample (left side of chart) – value between -32000
and 32000.
Data ... ...
+99 Oldest sample (right side of chart) – value between -32000
and 32000.
When Data acquisition parameter is set to User, a number of samples are presented as units
on axis X. In this mode, only data registers (+10...+99) and register responsible for the
number of samples (+1) presented on screen need to be set.
When a chart screen is displayed user can press OK button to show the chart name that
can be configured.
The module restarts may cause discontinuity of data acquisition.
To calculate the addresses of the individual bits in the Binary Outputs, use the following
equation:
For example, in the PRG_FLG1 register from Input Registers address space (address 2) on
position 7 is located FS1_gprs bit indicating GPRS logon. Using that formula, you can specify
the address of FS1_gprs bit in Binary Inputs address space as follows:
2 * 16 +7 = 39.
Status flags:
FS1_fs - first program scan FS1_usb = 1 when USB cable is connected
FS1_new - informs about loading new program
FS1_stop = 1 when program is stopped FS1_acu = 1 when battery is connected
FS1_ovr = 1 delay of program running FS1_pwr = 1 - main power is connected
FS1_prog = 1 when error in user program FS1_lowacu = 1 low voltage battery
FS1_q+ = 1 when binary outputs are not FS1_3G =1 when logged to 3G network
powered FS1_sd = 1 when microSD card is installed in slot
FS1_gsm = 1 when module is logged into GSM FS1_rst = 1 for 1 cycle after module reset
network
FS1_gprs = 1 when module is logged into GPRS
network
A ddress Bit
Name Description
Reg Bit [0] 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
PI
N_ FS
SI RO P I PI PU N FS
W SD 2 _r
M_ A N_ N_ K_ O _ - - 2 _r
3 48 --- R - - - - - - - - - - - - _wri tc _ P RG _FL G 2 Sys tem flags
US MI O AT RE SI - tc _
O te mi
E NG K TE Q M s ec
N n
G
System flags:
FS2_rtc_sec - 1Hz impulsator (1 second) PIN_WRONG - wrong PIN code
FS2_rtc_min - 1/60Hz impulsator (1 minute) PIN_ATTE - Two attempts made
SD_write - writing on SD card in progress now PIN_OK - Pin code correct
NO_SIM - no SIM card detected ROAMING - module in roaming
PUK_REQ - PUK code required SIM_USE which card is used = 0(SIM1), 1(SIM2)
A ddress Bit
Name Description
Reg Bit [0] 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
- - - - - - - - - - - - - - RT C _FSE C RT C - frac tion of
4 64 2 2 2 2 2 2 -7 -8 2 2 2 2 2 2 2 2
2 2 s ec ond
1 2 3 4 5 6 9 10 11 12 13 14 15 16
RT C _Sec RT C - s ec ond (0 -
5 80 int1 6 (L oH i)
59)
6 96 RT C _M in RT C - minute (0 -
int1 6 (L oH i)
59)
7 112 int1 6 (L oH i) RT C _H our RT C - hour (0 - 2 3 )
RT C _D ofW RT C - day of week
8 128 int1 6 (L oH i) (1 - Sunday, 7 -
Saturday)
RT C _D ay RT C - day of month
9 144 int1 6 (L oH i)
(1 - 3 1 )
10 160 int1 6 (L oH i) RT C _M on RT C - month (1 - 1 2 )
RT C _Y ear RT C - year (2 0 0 0 -
11 176 int1 6 (L oH i)
2099)
12 192
int3 2 (L oH i) RT C T imes tamp
13 208
14 224 T ime in s ec onds
int3 2 (L oH i) O N _T M R
15 240 s inc e power on
[engineering units ]
A nalog input A I 4
26 416 int1 6 (L oH i) A I4 meas urement
[engineering units ]
AI AI AI AI AI A larm bits for A I 1 -
AI A I2 AI AI AI
2_ 2_ 2_ AI 1_ 1_ AI AI A I 4 analog inputs :
2_ _ A I2 -- 1_ 1_ 1_
27 432 --- A B BE D 2_ AB BE 1_ 1_ A L M _I 1 2 A I x_A BO V E -
Hi L oL _L o - DB Hi Lo
OV LO B Hi O LO Hi Lo meas urement above
Hi o D Hi Lo
E W D VE W 2 0 .5 mA
A I x_BE L O W -
meas urement below
3 .5 mA
A I x_D BD -
meas urement
AI AI AI AI AI c hange higher than
AI A I4 AI AI AI deadband
4_ 4_ 4_ AI 3_ 3_ AI AI
4_ _ A I4 -- 3_ 3_ 3_ A I x_L oL o - L oL o
28 448 --- A B BE D 4_ AB BE 3_ 3_ A L M _I 3 4
Hi L oL _L o - DB Hi Lo alarm flag
OV LO B Hi O LO Hi Lo
Hi o D Hi Lo A I x_L o - L o alarm
E W D VE W
flag
A I x_H i - H i alarm
flag
A I x_H iH i - H iH i
alarm flag
A nalog input A V 1
29 464 int1 6 (L oH i) A V 1 _raw
meas urement [mV ]
A nalog input A V 2
30 480 int1 6 (L oH i) A V 2 _raw
meas urement [mV ]
A nalog input A V 1
31 496 int1 6 (L oH i) AV1 meas urement
[engineering units ]
A nalog input A V 2
32 512 int1 6 (L oH i) AV2 meas urement
[engineering units ]
A larm bits for A V 1
- A V 2 analog
inputs :
A V x_A BO V E -
meas urement above
10V
A V x_BE L O W -
meas urement below
A A A
AV AV A 0V
V A AV2 V1 V1 AV AV AV
2_ 2_ V2 AV2 AV AV A V x_D BD -
2_ V2 _ -- _ _ 1_ 1_ 1_
33 528 --- A B BE _ _ 1_ 1_ A L M _V 1 2 meas urement
D _ L oL - A B BE D B Hi Lo
OV LO Hi Lo Hi Lo c hange higher than
B Hi o O LO D Hi Lo
E W Hi deadband
D VE W
A V x_L oL o - L oL o
alarm flag
A V x_L o - L o alarm
flag
A V x_H i - H i alarm
flag
A V x_H iH i - H iH i
alarm flag
A V A KU Battery voltage
34 544 int1 6 (L oH i)
[mV ]
AVZ P ower s upply
35 560 int1 6 (L oH i)
voltage [mV ]
C C
CN C C C C
CN CN N N CN CN CN CN CN
T1 NT NT C NT NT NT
T1 T1 T1 C NT T T5 T4 T3 T2 T1 C ounter overflow
4_ 12 11 10_ 7_ 6_
36 576 6_ 5_ 3_ 9 _O 8_ _O _O _O _O _O C N T _O V FL bits (s et for 1
O _O _O O V F O O
OV OV O V FL O VF VF VF VF VF program c yc le)
VF VF VF L VF VF
FL FL VF V L L L L L
L L L L L
L FL
C C A s ync hronous
CK CK CK C K C K C K1 CK CK CK CK CK CK CK
37 592 K1 C K9 K C Kx timers flags (s et for
16 15 14 12 11 0 7 6 5 4 3 2 1
3 8 1 program c yc le)
16 15 14 13 12 11 SL c ommunic ation on
7 _ 6 _ 5 _ 4 _ 3 _o 2 _ 1_
_ _o _o _o _o _o _ok ok 8_ s erial port number 1
ok ok ok ok k ok ok
ok k k k k k ok is O K
C P rogram c ounters
39 624 C7 C6 C5 C4 C3 C2 C1 ...
8 C x overflow flags
T P rogram timers T x
40 640 T7 T6 T5 T4 T3 T2 T1 ...
8 flags
TS TS TS TS TS TS T TS TS TS TS TS TS T SL x_ok=1 - when
T SL T SL TS
L1 L1 L1 L1 L1 L1 SL L 7 L 6 L 5 L 4 L2 L1 data bloc k x
41 656 1 0 _ 9 _o L3_ ...
6_ 5_ 4_ 3_ 2_ 1_ 8 _ _o _o _o _o _o _o c ommunic ation on
ok k ok
ok ok ok ok ok ok ok k k k k k k E thernet port is O K
M
M M M M M
MT MT MT T MT MT MT MT MT
T2 T2 T2 MT2 MT2 T2 T2
2M 2M 2M 2 2M 2M 2M 2M 2M
42 672 M M M MT_ MT_ M M ... M T x bit informs
T_ T_ T_ M T_ T_ T_ T_ T_
T_ T_ T_ 10 9 T_ T_ about rec eiving
16 15 14 T_ 5 4 3 2 1
13 12 11 7 6 data to M T 2 M T
8
buffer from devic e,
M whic h I P number is
M M M T M M s aved on x pos ition
MT MT MT MT MT MT MT MT
T2 T2 T2 MT2 MT2 2 T2 T2 on A uthorized - > I P
2M 2M 2M 2M 2M 2M 2M 2M
43 688 M M M MT_ MT_ M M M ... lis t
T_ T_ T_ T_ T_ T_ T_ T_
T_ T_ T_ 26 25 T_ T_ T_
32 31 30 21 20 19 18 17
29 28 27 2 23 22
4
P2 P2 P2 P2 P2 P2 P P 2 SL x_ok=1 when
P2 P2 P2 P2 P2 P2 P2
SL SL SL SL SL SL P 2 S P 2 S 2 data bloc k 1 - 1 6
SL SL SL SL SL SL SL
44 704 16 15 14 13 12 1 1 L 1 0 L 9 _ SL ... c ommunic ation on
7_ 6_ 5 _ 4 _ 3 _o 2_ 1_
_ _o _o _o _o _o _ok ok 8 _ s erial port number 2
ok ok ok ok k ok ok
ok k k k k k ok is O K
P P 1 SL x_ok=1 when
P1 P1 P1 P1 P1 P1 P1 P1 P1 P1 P1 P1 P1
P1S P1S 1 data bloc k 1 7 - 3 2
SL SL SL SL SL SL SL SL SL SL SL SL SL
L 2 6 L 2 5 SL c ommunic ation on
45 720 32 31 30 29 28 27 23 22 21 20 19 18 17 ...
_ _ 2 s erial port number 1
_ _ _ _ _ _ _ _ _ _ _ _ _
ok ok 4 _ is O K
ok ok ok ok ok ok ok ok ok ok ok ok ok
ok
P P 2 SL x_ok=1 when
P2 P2 P2 P2 P2 P2 P2 P2 P2 P2 P2 P2 P2
P2S P2S 2 data bloc k 1 7 - 3 2
SL SL SL SL SL SL SL SL SL SL SL SL SL
L 2 6 L 2 5 SL c ommunic ation on
46 736 32 31 30 29 28 27 23 22 21 20 19 18 17 ...
_ _ 2 s erial port number 2
_ _ _ _ _ _ _ _ _ _ _ _ _
ok ok 4 _ is O K
ok ok ok ok ok ok ok ok ok ok ok ok ok
ok
... ... ... ... ...
80 1280 C urrent flow value
int3 2 (L oH i) FL _I 1
81 1296 I1
102 1632 G D A T A _O U
C ounter of bytes s ent via c ellular network s inc e module power on int3 2 (L oH i)
103 1648 T _C N T
118 1888 C ounter of unac knowledged frames s ent via c ellular network s inc e G F_U N A C K_
int3 2 (L oH i)
119 1904 module power on C NT
120 1920 C ounter of frames rec eived from c ellular network s inc e module power
G F_RX_C N T int3 2 (L oH i)
121 1936 on
M BX=1 when
M M M M
MB MB MB M B1 M M MB MB MB MB MB module rec eive
350 5600 B1 B1 B1 M B9 B M BX
16 15 14 0 B7 B6 5 4 3 2 1 c orrec t ans wer from
3 2 1 8
M - BU S devic e X
1 on bit X means
M B_P 1 D 1 _o
351 5616 P O RT 1 - M - BU S - D evic e 1 c orrec t variable reading c orrec t reading
k
variable number X
... ... ... ... ...
1 on bit X means
M B_P 1 D 1 6 _
366 5856 P O RT 1 - M - BU S - D evic e 1 6 c orrec t variable reading c orrec t reading
ok
variable number X
A ddres s of M - BU S
devic e ans wering to
370 5920 int1 6 (L oH i) M B_A D D R
module in Brodc as t
addres s ing mode
All register values are treated as signed values!
All registers and bits from Input registers address space are accessible in programming tools
either by their name given in Name column or by:
IB[bit address] for single bit, e.g. to access bit I1 (address 272) you can use mnemonic I1
or IB272
IR[reg address] name for 16-bit int, e.g. to access register AI1 (address 23) you can use
mnemonic AI1 or IR23
12 192 3 2 - bit
int3 2 (L oH i) CNT5 c ounter
13 208 regis ter
14 224 3 2 - bit
int3 2 (L oH i) CNT6 c ounter
15 240 regis ter
16 256 3 2 - bit
int3 2 (L oH i) CNT7 c ounter
17 272 regis ter
18 288 3 2 - bit
int3 2 (L oH i) CNT8 c ounter
19 304
regis ter
20 320 3 2 - bit
int3 2 (L oH i) CNT9 c ounter
21 336
regis ter
22 352 3 2 - bit
int3 2 (L oH i) CNT10 c ounter
23 368
regis ter
24 384 3 2 - bit
int3 2 (L oH i) CNT11 c ounter
25 400
regis ter
26 416 3 2 - bit
int3 2 (L oH i) CNT12 c ounter
27 432
regis ter
28 448 3 2 - bit
int3 2 (L oH i) CNT13 c ounter
29 464
regis ter
30 480 3 2 - bit
int3 2 (L oH i) CNT14 c ounter
31 496
regis ter
32 512 3 2 - bit
int3 2 (L oH i) CNT15 c ounter
33 528
regis ter
34 544 3 2 - bit
int3 2 (L oH i) CNT16 c ounter
35 560
regis ter
36 576 C K1
as ync hrono
37 592
int3 2 (L oH i) REG_CK1 us timer -
c urrent
value
38 608 C K2
as ync hrono
39 624
int3 2 (L oH i) REG_CK2 us timer -
c urrent
value
40 640 C K3
as ync hrono
41 656
int3 2 (L oH i) REG_CK3 us timer -
c urrent
value
42 672 C K4
as ync hrono
43 688
int3 2 (L oH i) REG_CK4 us timer -
c urrent
value
44 704 C K5
as ync hrono
45 720
int3 2 (L oH i) REG_CK5 us timer -
c urrent
value
46 736 C K6
as ync hrono
47 752
int3 2 (L oH i) REG_CK6 us timer -
c urrent
value
48 768
C K7
int3 2 (L oH i) REG_CK7
as ync hrono
49 784 us timer -
c urrent
value
50 800 C K8
as ync hrono
51 816
int3 2 (L oH i) REG_CK8 us timer -
c urrent
value
52 832 C K9
as ync hrono
53 848
int3 2 (L oH i) REG_CK9 us timer -
c urrent
value
54 864 C K1 0
as ync hrono
55 880
int3 2 (L oH i) REG_CK10 us timer -
c urrent
value
56 896 C K1 1
as ync hrono
57 912
int3 2 (L oH i) REG_CK11 us timer -
c urrent
value
58 928 C K1 2
as ync hrono
59 944
int3 2 (L oH i) REG_CK12 us timer -
c urrent
value
60 960 C K1 3
as ync hrono
61 976
int3 2 (L oH i) REG_CK13 us timer -
c urrent
value
62 992 C K1 4
as ync hrono
63 1008
int3 2 (L oH i) REG_CK14 us timer -
c urrent
value
64 1024 C K1 5
as ync hrono
65 1040
int3 2 (L oH i) REG_CK15 us timer -
c urrent
value
66 1056 C K1 6
as ync hrono
67 1072
int3 2 (L oH i) REG_CK16 us timer -
c urrent
value
68 1088 M odule
int1 6 (L oH i) RESTA RT res tart
c ounter
C1 - C8
program
CL CL CL CL CL CL CL c ounters
C LK
69 1104 K_ K_ K_ K_ K_ K_ K_ HR69 c ounting
_C 1
C8 C7 C6 C5 C4 C3 C2 inputs
(ac tive on
ris ing edge)
C1 - C8
program
RS RS RS RS RS RS RS c ounters
RST
70 1120 T_ T_ T_ T_ T_ T_ T_ HR70 res etting
_C 1
C8 C7 C6 C5 C4 C3 C2 inputs
(ac tive on
1)
T1 - T8
EN EN EN EN EN EN EN
EN_ program
71 1136 _T _T _T _T _T _T _T HR71
T1 timers
8 7 6 5 4 3 2
enable bits
(ac tive on
1)
T1 - T8
program
RS RS RS RS RS RS RS
RST timers
72 1152 T_ T_ T_ T_ T_ T_ T_ HR72
_T 1 res etting
T8 T7 T6 T5 T4 T3 T2
bits (ac tive
on 1 )
… … … … …
100 1600 P1
P15 P14 P13 P12 P11 P10 P9 P8 P7 P6 P5 P4 P3 P2 P1 P_FLG_1
6 G eneral
purpos e
… … … …
program
115 1840 P2 P25 P25 P25 P25 P25 P25 P24 P2 P2 P2 P2 P2 P2 P2 P24 flags
P_FLG_16
56 5 4 3 2 1 0 9 48 47 46 45 44 43 42 1
116 1856 G eneral
int1 6 (L oH i) REG1 purpos e 1 6 -
bit regis ter
… … … … …
371 5936 G eneral
int1 6 (L oH i) REG256 purpos e 1 6 -
bit regis ter
372 5952 G eneral
purpos e 3 2 -
373 5968
int3 2 (L oH i) DREG1 bit regis ter
(s igned
value)
... ... … … …
626 10016 G eneral
purpos e 3 2 -
627 10032
int3 2 (L oH i) DREG128 bit regis ter
(s igned
value)
… … … … …
C 1 program
c ounter
630 10080 int1 6 (L oH i) PV_C1
thres hold
value
C 2 program
c ounter
631 10096 int1 6 (L oH i) PV_C2
thres hold
value
C 3 program
c ounter
632 10112 int1 6 (L oH i) PV_C3
thres hold
value
C 4 program
c ounter
633 10128 int1 6 (L oH i) PV_C4
thres hold
value
C 5 program
c ounter
634 10144 int1 6 (L oH i) PV_C5
thres hold
value
C 6 program
c ounter
635 10160 int1 6 (L oH i) PV_C6
thres hold
value
C 7 program
c ounter
636 10176 int1 6 (L oH i) PV_C7
thres hold
value
C 8 program
c ounter
637 10192 int1 6 (L oH i) PV_C8
thres hold
value
T 1 program
638 10208 int1 6 (L oH i) PV_T1
timer
thres hold
value
T 2 program
timer
639 10224 int1 6 (L oH i) PV_T2
thres hold
value
T 3 program
timer
640 10240 int1 6 (L oH i) PV_T3
thres hold
value
T 4 program
timer
641 10256 int1 6 (L oH i) PV_T4
thres hold
value
T 5 program
timer
642 10272 int1 6 (L oH i) PV_T5
thres hold
value
T 6 program
timer
643 10288 int1 6 (L oH i) PV_T6
thres hold
value
T 7 program
timer
644 10304 int1 6 (L oH i) PV_T7
thres hold
value
T 8 program
timer
645 10320 int1 6 (L oH i) PV_T8
thres hold
value
C 1 program
c ounter
646 10336 int1 6 (L oH i) REG_C1
c urrent
value
C 2 program
c ounter
647 10352 int1 6 (L oH i) REG_C2
c urrent
value
C 3 program
c ounter
648 10368 int1 6 (L oH i) REG_C3
c urrent
value
C 4 program
c ounter
649 10384 int1 6 (L oH i) REG_C4
c urrent
value
C 5 program
c ounter
650 10400 int1 6 (L oH i) REG_C5
c urrent
value
C 6 program
c ounter
651 10416 int1 6 (L oH i) REG_C6
c urrent
value
C 7 program
c ounter
652 10432 int1 6 (L oH i) REG_C7
c urrent
value
C 8 program
c ounter
653 10448 int1 6 (L oH i) REG_C8
c urrent
value
T 1 program
timer
654 10464 int1 6 (L oH i) REG_T1
c urrent
value
T 2 program
655 10480 int1 6 (L oH i) REG_T2
timer
c urrent
value
T 3 program
timer
656 10496 int1 6 (L oH i) REG_T3
c urrent
value
T 4 program
timer
657 10512 int1 6 (L oH i) REG_T4
c urrent
value
T 5 program
timer
658 10528 int1 6 (L oH i) REG_T5
c urrent
value
T 6 program
timer
659 10544 int1 6 (L oH i) REG_T6
c urrent
value
T 7 program
timer
660 10560 int1 6 (L oH i) REG_T7
c urrent
value
T 8 program
timer
661 10576 int1 6 (L oH i) REG_T8
c urrent
value
… … … … …
824 13184 G eneral
float3 2 - float variable FREG1 purpos e 3 2 -
bit regis ter
… … … … …
1022 16352 G eneral
float3 2 - float variable FREG100 purpos e 3 2 -
1023 16368
bit regis ter
1638 T RA P _ST A T Regis ters
1024 int1 6 (L oH i)(trapSourc eStatus - SN M P variable)
4 US us ed for
1640 T RA P _V A L U s ending
1025 int1 6 (L oH i)(trapSourc eV alue - SN M P variable) SN M P traps .
0 E
D o not put
1641
1026 int1 6 (L oH i)(trapSourc eT ype - SN M P variable) T RA P _T Y P E your own
6 data here, if
1643 T RA P _I N D E you us e
1027 int1 6 (L oH i)(trapSourc eI ndex - SN M P variable) SN M P traps .
2 X
G eneral
1644
1028 int1 6 (L oH i) H R1 0 2 8 purpos e
8
regis ter
1029 1646 G eneral
4 int1 6 (L oH i) H R1 0 2 9 purpos e
regis ter
1030 1648 T RA P _ST A T SN M P trap
int1 6 (L oH i)(trapSourc eStatus - SN M P variable)
0 U S_1 1
c onfiguratio
1031 1649 T RA P _V A L U
int1 6 (L oH i)(trapSourc eV alue - SN M P variable) n regis ters
6 E _1
us ed, when
1032 1651 T RA P _T Y P E data for
int1 6 (L oH i)(trapSourc eT ype - SN M P variable)
2 _1 traps is
1033 1652 taken from
8 regis ters
T RA P _I N D E
int1 6 (L oH i)(trapSourc eI ndex - SN M P variable) ins tead of
X_1
c onfiguratio
n
… … … … …
1110 1898 SN M P trap
6 16
c onfiguratio
T RA P _ST A T
int1 6 (L oH i)(trapSourc eStatus - SN M P variable) n regis ters
U S_1 6
us ed, when
data for
traps is
1111 1899 T RA P _V A L U
int1 6 (L oH i)(trapSourc eV alue - SN M P variable)
2 E _1 6 taken from
regis ters
1112 1900 T RA P _T Y P E
int1 6 (L oH i)(trapSourc eT ype - SN M P variable) ins tead of
8 _1 6
c onfiguratio
1113 1902 T RA P _I N D E n
int1 6 (L oH i)(trapSourc eI ndex - SN M P variable)
4 X_1 6
… … … … …
4095 6552 G eneral
0 L as t regis ter that is available as bitwis e H R4 0 9 5 purpos e 1 6 -
bit regis ter
… … … … …
5000 - C ounter
P O RT 1 - Flex Serial data rec eiving buffer P 1 RC V _N O rec eived
data
5001 - Firs t
P 1 RC V _B1 regis ter of
P O RT 1 - Flex Serial data rec eiving buffer
rec eiving
buffer
… … … … …
5256 - L as t
P 1 RC V _B2 5
regis ter of
P O RT 1 - Flex Serial data rec eiving buffer 6
rec eiving
buffer
5257 - Rec eiving
P O RT 1 - Flex Serial data rec eiving buffer P 1 RC V _E RR
buffer s tatus
… … … … …
5500 - C ounter
P O RT 1 - Flex Serial data s ending buffer P 1 SN D _N O
s ent data
5501 - Firs t
regis ter of
P O RT 1 - Flex Serial data s ending buffer P 1 SN D _B1
s ending
buffer
… … … … …
5756 - L as t
P 1 SN D _B2 5 regis ter of
P O RT 1 - Flex Serial data s ending buffer
6 s ending
buffer
… … … … …
6000 - C ounter
P O RT 2 - Flex Serial data rec eiving buffer P 2 RC V _N O rec eived
data
6001 - Firs t
P 2 RC V _B1 regis ter of
P O RT 2 - Flex Serial data rec eiving buffer
rec eiving
buffer
… … … … …
6256 - L as t
P 2 RC V _B2 5
regis ter of
P O RT 2 - Flex Serial data rec eiving buffer 6
rec eiving
buffer
6257 - Rec eiving
P O RT 2 - Flex Serial data rec eiving buffer P 2 RC V _E RR
buffer s tatus
… … … … …
6500 - C ounter
P O RT 2 - Flex Serial data s ending buffer P 2 SN D _N O
s ent data
6501 - Firs t
regis ter of
P O RT 2 - Flex Serial data s ending buffer P 2 SN D _B1
s ending
buffer
… … … … …
6756 - L as t
P 2 SN D _B2 5 regis ter of
P O RT 2 - Flex Serial data s ending buffer
6 s ending
buffer
… … … … …
7000 - G eneral
int1 6 (L oH i) s aved every 1 m (non- volatile) HR7000 purpos e
regis ter
… … … … …
7500 - T ime in s ec onds to next s ample on W1 c hart (us ed only with automatic
ac quis ition)
7501 - N umber of s amples pres ented on W1 c hart (0 - 9 0 )
7502 - T imes tamp (U nix epoc h times tamp format) of las t s ample on W1 c hart (us ed
only with automatic ac quis ition)
7503 -
7504 - E nc oded addres s of regis ter whic h value is pres ented on W1 c hart (us ed only
with automatic ac quis ition)
bits 0 - 1 4 : A ddres s of regis ter
bit 1 5 : 0 - input regis ters ; 1 - holding regis ter
7505 - I f 1 s ample is out on W1 c hart(us ed only with automatic ac quis ition)
7506 - D ata ac quis ition interval in s ec onds on W1 c hart (us ed only with automatic
ac quis ition)
7507 - int1 6 (L oH i) s aved every 1 m (non- volatile)
… … …
7600 - T ime in s ec onds to next s ample on W2 c hart (us ed only with automatic
ac quis ition)
7601 - N umber of s amples pres ented on W2 c hart (0 - 9 0 )
7602 - T imes tamp (U nix epoc h times tamp format) of las t s ample on W2 c hart (us ed
only with automatic ac quis ition)
7603 -
7604 - E nc oded addres s of regis ter whic h value is pres ented on W2 c hart (us ed only
with automatic ac quis ition)
bits 0 - 1 4 : A ddres s of regis ter
bit 1 5 : 0 - input regis ters ; 1 - holding regis ter
7605 - I f 1 s ample is out on W2 c hart(us ed only with automatic ac quis ition)
7606 - D ata ac quis ition interval in s ec onds on W2 c hart (us ed only with automatic
ac quis ition)
7607 - int1 6 (L oH i) s aved every 1 m (non- volatile)
… … …
7700 - T ime in s ec onds to next s ample on W3 c hart (us ed only with automatic
ac quis ition)
7701 - N umber of s amples pres ented on W3 c hart (0 - 9 0 )
7702 - T imes tamp (U nix epoc h times tamp format) of las t s ample on W3 c hart (us ed
only with automatic ac quis ition)
7703 -
7704 - E nc oded addres s of regis ter whic h value is pres ented on W3 c hart (us ed only
with automatic ac quis ition)
bits 0 - 1 4 : A ddres s of regis ter
bit 1 5 : 0 - input regis ters ; 1 - holding regis ter
7705 - I f 1 s ample is out on W3 c hart(us ed only with automatic ac quis ition)
7706 - D ata ac quis ition interval in s ec onds on W3 c hart (us ed only with automatic
ac quis ition)
… … …
7800 - T ime in s ec onds to next s ample on W4 c hart (us ed only with automatic
ac quis ition)
7801 - N umber of s amples pres ented on W4 c hart (0 - 9 0 )
7802 - T imes tamp (U nix epoc h times tamp format) of las t s ample on W4 c hart (us ed
only with automatic ac quis ition)
7803 -
7804 - E nc oded addres s of regis ter whic h value is pres ented on W4 c hart (us ed only
with automatic ac quis ition)
bits 0 - 1 4 : A ddres s of regis ter
bit 1 5 : 0 - input regis ters ; 1 - holding regis ter
7805 - I f 1 s ample is out on W4 c hart(us ed only with automatic ac quis ition)
7806 - D ata ac quis ition interval in s ec onds on W4 c hart (us ed only with automatic
ac quis ition)
7807 - int1 6 (L oH i) s aved every 1 m (non- volatile)
… … …
… … …
… … …
8191 - int1 6 (L oH i)
… … …
Special function code registers are prepared for execution an additional functions. Each
function has got a numeric value which has to be insert into this register for activation.
Module restart (executed about 5-7 seconds after entering both values)
57005 into HR9000 (first insert)
42435 into HR9001 (second insert)
All rights reserved. No parts of this work may be reproduced in any form or by any means -
graphic, electronic, or mechanical, including photocopying, recording, taping, or information
storage and retrieval systems - without the written permission of the publisher.
Products that are referred to in this document may be either trademarks and/or registered
trademarks of the respective owners. The publisher and the author make no claim to these
trademarks.
While every precaution has been taken in the preparation of this document, the publisher
and the author assume no responsibility for errors or omissions, or for damages resulting
from the use of information contained in this document or from the use of programs and
source code that may accompany it. In no event shall the publisher and the author be liable
for any loss of profit or any other commercial damage caused or alleged to have been
caused directly or indirectly by this document.