Home

MT-202-user-manual

image

Contents

1. PRRP 107 13 PAGS ranna 107 13 9 RIVIST2 circio ciatis eda Sami odo odas idisse od cu Loc edi c ue d UD OP LM LIS deeds ea Se Cr COd O E 107 PSO MEMORY MAP ait iai eia AA e ed 109 13 10 LE BINGIY TA DUES SPACO T ET 109 I3 10 2 Binary OUEDUES SPICE 112 13 10 3 Analogue INPUTS SD CE oe roce ra edu such dais 113 1310 4 Internal Registers SDUEB is 114 13 10 5 Auxiliary resources for GazModem mode ssi essen nnne nhanh nes ssna aan s essa assess aaa assess saga aan 116 13 106 Auxillaty resources Jor M BUS mode SA tnn M ERR AS 118 13 10 7 Auxiliary resources of NMEA 0183 mode cccccssesseccccsessecccccseussesccseuseesecseuseesecsuccusesecsscuseseessensessessuenss 123 1 Introduction Despite the explosive expansion of mobile phone networks and the per definition digital nature of transmission utilized by them these networks were not well suited for the transfer of digital data streams until recently The applied technologies used traditional modem protocols This meant that the need to use circuit switched mode for establishing connections and transmission capabilities was limited to point to point connections Thus we had to do with the typical analogue circuit switched links technology used in traditional telephone systems adapted to the wireless digital transmission environment A connection established for data transmission occupi
2. Program flags enabling rule based VREG 504 0x0048 P31 data transmission on event UBECOBGR Lx Js LL x olds ou Ji un du x eee General purpose user fags pn OxOOFO BU240 BU241 BU242 BU243 BU244 BU245 BU246 BU247 General purpose user fags VREG BO15 OxOOF8 BU248 BU249 BU250 BU251 BU252 BU253 BU254 BU255 General purpose user fags 2 10 N 13 10 3 Analogue inputs space Input Registers 16 bit command 04H 0x000 A Reserved AO Y Reserved AR Reserved O OxOOOE unsigned value low 16 bit Ox000F Number of received bytes for GPRS since power up high 16 bit 0x0010 32 bit unsigned value low 16 bit A Hg NGC WEE MEE ONE RN a A SO GPRS statistics Transmission Number of frames Type 0 retries not accounted 0x0074 GPRS statistics Reception high 16 bits Number of retries GPRS statistics Transmission 0x0077 Number of not delivered not confirmed frames low 16 bits Frames Type 0 GPRS statistics Reception Frames Type 1 GPRS statistics Reception Rejected frames Type 0 module busy O pss oii diae to invalid password 0x0082 Last attempt time hours 0x0083 Last attempt time minutes 0x0084 GSM signal strength Max value 188 dr 0x0085 Firmware version y xx y High byte xx Low byte Reserved for GAZMODEM extension in MBUS LEC 0x0086 iode Reserved for GAZMODEM extension in MBUS_LEC Ox00A7 MR OxOOBC Number of program lines execu
3. gt lt internal program execution that is every 100ms 9 9 2 Counters C1 C8 Cx CLK Cx 16 bit counter Cx RST Cx REG Cx 16 bit actual value ts 3 a E E i E space pale casse bra bee mene EU eee 4 1 e o sel eacus Sese ne y 2 oo MEME m S E sales a i 3e amp 8 REN NEN m 4 Binary outputs space IX aX l l CLK Cx EST Cx REG Cx PV Cx ycles 100 ms Program c 81 9 10 Signal levels or edges All logical input values may be additionally affected by a level or edge condition a L DJ Gd The default value is a positive signal level However the user can change each of the input signals Condition Parameter X or Parameter Y so that the program reacts to inverted value rising edge falling edge or change of state 9 11 Filling and modifying program table The program table has to be filled out with subsequent lines starting with the left column and moving towards the right column Double clicking on any given field in the table unfolds a list of variables or functions available to the given column In the Condition column double clicking unfolds a list of logical variables whose state can be checked The name of the variable can also be entered directly by keyboard or by clicking on the 0 1 values on the numerical keypad After selecting the name of the variable it is also possible to define the level or edge condition the e
4. All Unrestricted access for any IP address within the APN List Access limited to addresses defined in the list of Authorized numbers IP for addresses with Configuration option set to Allowed All Note that access restriction configuration applies only to GPRS connection and when used improperly may block remote access for users that should have the right to configure the module 8 2 2 5 Configuration password Function Data type Range Default value Comments defines the password protecting access to configuration of the module The password will be required for both local and remote access thus protecting against unauthorized configuration alterations The password does not protect against reading current configuration or the module status text string letters and numerals max 32 characters n a since the only way of unlocking the module is resetting it to factory settings it is vital that the password is stored in a safe way and available when needed 27 28 8 2 2 6 Configuration read disable Function Data type Range Default value Comments blocks reading of module configuration even when using valid password selection list Yes Reading of configuration from the module is impossible No Module is not protected against reading of configuration No This parameter does not influence writing a new full configuration but prevents writing changes if configuration identifiers in the module and in MTM
5. Number Configuration Receiving The list may be edited using context menu activated by right mouse click Available operations depend on the cursor placement When cursor rests on an entry all options are available while only Append is available with cursor resting on active window s background list index number friendly name of the number facilitating identification in Rules processing Max length 16 characters phone number assigned to index and name Max 23 characters Phone number may be a stored in the internal registers which allows dynamic changes of SMS recipient number Number should be stored in the form of ASCII characters string Characters are stored only on the younger byte of register String should be ended with NULL character 0x0000 depending on check mark incoming SMS requests will be processed or ignored Number SMS5 request iw 45268 70878 y 34518734375 n n list index number friendly name of the IP number facilitating identification in Rules processing Max length 16 characters number IP assigned to index and Name grants or denies right to perform remote configuration by this IP number depending on this setting data incoming from this IP will be accepted or rejected Configuration Sending v np 8 2 5 Mode of operation Group Mode of operation is not present on the list of parameter groups available for MT 202 configuration It is only present in this manual in ord
6. The User has access to following flags Resources Description attached p Bi In 0 gt 1 Flag assuming value True after change of binary resource FS1_ups from O to 1 Bi In i gt 0 FS1_gprs Flag assuming value True after change of binary resource P1 P32 from 1 toO TMR1 TMR4 Bi In Chg 13 9 RM 120 Flag assuming value True after any change of binary input Converter module RM 120 is used as an intermediate in communication between telemetry module and the heat meter employing M BUS transmission protocol RM 120 performs the conversion of RS 232 signal to electrical M Bus signal 107 ze RTS optional signaling for computers COM connection not used for MT module PE1 RS232 circuit ground 108 13 10 Memory map 13 10 1 Binary inputs space Binary inputs bit addressable command 02 addres o Be scriotion Virtual virtual p Registers VREG_BIO VREG BI1 a pp 1 first cycle of the program FS1 ovr 1 delayed cycle start previous cycle longer than 100ms FSI ups 1 no supply on UPS pin FS1_ prog 1 error detected in user s 0x0028 FSi fs FSi ovr FS1 ups FS1 prog FSi_gprs FS1 event FS1 sms i nod program VREG BIZ FS1 gprs 1 module logged out of GPRS On logon the bit is reset On power on FS1 gprs 0 FSI event 1 event queue overflow data FS1 sms 1 event to er loxoo30 4 Reserved 9 sei p
7. 0x404 1028 0x404 1028 nai ddress Modbus 41029 ongitude Format 1 FIX 5 degrees S minutes M fractions of minute m SSSMM mmmmm FIX 7 degrees S fractions of degrees s SSS sssssss GPRMC GPGGA GPGLL Longitude East is represented by positive number while West is represented by negative number 0x406 1030 Address Altitude above sea level Modbus 41031 BE M C Unit meter m Frames mes GPGGA 2020000000000 0x408 ee ee Address Speed Over Ground Modbus 41033 Format FIX 1 Unit kilometers hour km h SGPRMC sGPVTG 124 Modbus 41035 BE FIX 1 Unit degrees True Ox40A LONGE Address Course Over Ground Frames GPRMC GPVTG Ox40C w 777 Address Number of satellites in use Modbus 41037 mew xsd a GPGGA 0x40E TOR Address Barometric pressure Modbus 41039 Format FIX 0 Unit hPa SWIMDA 0x410 1040 Address Air temperature Modbus 41041 FIX 1 Unit degrees Celsius C frames swima 0x412 1042 Address Relative humidity Modbus 41043 XO Unit o SWIMDA 0x414 705 Address Dew point Modbus 41045 BE FIX 1 Unit degrees Celsius C Frames WIMDA 0x416 Worm Address Wind direction Modbus 41047 0x418 1048 Address Wind speed Modbus 41049 FIX 1 Unit kilometers hour km h Frames WIMDA WIMWD Ox41A Wc Address Relative wind direction Modb
8. 1536 41537 LECO O Binary inputs space Alarm bits placement MODBUS bits informing on status of communication with heat counters 10169 proper communication with counter 1 SL1 ok 10170 proper communication with counter 2 SL2 ok 10171 proper communication with counter 3 SL3 ok 121 MODBUS DAC 172 10173 proper communication with counter 5 SL5 ok 0B6 0B7 0B8 0B9 OBA ODO 208 10209 LEC1 lower threshold Max effect W OD6 214 10215 Reservedfor_ gt gt o 122 MODBUS 1E8 504 10505 LEC11 258 600 10601 LEC14 LEC15 LEC16 alarm and information bits for GAZMODEM configuration port 10953 proper communication with gas counter 13 10 7 Auxiliary resources of NMEA 0183 mode Binary outputs space information bits Address of bit Register Description Validity register Band bil MODB address Address bit US Reading values from NMEA frame and recording it to Register is marked by setting of corresponding bit Users wanting to detect new recording have to reset respective bit and await consecutive setting it to 1 marking a new recording into corresponding register Holding registers space Mentioned Registers hold information read from NMEA frames All values are stored in 2 16 bit registers in form of 32 bit signed integer scaled appropriately for storing decimal values Registers are ordered in HL order which is H
9. Range Default value Comments 0 00 655 35 s 1 s n a 8 2 5 1 1 3 Channel reservation time Function Data type Range Default value Comments Defines in seconds the time of reservation of exclusive transmission channel to device from which the frame was received number 0 00 655 35 s O s This parameter helps setting an exclusive transmission channel to one of remote devices for a period of time This enables establishment of a system consisting of several devices with functionalities similar to point to point When a channel is established module ignores packets received from other devices and all data received at PORT 2 are sent to the module with which the channel is established Transmission costs are thus reduced significantly Packets are sent to all recipients only at first transmission The function is activated by setting the value other to than zero thus defining the time channel is reserved Time count starts from receiving first GPRS packet Consecutive packets from same source prolong reservation time while sent packets do not Setting this variable to O switches reservation off and module operates in standard way sending and receiving packets to all defined recipients 8 2 5 1 1 4 Routing Function enables choosing method of recording recipients address in transmitted data frame Data type number Range n a Transparent mode without routing 8 bit Address The
10. Yes default value Yes 8 2 4 Authorized numbers This group holds lists of telephone numbers and IP addresses authorized to communicate with the Module Lists form the basis for assignment of privileges for configuring receiving data and sending commands Numbers on lists are the only ones allowed to be used for Rules processing 8 2 4 1 Number of phone numbers Function Data type Range Default value Comments Defines length of phone number list that will receive SMS messages Each phone number has defined privileges for SMS querying number 0 32 1 The range value defines required volume of phone numbers used in SMS Rules processing See more in Phone 8 2 4 2 Number of IP numbers Function Data type Range Default value Comments Defines length of IP numbers list authorized to communicate with the module via GPRS Particular IP addresses have defined privileges for access to configuration and sending data queries number 0 128 1 The range value defines required volume of IP addresses used in Rules for Data transmission See more in IP 35 36 8 2 4 3 Phone I dx Name Number SMS request The list may be edited using context menu activated by right mouse click Available operations depend on the cursor placement When cursor rests on an entry all options are available while only Append is available with cursor resting on active window s background 8 2 4 4 IP I dx Name
11. along with time stamp and optional status the SMS will be truncated so that it ends with time stamp and optional status e Syntax is not case sensitive Addresses in commands should be in decimal notation e 32 bit Registers occupy two cells in 16 bit register space Access to 32 bit registers goes through 16 bit Registers e Commands modifying internal resources values are executable only for received SMS Upon reception of SMS starting with sign activates silent mode and no confirmation is sent to originator Confirmation SMS starts with gt sign 13 4 Unlocking writing to internal registers Procedure when data writing protection is set to Yes When data overwriting protection option is set the module does not process frames trying to change internal resources Unblocking requires sending data along with password If received frame contents a valid password the module allows remote modification of internal resources for 5 minutes or until it receives a frame with empty or invalid password 104 Command format module s ID command code 1 byte 3 bytes 0x71 0x06 0x00 Example Password Password end Modbus CRC n bytes 1 byte 2 bytes Password text CRC_L CRC_H Module settings ID 5 Password ABCDE HEX 0x05 0x71 0x06 0x00 A B C D E 0x00 0x98 0x70 Decimally 5 113 6 O A B C D E 0 152 112 13 5 Working with dynamic I P addressing In
12. i o anm i VREG BI52 VREG BI53 VREG BI57 FS2 new informs on downloading of new program This flag is reset at every program Stop or power up FS2 stop Informs that program was stopped This flag is reset only on power up or download of new program FS2 apn 1 reflects APN login state O logged out VREG_BI59 13 10 2 Binary outputs space Binary outputs bit addressable command 02 Virtual homem vo 01 02 ve ove oes os or pesos 0x0000 Reserved VREG_BOO ots pr po Ps_ Pa__ Ps__ P6__ P7__ P8 Program flags enabling rule based a 0x0010 data transmission on event m YES B08 VREG_BO1 neo lao lara leca axe once lowe a oa SS mus cice Gaisa 0x0018 CLK_C1 CLK C2 CLK_C3 CLK_C4 CLK_C5 CLK_C6 CLK C7 CLK C8 edge oxxco ast ct nsr ca astres nsrce meros msrce retor nst ce Gees 50 0x0020 RST C41 RST C2 RST_C3 RST C4 RST C5 RHST C6 RST C7 RST C8 active state 1 VREG BO Strobe inputs for timers T1 T8 Reset inputs for timers T1 T8 0x0030 RST T1 RST T2 RST_T3 RST T4 RST T5 RHST T6 RST T7 RST T8 active state 1 PS1 stop 1 Program stop GPRS data bit set at every reception of a data frame via GPRS P2RCV err 1 byte reception VREG BO3 0x0038 PS1 stop GPRS data P2RCV_err P2SND err error f e transmission parameter or buffer overflow reset by user program P2SND err 1 buffer transmission error f e wrong Size reset by user program
13. Qh hourly flow in current hour m h Qh Vh Qhp 60 tb th 60 word 16 bit Qhp flow in previous hour m 119 Structure of input data read from heat meter Offset Type Rx High Low 4 bytes RO LL L R1 H HH Ident Nr Header of received MBUS 2 bytes R2 L H frame 3 2 bytes R3 Version Medium Version Medium 4 2 bytes R4 Access Status Access Nr Status MT202 timestamp current frame 50 dword 32 bit H L Identification Number from frame header in binary form read from heat meter Identification Number assigned during MT module configuration Holding registers space Alarm thresholds placement float type variables 32 bit HL 2 Registers MODBUS 1024 41025 LEC1 lower threshold Supply temp C 1026 41027 LEC1 upper threshold Supply temp C 1028 41029 LEC1 lower threshold Return temp C 120 LEC1 upper threshold Working time h 1052 41053 LEC1 Alarm hourly consumption for Aux water meter 1 m3 h 1054 41055 LEC1 upper threshold Auxiliary water meter 1 m3 1056 41057 LEC1i Alarm hourly consumption for Aux water meter 2 m3 h 1058 41059 LEC1 upper threshold Auxiliary water meter 2 m3 1060 41061 LEC1 Alarm hourly consumption for Aux water meter 3 m3 h 1062 41063 LEC1 upper threshold Auxiliary water meter 3 m3 1064 41065 LEC1 Alarm hourly consumption for Aux water meter 4 m3 h 600
14. Transmission and reception are independent on each other The buffers have a length of 512 16 bit registers where only low order bytes are used for transmission In other words one 16 bit register stores 1 byte on low order byte High order byte remains unused Data reception Configuration for FlexSerial mode uses 2 variables that define the way data stream received at PORT 2 is converted into data packets available for internal program Received data is stored in registers Registers P2RCV B1 P2RCV B512 build the receiving buffer Register P2RCV NO controls data reception Data received at PORT 2 is internally buffered in 6kB buffer and put into receiving buffer only when register P2RCV NO has 0 value During data insertion to the buffer the length of inserted package is recorded into P2RCV NO register The user program should process data from receiving buffer after detecting a non zero value in P2RCV NO buffer and when done should set P2RCV NO to O value thereby initiating loading of next package to buffer Received data is always placed at the beginning of the buffer so the first byte of the package is placed in P2RCV B1 register Furthermore in binary output space there is P2RCV err bit that is set high when reception error occurs F e receiving buffer overflow parity stop bit error P2RCV err bit is not automatically reset so in order to be useful for diagnostic purposes it has to be reset by the user program The state of this
15. defines event triggering flag associated with selected trigger input selection list n a rule inactive Bi In 0 gt 1 Bi In 1 gt 0 Bi In Chg binary input state change n a more about trigger inputs and flags in chapter Appendices 8 2 7 1 2 3 SMS text Function Data type Range Default value Comments allows entering text sent in message triggered by defined rule text letters numerals special characters max length 160 characters if the message will include the status of the module total length of SMS text and the status may not exceed 160 characters If the length is greater the text will be truncated so that full status is sent 8 2 7 1 2 4 Recipient number Function selects message recipient number Data type selection list Range friendly names of recipients associated with phone numbers in Authorized numbers list Default NUM 1 first number on the list value Comments since recipients phone number is selected from the list of friendly names it is important to enter unique unambiguous names facilitating identification 8 2 7 1 2 5 Attach timestamp Function selects whether module timestamp is to be attached to the message Data type List Range Yes Timestamp attached to SMS NO Only SMS text is send Default Yes value Comments Total length of SMS text and additional information may not exceed 160 characters If the length is greater the text defined by user will be
16. 0 0 0 0 sends data frames to module s own IP address Any other valid address within the APN is accepted as the recipient 8 2 3 12 Number of login retries Function Data type Range Default value Comments Defines max number of login to GPRS network retries Each unsuccessful attempt changes the state of triggering input FS1 gprs from O to 1 and increases the failure counter by 1 After reaching declared value the module displays error code and awaits user action Successful login resets failure counter number 0 255 0 Setting the value to O results in endless retries 33 8 2 3 13 Wait time after disconnection Function Defines interval in seconds before resuming after failed login attempt Data type number Range 0 60 s Default value 5 s Comments Setting the value to O results in immediate retries 8 2 3 14 Data frame format Function This parameter selects data frame type used by module for GPRS communication and indirectly the operating mode Data type selection list Range Standard Standard mode Modules communicate using the protocol and transmission protection created by the manufacturer Proxy mode allowing application in GPRS networks with dynamic IP assignment This mode requires special communication software running on computer with static public address Currently not supported Open Configuration and operating modes as for Standard type frames The only di
17. 1 2 Trigger flag Function Data type Range E Default value Comments defines event triggering flag associated with selected trigger input selection list n a rule inactive Bi In 0 gt 1 Bi In 1 20 Bi In Chg binary input state change n a more about trigger inputs and flags in chapter Appendices 8 2 7 2 1 1 3 IP address Function Data type Range Default value Comments selects recipient s IP address selection list friendly names of recipients associated with IP addresses in Authorized numbers list IP1 first number on the list since recipient s IP address is selected from the list of friendly names it is important to enter unique unambiguous names facilitating identification 8 2 7 2 1 1 4 Send Function Data type Range Default value Comments defines data type sent in transmission triggered by defined rule List Buffer Hold Reg Registers from modules internal registers space will be sent Defining the transmitted space is required Buffer Inp Reg Registers from module input registers space will be sent Defining the transmitted space is required Buffer Hold Reg n a 8 2 7 2 1 1 5 Buffer address Function Data type Range Default value Comments Defines start address of internal registers space sent in transmission triggered by defined rule number 0 8191 64 n a 8 2 7 2 1 1 6 Buffer size Function Data type Range Default va
18. 2 9 Ras Word TOF Gata WILDE rra AAA 28 8 2 2 TOC Error OSPINA AAA AAA AA 29 SL USO PRA SAS AAA AE AAA AAA Alea 29 A A O O O NO 29 82 218 Monta MSM desarro a a a 29 Bd 2T RR E EE IE 30 MSN CI S PIT 30 XE WM NI A as 30 32 32 APN Ser AMS ect rtt Iam Ou teu SU Pads icem DIM TP M E M MM ME E D pL Lor 30 8 2 9 9 ANDAS SW Os ics pe s aca ead e Ducit DNA ERU ERR A Ve a E DR SU i tesi ued tait Eni E ON 31 9 23 oo A AA A tette bre ab teta eaa II O 31 SS RS DE o n erue iir erm EM nca ra tudin hb tomi pot obe pf MU 31 28295 Os SOU iP ort SUE Diu LES I M EA et pecu Aerea EE 31 8 2 3 7 VIRTUAL addteSs ua gare ress IP e WHRE Er Ur Hc eu E Era ci Mir el px eo C CFR PUE 32 8 2 3 8 Number Of GPRS tratismissiOD Tetri E Srecni o ve EXE Para Etro R AA 32 RAN SM SON IMC RP 32 RU SMS BR o ESTRUM 33 9823 GPRS testine P addres ir 33 382 3 12 Number or loci retiene 33 8 2 3 13 Wait tie alter dIS CODD e CIO caseo vor tob Pres AAA AA Sd 34 92 3 14 Data frame Tol fdbos orco Do e aq OO in cea eoi n e diee dI CHE v e Deb uu pa eei qiP Ces paw an ea diea i caede dad Por tue ees 34 92 9 I5 PrOXV Server P ada ESS a e O brat eod Viet bui bendi bv bratnSi did urbs i used c Us 34 92 3 16 CRC compatiblliby A DEP C RR EC eec Y Te AAA DI ao FERE Yu AAA 34 24 Authorized Duibels mds tte oa Seta dati abe acida iiem eue M Listo Eid aea ier ME EIE 35 2 27 1 N amber oft phone TII Dess cepe e a terea S Dao ai 35 98 2 4 2 Number I
19. 30261 MCIVAR3_H 0x105 30262 MCIVAR3 L 32 bit H L floating point Ox10E 30271 MC1VAR8_H Ox10F 271 30272 MC1VAR8_L 22 Dit H L floating point 0x110 30273 MC2VAR1_H 0x111 30274 MC2VAR1 L 32 bit H L floating point Ox11E 30287 MC2VAR8_H Ox11F 30288 Mc2vARS L 32 Pit H L floating point Ox1FE 30511 MC16VAR8_H Ox1FF 30512 MC16VAR8_L 22 bit H L floating point Holding registers space Registers threshold values HH H L LL for current values Alarm bits informing on comparison results are in binary inputs space 0x400 1024 41025 MC1LL1_H LL threshold for VAR1 of counter 1 32 bit H L floating point L threshold for VAR1 of counter 1 32 bit H L floating point H threshold for VAR1 of counter 1 32 bit H L floating point HH threshold for VAR1 of counter 1 32 bit H L floating point LL threshold for VAR1 of counter 1 32 bit H L floating point HH threshold for VAR2 of counter 1 32 bit H L floating point LL threshold for VAR3 of counter 1 32 bit H L floating point HH threshold for VAR8 of counter 1 32 bit H L floating point LL threshold for VAR1 of counter 2 32 bit H L floating point HH threshold for VAR8 of counter 2 32 bit H L floating point LL threshold for VAR2 of counter 3 32 bit H L floating point HH threshold for VAR8 of counter 16 32 bit H L floating point Binary outputs space Alarm bits informing on comparison resul
20. GPRS modem is connected to RS 232 Port Contains number of the com port the programmed module is connected to via serial cable Select the chosen module and connection type In order to do so activate parameter Select from menu Module or click the icon a on the toolbar The selection window will open and present all available options 61 MT module selection ala Osowiec 3 20060405 Mew module Jedllcie FJ B Nowy nocuL E8221 Near module me 10 0 35 Wr Turn PLET JUSZAEFIAKA 172 28 102 51 7 Local RE 232 port m Notice that only modules defined and configured by MTManager application in active Project are selectable When Local port RS 232 is checked in serial transmission via RS 232 takes place When Local port RS 232 is unchecked GPRS transmission is employed and module IP address is used OK button stores the choice for connecting MTprog exe application with selected module and opens program editing table 9 3 Main window layout Main program window displays a table containing the program to be executed by module s command interpreter Right side of the window contains a field with button groups dedicated to defining operations and constants On top there is a system menu and a toolbar with icons for frequently used functions At the bottom a status bar displays from the left status of command interpreter selected module s name and selected communication channel EM program editor AE File Edi
21. LOFR eames mar iced eei eem Rn MG ere a aE OT LE dI E Ee OE ESL CUM celare d ERE 84 LAS Pulse generit OR enses cnp ra Ore hdmi a ita 84 9 14 4 Alarm with CONTINUO esten aveo ce loben ra tee eu ii 85 ARES MOTION DELE o e is ld end eit e e AR 86 914 6 LOG GEF DOOR A AAA AA AAA A AAA dd 86 10 PROBLEM SOLVING Sudan 87 OM A A PEE 87 TO LL SIESTA US td EA A E A AAA EA E AAA A a SIERO 87 TUI 2 OS OCHVICV A AS SS AS ASAS NA UE Udo a uv Dod 88 10 123 GSM AA T 88 TOA PORTZ eU NR A 89 JTO T 5 Mod le A Aden Ln a sag elattnint diag Lime A 90 1072 UNBLOCKING OF ue p pie 90 TO BRRORGSIGNAEING peste a uota noD A Ns tae taal are e ae Mad 91 TOS L Standard da o ECC NET ETT OR NOR 92 10 3 2 GRECO Si is a ve cT dL BED 93 11TECHONICALDA TA erc A 93 REC ML NC PUT 93 AE Es MODEM Ateius cien O bette E dae ot Mahe labia eet AE 94 LL POWER SUPPLY told datado dci 94 LII DRAWINGS AND DIMENSION Sao 95 12 SAFETY INFORMATION ridad aaa 96 L2 NV ORKIN GEN VIRONIVIEINM a A ARS 96 122 ELECTRONIC EQUIPMENT A A AA EAS 96 12 2 T Heart Da CEN ORES A id dani 96 122 2 Nearing ald a estem i ni ti bread nit catalla come Ie Lect uM c e cs ct e E qi LE DES 97 12 2 3Other medica legui PINEN ase e PS OO ten vaticano a ea 97 12 2 4 REMOFKe Oe QUID ENE aio 97 12 3 EXPLOSIVE ENVIRONMENT erreira rao EEA EE E E EENE e ed o 97 13 APRENDICES A E EA 97 13 14 DATA TRANSMI
22. RPM Ps PET E Ea ERR D eer eee 42 8 2 5 4 3 3 Address of mapped space in MOE iii SAA AAA AA 43 92 5 15 3 4 Addtess of mabped space ID AVE AAA n bei uel bw utes 43 9 25035 Mapped s pace Size s adii stuba electo cea 43 8 2 5 4 3 5 Mapbped space read interval sesenta 43 8 2 5 5 Gaz MOUGP MOUE s DS De De cR a oda at saa ead ortae SEO Pater Di DING I Leda Een 44 98 2 5 5 Jo Read Mtra lesa iet wnat Fas Bn ssc oet reed a A UE orte ion EE MA irs DEL DM Pace sad D pe Ac pM dias 44 8 25 5227 N mber OF TES A A sd 44 32 203 lrans MISSION TIMGOUL IEA AA AAA AAA AAA A 45 8 205 58 4 Threshold hy Stef ess onsite Ede m Pautas ENT nies RD M Deo E qe d au dotted p d per Au 45 S225 5 Oe A dH TES EQUO TH PAG MTS sisas eli 45 9 2 9 5 5 NUDE OL COVICES NS AA 45 8 2 9 l MC AA Fe nn dolce enero el de vaya A ded ett e dd eve dde den a 45 IS BS S AUS 20 ai RR er C 46 82 55 A ANT e adie eia DR Etc Mena EP A A PeD 46 8 25 50 3 DIR Mal ted ll lBassis casum Meu iactu Sena fui FU P e on Po ORA GEN FUEL H HE MO RU ERU TOTAL RE RV CURE 46 92 55 54 Curregt data Padilla a 46 8 2 5 5 7 5 Cuprelt data DION ia A ee itu cO ena at aco a fa AAA o ER Doy esa P eod 47 8 2 5 5 7 bo CHrrent data WIOCK lene LT ao eie se Fo top A va Pad t fuv eas se Cr 47 3 200 VSB OSL C IMO e ni ODE LIT 47 826 REI MEN ETC 47 8 2 5 6 2 INV SOR ree eare A a e E E de oit ad 47 8 2 5 0 3 Trans Mission timeOut aes SAA EIA ARA N ERR Y 48 32000 Threshol
23. TMRS TMR I ai iaa ten 53 PR S2 l EES E 1 i PEI E A A S E rr T 53 92 531 2 o PAE EIE ON 53 S 2 552 MTZIMIT BUH Eroarea A ON 53 820 AC Aa 53 BiG 5 2 Sending tO PORTA ac ec 54 9 2 6 5 3 B ffer AE a A AA AAA AA dos mc Dr vars E A E AN 54 9 2 0004 BUM ET SIZ C ira iS AAA A AA AAA de Eb KDE OPE Do a TA 54 8 2 5 5 Constant Dal at GE S uicem co uS e NR RENE RE RURNKER MEME EXER SERE XRRVE AAA AAA AA TOU UO E RM AAA ARA 54 8 2 6 6 T Number or parameters satis Duc etd 54 8 2 5 5 2 Parameter T 128758 eeiam ROUEN OA SVO A A A Ce eas 55 E 2r UNOS ise aS aoe Coa tata 55 eT al SMS SE NAINE cu Sic c 55 8 2 Ll N ambetrofSNIS sending TUNES 1 AAA SEAS ie o bn leet 55 Bad TDS MS sendin ir AA 56 B2 ze TPPC NN SS AS a 56 Zo PEE aE NO AAA AA A A A 56 LAE PES A QURE m LN ccc 56 9 2 7 01 24 RECIPIENT DUITIDOL id eroe ped vat een de paa Reset eta D edt 57 8 272 Data senulld iS pito ona Sii pie ceo rdg etre pube b EV pne dt 57 8 2 1 2 Number Of data sendinte rules si oH DESEE aii 58 9 2 7 2 1 1 Data sendin e Ulsa NANO 58 8 2 7 2 T LL TRC OF In PUC a 58 9 212 EA LIA a ld Ba E O oo nn E E EE E E E E 58 A ER 59 PA ES MEM IN A E LEE E c SL D 59 E272 T 1 5 Bitter adul 65S ioi ada ri dad 59 PP 2 BM RELIER m eem 59 Boa CONFIGURATION WRITING osse naa EDU SN AAA Unix uu Sex PI MU AAA ES 60 8 4 VERIFICATION OF CONFIGURATION iussis eii Qi
24. address of GPRS network node ID number of device connected to GPRS network node with given IP address n a 39 8 2 5 2 Modbus RTU Master mode MT 202 Module operating in Modbus RTU Master mode receives data sent by peripheral device operating in Modbus RTU Master mode at PORT2 Data are sent via GPRS to remote Slave devices according to routing table Module MT 202 operating in this mode acts as intelligent GPRS communication gateway allowing physical separation of Modbus RTU network nodes Module s internal resources have assigned Modbus ID which allows reading them from PORT2 8 2 5 2 1 Routing table size Function Defines size of routing table Data type number Range od nz Default 1 value Comments the length of routing table should not be shorter than number of network nodes the module communicates with 8 2 5 2 2 Routing table I dx index number of the list number IP IP address of GPRS network node number ID Modbus ID number 0 255 of slave device connected to GPRS network node with given IP address Comments entering Modbus ID of one of the Slave devices connected to PORT2 including internal module resources results in sending replies from that ID to specified IP address regardless of the address of inquiring unit Setting this value to O zero makes the module with specified IP address receive all frames sent by Master unit regardless of Modbus addressing 8 2 5 3 Modbus RTU Slave
25. are all that is needed to be able to log in GSM GPRS network One has to remember that modules with basic configuration can not send any information Therefore after verifying that module logs in to GPRS network one has to perform full configuration of module parameters enabling all full intended functionality of the module 6 3 Inserting SIM card One of the fundamental conditions for proper operation of the module is inserting a SIM card enabling module to send SMS and or packet data in GPRS network The best way to do it is when the power supply disconnected Theoretically the SIM card may be inserted into the module before the first configuration is performed but note that two attempts of entering wrong PIN code the cause module to stop attempting to log into network Should this happen the module has to be unlocked Insert SI M card in cradle and slide it into the slot as depicted below until the gentle click is heard Properly inserted SI M cards secure reliable connection with module s terminals 6 4 Start up After performing the first configuration and inserting SIM card proceed to start up Switch the power supply off and on again to reset the module 16 Wellconfigured MT 101 module logs into GPRS network within 20 30 seconds The login sequence is displayed by diagnostic LEDs at the front panel of the module Explanation of sequence is described in details in LED signaling chapter In case of difficulties whe
26. dca E v E c RER DUIS Ee NA A AS T ATEA VM MEN 60 SN uec guuiceeee r r PR 60 OT GENERACINEORMAPION a a a ierit a LE ME eae esu de 60 S AS STARTING FO WORK auroras e bete m ea herve a a e Pes aa Aaa Ota 60 9 3 MAIN WINDO WAYO INE RS m as 62 Og d MeDUHEOeIs ona EEE 63 QS BU M 63 93 L2 A uL Mi M A 64 o9 13 4 O 64 om MEI ETT c A 68 9 3 1 95 A Pe AIE ANES EE NAM LL MEN Mu DL MR AS E EE QE MN E re NEU E 69 JA PROGRAM EDITOR TABLE ia AAA a e tates uu CU bd acd ta AAA AS 69 OS STANDARD FUNGTIONS cocaina da 70 9 6 NUMERIC KEYBOARD ideada 70 SEI GAS Teen c o UT alee Sid Goce Sa oad g Ue al cenit als O 71 9 6 DESCRIPTION OF PROGRAM FONCTIONS sirrane A AAA s vc seated Od les em NOS 71 9 9 DESCRIPTION OF INTERNAL FUNCTION BLOCKS cccceccecescescuccececceccucnseuseuseecesnseeseeseeseeseeseseeseeseeseseeeeseeseeseeseeseseeseeseeseets 80 9 9 TL nmers TES A o il 80 292 COUNT E LA sd 81 9 10 SIGNAETLEVELS OR EDGES ada 82 9 11 FILLING AND MODIFYING PROGRAM TABLE sssesceccecesenseuccesescuscuseseuseeseucssnseuseeseeeeeseeseseeseeseueseeseeseeseeseeseesaseeceeseuseees 82 912 DOWNLOADING THE PROGRAM ua do ALI IM ON DN MU DOR DIET 83 LS gt WERIEVING THE PROGRAM a M e das 83 JTA EXAMPLES OE PROGRAM Surtido e adoa redada et Teese e rope qud 83 9141 7E A A MM 83 DIA The OUI
27. depends on changes of resources that require writing to external device It can be hole data blocks or single bits register No This parameter is available only if mirrored resources external device resources are stored in Bi Out or Holding Registers address space defined by parameter Space 8 2 5 5 GazModem mode CAUTI ON Option discontinued from v 1 43 of firmware for module MT 202 MT 101 Module operating The description is solely for legacy support placed in respective registers of MT 202 module s memory map 8 2 5 5 1 Read interval Function Data type Range Default value Comments Defines in seconds an interval between readings from peripheral device operating on GazModem protocol in order to update measurement data number 0 65535 s 180 s value O zero forces max possible frequency of updating It depends on speed of PORT2 along with size and number of defined mapped spaces 8 2 5 5 2 Number of retries Function Data type Range Default value Comments defines number of attempts to transmit data via PORT2 in case of unconfirmed within time defined by transmission Timeout parameter reception number O 7 2 value O zero forces max possible frequency of updating It depends on speed of PORT2 along with size and number of defined mapped spaces in GazModem mode enables communication with gas counters operating on GazModem transmission protocol Data
28. error flag when copied value exceeds the range of destination register or cell address lays beyond the space Example get X register XREG10 get Y register REG store result register DREG2 If REG1 4 than function performs the operation DREG2 XREG14 Write value to table The function writes numeric value to table starting with register store result The value from register get X is copied to table cell defined by index register get Y Table cells are indexed from O store result get Y get X The function rises error flag when copied value exceeds the range of destination register or cell address lays beyond the space Example get X register REG2 get Y register DREG1 store result register XREG100 If DREG1 5 than function performs the operation XREG95 REG2 Difference between X and Y This function calculates the integer difference between X and Y no matter which value is higher Exceeding the valid range rises the error flag store result register integer value of get X register get Y register Copy bigger value The function verifies which value X or Y is higher and copies the higher one If get X get Y than store result get X If get X lt get Y than store result get Y Copy lower value The function verifies which value X or Y is lower and copies the lower one If get X lt get Y than store result get X If get X gt get Y than store result g
29. maximum amount of SMS messages module may send during 1 month in order to prevent uncontrolled number of sent messages thus saving on running expenses Setting the parameter to 0 removes the limit Data type number Range 0 65 535 30 Default value Comments 0 This parameter is available in no GPRS and in GPRS mode with Yes option for use SMS chosen CAUTI ON Reaching the limit set by this parameter results in unconditional without warning stop of SMS sending Note that no SMS will be sent until the month is up even in alarm situations 8 2 2 14 Roaming Function Data type Range Default value Comments 8 2 3 GPRS defines whether roaming in foreign GSM network is allowed selection list On in case of absence of home network the module will attempt to login to available operator network Off login to foreign networks is not allowed Off This parameter decides whether the Module will try to login to available foreign network in the absence of home network This is possible only when the SIM card in module has roaming service enabled GPRS Group encompasses parameters connected to login and data transmission in GPRS system Parameters defined within this group are mandatory and optional as well as convenient for transmission optimization 8 2 3 1 APN name Function Data type Range Default value Comments defines APN name selected for GPRS transmission text letters numerals spec
30. of the rule 8 2 7 1 SMS sending List of SMS sending rules can hold max 32 entries defining short text message transmission conditions Adding a new position is done in the context menu by right clicking mouse while one of positions on the list is highlighted Device New module MT z02 General GPRS Authorized numbers MODBUS RATU Slave mode Resources Rules SMS sending Data sending CLIP calls Ins Append Adding more rules is done by setting the parameter number of SMS sending rules to desired value 8 2 7 1 1 Number of SMS sending rules Function declares number of SMS sending rules Data type number Range eee Cree Default 1 value Comments diminishing the number of rules does not delete settings until the configuration is written to the module 55 56 8 2 7 1 2 SMS sending rule Each of the rules residing on the list is defined by following parameters Trigger input Trigger flag SMS text Recipient number 8 2 7 1 2 1 Trigger input Function Data type Range Default value Comments defines resource to observe selection list n a the rule is inactive FS1 ups FS1_ gprs system trigger inputs PL Pz user program inputs TMR1 TMR2 TMR3 TMR4 synchronous and asynchronous clocks trigger inputs n a more about trigger inputs and flags in chapter Appendices 8 2 7 1 2 2 Trigger flag Function Data type Range Default value Comments
31. operations of true false type Next group represents 6 functions comparing arithmetical values k Next 2 buttons represent assignment of arithmetical and logical values JLe J Right column of numerical keyboard represent 4 standard arithmetical operations HULE 9 6 Numeric keyboard Numerical keyboard has all keys active only when selected function allows arithmetic input 7 JLe JLo a JL5JL6 ER FEE o If selected function allows only logical input only keys 0 and 1 meaning respectively False Never and True Always When selected function does not allow numerical input the keyboard is grayed out inactive 9 7 Auxiliary functions Some modules types and versions may implement auxiliary functions Access to these functions is possible via the drop down menu just above numerical keyboard C in t DJ GG Read value from table Write value into table Difference between X and Y Search for max value m table search for mun value in table merarch for value in table Convert text inte number Convert number into text Detailed description of standard and auxiliary functions is located at chapter Description of program functions 9 8 Description of Program functions Boolean AND X Y get X get Y store result se REEENE N NEN Boolean OR X Y get X get Y store result bit bit bit 1 71 Boolean XOR X Y get X get Y store result bit bit bit 0 0 0 Is X greater
32. truncated so that additional information will be sent 8 2 7 2 Data sending List of SMS sending rules can hold max 32 entries defining data transmission conditions A defined data block will be sent to appointed IP address Adding a new position is done in the context menu by right clicking mouse while one of positions on the list is highlighted New module MT 202 General B GPRS Authorized numbers MODBUS RATU Slave mode H Resources Rules SMS sending Adding more rules is done by setting the parameter number of data sending rules to desired value 57 58 8 2 7 2 1 Number of data sending rules Function Data type Range Default value Comments declares number of SMS sending rules number 1522532 1 diminishing the number of rules does not delete settings until the configuration is written to the module 8 2 7 2 1 1 Data sending rule Each of rules residing on the list is defined by following parameters Send Trigger input Trigger flag IP Address Buffer address Buffer size 8 2 7 2 1 1 1 Trigger input Function Data type Range Default value Comments defines resource to observe selection list n a the rule is inactive FS1 ups FS1 gprs system trigger inputs Pl P32 user program inputs TMR1 TMR2 TMR3 TMR4 synchronous and asynchronous clocks trigger inputs n a more about trigger inputs and flags in chapter Appendices 8 2 7 2 1
33. value different than zero f e 2 Set Authorized IP to 1 and add the IP assigned to module MT 202 operating in Modbus RTU Master mode options allowing data transmission and reception have to be checked in Fill in the Routing table setting IP address and Modbus ID assigned to MT 202 operating in Modbus RTU Slave or MT Slave mode The device playing role of master C should be connected to PORT2 of module B and query resources of address assigned to module Slave A The master can query module B provided that Modbus address of module B is sent along A system configured this way secures permanent access to all internal resources of the Slave including SMS services in situations defined during configuration If the master unit is a PC running on Windows the MT Data Provider OPC Server delivered with the module is the best solution for communication MT Data Provider serves both querying and unsolicited messaging on the basis of Data sending rules defined during modules configuration Access to internal resources of modules in a telemetry network is similar to that described above The only difference is the number of network nodes and assignment of unique Modbus IDs necessary for precise addressing of queries associated with it Remember to put all slaves IP addresses into Master module s IP list along with corresponding Modbus ID and make sure that reading and writing is enabled 101 13 2 2 2 Data transmission from external devic
34. 07 menu 9 4 Program editor table item item item item item item item item item item File File File Module Module Module Module menu item Module Help Help File Function Function Function Function Function Function Function Function Function Function Function The table has six columns Each column command interpreter OI lt Oh La fa LA 61 jo RA ca Fa Jl bBo pe oc if execute expression New Red Write Select Connect Disconnect Read program Write program Write and block reading Transmission Settings Exit has specific role assigned to be performed by the set if error store result get get X Y If defines the condition for the table row to be executed If not met the line will be skipped Execute expression defines the function to be performed Get X holds the first argument of interpreted function Get Y holds the second argument of interpreted function Store Result points to where to store the result of the function Set if error holds the optional flag to be set if the function fails due to e g division by zero or overflow 69 70 9 5 Standard functions Most commonly used functions are grouped with numeric keyboard on the right side of the main window ana s ser net Oe ODO FE FEFEFE L1JL2 JL3JL o Top button row groups 4 logical
35. 32 bit Program register signed value DREG6 Low 16 bits 0 005D Oxoosp 32 bit Program register signed value DREG7 gne fiw 15 Dite Ox005D 32 bit Program register signed value DREG7 Low 16 bits 16 bits OxOO5E High 16 bits OxOOSE 32 bit Program register signed value DREG8 Low 16 bits 0x0060 16 bit Program register unsigned value 16 bit value PA E E ee O O 0x0260 1 Reseved pee a Reserved 0x0271 A 0L Reseved 5 E oue gp 1 Registers holding last received via GPRS status of remote module A ESP NNNM p Low 16 bits ENE ONO sin A AAA A NEON 2a MONT E AA OMEN Ox029E 32 bit activity time counter on input I8 s High 16 bits 16 bits 0x029F 32 bit activity time counter on input 18 s Low 16 bits 16 bits 115 LOW Ox03E4 Inputs space Outputs space 0x03E6 Input AN1 copy of input register 0x0004 T bit value 0x03E7 Input AN2 copy of input register 0x0005 16 bit value Registers for FlexSerial mode data services 0x03FE Data size in reception buffer 0x03FF Data size to be sent from transmission buffer 0x0400 reception buffer PaRCV pi byei 0x0401 reception buffer P2RCV B2 byte 2 OxOSFF reception buffer P2RCV_B512 byte 512 0x0600 transmission buffer P2SND_B1i bytel 0x0601 transmission buffer P2SND_B2 byte2 0x07FF transmission buffer P2SND B512 byte 512 Registers for mod
36. 800 or 850 1900 MHz GPRS Class 10 Frequency range EGSM 900 MHz Transmitter from 880 MHz to 915 MHz Receiver from 925 MHz to 960 MHz Frequency range GSM 850 MHz Transmitter from 824 MHz to 849 MHz Receiver from 869 MHz to 894 MHz Peak transmitting power EGSM 900 MHz amp 33 dBm 2W class 4 station GSM 850 MHz Frequency range EGSM 1800 MHz Transmitter from 1710 MHz to 1785 MHz Receiver from 1805 MHz to 1880 MHz Frequency range PCS 1900 MHz Transmitter from 1850 MHz to 1910 MHz Receiver from 1930 MHz to 1990 MHz Peak transmitting power EGSM 1800 MHz amp 30 dBm 1W class istation PCS 1900 MHz Modulation 0 3 GMSK Channel spacing 200 kHz 11 3 Power supply Direct Current DC 12V 24V 10 8 36V Alternating current AC 24V 18 26 4Vrms Input current A for 12V DC Idle 0 10 Active 0 60 Max 1 90 Active 0 25 Max 1 00 11 4 Drawings and dimensions 105 G5A 0 GPRS A L1 O Co iMentia MT 202 Wa ACTIVITY ANTENMA Ta LI O Fx 95 NOTE All dimensions are in millimeters 12 Safety information 12 1 Working environment When deploying telemetry modules one has to observe and comply to local legislation and regulations Using the telemetry module in places where it can cause radio noise or other disturbances is strictly prohibited 12 2 Electronic equipment Thou most of modern electrical equipment is we
37. Address is 8 bit long one byte 16 bit HL Address The Address is 16 bit long two bytes in sequence High and Low byte 16 bit LH Address The Address is 16 bit long two bytes in sequence Low and High byte Default n a value Comments setting the parameter to n a switches routing off 38 8 2 5 1 1 5 Address offset Function Data type Range Default value Comments defines the offset of address field in transmitted data frame number 0 1407 0 too short frames with lengths not encompassing address field which are ignored Pay attention to proper setting of Max length of data packet and Data packet delimiter so that all data frames will be received completely 8 2 5 1 1 6 Broadcast address Function Data type Range Default value Comments Defines recipient address If detected in address field of the frame received at PORT 2 will cause sending of this frame to all recipients defined in routing table number 0 65535 0 Placing this address in routing table will result in sending all transmitted frames to corresponding IP address 8 2 5 1 1 7 Routing table size Function Data type Range Default value Comments Defines size of routing table number 1 256 1 the length of routing table should not be shorter than number of network nodes the module communicates with 8 2 5 1 2 Routing table I dx number IP number ID Comments index number of the list IP
38. E NN d sates din ued S M M IM Ed MM LPS eM UT 7 AZ RESOURCES aaa 7 A A a 8 ADD REO IMEI ol dM lo elos 8 2 3 INTERNAL RESOURCES IA SA uta cond tps dt De Dem REUS anu 9 BiB T AROeUISCOES AAA Ara 9 q 3 2 ABAD LO regis tel Siaced te E quas du E aah asceftultcoiastdee rdiet aa a reote rt onn ed ice data creduto esca stone U Eros 9 S MET Bo AA EET T UE 9 CRGO EM REVIENS 9 2 J o PHFOImelers edema hf EAA E E E tede baud ease oteEd uid E AE E o aio reae E iat Sou 9 SES SENT valables kso ente dieti oed eta d a i ec ee estas ceci O E rete tale ia 10 AA Bl DB FB eee en nrc Of OP Tm 10 d Sos EG cD a AM UM MM A Mo Mu MM a i 10 AG ANTENNA o 11 ARROW ER SUP T Ene 11 AS NG ana O code OR ORC OP EN PR o eot con cee o Eram Eee 11 S CONNECTIONS SCHEME soo esae ea VREEE ERE VER aO Fea SHY TRY Yan a EP iia 12 bL COMMUNICATION PORTS ned vs dimi assuetus aaa tar Gunns eU e EDU casi i PEDE de rebote ER Cerda 12 BD OVERS PPE NN 13 6 STARTING THE MODULE 0 tas 14 SL ONINECTIING ANTENA ains 14 562 HRSTFEONEIGURATMO Ni a a le Lu LM E e llo ean gars 15 53 INSERTING S IICA RD e e e oes ma so Den e 16 A A A it oe PE te 16 7 MODULE S OPERATING MODES 4 revise on oes Nox Ua deco ds 17 Tlic WRANSPARENT IV ODE MN T 18 Z2 4NIODBUSTETUIVIASTER MODE AS deans coda wove eae A pM eek m MAD E LODS 18 7 3 MODBUS RWS DAVE MODE osse ina tea e ceo do MD
39. N ES poe GPRS network ies mo ape arar e ooreen meme aerea og ooo 9 ica ener eeno men wo on o Number af lag into GPRS trials exceeded Ori ae Wrong PIN for SIM card LED flashing 0 5Hz o 1 z 3 4 5 E 10 li 12 13 When GPRS LED is off the module is automatically trying reinitiate transmission When GPRS LED is flashing user intervention is required Remove the reason for error and recycle the power 10 3 2 Critical errors A sign of Critical error is the flashing of ERR LED Error code numbers are displayed on signal level and GPRS LEDs ERR O ear rte o o pen roar enor o o fimer s fwen O s ferara cs IS o lojojo 7 poom o Jejeje rofoleje s opopo w o fotole is jew o emen Occurrence of any errors described above indicates either a fault in program or a module defect If a critical error occurs please note the error code and contact the manufacturer 11 Technical data 11 1 General length 20 55 C referenced to GND 93 94 11 2 GSM GPRS Modem Data for WISMO Quick 2406B Modem type WISMO Quick 2406B GSM Dual Band GSM GPRS module EGSM900 1800 Frequency range EGSM 900 MHz Transmitter from 880 MHz to 915 MHz Receiver from 925 MHz to 960 MHz Receiver from 1805 MHz to 1880 MHz Channel spacing 200 kHz Data for WISMO Quick Q24PLUS Modem type WISMO Quick Q24Plus GSM Multiband GSM module 900 1
40. P NAD SS AAA Eb wide Vet wands be Or ee EMT Me Ve ds 35 O Del ETC TT 36 SML EIN tH rc Hr M N 36 m2 5 Mode Of opera OM erionenn a tias 37 s pc P Ttan pren os A IN A A II 37 B 2o A GIP O 37 82 ll Max leneth Of data packed oia 37 82 5 L 1 2 Data packet delimltel s en ceo A AA AAA AA AAA AA 37 82301 Channel reservation TUNG Gross o n taa 38 odes AQUA P Q 38 Bed oe T5Address LU ROPA O OP ECO ESO O O 39 8230 16 BrOdGease 3ddl SS per os ee N 39 92 90 T ROUNE table SIZE A a 39 9 2 52 ROUUNE Ta Sian tt A eaa ee d eine Se sete E Topf eec iUas 39 8 2 5 2 Modbus RTU Master Tode sos ico et ob AAA A AREAS D aa AAA 40 925 2 I Routing table size a 40 9 2 5 2 2 Routing tables soie IS sans cac sei eb OU Ie euo E DER Ga e cbe eu ke b cv o deo vU e pio dup vidt be as 40 8 2 5 3 Modbus RTU Slave qoe oa sro err ER oc Da bR AAA bd ER e o Ua Cis ER 40 9 2 5 3 1 ROUNE ba lO Serna 41 8 2 5 9 ROUNE a Dl EN A NT o itas diet c Ld m escorol scat 4a valde um A OON 41 325 VIOUS RIO MOC TITO de arre 41 9 2 90 T Number or data DIGCKS lt A QU ONE Dep Cir PDA MA A A OS 41 8 2 5 4 2 Delay after error in communication with SLAVE eesssseeeeeeeeeeene nennen nennen nennen nnn nsns annees annees 42 8 2 5413 Data DOCK Ts a oco epe at aao et a e eon ena td A ie amends pce A etc Ea x ieu ia Pi 42 8 12 54 53 T Modbus D OF slave decena 42
41. S SE ME Deos LEONE c a a S d exutus 19 TE MODEM MODE Srita ated ec bac uae LE oce etf oco t M ue ae ea aer LI aano da era pe UE Rd 20 7 9 MODBUS STULIVIRRORTVIODE dd tesis 20 FE OL GAZMODEM MIO DE der EM 21 Did AVE BUS LEC MODE sn ida 21 7 8 NMEA 0183 MODEs iaa idas 21 ESE De eRe i de E 21 S CONFIGURATION cocina all 23 Or GENERAL INFORMA TIO No lea a tia here a ttl Aes Cibelli Ged te 23 B2 PARAMETER GROUPS a A A A eed nc asa ee Osa A SS 23 82 PE a A eR SC ROT ones ROY ret HP a a a r 23 8 2 1 1 Module TINA E ansera a A diag AAA a 24 82 C2 Module RT 24 3 2b Module serial MUIMDEL cuo E PEE dede ve bessere ea v oot eve a a N ANS 24 exon A eed mondes nre Mt recente he ee ea LM LA MA M CR Mi Atc SUN 24 9 2 1 5 Intetnabprogralm VERSION sara AAA A A o ddp ERR b d Pb a dona 24 9 2 1 5 ConfiguratioD FIG VESIOM usnm en vest ebat aue ES AO 24 8204 Contieuraton id emit lel race A ceo N P m oce c CE 25 82 lolas CoNo ondate cts ari cine cai lic dl 25 8 25129 Elo a do ieadured vacat sve koe ORPdr Modem besudo Dur dtoue Obras pua QI UE 25 I ANM Gig 0 EN OT omm 25 822 MOE Ol Opera O Mardi A AAA ASA 25 322 2 SIM card s PIN CODE murino 26 O 27 82 2A ACCESS LO cOn Ur Orts arena delante 27 32 20 CONMEULALION PASSWORD A 27 8 22 67 Config rdtior TEO rra AA EA AAA AAA re tet ebrei vn AS 28 8 2 2 7 wResetalter MACU VIV A A A AA AN E AS 28 8 22 09 Data OVErwnhitiNg Protec aos 28 9 2
42. SSION IN GSM SYSTEMS iaa 97 A 97 ILL CS AS ESO did 97 TES o TE a 98 t343 Advantages Of GPRS tecno Ys pi AAA 98 dS Ze GPRS AD telemetiv el 0 IGA IONS daa dias es ida 98 T3 LA a BG ae eter ee A ee OEE er eee 99 KCN SOV Soe ROA 99 DITO LY MN TEUER 99 132 APPLICATION EXAMPLES ias m ER 99 13 2 E Communication WIEN SIA YHOQUIE iuc ta testata luu ees siewasaivansiowaiweaushemesldvene Loca TT 99 WS INE POMELO POINT COMMUNI CO ION eT 100 152 2 USING Internal reS oUr CBS iia 100 132 22 Data transmission Trom external AVISA aa 102 13 2 2 2 1 Configuration tor transparent Mode herning SEE e Fe o RE ELPe ee Con EE be Edi esee iex pn SO eoe vede ve ba Co HEU EUNDI 102 1S 2322202 HCOMMEUFALION TOM GaziVIOC eM MOG es s ce viia rt ees vou ua ce clade eres di etc cat ot te Dur bb uL CONO TEN cda dh d 102 13 2 2 2 3 Contiguration for IME BUS EC ModE oso oderit vin dotan Seba Tae bet hoa Beto Coa a sun a xa Ede da de ada ana 102 13 2 2 2 4 Configuration Tor NMEA 0183 mode a pot rte tI e ter DUbI Ee kH E EY sas 103 13 3 SYNTAX FOR READING AND WRITING DATA IN SMS MODE cesses nnne erus enses assesses essais 103 13 4 UNLOCKING WRITING TO INTERNAL REGISTERS c cesses enne e esse sse se se see sse esee ee esses sees tees e stetisse n 104 13 5 WORKING WITH DYNAMIC IP ADDRESSING sn tai 105 13 9 DATA FORMATS uae dudes ee doe een Mom is 106 ST Herod ce M
43. Telemetry Module MT 202 C C User Manual ee un c A E E CSM EY SPRS E E m m SGN LEVEI 2 in entia MT 202 e l A NTERNA gh GSM ACTIVITY E ma MUTO telemetria pl in entia CE Telemetry Module MT 202 User s Manual GSM GPRS Telemetry Module for monitoring and control Class 1 Telecommunications Terminal Equipment for GSM 850 900 1800 1900 INVENTIA Sp z 0 0 v1 46 MT 202 O 2010 Inventia Sp z o o Wszelkie prawa zastrzezone Zaden fragment niniejszego dokumentu nie moze by powielany lub kopiowany w adnej formie bez wzgl du na stosowan technologie 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 Wyda
44. Where GSM signal is weak using multi segment directional antenna may be necessary 6 2 First configuration First configuration of MT 202 is necessary for setting up basic parameters making logging to GSM network possible and optionally servicing GPRS To configure the module connect it via RS232 cable to a computer running MTManager Comprehensive information about installation use and attachment of MTM program to configured modules can be found in MTM User Manual Logging into GSM GPRS network requires basic information about the SIM card in use and optionally about the APN that the module is going to operate within when GPRS mode is turned on The parameters are Geral El en arar ofi bee 5B RHR wo Bett lee Lii Fred Fares Diii 5 Mor iw DT AE Je PL Y LI E General GPRS E Authorized numbers Transparent mode Resources 4 Rules In General group PIN code for SIM card insert PIN code of the SIM card intended for the module unless the card is configured not to ask for PIN code Use GPRS Yes if SMS and GPRS packet transmission is intended No if the module is to work in SMS mode only In GPRS group visible if Use of GPRS is set to Yes APN Name insert name of APN in which GPRS transmission is to take place APN User Name insert user name if required by Network Operator 15 APN login password insert password if required by Network Operator These parameters
45. ace half duplex single pair Default RS232 value Comments n a 8 2 6 2 2 Transmission speed Function defines transmission speed bits s for serial port Data type selection list Range 1200 2400 4800 9600 19200 38400 b s List of supported speeds Default 9600 b sec value Comments n a 8 2 6 2 3 Stop bits Function defines number of stop bits Data type selection list Range 1 4 List of options Default 1 value Comments Function has no influence on transmission parameters for Modbus modes Number of stop bits depends on selected parity control mode 8 2 6 2 4 Parity Function defines control of transmitted byte Data type selection list Range n a None Even Odd List of available options Default n a value Comments For operating modes for ports with MODBUS protocol this setting has following influence on stop bits 1 stop bit for Even and Odd 2 stop bits for n a 8 2 6 3 Asynchronous clocks Two Asynchronous clocks can cyclically count time for up to days 8640000 s Counting starts immediately after module starts up and goes on until switched off Asynchronous clocks have two Triggering outputs T1 T2 that can be used for rules processing 8 2 6 3 1 Clocks TMR1 TMR2 8 2 6 3 1 1 Period Function Data type Range Default value Comments Defines in seconds asynchronous timer counting period number 0 8640000 s O s O zero value switc
46. alogical to traditional telephone modem The user establishes a connection with a defined subscriber number and carries out a transmission of data stream sent to the serial port connected to the GSM modem It is a 97 98 point to point transmission where only 2 data sources are connected After transmission the connection is broken and the subscriber charged for the time occupying the channel This type of data transmission justifiable when large amounts of data are to be transmitted but would be extremely expensive in real time monitoring since it occupies the channel all of the time 13 1 3 GPRS General Packet Radio Services a technology of transmitting data as addressed digital packets Seen from user s point of view it is identical to Internet technology The technology uses packet data protocols particularly UDP IP and TCP IP This technology is radically different from technologies employed by standard modems using GSM CSD commuted mode The main difference is the inability to transmit the stream of data directly in traditional serial protocols For transmission by GSM GPRS modem it is necessary to package data in frames compatible with employed protocol All procedures necessary for login to GPRS have to be completed so connecting GSM GPRS modem to the data source operating in serial protocol MODBUS PPI SNP M Bus incompatible with packet transmission specification is impossible even if it has a serial int
47. am editor File Edit Module Help D e af select M pride A X Vj Zz n Write pragram result a Fi NL Write and disable read i r FT NET ETC Sec REGA ETC Sec E J000 POR Buffer copy REGI copy X value ANI i i e is l fe Module disscannected ala Comi in entia and after connecting to the module with internal program running Notice the green dot in lower left corner of the status bar E MT program editor Fie Edit Modde Help Ti gt Lad Salect a Read pragram A Write program Fi E Write and disable read Buffer copy copy A value O Program is running ala Comi Function Select Presents the list of defined modules for selection of the desired module The list has the option of selecting transmission mode via either RS 232 cable or wireless GPRS connection using the module s IP address 65 66 MT module selection type name address bh ala Osowiec P3 20060405 Mew module Jedlicze P 1 H Nowy maduL Ka 7 202 Mew module 10 10 35 234 40 MT 101 PLOT13 JOZEFIARA 1223910251 11 Local RS5 Z32 port The table shows data written in system registers by MTManager application MTProg application can only access modules previously defined and configured in active Project by MTManager The icon El on the toolbar performs same function Function Read program Reads the content of module s program interpreter into the table If the application is c
48. ansmissions transmission channel reservation diminishes transmitted data volume provided that multiple queries of one device are executed not knowing the foreign protocol When channel reservation is employed only the first query is sent to all modules defined in Authorized IP numbers list After reception of the response the module reserves for a defined time the direct communication channel with the module that responded to the last query thus creating a temporary point to point connection The reservation time is counted since reception of last GPRS packet Consecutive packets received from that module prolong channel reservation while sending packets does not prolong the reservation When channel reservation time is set to O sec the module does not reserve channel and works in standard mode receiving and sending packets from all defined remote units 7 2 Modbus RTU Master mode In this mode the module cooperates with the device acting as MODBUS RTU MASTER The master sends queries addressed to Slave devices to module s PORT2 Upon reception of the frame at PORT2 the module verifies recipient device address Since module s own resources are available in Modbus RTU Master mode under Modbus ID assigned to module the instruction is carried out and replay sent to PORT2 to the master when matched with address Frames with other Modbus ID addresses transmitted via GPRS are routed to other recipients on the basis of a table assigning IP ad
49. apping registers of external Modbus devices into it s own internal registers This functionality significantly reduces GPRS transmission necessary for efficient control GazModem Mode enables local control of devices working in GazModem protocol not available in present version of module s firmware M Bus LEC Mode enables local control of devices of LEC type heat consumption meters and other devices with identical mapping of data holding registers not available in present version of module s firmware NMEA 0831 Mode prepared to read information subset transmitted to PORT2 by devices operating within NMEA 0831 standard FlexSerial Mode prepared to adopt other transmission protocols by employing user defined internal program 17 18 7 1 Transparent mode In this mode the module receives data at serial PORT2 buffers it in memory and converts to packets to send to defined recipients This mode allows data transmission without recognition of the protocol the data is sent in Data received at PORT2 is transmitted to all IP addresses defined in Authorized IP numbers group when working in broadcast mode In order to reduce or eliminate transmitted data redundancy two options are available e packet routing useful for unambiguous definition of where in transmitted frames the recipient address is placed and how it is recorded without knowing the foreign protocol In that case routing table can be created to eliminate redundant tr
50. application do not match 8 2 2 7 Reset after inactivity Function Data type Range Default value Comments Defines in minutes the interval between data reception by modem Initiates modem restart when exceeded number 0 10080 min 60 min This parameter is valid only for Modem mode Value O disables this function The value of this parameter should not be lower than master system query interval Setting of lower value results in frequent resets of the modem 8 2 2 8 Data overwriting protection Function Data type Range Default value Comments blocks writing of data into internal module registers protecting data significant to proper operation of module selection list Yes Data writing is possible when password is provided No Data writing to internal registers not protected No This parameter protects the module against accidental or intended intrusion into internal resources without preventing users authorized by password to make changes 8 2 2 9 Password for data writing Function Data type Range Default value Comments defines password for Data overwriting protection parameter text field letters and numerals max 32 characters n a when Data overwriting protection parameter is active writing to module is possible only after providing valid password The procedure to be followed in this case is to be found in chapter Appendices Unblocking writing to internal registers 8 2 2 10 Er
51. ata packet Function defines in bytes max length of data packet in receiving buffer Data type number Range du5912 Default 256 value Comments none 8 2 5 8 2 Data packet delimiter Function Defines in seconds interval between incoming bytes Exceeding this interval results in storing incomplete data packet in receiving buffer Data type number Range 0 00 655 35 s Default 1 s value Comments none 8 2 6 Resources Group Resources encompasses a list of hardware and software resources available to users Sub groups hold configurable parameters for asynchronous and synchronous Timers MT2MT Buffer and Constant parameters 8 2 6 1 Modbus ID number of module s internal resources Function Defines Modbus ID number for internal resources of the module operating in Modbus Slave mode Data type number Range o PE Default value 1 Comments setting Modbus ID to O zero makes access to internal module resources impossible 8 2 6 2 Serial port Sub group serial port holds configuration parameters for PORT2 PORT1 parameters are unchangeable Speed 9600 8 bits no parity 1 stop bit flow control hardware RTS CTS 8 2 6 2 1 Interface type Function defines electrical standard for serial port Data type selection list Range RS232 voltage interface 12V full duplex three wire RS422 differential interface full duplex double pair 51 52 RS485 differential interf
52. ated in third column If third column states O replies from all slaves will be sent to corresponding IP address This means that it is possible to send replies to any number of devices acting as protocol Master Multimaster mode 19 20 Modbus MASTER mode H E a AX iini e ums dii i S 8 LEE mz a A E 9 y EET A i Modbus SLAVE mode Modbus SLAVE mode 7 4 Modem mode In this mode the module establishes communication channel between PORT2 and internal GSM modem input The channel is available after entering PIN code and logging on to the network relieving the user of modem initiation In order to control the transmission AT commands issuing is necessary Full control of modem s operation is carried out by external device connected to PORT2 of the module This mode does not require configuration of any parameter beyond right PIN code but in turn does not give access to any MT 202 features except transmission control Being able to use transmission control modem may be reset if no activity is detected in defined time It prevents the phenomenon of an irrevocably hanging modem which in case of remote deployment is usually expensive 7 5 Modbus RTU Mirror mode Modbus RTU Mirror mode is an extension of MODBUS RTU Slave mode Seen from GPRS side the module acts exactly as it does in Modbus RTU Slave mode securing remote access to own resources as well as resource
53. bit does not have influence on data reception algorithm and is only used for received data diagnostic Resources P2RCV NO Internal registers 1022 Register controlling reception Internal registers P2RCV_B1 513 1024 1535 Receiving buffer P2RCV_err Output bits 60 Reception error signaling Data transmission Registers P2SND_B1 P2SND_B512 constitute sending buffer while register P2SND_NO controls the transmission writing a non zero value to P2SND_NO triggers transmission of data packet with length equal to the value written into P2SND_NO from sending buffer Data is transmitted from the beginning of the buffer so the first Byte of the packet is taken from P2SND B1 register After emptying the buffer the register P2SND NO is automatically zeroed thus informing that the next packet may be prepared for sending Register P2SND Bx may be modified only when P2SND NO is zeroed If transmission error occurs for example during transmission to P2SND NO the value higher than 512 was written P2SND err bit in binary outputs space is set high Bit P2SND err is not zeroed automatically so in order to use it in diagnostic purposes it must be zeroed by user s program Resources P2SND NO int Registers 1023 Register controlling sending P2SND B1 513 int Registers 1536 2047 Sending buffer P2SND err Output bits 61 Sending error signaling 8 Configuration 8 1 General information The configuration of MT 202 module a
54. cia 109 T ES C8 VREG_BI4 oos Reseved Serial communication status bits for Modbus Mirror Macmat Slave GazModem and M Bus LEC modes Serial communication status bits for Modbus Mirror mode uec oxo098 J over info VREG BI10 OxOOA8 SL1 ok SL2 ok SL3 ok SL4 ok S 5 ok SL6 ok SL7 ok SL8 ok SL10 ok SL11 ok SL12 ok SL13 ok DB o e or qM cx po JLos jo Joe qol d ee 0x02B8 MI2MT 1 MI2MT 2 MT2MT 3 MI2MTI 4 MI2MT 5 MT2MT 6 MT2MT 7 MI2MT 8 OxOOBO SL9 ok SL14 ok SL15 ok SL16 ok Ox00B8 Bits informing about m MT2MT buffer ene a p aps Lo a ram ec iy messages The bit a n Me ON referring to the sending module s IP address V 9 Bits are set for one program cycle VREG BI50 110 E 3 0x0340 MT2MT_137 MT2MT_138 MT2MT_139 MT2MT_140 MT2MT 141 MT2MT 142 MES 143 ERE 144 0x0348 MT2MT_145 MT2MT_146 MT2MT_147 MT2MT 148 MT2MT_149 MT2MT_150 MT2MT_151 MT2MT_152 j0x0350 MT2MT 153 MT2MT 154 MT2MT 155 MT2MT 156 MT2MT 157 MT2MT 158 MT2MT 159 MT2MT 160 0x0358 MT2MT 161 MT2MT 162 MT2MT 163 MT2MT 164 MT2MT 165 MT2MT 166 Du M same aes vam 0x03A0 MT2MT 233 MT2MT 234 MT2MT 235 MT2MT_236 MT2MT 237 MT2MT 238 MT2MT MMT 239 9 MT2MT 240 240 PE Ox03A8 MT2MT_241 MT2MT_242 MT2MT_243 MT2MT_244 MT2MT 245 MT2MT 246 Ox03BO MT2MT_249 MT2MT_250 MT2MT_251 MT2MT 252 MT2MT 253 MT2MT 254
55. d nysteres Saad A SA 48 SL Gas Hieter addres ed 48 3 2 0 0 0 03s meter reddine It Vd A A 48 8 2 5 6 7 Number of transmission retries to gas METEL cccccesssccccsesscceceeeccecseueneceesaeeceesauseceesaeseceseesensecessuneecessaneeeenes 49 38 23 09 Transrpission MEOT Or eaS Meter ASA Er eo dense Roe du d C 49 320037 NUME r O CIS VICBS ata T rob a RO Ma ec eee eon me 49 So OC 49 82536 TO b Adcdtess da A IA AS A 49 8 2 5 6 10 2 Geographical coordinates formal ide oret ride e ee Eve aeter dt 50 8 2 5 6 10 3 9 EL HB f da da io 50 Sl NMEA 0183 Od co co nx E e tx red Eden a AAA TEES NUR CIAM d uL 50 8 2 5 7 1 Data valtdity Cle Suse oto AAA 50 SREM E E E itecto bL Im i cU Ire eae ore 50 8 2 5 8 T Max lengthrof date pacta taba daa nds 51 Bad sores Data packet delirante 51 82 6 RESCUE 51 8 2 6 1 Modbus ID number of module s internal resources ccccccssssccccceeeecececeeseccecaeeececeaeueceessesscecessuasecessuaseeessuaaeeessauees 51 SPIA SAE A PO UT ara 51 Be Oe Dei is nio 51 8 2 6 2 2 ES A os i AE a Lc ton obe AAE I DAN Pon ob ud re boc oui foa Sate ta aue ber Ua ae Dus EN 52 5B 2 5 2 A TO DIES coros aeterni II O denti de coded IPEE E E EE O A cater add 52 PUN DA oi cuo aet M HTC EE 52 9 2 6 3 ASV NCM ONG US COS a 52 8 2 5 3 T Clocks TMR E TMR Ln AAA A AA SARA AA E A 53 GPS SM A ROS 53 8 2 5 27 SvnelronousCloOCKS soot reo AA A A A AAA AAA A 53 B2 5 d COC
56. d with warning signs Where there is no marking do not install telemetry modules at liquid or gas fuels stores inflammable materials stores nor places contaminated with metal or wheat dust 13 Appendices 13 1 Data transmission in GSM systems At the moment a subscriber to GSM services has 3 technologies of sending data at his disposal besides voice communication These are SMS CSD and GPRS Since they offer different functionalities a short description is necessary 13 1 1 SMS Short Message Service the technology of sending text messages The length of the message is 160 characters Permitted characters are letters and numbers Despite of its popularity it is not an optimal service for telemetry The cost of an SMS is constant regardless of information length within 160 characters limit In telemetric applications using the text mode would require dedicated formatting and special programming for reception The conclusion is simple This service was not created for telemetry applications but may be an attractive supplement Suppose that along with monitoring current values it is possible to receive perfectly readable textual information containing a warning about alarm situation It is quite a useful supplement 13 1 2 CSD HSCSD Circuit Switched Data a technology for sending data via commuted communication channel set up on subscriber demand Despite using a digital telephony technology the data transmission is an
57. device number 0 65535 0 n a 8 2 5 4 3 5 Mapped space size Function Data type a Range lt Default value Comments Defines the size of register space necessary for reading mapped space from peripheral Slave device number 1 2040 1 for register space value of this variable defines size of mapped space in Registers while for bitmapped in bits Bits from mapped space are placed on consecutive bits in registers starting from least significant So in module in one registers 16 bits are stored Typical layout of mapped bit space Address of mapped space module 64 Address of mapped space SLAVE 3 Size of mapped space 20 8 2 5 4 3 6 Mapped space read interval Function Data type z Range Default value Comments Defines in seconds read interval of peripheral Slave device for update number 0 65535 s 1 s value O zero forces max possible frequency of updating It depends on speed of PORT2 along with size and number of defined mapped spaces 43 44 8 2 5 4 3 7 Force write the whole block Function Data type Range Default value Comments Parameter allows forcing whole data block writes selection list Yes Block writing is forced any change of register or bit on side of module forces write of whole data block not single register or bit It is advised to turn this option on when using variables longer than 16 bits long float No Method of writes
58. dresses to Modbus IDs routing table redirection In other words MT 202 acts as a router of packets sent from Master to remote Slave units This mode enables creation of data acquisition system where standard queries generated by PLC controller or any other device working in Modbus RTU Master mode This solution is not recommended if master role is played by a PC running Windows 2000 or newer and collected data is used by applications capable of using data collected by OPC or written in CSV or SQL format Following rules apply for Modbus RTU Master mode e Frames are sent only to recipients having Modbus ID matching address received via PORT2 All frames received at PORT2 are sent to recipients having Modbus ID 0 written in the table Frames with address O broadcast frames are set to all recipients declared in the routing table Repeating IP address in the table does not cause multiple transmission to the same recipient This makes sending frames with different Modbus IDs to same IP recipient possible connecting a large number of devices with various Modbus IDs to PORT2 of the remote module operating in MODBUS RTU Slave mode The frame will be dispatched to recipient only when IP address is defined in Authorized numbers list of GPRS section and sending option is checked e After receiving frame via GPRS the module checks if it is addressed to its internal resources address matches declared Modbus ID If that is the case the instructi
59. e attached antenna has to secure appropriate radio signal level enabling login to GSM network The type and placement of antenna has significant influence on module s sender receiver circuits GSM signal level is reflected by SGN LEVEL LEDs on module s front panel When GSM signal level is not sufficient for reliable operation LED is not lit In that case the use of a directional antenna should be considered GSM signal level GSM antenna socket 4 7 Power supply MT 202 may be powered by 18 26 4 V AC or 10 8 36 V DC The module may work with auxiliary battery supply securing operation for some time after main supply failure In order to discriminate whether the module is powered from battery or from main supply the module has a binary input marked UPS where the signal informing that main supply has failed Main supply voltage drop below 10 8 V raises the FS1 ups system flag The flag may be used for rules processing The input may be used to signal main supply failure and switch over to battery supply 4 8 Housing MT 202 module is encapsulated in standard 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 11 12 5 Connections scheme Tis chapter shows standard configurations of connections securing proper operation of MT 202 module s integral inputs in a
60. e can hold from 1 to 16 independent blocks in one or more devices Consecutive blocks may encompass Registers from different spaces 45 46 8 2 5 5 7 1 Address Function Defines address of gas counter from which the configured data block should be read Data type number Range 0 65535 Default 0 value Comments n a 8 2 5 5 7 2 Alarm reading Function defines status of alarm reading from gas meter Data type selection list Range Yes Reading active No Reading inactive Default No value Comments n a 8 2 5 5 7 3 Signal reading Function defines status of signal reading from gas meter Data type selection list Range No Signal reading inactive 1 byte Read 1 signal byte in Gaz Modem protocol 2 bytes Read 2 signal bytes in Gaz Modem protocol 3 bytes Read 3 signal bytes in Gaz Modem protocol 4 bytes Read 4 signal bytes in Gaz Modem protocol Gazmodem 2 Read signals in Gaz Modem2 protocol Default No value Comments n a 8 2 5 5 7 4 Current data reading Function Sets status of current data reading from gas meter Data type selection list Range Yes Current data reading active NO Current data reading inactive Default No value Comments n a 8 2 5 5 7 5 Current data block index Function Data type Range Default value Comments Defines address of first current data register from peripheral GazModem device number 0 64 0 n a 8 2 5 5 7 6 Curr
61. e relevant data for parameters MT editor config Modem init file Hw PPP password Pin code Ss Connect to GPRS fs Modem port 1 APN Server 00 Bo z m Internet correctior Modem init file Finds and selects the file holding initialization parameters for the GPRS modem used to communicate with remote module APN name States name of the APN where programmed module resides PPP user Parameter has to be defined only if network operator requires it PPP password Parameter has to be defined only if network operator requires it Connect to GPRS Parameter has to be defined only if network operator requires it APN server IP address of the computer routing data packets sent via internet Internet connection When selected in conjunction with RS 232 port it sets up the communication via dial up GPRS connection or via routed Ethernet connection This is the optimal way of communication between MTProg and remote modules When unselected it leaves the connection to GPRS modem and MTProg takes care of initializing modem and establishing connection Ping IP address pinged by application in order to maintain internet connection session This address must belong to the same APN as programmed module Can be the programmed module s IP If used leave it at default 0 0 0 0 PIN code Contains PIN code of the SIM card placed in the modem employed to communicate with APN Modem port Contains number of the com port the
62. e to another goes like this 1 In sending module the event triggered sending of the buffer has to be defined 2 In receiving module switch the MT2MT buffer on and define it s placement and size so that it encompasses the area of sent registers 3 Upon reception of event triggered data frame registers from event reporting module are copied into receiving module s registers and MT2MT x bit informing about modification of MT2MT buffer with data from respective IP is set Bit number reflects the index of IP address in GPRS Authorized numbers in configuration MT2MT x bits are set for 1 program cycle immediately after reception and recording it in MT2MT buffer 4 Data transmission in this system copies registers of sending module into the exact same register in receiving module When designing communication between larger number of modules separate register areas have to be sent and appropriately large areas define for MT2MT receiving buffer in receiving modules 4 3 5 Parameters In MT 202 module max 128 constant parameters that are loaded into module s memory during initialization of the module can be defined 9 10 These constants are stored in 16 bit registers and have numerical values ranging from O 65535 Constant parameters may be used for parameterization of user programs Defined parameters are not reset after power loss or module is reset 4 3 6 System variables MT 202 has system variables connected to GSM GPRS connectio
63. e working mode is essential for exploiting all available features The choice influences availability of configuration parameters thus optimizing module operation 8 2 2 2 SIM card s PIN code Function Data type Range defines PIN access code for SIM module delivered by GSM operator For SIM modules not protected by PIN code the value is insignificant Text Letters and numerals max 8 characters Default value Comments 0000 wrong pin can cause locking of SIM module CAUTI ON Caution is vital when setting the PIN code value Entering faulty PI N code may cause module start up to be impossible and lock SI M card In latest versions of the module attempting to enter wrong PI N code twice renders 8 2 2 3 GSM band Function Data type Range Default value Comments a third attempt impossible sets the frequency of locally employed GSM system selection list EU 900 1800 MHz for areas employing 900 1800 MHz standard US 850 1900 MHz for areas employing 850 1900 MHz standard EU 900 1800 MHz Parameter active only in modules using quad band Wavecom WISMO Quick PLUS modem module Setting US 850 1900 MHz band in other modules does not have any effect 8 2 2 4 Access to configuration Function Data type Range Default value Comments defines configuration access restrictions The user can decide whether access to configuration will be allowed for all or only selected IP addresses selection list
64. ed protection procedures the SIM card may get blocked after 3 failed attempts and the only method of unblocking it is to supply the right PUK code Unfortunately this cannot be performed in the MT 202 module The PUK code may by inserted only after taking the SIM card out of MT 202 module and placing it in a standard GSM mobile phone The phone will demand entering of PUK code at power up Entering correct PUK code unblocks the card and resets PIN fault counter making the card operational 10 3 Error signaling Despite the efforts of module designers and users errors in function do occur It is often imperative to diagnose and remove the cause of error Error signaling is a tool for solving problems LED indicators on module s front panel interpret errors e ERR e GPRS e L1 L2 L3 of SGN LEVEL group 12 24 V IN 8 ti ooo a Depending on type errors are classified as standard or critical Standard errors are a result of faulty configuration or reasons independent of the module Critical errors are usually connected to physical damage or faults in internal program 91 10 3 1 Standard errors A sign of Standard error occurrence is a lit ERR LED Error code numbers are displayed on signal level and GPRS LEDs ERR Error no Description 35M network error check antenna connection and SIM card activation In GSM network GPRS network error check SIM Card activation in GPRS network NON E
65. ed the whole voice channel As a result simultaneous phone calls were impossible and the cost of transmission depended on the connection time rather than the amount of the transferred data In this situation the real time monitoring of units requiring constant supervision but generating a relatively small amount of data was not possible The situation changed radically after GSM operators introduced data transmission services in the GPRS General Packet Radio Services standard The new technology called the 2 5G standard meaning Two and a Half Generation is a bridge between the to date technologies of the Second Generation GSM networks 2G and the Third Generation technology 3G UMTS which has been waiting for application on a wide scale However broadband 3G technology is still very distant So let us deal with the solutions available right now In providing this user s manual we are aware that it will not answer all your questions and address all your doubts This is why the manual will be regularly supplemented and modified We ask for your comments and welcome suggestions in order to make this manual more useful I NVENTIA Ltd 2 Module s destination MT 202 is a specialized telemetry module optimized for application in advanced measurement and alarm systems provided with a mains power supply General attributes of MT 202 e Compact design Programmable logical functions using internal markers logical states timers coun
66. eives packets only with Proxy server Since modules in this mode are identified by serial numbers tables and lists describing other modules in the network hold serial numbers instead of IP addresses Dynamically addressed modules do not have the possibility of remote configuration or remote programming e UDP Standard in this data module communicates using the Modbus frame encapsulated in standard UDP frame This allows user to use Modbus UDP drivers provided from other companies but disables data delivery control system confirmation of correct data frame reception mechanism GPRS transmission retries number and GPRS transmission timeout parameters are unavailable in that operating mode 106 13 7 Trigger inputs During operation the internal system of MT 202 module creates a number of variables related to its inputs outputs and to module diagnostics Triggering inputs and triggering flags in conjunction with rules processing enable instantaneous reaction in occurring states User has access to following triggering inputs Description FS1_ups 1 no voltage on UPS pin FS1_gprs 1 information of logging out of GPRS network P1 P32 Program flags P1 P32 definable in user program flags from Asynchronous clocks TMR1 TMR2 and synchronous TMR3 TMR1 TMR4 TMRA 13 8 Flags During operation MT 202 module governs a number of binary flags assuming value True or False that trigger rules processing and remote diagnostics
67. em mode and communicates with superior device The Module operates in FlexSerial mode running built in port service for communication with device working on non standard transmission protocol 89 10 1 5 Module s status DIMEN OFS EN E EP gH E 35M LEVEL MT 202 7555577 apr PORT RS EEN um mm Module status 12 24 V IN 8E i aaa Module status group encompasses four LED indicators displaying the state of the circuit controlling the module s operation and with execution of user defined program Significance of LED indicators e Err LED when lit the Err LED indicates an error forcing automatic reboot The reason may be lack of GPRS communication disabling transmission of awaiting data Triple flash of Err LED indicates that current firmware does not support the function used in the program In this situation one solution is updating the firmware e Ovr LED when lit the Ovr LED indicates that execution of the program cycle took over 100ms and the next cycle was delayed as the result and may render improper execution of the program The LED is lit in following cases the program loaded is stopped anew configuration or firmware is loaded and internal program was automatically stopped in order avoid interference In that case make sure not to disrupt the power supply until the module restarts automatically It may take couple of minutes e Bat LED is lit when the p
68. ent data block length Function Data type Range Default value Comments Defines size of current data block read from peripheral GazModem device number 1 8 1 n a 8 2 5 6 M Bus LEC mode CAUTI ON This option is not supported since firmware 1 43 in MT 101 modules The following description is published for legacy support MT 202 module operating in M Bus LEC mode along with converter RM 102 plays the role of data converter for data received from heat meters that employ M Bus protocol Data received at PORT2 is placed in dedicated registers of the memory map of MT 202 Additionally in this mode it is possible to attach a gas meter to PORT1 of the MT 202 module After selecting this mode local configuration is possible during the first 30s after power up PWR LED is flashing 8 2 5 6 1 Read interval Function Data type Range Default value Comments Defines in seconds an interval between readings from peripheral device operating on GazModem protocol in order to update measurement data number 0 255 min 5 min value O zero forces max possible frequency of updating It depends on speed of PORT2 along with size and number of defined mapped spaces 8 2 5 6 2 Number of retries Function defines number of attempts to transmit data via PORT2 in case of unconfirmed within time defined by transmission Timeout parameter reception 47 48 Data type Range Default value Co
69. er to collect parameters accessible dependent on selected operating Mode of operation In practice only the group of parameters relevant for the selected mode will appear on the list 8 2 5 1 Transparent mode MT 202 operating in Transparent mode sends all data received at PORT2 to IP addresses appointed during configuration This is the standard operating mode employed as autonomic gateway between non intelligent device connected to serial port using not supported by MT 202 protocol 8 2 5 1 1 GPRS transmission In transparent mode the module receiving data at serial port buffers it in internal memory and converts it to data packet to be sent to defined recipients During packets creation criteria described by variables of GPRS transmission sub group are applied Additionally parameters allowing packet routing in order to reduce transmitted data volume are defined Packet routing is possible only when the place where the address identifying final recipient in a disclosed mode is known 8 2 5 1 1 1 Max length of data packet Function Defines in bytes maximal data volume in a packet When data volume in receiving buffer reaches declared size packet is sent Data type number Range 1 1408 Default 256 value Comments n a 8 2 5 1 1 2 Data packet delimiter Function Defines in seconds the time between received characters Reaching max value triggers transmission of received data Data type number 37
70. erface After completing login sequence we have a connection equal to virtual wired connection available all of the time 13 1 3 1 Advantages of GPRS technology The absolutely greatest advantage of GPRS technology is the possibility for maintaining a permanent connection with the network while paying only for the volume of transmitted data with no charge for maintaining the connection This makes establishing of on line services for minimal expenses possible An additional advantage is potentially high transmission speed up to 170kb s facilitating high data volume transmission GPRS standard supports four channel encoding schemes named respectively CS1 to CS4 with throughput of 9 05 kb s 13 4 kb s 15 6 kb s and 21 4 kb s Reached this way maximal transmission rates though rigidly defined are different depending on the number of connected channels and limited usually to max throughput of 115 2 kb s typically 8x13 4kb s 107 2 kb s and in particular situations even up to 171 2 kb s 8x21 4 171 2 13 1 3 2 GPRS in telemetry applications GSM GPRS technology is possibly the ideal solution for telemetry and control of dispersed objects The undisputable advantages are Use of an existing advanced structure of GSM transmission structure The gigantic range of the network works everywhere Low cost of establishing and utilizing the system No need for specialized antenna systems The possibility of building networked system
71. eripheral Slave devices allows defining of 1 to 16 independent blocks in one or more devices Consecutive blocks may encompass registers from different spaces and be refreshed at different intervals 8 2 5 4 3 1 Modbus ID of Slave device Function Data type Range Default value Comments Defines Modbus ID of Slave device from which configured data block is to be read number 0 255 0 setting Modbus ID to O zero switches the mapping off 8 2 5 4 3 2 Space Function Data type Range Default value Comments selects Modbus space mapped from peripheral Slave device attached to PORT2 selection list Bi In Binary inputs 1xxx read only Bi Out Binary outputs Oxxx read and write Inp Reg Input Registers 3xxx read only Hold Reg Internal Registers 4xxx read and write Bi In writing into registers mapping read only spaces does not cause an error Values will be replaced by next error free reading from peripheral device 8 2 5 4 3 3 Address of mapped space in module Function Data type Range E Default value Comments defines start address of internal register in the module used for mapping space from the Slave For mapping space Internal registers are always used number 0 999 1 n a 8 2 5 4 3 4 Address of mapped space in SLAVE Function Data type Range a Default value Comments Defines address of first register mapped from peripheral Slave
72. es 102 13 2 2 2 1 Configuration for transparent mode Transparent mode does not require any configuration of internal resources In this mode all data arriving at PORT2 will be transmitted in accordance with recipients defined in IP number list as allowing transmission One has to notice that queries are not routed to a particular telemetry module with attached slave but sent to all devices in the system without decoding of protocol This allows for transmission of data in unknown protocol but increases costs of transmission since data is sent unselectively Reduction of transmission expenses is possible only by employing the function of transmission channel reservation 13 2 2 2 2 Configuration for GazModem mode The system consisting of MT 202 modules in GazModem mode integrates dispersed objects in gas metering systems equipped with electronic counters into centralized measuring system After setting configuration parameters and connecting of device to PORT 2 of the module the user obtains access to current data and alarms stored continuously in module memory In this setup MT 202 module may act as a concentrator for 16 devices MT 101 as local Master for measuring device MT 101 as local Master for measuring device 13 2 2 2 3 Configuration for M Bus Lec mode The system consisting of MT 202 modules in Mbus LEC mode integrates dispersed objects in heat consumption metering systems equipped with electronic counters into a ce
73. et Y Search for max value in table The function scans the table beginning with register get X for length defined by register get Y The highest value found in search is written to store result register Both 16 and 32 bit registers can be searched If the value found exceeds the range of store result register the error flag is set Example 1 Table from XREG1 1 5 0 100 23 340 1 25 340 5 560 23 get X register XREG1 get Y register 10 store result register REG The result is REG1 Example 2 Table from DREG1 1 5 0 12000 23 340 1 25 340 5 65000 23 100000 65000 340 get X register DREG1 get Y register 12 store result register REG The result is REG1 65000 If register had the value of 13 for get Y the function would have returned REG1 value equal to 100000 Search for min value in table The function scans the table beginning with register get X for length defined by register get Y The lowest value found in the search is written to store result register Both 16 and 32 bit registers can be searched If the value found exceeds the range of store result register the error flag is set Example 1 Table from XREG1 1 5 6 100 23 340 1 25 340 5 560 0 get X register XREG1 get Y register 10 store result register REG The result is REG1 1 Example 2 Table from DREG1 1 5 0 12000 23 340 get X register DREG1 get Y reg
74. et value of 10 MT program editor File Edit Module Help Bell sa souws slsk execute M store expression result copy X value copy boolean X copy boolean X boolean AND XY i B n i I H b J Em Lj L J L J 0 Modde dissconnected ala Comi in entia 9 14 3 Pulse generator Simple example of pulsing flag P1 The interval of switching on off is 1 second EM MT program editor AE File Edit Module Help Deb gaari EN E execute 25 store expression Modulo is X equal to Y H WU gc Bl Q Module dissconnected ala Comi in entia 9 14 4 Alarm with confirmation The program generates cyclic transmission of SMS messages until S5 declared as alarm confirmation is activated or the alarm condition ceases S120 When binary input S1 is activated flag P1 is set high In MTManager the rule triggered by P1 sending SMS is defined Simultaneous to S1 going high the timer 1 is activated and counts to PV T1 amounting 600 6 seconds starts Upon reaching PV T1 the flag T1 is set and subsequently P1 is set As a result of the rule an SMS message is dispatched Until S5 is activated or S1 deactivated SMS messages will be regularly dispatched EA MT program editor File Edit Module Help DeL ge As GN E O A A expressi n result copy X value copy boolean X Exit copy boolean X copy boolean X le aa JJ copy boolean X L copy boolean X b J laud L J Q Module dissconnected ala Comi
75. f changing modules configuration Module s Modbus ID on this port is always 1 options in configuration applies only to PORT2 Transmission parameters are speed of 9600bps 8 data bits no parity 1 stop bit hardware handshake RTS CTS This port is ideal for connecting external graphical or text panel supporting Modbus RTU Master PORT2 is capable of operating in RS232 422 485 modes and serves communication with external data sources The interface and operating mode is selected during module s configuration This port is optoisolated 4 2 2 Real time clock MT 202 Module is equipped with astronomical time clock RTC The clock is a base for defining working cycles of module timers and time stamps for measurement results recorded in registers Imprecise clock setting results in faulty time stamping and subsequent loss of vital information For that reason it is recommended to set the clock to UTC time instead of the local time zone of the module s placement Setting the time is described in configuring mode documentation for the MTM program 4 3 Internal resources 4 3 1 Registers MT 202T elemetry module has in it s internal resources 16 bit input registers and 16 bit internal registers Remote access to these areas is possible using standard Modbus commands Internal Registers are not reset at power off Input Registers are reset at power on Module s 16 bit registers store unsigned values i
76. fference is lack of frame protection and opened UDP frame header format allowing creation of user s own access system UDPStandard Data is send in form of ModbusRTU command encapsulated in standard UDP data frame Data reception control is not available when using this data format Default value Standard Comments More info about data formats employed in MT series can be found in chapter Appendices Data formats 8 2 3 15 Proxy server IP address Function inserts Proxy server IP for selected Proxy Data frame format Data type IP address field Range 0 0 0 0 255 255 255 255 Default value 0 0 0 0 Comments inserted IP is public static address of communication server serving modules working in GSM GPRS network with dynamic IP assignment 8 2 3 16 CRC compatibility Function This parameter sets CRC calculation for systems requiring full Modbus RTU compatibility 34 Data type Range Default value Comments in new systems it is recommended to leave the option at selection list Yes For compatibility of Modbus RTU Slave mode Modbus RTU Master mode and Modbus RTU Mirror mode with remaining modes enabling the creation of systems consisting of modules working in transparent modes and Modbus RTU modes This mode ensures compatibility with MT DP communication software No for maintaining compatibility when expanding existent systems operating in MODBUS modes or cooperating with old versions of OPC driver
77. hes the clock off 8 2 6 4 Synchronous clocks Synchronous clocks group contains parameters set for two clocks capable of cooperating with module real time RTC clock thus enabling triggering of events synchronized with defined time 8 2 6 4 1 Clock TMR3 TMR4 8 2 6 4 1 1 Start Function Data type E Range A Default value Comments synchronizes timer s clock setting start point and counting period time HH mm 0 00 23 59 0 00 n a 8 2 6 4 1 2 Period Function Data type a Range E Default A value Comments defines synchronous clock counting period in minutes number 0 1440 min 0 min O zero value switches the clock off 8 2 6 5 MT2MT Buffer MT2MT Buffer enables creation of system where modules may exchange information internal registers with each other Using buffer requires activation and defining register space where exchange is going to take place More in chapter Internal Resources MT2MT Buffer 8 2 6 5 1 Active Function Data type Range defines state of employing MT2MT Buffer selection list Yes MT2MT Buffer active No MT2MT Buffer inactive 53 54 Default No value Comments n a 8 2 6 5 2 Sending to PORT2 Function Defines whether received event data buffer has to be sent to PORT2 Data type selection list Range Yes Received data will be sent No Received data will not be sent Default No value Comments This parameter has n
78. ia PORT1 in case of unconfirmed within time defined by Transmission timeout to gas meter parameter reception number 0 7 2 value O results in sending without confirming faultless reception 8 2 5 6 8 Transmission timeout for gas meter Function Data type Range Default value Comments Defines in seconds waiting time for confirmation of data frame reception at PORT1 number 0 01 10 00 s 2 00 s This value along with declared Number of transmission retries to gas meter influences max time of single data packet transmission 8 2 5 6 9 Number of devices Function Data type Range Default value Comments 8 2 5 6 10 MC Defines number of declared register spaces devices read on PORT2 from peripheral devices operating on M Bus protocol number 1 16 1 n a The table defining consecutive data blocks read from peripheral devices attached to PORT2 operating in M Bus protocol The table can hold from 1 to 16 independent blocks in one or more devices 8 2 5 6 10 1 Address 1 16 Function Data type Range Default value Comments Defines address of heat meter whose internal parameters shall be read number 0 255 0 address 255 means querying stopped 49 50 8 2 5 6 10 2 Geographical coordinates format Function Data type Range Default value Comments Defines format of geographical coordinates received in NMEA 0183 protocol when writing into regi
79. ial characters max 32 characters empty absence of APN name disables login to GPRS network 8 2 3 2 APN user name Function Data type Range Default value Comments defines APN user name text letters numerals special characters max 32 characters empty Optional parameter used only if required by GSM network operator 8 2 3 3 APN password Function Data type Range Default value Comments 8 2 3 4 Module IP Function Data type Range Default value Comments defines password for APN user account text letters numerals special characters max 32 characters empty Optional parameter used only if required by GSM network operator allows user to define IP number for newly created module definition and displays IP number read from the module configuration that was assigned to the module during last login to GPRS network IP number field 0 0 0 0 255 255 255 255 0 0 0 0 if the number is not read in nor written manually after local configuration remote configuration of the module via GPRS will not be possible 8 2 3 5 IP assignment Function Data type Range Default value Comments 8 2 3 6 Set IP Function Data type Range Default value Comments selects IP address assignment mode during login to GPRS network procedure selection list DHCP IP address is assigned by GSM network according to operator policy It may be static or dynamic address Manual IP address is assigned by GSM ne
80. icon E on the toolbar performs same function 63 9 3 1 2 Edit MT program editor File Edit Module Help D Find Ctrl F kN NL E M expression X Y result E copy X value 0 REGI copy X value RIC Sec REG2 is A not equal to Y RIC Sec REGA P1 ffi Exit copy X value RIC Sec REGA ffi Exit Buffer copy AREGI AREGZ copy X value ANI AREGI Bud ij WUE FUE Jeu t Q Module dissconnected ale Comi in entfia Function Find Allows searching the program for defined text e g register name Text that you want to look for is entered in the window opened jus after clicking this menu position It is possible to choose if the search phrase is case sensitive and if search phrase is a complete word or only part of it whole contents only After selecting OK cursor in main window will move to first cell with found search phrase Search area begins from first cell after selected and ends where program ends Text finding Cage sensitive Whole contents only Function can also be started by using keyboard shortcut Ctrl F Function Find next Moves cursor to next cell with searched phrase Function can also be started by using keyboard shortcut F3 9 3 1 3 Module Module Menu consists of functions governing the state of programmed module Functions of this menu item change dynamically depending on the state of connection with the module and the state of the module s internal program 64 lt MT progr
81. id range sets an error flag Modulo The function assigns the modulus of the division of X by Y For proper functioning it is required that get X gt 0 and get Y gt 0 When any of preconditions are not met the function returns an error which sets an error flag Examples 10 321 15 4 error 15 5 0 Negation store result register get X register CAUTI ON Note that all registers store unsigned values Only DREG registers can hold 32 bit signed values Using this function on DREG registers in will in most cases return an error Bitwise OR The function calculates logical sum of corresponding bits in 2 registers Example decimal hexadecimal binary get X register 1234 04D2 0000 0100 1101 0010 get Y register 4991 137F 0001 0011 0111 1111 store result register 6143 17FF 0001 0111 1111 1111 73 74 Bitwise AND The function calculates the product of corresponding bits in 2 registers Example decimal hexadecimal binary get X register 1234 04D2 0000 0100 1101 0010 get Y register 4991 137F 0001 0011 0111 1111 store result register 82 0052 0000 0000 0101 0010 Bitwise XOR The function calculates symmetrical difference of corresponding bits in 2 registers Example decimal hexadecimal binary get X register 1234 04D2 0000 0100 1101 0010 get Y register 4991 137F 0001 0011 0111 1111 store result register 6061 17AD 0001 0111 1010 1101 Bitwise NOT The function
82. igh 16 bits are placed in first register with lower address Example 1 The value 1234 in register representing numbers with 2 decimals FIX 2 will be recorded as integer value 123400 After conversion to 16 bit form Ox1E208 RegH 0x0001 1 RegL OxE208 57862 123 Example 2 Value 10 3 FIX 1 Integer value in 32 bit register 103 After conversion to 16 bit form OxFFFFFF99 RegH OXFFFF 65535 RegL OxFF99 65433 Description registers Addresses in tables point to placement of first register holding High order word of the number Low order word lays in next register 0x400 1024 i M i Address Register of validity of NMEA variables Modbus 41025 41025 This register is used to control whether values read from NMEA frames held in registers are valid up to date A High bit signals that data in corresponding register is valid while Low bit signals that register holds outdated data This bit is set High each time the value is written to corresponding register and reset when data is older than defined during module configuration time of signaling variables validity Bit assignment is described in information bits table 0x402 1026 Format 1 FIX degrees S minutes M fractions of minute m 5 SSMM mmmmm FIX 7 degrees S fractions of degrees s SS sssssss GPRMC GPGGA GPGLL Latitude North is represented by positive number while South is represented by negative number
83. internal registers This method significantly extends the number of inputs outputs responsible for generation of events E El Modbus Slave Modbus Master mode ADA AS AS t Modbus Master mode 13 2 2 Point to point communication This is a basic minimal configuration enabling data transmission between two devices In this configuration one can access internal module resources discrete resources inputs outputs or access resources of a device connected to module s serial port or mixed access to all above mentioned 13 2 2 1 Using internal resources This configuration requires two MT 202 modules where one acts as a gateway to a transmission system PLC SCADA set in Modbus Master mode In this case the device connected to MT 202 plays the role as master sending inquiries about appropriate resources of remote MT 202 module The module connected to a master gives access to its internal resources thus widening the central system Modbus Master mode Internal configuration of modules is as follows Module A Set Module operating mode to Modbus RTU Slave or MT Slave Set Modbus ID number of the module to a value different than zero f e 1 Set Authorized IP to 1 and add the IP assigned to module MT 202 operating in Modbus RTU Master mode options allowing data transmission and reception have to be checked in Module B Set Module operating mode to Modbus RTU Master Set Modbus ID number of the module to a
84. inventia 85 86 9 14 5 Motion detector The motion detector signal is mapped to S1 and light source to P1 When S1 is activated the module turns the light on for 10 seconds Repeated activation of S1 resets the time count back to 10 seconds E MT program editor File Edit Module Help Dekh gaari ox E execute El store expression result copy X value L copy boolean X copy boolean X copy boolean X L copy boolean X Je Jta cubo IU and or EN EF Q Modde dissconnected ala Comi in entia 9 14 6 Logger program An example of creating 512 elements logger for REG1 with 1 sec interval activated when Pl 1 EX program editor File Edit Module Help BeEH ggas an E execute any store expression r se copy A value copy A value is X not equal to Y T Exit copy A value ffi Exit Duffs copy copy A value Module dissconrected ala Comi 10 Problem solving 10 1 LED signaling LED indicators placed on front panel of the MT 202 module are very convenient during start up procedure In order to understand their message please get acquainted with error codes PORT 2 activity GSM signal level a RANN GSM activity _ Persie inis eom Module status LE 10 1 1 GSM status r l EL a oooo P uu 00000 a Ao MT 202 Lum G amp SIM ACTWITT 7 ip TEGA VIN gg GSM Status LEDs indicate GSM LED reflects curre
85. ister 4 store result register REG1 The result is since REG1 cannot hold the value of 12000 Search for value in table The function scans the table buffer starting with register get X searching for value defined in get Y register The table is searched for first occurrence of searched value or to the end of the memory space If the value is found the function returns an index to the register Indices are calculated from 0 If not found the function sets an error flag 27 NOTI CE The function can search tables of 32 bit registers though one has to be aware that index returned is a 32 table index and not equal to the offset in the address space as is the case for 16 bit tables Example 1 Table from XREG1 1 5 0 100 23 340 1 100 340 5 560 23 get X register XREG1 get Y register 100 store result register REG1 The result is REG1 3 Example 2 Table from DREG1 1 5 0 12000 23 340 1 100 get X register DREG2 get Y register DREG1 store result register REG1 The result is REG1 5 Convert text to number The function converts decimal value from text to binary Get X defines start of the text buffer to convert Text characters are written to low order bytes of 16 bit registers Get Y defines max number of characters registers to convert The function after successful conversion writes the result in store result register The result is always an integer value If c
86. its communicate directly with each other in the APN using static IP addresses allocated permanently to used SIM cards In this mode IP addresses of communicating modules are written into authorized units lists e Open The same configuration as standard The only difference is lack of frame protection and opened header format of UDP frame allowing the user to create his own user access system UDP data frame format port 7110 Frame identifier 16 bit 2 bytes H L Data block size in bytes Frame identifier 2 bytes H L 16 bit 2 bytes H L 1 Frame identifier is used for data flow control f e elimination of repeated frames When sending consecutive data frames this number shall be incremented 2 Max data block size is 1408 bytes 3 For access to the module MODBUS frames are used They are placed in data block without ending CRC Data block MODBUS frame Unit ID 1 byte Unit ID 1 byte Unit ID 1 byte 4 Upon reception of correct data frame the sender has to be informed by a receipt in a form of an UDP frame bearing only the header of received frame e Proxy In this configuration units communicate with each other through an external server The server IP is written in Proxy server IP configuration variable This mode allows using modules with SIM cards without assigned static address Modules receive a randomly selected IP address during network login procedure The Module establishes communication sends and rec
87. l for whole module Contains data necessary for successful login to GSM network and parameters defining module operating mode Note values set here have impact on module s behavior and in worst case when chosen improperly may even lock the module NOTI CE Availability of parameters described in following chapters depends on firmware version and the superior parameters they depend on 8 2 2 1 Mode of operation Function Data type Range defines module mode of operation in terms of internal functions and serviced protocols The selection controls access to parameters connected with selected operating mode selection list Transparent mode allowing sending GPRS data to PORT2 Modbus RTU Master in this mode the MT 202 module cooperates with external unit acting as System Modbus Master connected to PORT2 The module routing table assigns Slaves Modbus IDs to IP addresses of their respective GPRS serving nodes in order to optimize transmission 25 26 Default value Comments Modbus RTU Slave in this mode the internal module resources are treated as resources of the slave with Modbus ID defined during configuration Frames received by the module carrying its Modbus ID are serviced locally while frames carrying other Modbus IDs are sent to PORT2 Modem in this mode the module acts as GPRS modem controlled by AT commands At power on the module uses PIN code defined during configuration and logs on to GSM ne
88. lave mode with functionality similar to that available in Modbus Mirror mode with mapping of register space of periferal Slave into MT 202 internal registers This mode was implemented due to requirement of reading from devices operating in M Bus protocol applied mainly for measuring of energy consumption in heating systems Since MT 202 module has no capability of direct communication with M Bus units it is necessary to connect an external converter to PORT2 The converter RM 120 is one of our products 7 8 NMEA 0183 mode NMEA 0183 mode is an extension of Modbus RTU Slave mode with the function of receiving and interpreting of data in NMEA 0183 format sent by peripheral device attached to PORT2 Standard NMEA 0183 protocol frames are decoded and stored in module s internal registers where they are ready for further processing This mode was implemented to serve the AIRMAR weather station but may be used to communicate with GPS receivers using NMEA 0183 protocol for data exchange 7 9 FlexSerial mode In FlexSerial mode the transmission at PORT 2 is serviced exclusively by a user program resident in the module Only standard access to module s resources is possible via GPRS 21 22 No option of sending data frame to PORT 2 while data incoming to PORT2 arrives exclusively to internal program is available Buffer structure PORT 2 in the program is served by 2 buffers and helps registers placed in holding register s memory space
89. lecommunications System UMTS is a system of third generation cellular phone networks following 2G systems like GSM The new radio interface significantly improved data transfer between the subscriber and the network boosting the quality of service 384 kbit s throughput 13 1 6 HSDPA HSDPA High Speed Downlink Packet Access is a technology based on shared transmission channel The main feature is dynamic adaptation to changes in radio environment and quick retransmission of faulty data The HSDPA technology allows transmission from the network to device with 14 4 Mb s speed 13 2 Application examples This chapter shows basic configurations of systems employing MT 202 modules 13 2 1 Communication with single module This is the simplest possible monitoring system based on transmission of SMS messages by MT modules in case of event defined during module configuration In this mode the module sends text SMS with static or dynamic content holding information on input output states or content of module s internal registers This mode may be employed in systems where continuous monitoring is not imperative but alert when defined event occurs or an answer for enquiry are wanted SMS syntax is described in appendices 99 100 All modes except MODEM In this system the MT 202 module set to Modbus RTU Mirror mode can be used The module generates events based on data read from slave device connected to PORT 2 and mirrored into modules
90. ll RF Radio Frequency shielded there is no certainty that radio waves emitted by the telemetry module s antenna may have negative influence on its function 12 2 1 Heart pacemakers It is recommended that the distance between the antenna of telemetry module and the Heart Pacemaker is greater than 20 cm This distance is recommended by manufacturers of Pacemakers and in full harmony with results of studies conducted independently by Wireless Technology Research 96 12 2 2 Hearing aids In rare cases the signal emitted by the telemetry module s antenna may disturb hearing aids functions Should that occur one has to study detailed operating instructions and recommendations for that particular product 12 2 3 Other medical equipment Any radio device including the telemetry module may disturb the work of electronic medical equipment When there is a need of installing telemetry module in vicinity of medical equipment one has to contact the manufacturer of this equipment in order to make sure that the equipment is adequately protected against interference of radio frequency waves RF 12 2 4 RF Marked equipment The restriction against installing telemetry modules in areas marked as radio frequency RF prohibition zones must be unconditionally observed 12 3 Explosive environment Installation of telemetry modules in the environment where explosion hazard is present is not permitted Usually but not always these places are marke
91. ll available operating modes 5 1 Communication ports Telemetry module is equipped with 2 communication ports for different applications They are PORT 1 RS232 configuration Modbus RTU Slave 1D1 e The not optically isolated Port is used for configuration e Connection point to point to PC via RS 232 DB 9 connector female Pin description 2 TXD transmitter output 3 RXD receiver input g B PORT 2 RS232 422 A85 communication e The Port is optically isolated used for data exchange e Maximal isolating voltage 60Vrms e Operating mode selected by configuration application Description transmitter output interface common ground GND terminator if necessary connect to RD RD RD for RS485 transmitter receiver for RS422 receiver SD SD for RS422 transmitter PORT2 RS232 422 485 For RS232 mode the length of the cable should not exceed 15 m NOTI CE e Supply cables length 10 m e Signal cables length 30 m e For longer cables it is recommended to use external overvoltage protection 5 2 Power supply The power supply is connected to and terminals preserving polarisation only when supplying direct current Description GND Module s ground Input power supply state signaling Active state for voltage 10 8V When not employed shortcut with Positive pole of power supply Negative pole of power supply Not recommended i
92. lue Comments Defines size of internal registers space sent in transmission triggered by defined rule number 1 700 16 n a 59 60 8 3 Configuration writing After required modifications and parameter settings the configuration is stored on the configuring PC s hard disk only In order to write it to the module memory it has to be transmitted to the module The method of transmission depends on whether we configure it locally or remotely via GPRS For local configuration it is enough to secure a connection via RS 232 cable Detailed description of local configuration is to be found in the MTManager user manual For remote configuration it is vital that the computer running the configuration application has access to the APN where the configured module resides Detailed description of remote configuration is to be found in the MTM user manual 8 4 Verification of configuration Despite high reliability of both local and remote module configuration verify of it is important It is relevant if the module s behavior does not comply in accordance with the performed configuration For verification please read the configuration from the module and check parameters settings Reading of module configuration is described in details in MTM users manual 9 Programming 9 1 General information Modules from the MT 10x and MT 202 series and EX 101 expansion allow downloading user defined internal programs thereby expanding m
93. master mode 8 2 5 4 Modbus RTU Mirror mode Modbus RTU Mirror is an extension of Modbus RTU Slave mode The behavior of the module is identical to Modbus RTU Slave mode seen from the GPRS point of view Remote access to internal module resources and to Slave devices connected to PORT 2 is secured An additional feature is the opportunity to map resources of slave devices connected to PORT 2 into internal module registers Upon activation of this option the module cyclically reads mapped areas and refreshes internal registers 8 2 5 4 1 Number of data blocks Function Data type Range Default value Comments Defines number of registers read from peripheral Slave devices via PORT2 number 1 16 1 n a 41 42 8 2 5 4 2 Delay after error in communication with SLAVE Function Data type Range Default value Comments Defines in seconds delay before reestablishing reading of registers in peripheral Slave devices after transmission errors Time is counted independently for each defined area Slave device and reduces only the frequency of querying for areas with communication errors number 1 65535 s 15 s Increasing this value reduces influence of malfunctioning devices on communication with other devices but decreases statistic time to reestablish communication after removal of error cause 8 2 5 4 3 Data block 1 16 The table defining sequential data blocks read from attached to PORT2 p
94. mments number D 7 1 value O results in sending without confirming faultless reception 8 2 5 6 3 Transmission timeout Function Data type Range Default value Comments Defines in seconds waiting time for confirmation of data frame reception number 0 10 s 2 s This value along with declared Number of retries influences max time of single data packet transmission 8 2 5 6 4 Threshold hysteresis Function Data type Range Default value Comments Defines hysteresis for alarm thresholds values number 0 01 100 00 96 5 00 9 0 setting of value of hysteresis adequate to signal variations prevents untimely activations of alarm flags 8 2 5 6 5 Gas meter address Function Data type Range Default value Comments Defines address of gas meter connected to module s PORT1 number 0 65535 0 n a 8 2 5 6 6 Gas meter reading interval Function Data type Range Default value Comments Defines seconds interval of readings from peripheral device using GazModem protocol for update measurement data The connection is via PORT1 number 0 65535 s 180 s value O zero forces max possible frequency of updating It depends on speed of PORT2 along with size and number of defined mapped spaces 8 2 5 6 7 Number of transmission retries to gas meter Function Data type Range Default value Comments defines number of attempts to transmit data v
95. mode MT 202 Module operating in Modbus RTU Slave mode sends all received via GPRS queries to PORT2 except those that have Modbus IDs identical with module s own Modbus ID of internal resources in address field since they are handled locally replies received at PORT 2 from peripheral Slave devices along with replies from internal module resources are sent to the address from which query was issued or according to Routing Table content 8 2 5 3 1 Routing table size Function Data type Range Default value Comments Defines size of routing table number 1 255 1 the length of routing table should not be shorter than number of network nodes the module communicates with 8 2 5 3 2 Routing table I dx number IP number ID Comments index number of the list IP address of GPRS network node Modbus ID number 0 255 of slave device connected to GPRS network node with given IP address In basic configuration where replies are sent only to inquirer the table may remain empty The table needs to be filled out when replies have to be sent to other Masters Second column holds IP address of auxiliary master while third column Modbus ID of device which answer has to be sent additionally to auxiliary master If third column has value O zero replies from all connected to module slaves and module s internal resources will be sent to appointed IP address Sending replies to any number of Master devices is possible Multi
96. n logging into GPRS verify configured parameters and pay attention to LEDs indicating GSM signal level PORT ACTA TY En B Em E GSM signal level me or P SOMIEVEL qum Magi 1 d o MT 202 Gu LS TNITY STATUS ASTD MELA Ti BH EH Ri HERE EA LE El BAT POWER 12 24 V IN cC 5 Elp Ala bs dH Bus d a Too weak GSM signal may render log in impossible 7 Module s operating modes Following chapters describe particular operating modes of MT 202 module Full benefit of module s features depends on knowledge of different modes functionalities Therefore we encourage to study this section with great attention The module operates in following modes Transparent mode enables efficient transmission of data frames sent by unknown serial protocols Modbus RTU Maste Mode turns module into router of Modbus RTU packets e Modbus RTU Slave Mode enables local and remote access to module s internal and external resources and to internal resources of connected to PORT2 other Slave devices employing same transmission protocol Modem Mode enables in justified cases abandoning all functionality of MT 202 and using it as a plain but automatically logging into selected network GSM GPRS modem Modbus RTU Mirror Mode adds to Modbus RTU Slave mode a very sophisticated functionality enabling using the module as local Master of Modbus RTU protocol The module is m
97. n range 0 655355 In order to increase the range of stored values pairs of 16 bit registers were reserved to create 32 bit registers storing signed values for use in user defined internal program 4 3 2 Virtual registers MT 202 Telemetry module feature 16 bit Virtual Registers They reflect input VREG_BIx and output VREG BOX bit spaces Using virtual registers gives easy access to bit groups and copying data between bit spaces and registers Access to registers is possible through module s internal program using standard programming functions described in the chapter Programming 4 3 3 Clocks MT 202 Telemetry Module is equipped with 4 programmatic clocks divided in two groups with different functionalities 2 programmable Asynchronous clocks TMR1 TMR2 enable cyclical time measuring for up to 100 days 8 640 000 s and 2 programmable Synchronous clocks TMR3 TMR4 enable cyclical time measuring from 1 min to 24 h with synchronization with module z RTC clock Properly configured clock counts the time setting after each completed period for one program cycle a flag in binary inputs space respective TMR1 TMR2 TMR3 TMR4 These flags can be used in internal controlling program or for triggering transmission on event 4 3 4 MT2MT Buffer MT2MT buffer enables creation of system where MT 101 102 202 modules may exchange information Internal Registers with each other without any relaying instance Data transmission from one modul
98. n standard appliances since it may increase emitted noise For AC supply polarisation does not apply Example Connection diagram with battery backup BINARY INPUTS ANALOG INPUTS 12 24 VIN 13 14 6 Starting the module Starting MT 202 module requires few basic activities Recommended sequence 1 GSM antenna attachment 2 Configuration of basic operating parameters 3 Insertion of SIM card 4 Restart of the module 6 1 Connecting antenna Connecting external GSM antenna is an essential condition for proper module operation The type of antenna depends on the desired mounting type and power of GSM signal in antenna placement area As previously mentioned the antenna has to be attached at every power up because it is a necessary transmitter load and absence endangers the module s transmitter part Even with no SIM inserted the module exchanges information with available GSM networks in order to secure possibility of sending emergency calls 112 The antenna is connected to MT 202 module via SMA connector placed on the front panel of device Se 8 amp 8 O 68 8 mD og GSM antenna socket i d r 950001 25 o fF OOOO v4 BI PORT F5 2225 E B8 ACTMTY ana Ta EH EH Ex AA ak BH m Mr M QavN BRIDE The choice of antenna type depends on GSM signal propagation at place where the module is installed In most cases a standard small size antenna is sufficient
99. n state and power supply Variables state is reflected by flags that can be used as transmission triggers or in internal control programs FS1_ups 1 loss of potential at module s UPS pin FS1_gprs 1 informs upon log off from GPRS network Full list of system variables is placed in Memory map chapter in Appendices 4 4 LED diodes LED indicators placed on MT 202 front panel are convenient during module start up phase f k i Li k b ped deed ques que deed deem dos Cc PORT 2 activity GSM signal level MT 202 es bm cunt PORT RS EK j i i Module status 12524 V IN 8181 t 85 52 Detailed description of signaling patterns is placed in chapter LED signaling 4 5 SIM card MT 202 telemetry module is equipped with standard miniature SIM card holder for connecting card to GSM modem If use of GPRS transmission is intended the SIM card should have GPRS option and possibility of login to APN for assigning static IP addresses activated In absence of static IP address use of the module for GPRS transmission is impaired Proper placement of the SIM card is imperative for module s operation The module accepts only SIM cards operating in low potential technology 3 3V 4 6 Antenna Attachment of antenna is essential for proper operation of MT 202 telemetry module SMA socket is placed on module s front panel Th
100. nal in the place where the module s antenna is located is imperative 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 4 Module s design 4 1 Topography Optoisolated serial port RS232 422 486 for connection with external Disconnectable terminal blocks Serial port Rx Tx LED indicators Serial port RS232 for local programming and service GSM signal level LEDs DIN rail mounting GPRS log on status LEDs SMA connector for GSM antenna local antena attached Status LEDs GSM transmission Tx Rx status LEDs AC DC power supply input power loss input 4 2 Resources MT 202 module s resources Serial PORT 1 standard RS232 configuration and Modbus RTU Slave ID1 9600 hardware handshake CTS RTS Serial PORT 2 4 2 1 Serial ports MT 202 Telemetry Module is equipped with two serial ports PORT1 and PORT2 PORTI works only in RS232 mode and is dedicated to local configuration of parameters In order to perform local configuration connect this port to a PC class computer with running MTM program Operating parameters of this port are not modifiable and the length of the connecting cable should not exceed 3 m This port is not isolated PORT1 can also be used as Modbus RTU Slave port without need o
101. nction Write and disable read This function writes the program from the table into the module disabling the reading function The only way of modifying the program in the module is to write it again or import previously stored programs and modify it The icon on the toolbar performs same function Function Connect This function toggles between ON Line and OFF Line mode In first case MTprog exe application sends cyclically queries about module s interpreter state and on the base of received response displays status information in lower left corner of main window The menu item Help Transmission opens transmission window displaying sent commands and replies ON Line OFF Line differentiation is important during connection via modem in GPRS mode Leaving the application connected with the module for longer time results in higher costs of transmission since transfer may be roughly estimated to 2 kB per minute In ON Line mode the serial port connecting the computer with the module or GPRS modem is occupied by MTprog exe application and cannot be used by other applications In OFF Line mode serial port is released and may be used by any other application The icon e on the toolbar performs same function Function Start This function starts the command interpreter of the module To start the interpreter the module has to be in ON Line mode This function does not have a corresponding icon on the toolbar Function Delete This func
102. negates bits in the register Example decimal hexadecimal binary get X register 1234 04D2 0000 0100 1101 0010 store result register 64301 FB2D 1111 1011 0010 1101 Bit copy The function copies selected bits from a register get X to register store result Only bits from positions where there are values of 1 in register get Y Other bits remain intact Example decimal hexadecimal binary get X register 1039 040F 0000 0100 0000 1111 get Y register 4915 1333 0001 0011 0011 0011 store result 3925 OF55 0000 1111 0101 0101 register before operation store result 3143 0C47 0000 1100 0100 0111 register after operation This function is very handy when copying values between register space and bit addressed memory space Virtual registers from bit addressed memory spaces VREG BIx binary inputs and VREG BO binary outputs enable access from functions operating on registers to bit variables Virtual register mapping is sequential first register holds first 16 bits the next following 16 and so on NOP No operation performed Goto The function jumps to specified in parameter get X location program line CAUTI ON The number of instructions carried out in one program cycle is limited to 2000 Upon reaching limit the execution stops Next cycle starts from line number 0 Reaching the limit is signaled by ERR LED for diagnostic purposes Exit The function ends the program execu
103. nt login to GSM network state e lit the module not logged in e flashing with app 2 Hz frequency the module is logged in GPRS LED when lit signifies proper login to APN 87 LED indicators for GSM Status group reflect module s readiness to perform its duties Modules not logged in GSM GPRS network are not able to transmit data and performs cyclic resets and retries to log in 10 1 2 GSM activity POAT RS2324 22485 PORT 2 ACTA n B EH ki MT 202 TATUS ERR BHCHR 12724 M IN E LED indicators Tx and Rx of GSM activity signal respectively transmitting and receiving of data via GPRS Since SMS sending is a form of data transmission both data frame transmission and SMS transmission cause short flashes of Tx LED Short flashes of Rx LED indicate either SMS or data frame reception This is an easy way of detecting transmission activities 10 1 3 GSM signal level GSM signal level PORTI RSET areal cSu ACTATY STATUS Ta O RS ERR Be Ea El BAT POWER 12 24 V IN a 3 2i2 LED indicators of GSM Signal level display information received from GSM network on signal level in the place where the antenna is mounted It is presumed that for reliable operation at least one LED is lit Lower level signal does not guarantee reliable operation and means that antenna placement should be changed or the antenna should be replaced with one securing higher
104. ntains parameters necessary for configuring currently selected operating mode Resources group defines parameters for hardware and software resources related to reading and processing measurement data Rules group contains lists of transmission tasks to be carried out upon occurrence of activating criteria 8 2 1 Header Header of parameter structure describes MT 202 telemetry module It holds basic information unique to the module the configuration contained by module and configuration file version Information displayed is not user editable and solely used for verification and information purpose 23 24 8 2 1 1 Module name Function Data type Range Comments 8 2 1 2 Module type Function Data type Range Comments displays name assigned to module during configuration text n a read only parameter n a displays the type of configured telemetry module text n a read only parameter n a 8 2 1 3 Module serial number Function Data type Range Comments displays serial number configured telemetry module text n a Read only parameter this field displays module serial number assigned during manufacturing This number is static and unique identifier of the unit 8 2 1 4 IMEI number Function Data type Range E Comments displays GSM modem s IMEI number text n a read only parameter n a 8 2 1 5 Internal program version Function Data type E Range Commen
105. ntralized measuring system After setting configuration parameters and connecting of device to PORT 2 of the module the user obtains access to current data and possibility of defining alarm thresholds continuously stored in module memory In this setup MT 202 module may act as a concentrator for 16 devices Additionally in this mode connection of PORT1 to an auxiliary counter serving in Gaz Modem protocol is possible B i PU wj Access to data via GPRS MT 101 as local Master for measuring device on MT 101 as local Master for measuring device 13 2 2 2 4 Configuration for NMEA 0183 mode In NMEA 0183 mode MT 202 module monitors information delivered by weather stations like AIRMAR to PORT2 which is stored in register memory space Beyond localization parameters from integrated GPS Receiver AIRMAR station delivers parameters like temperature pressure humidity speed and direction of wind Full range of variables delivered by this device is to be found in chapter additional resources for NMEA 0183 mode mim mans E AIR MAR dimecres GPRS weather A station Pr 7 E RUE NMEA 0183 AIRMAR weather mode station 13 3 Syntax for reading and writing data in SMS mode Basic syntax value representation internal resource address space address value representation internal resource address space address value 103 Value representation the way of displaying or interpreting of the
106. o influence on events with status that are always sent to PORT2 8 2 6 5 3 Buffer address Function Defines start address of internal register space used for events reception Data type number Range 0 999 Default 64 value Comments received events registers laying outside defined space are not copied 8 2 6 5 4 Buffer size Function Defines the size of internal registers space used for events reception Data type number Range damso d2 Default 16 value Comments received events registers laying outside defined space are not copied 8 2 6 6 Constant parameters An option of defining Constant parameters under configuration was added for the user s convenience Parameters are loaded to module memory during initialization of the module More in chapter Internal Resources Parameters 8 2 6 6 1 Number of parameters Function Defines number of available constant parameters Data type number Range 0 128 Default 0 value Comments n a 8 2 6 6 2 Parameter 1 128 Consecutive parameters are defined as numbers ranging from 0 65535 8 2 7 Rules Rules group contains lists of transmission tasks performed by internal program when criteria defined in rules are met Tasks are divided into two groups e rules concerning transmission of SMS messages e rules concerning transmission of data In both cases the criteria are defined by using same resources and conditions of application
107. oaded internal programs has to be verified 9 14 Examples of programs This chapter aims at acquainting the user with common methods of defining algorithms Programs included in this chapter are built on simple premises and do not take the fact that they are all made for purely educational purposes into consideration The authors renounce any liability for faults resulting from using programs without prior analysis of circumstances 9 14 1 The timer This program illustrates the use of the typical timer 1 of 8 available in MTProg activated by S1 going high third program line The present value PV T1 that the timer counts up to is 5s clock frequency is 100Hz the line is executed only by first program cycle When preset value is reached T1 flag is raised and flag P1 is set to high The timer can be stopped before 5 seconds lapse by setting S1 low 83 84 MT program editor File Edit Module Help Deb ds E execute E store set if expression result error copy X value copy booleen X boolean OR Z Y copy booleen X Q odul dissconnected ala Comi 9 14 2 The counter MTProg has 8 counters of this type The example illustrates a counter counting 10 activations of S1 Upon reaching the count of PV C1 the flag C1 rises Line 2 copies the state of C1 to flag P1 Change of P1 may be used in the rule defining the data or SMS transmission or in further programming The counter is reset line 3 upon reaching the pre s
108. odule functionality with non standard algorithms of data processing and module control Programming is accomplished by using the MTProg application delivered free of charge to our customers giving them the possibility of programming in integrated environments Basic information regarding user programs functionality e The program is executed cyclically every 100ms e If the particular program cycle does not complete execution within 100ms the next cycle will not start immediately but at the next 100ms round The omission of the program cycle is signaled by flashing of OVR LED In such cases the user program should use RTC register values or clock blocks instead of measuring the time by incrementing a register value for each cycle e The user program can consist of max 1024 instructions e Max number of instructions carried out in one cycle is limited to 2000 Upon reaching this value the program is automatically disrupted and restarted at the next 100ms round e The program is capable of carrying approx 750 instructions in 100ms e The function of copying the buffers copies approx 1500 registers in 100ms e The function of fast copying of blocks copies approx 7000 registers in 100ms 9 2 Starting to work It is recommended to set up the working environment during the first run of the program For this purpose select menu item Help Settings or activate EM icon from the Toolbar and the following dialog window will appear Fill in th
109. ogram rows is possible after activating context menu by clicking with right mouse button lt E MT program editor File Edit Module Help ed JEANSEN E js 21 ale expr ession m error D fesi s copy A value a FSI 2s copy X value EISE E Always is X not equal to Y ETC Sec E P1 Pl fm Exit Always copy value RTI Sec REG EE 6 Ahvaye Ddcte bpy XRECH REGS Always TOpy X value ANI XREGH Q Module dissconrected ala Comi Functions of Context Menu apply for the selected table row Copied rows are pasted above the highlighted row 9 12 Downloading the program After completed editing of program data can be sent to the module The method of transmission depends on selected means of communication When programming locally it is necessary to establish RS232 cable connection For remote programming it is necessary that the computer on which MTProg is running has a network connection to the APN where the module resides Next step is selecting Connect and Write Program or Write and block reading The command description can be found in section Menu Module 9 13 Verifying the program Despite the high reliability of both local and remote programming it is recommended to verify the program written into the module Especially in cases where the module does not seem to be acting according to the controlling algorithm The device status LED which displays possible problems resulting from errors in processing of downl
110. on is carried out and confirmation sent to sender This behaviour enables creation of Multi master systems securing proper data transmission and access to all resources of the system e If Modbus ID of received frame does not match module s ID the frame is forwarded to PORT2 and may be received by the Master device Modbus MASTER Modbus MASTER y mode Modbus SLAWE mode ER E f J B 1 m C i Lala a EE Modbus SLAVE mode 7 3 Modbus RTU Slave mode In this mode the module acts as a network node serving both own resources and all connected to PORT2 devices operating in Modbus RTU Slave mode waiting for GPRS data frames Upon reception of the frame it investigates recipient s address matching declared Modbus ID with its own If the address matches the instruction is carried out and confirmation set to sender If it does not match the frame is forwarded to PORT2 The module waits for 0 5 sec for reply When reply comes or the time elapses the module whether new data frame arrived via GPRS Sending frames not addressed to module s ID to PORT2 is unconditional as module does not have the list of connected to PORT2 Slave devices Replies are sent to sender as standard Sending of replies to additional Master units can be defined in routing table The IP address of additional Master is stated in the second column of the table and the device Modbus ID from which replies have to be sent to additional master are st
111. onger than the value defined in this parameter the module sends a control frame in order to check whether transmission is still possible During network check control data frame is sent to module s own IP address respecting timeout and number of retries parameters The length of the frame is 45B length of the module s name The frame is sent to module s own IP address or to the address defined in parameter GPRS testing IP address if different than 0 0 0 0 In Proxy mode the frame is sent to Proxy server IP address No reply to sent frame after exercising defined timeout and number of retries is considered as transmission failure and sets triggering input FS1 gprs O gt 1 that can be used for Rules processing SMS sending As a consequence after elapsing of time defined in Wait time after disconnection the module performs RESET and commences GSM GPRS login sequence Reduction of this parameter increases the frequency of testing GPRS network state This shortens possible disruptions of control due to network failures but increases unproductive data transmission 8 2 3 11 GPRS testing IP address Function Data type Range Default value Comments sets IP address where data frames testing GPRS network state are sent IP address field 0 0 0 0 255 255 255 255 0 0 0 0 This parameter sets recipient s address for data frames testing GPRS transmission channel sent after defined Idle time elapses Leaving recipient address at
112. onnected to the module the control in the left side of the status bar is lit in red or green depending on the state of the program interpreter The text displayed close to the control reflects the actual state and the function Read program is active 13 13 O Program is running O Program is stopped If the connection is not established or broken the control is gray and reading from the module is impossible Module dissconnected In case of serial cable connection the queries about sequential program lines are sent Lines are continuously read and displayed in the table In GPRS mode there is a couple of seconds delay between the query and response arrival In order to speed the function up queries are sent without waiting for response Upon arrival of response the value is displayed in the table The icon on the toolbar performs same function Function Writing to module This function writes the program from the table to the module If the table is empty the effect of using this function will be erasing a program existing in the module All introductory remarks concerning the connection and password protection of Read function are valid in this case as well The process of writing program into module s interpreter is similar The only difference appears in GPRS mode After verification of privileges all lines of program are sent and the application waits for confirmations The icon AN on the toolbar performs same function Fu
113. onverted value had a decimal fraction the decimal separator is omitted and function writes the number of digits after comma to AUX_RET2 register This allows handling of scaled floating point values Recognized delimiters are and Furthermore the function writes the length of converted value The converted value may be a negative number provided that result storing register is a 32 bit register Examples get X ae J AUX RET1 AUX RET2 i 000000012 fio rz Jr fw fe e MCI 7 8 Convert number to text This function converts a binary value from register get X to text The result is written int O buffer starting with store result register Separate text characters are stored in low order bytes of 16 bit registers Get Y defines converted number s format get Y unit number defines the number of digits after comma in resultant format tens number defines number of digits before comma O automatically 100 sets delimiter to instead of 200 forces adding a sign before positive value Furthermore the function writes the resultant number s length in characters to AUX RET1 register If the converted number is larger then allowed range the function does not perform the conversion and raises an error flag Examples uses pos quse p xmas s eme i o ms foo 7 us m ems s Logical shift left Function shifts left bits in argument X Number
114. order to configure MT 202 module to work in Proxy mode do following e In MTManager select Data frame format Proxy e Set Proxy server IP has to be static public IP address of central receiving computer e In Authorized IP numbers type the serial number 255 255 255 255 The structure of configuration file for MT DataProvider for Proxy mode lt xml version 1 0 gt lt opc gt lt configure net_mode dynamic udp_port 7110 timestamp system csv_log true csv_path C debug true gt lt network name mt202 udp port ip _ receiver ip header_receiver 011 004 006 002 ip header_sender 255 255 255 255 timeout 10 retries 4 add_crc true csv_msg_log true debug false enable true gt lt modbus name id13 id 13 type registers address 0 size 5 interval 25 debug false enable true gt modbus name id13 id 13 type binary inputs address 0 size 8 interval 25 debug false enable true gt lt network gt lt Opc gt comment lt udp_port port assigned when remote module reports gt lt ip_receiver IP assigned when remote module reports gt lt ip _header_receiver 011 004 006 002 serial number of remote module gt lt ip header_sender 255 255 255 255 serial number of computer with public static IP gt 105 13 6 Data formats MT 202 module gives the user a choice of data frame format e standard standard operating mode The un
115. otential on UPS input falls below 13 8V Since this input is used to signal main supply failure the system flag FS1 ups is raised simultaneously The FS1 ups flag may be used in rules processing e Power LED is lit all the time the module is supplied with power Indicators of Module status group are the main sources of visual information about correct operation of the module 10 2 Unblocking of SI M card Three failed attempts of entering PIN code locks the SIM card and requires entering the PUK code In order to prevent this the module controls the number of failed attempts written into SIM card by allowing only two attempts making a third attempt impossible even if the third attempt was correct A double unsuccessful attempt is perceived as a fault requiring user intervention An attempt to unlock the module may be performed only when the right PIN code is known Necessary procedure e turn the power supply off e remove SIM card from the module e insert SIM to ordinary mobile phone accepting cards from the operator that issued actual SIM 90 e start the phone and enter proper PIN code e if not accomplished before start the module insert appropriate PIN into configuration power the module off e remove the SIM from the phone and place it in the module e start the module The described procedure reset SIM card s fault counter and allow using the card in MT 202 module In older versions of GSM modems without implement
116. positions to shifts is defined by parameter Y The bits that are shifted out are discarded and zeros are shifted in Get Y should be gt 0 otherwise operation will not be completed and error bit will be set Error bit will be set also when bit set high 1 will be shifted out Examples oioooo o oreG ox0000000 0x00010000 9 REG 0x0000 Rh O O P PrP PpP O P OJ RPRI O 79 Logical shift right Function shifts right bits in argument X Number positions to shifts is defined by parameter Y The bits that are shifted out are discarded and zeros are shifted in Get Y should be gt 0 otherwise operation will not be completed and error bit will be set Error bit will be set also when bit set high 1 will be shifted out Examples Em rome o a O oan h joe oo oxoisa000 is foo b eins is emus i ox iisa000 15 oReG 0xo0010223 o oxcooooo00 n foor o oxo fez foo p oxo0010000 o DReG 0x00010000 o oxo00s0000 p Rec ox0000 h 9 9 Description of internal function blocks 9 9 1 Timers T1 T8 EN Tx Tx RST Tx Binary outputs REG Tx 16bit Binary inputs space actual value space PV_Tx 16bit threshold value 80 XK 101 1 1 KI XK2XKBKAMS 2846237 va l 1l1 gt x 10ms i o QJ gt Y gt ds 0 gt Q ES U E U Q Q hm 20 T 52 q Qu u Q Em Ke o o u 2 Q u O Q e
117. received at PORT2 are 8 2 5 5 3 Transmission timeout Function Defines in seconds waiting time for confirmation of data frame reception Data type number Range 0 10 s Default 2 s value Comments This value along with declared Number of retries influences max time of single data packet transmission 8 2 5 5 4 Threshold hysteresis Function Defines hysteresis for alarm thresholds values Data type number Range 0 01 100 00 96 Default 2 00 90 value Comments setting of value of hysteresis adequate to signal variations prevents untimely activations of alarm flags 8 2 5 5 5 Alarm station IP address Function defines alarm recipient s IP address Data type selection list Range friendly names assigned to IP addresses of devices declared in Authorized numbers list Default IP1 first number on authorized numbers list value Comments Since recipient s IP address is selected from selection list it is practical to define unique unambiguous names facilitating identification on the list 8 2 5 5 6 Number of devices Function Defines number of declared register spaces devices read on PORT2 from peripheral devices operating on GazModem protocol Data type number Range 1 16 Default mos value Comments n a 8 2 5 5 7 MC 1 16 The table defining consecutive data blocks read from peripheral devices attached to PORT2 operating in GazModem protocol The tabl
118. riting singular changes and functions 15 and 16 for block writing e Upon power up or start of communication with peripheral equipment the module synchronizes Mirrored space with with Slave s contents updating its registers with Slave contents This assures that writing values to Mirrored space during interrupted communication with the slave will not overwrite slave s values upon reestablishment of communication Bits informing about state of communication with slaves SL1 ok SL16 ok corresponding to defined during configuration areas reside in transmission in binary inputs space High corresponding bit signals good communication with particular slave e In Modbus RTU Mirror mode Slaves mirrored in module can not transmit events When servicing events from slaves is required standard Modbus RTU Slave mode is recommended 7 6 GazModem mode GazModem mode is an extension of Modbus RTU Slave mode with functionality similar to that available in Modbus Mirror mode with mapping of register space of peripheral Slave into MT 202 internal registers This mode was implemented due to requirement of reading from devices operating in Gaz Modem and Gaz Modem2 protocols created by Plum Sp z o o for use in different volumetric gas counters and other gas systems The user employing telemetry modules is capable of reading current data binary inputs and alarm signals from gas devices 7 7 M Bus LEC mode M Bus LEC mode is an extension of Modbus RTU S
119. ror display time Function Defines in seconds error display time on Status GSM and SGN LEVEL and on ERR LED groups Data type number Range 1 60 s Default value 30 s Comments setting of too small value makes error code identification difficult while too long value extends the restart time after error code display 8 2 2 11 Use GPRS Function defines means of communication for the module Data type selection list Range Yes The Module works in GPRS mode Upon power up module tries to log in to selected APN This mode requires SIM cards with enabled GPRS access No The Module works in GSM mode The only way of remote communication is SMS messaging In this mode pre paid type SIM cards with no GPRS work without problems Default value Yes Comments n a 8 2 2 12 Use SMS Function defines working sub mode of module operating in GPRS Data type selection list Range Yes Module operating in GPRS mode has SMS services active As a result the GPRS session is suspended every 12 min and the module checks for incoming text messages Event triggered SMS transmission is instantaneous No Module operates in GPRS mode and SMS services are Inactive Default value Yes Comments This parameter is available only in GPRS mode Setting this parameter to No may result in filling the SIM card with received messages that are not processed by internal logic 8 2 2 13 Monthly SMS limit Function Defines
120. s No necessity for retransmission Full access protection on operator and hardware level Cost of transmission system maintenance rests with network operator Easy rescaling and reconfiguration of the system e Great availability of various receiving terminals e Easy setup of temporary systems e Only transmitted data volume is charged For proper operation of terminals GSM GPRS network nodes one needs a SIM card with GPRS service enabled permission to log in to existing APN and a static IP assignment A static 1P address is the base for addressing terminals in packet transmission GPRS networks Note that when using GPRS for real time monitoring packet transmission networks add a delay dependent of the route the addressed packet has to go between the sender and recipient terminal Usually this delay does not exceed a few seconds and is insignificant from a monitoring perspective In turn the possibility of creating networks independent of terrain topography and territorial size of the system is gained 13 1 4 EDGE EDGE Enhanced Data rates for GSM Evolution is a technology for data transmission employed in GSM networks This is an extension of GPRS technology EDGE is also called for EGPRS Enhanced GPRS with enhanced radio interface allowing triple throughput in most of current systems up to 236 8 kbit s and dynamic adjustment of packet transmission speed depending on transmission conditions 13 1 5 UMTS Universal Mobile Te
121. s is the case for other modules in the MT series is carried out using the MTM MT Manager program portal delivered free of charge to users of our telemetry solutions The portal is a specialized environment providing full control of the entire telemetry system regardless of the system s size The possibility of dividing hardware resources into Projects and Folders facilitates efficient management of very complex telemetry systems After adding a new module to the environment and selecting it all module parameters are available for editing Detailed description of functions and their applications are to be found in MTM user manual NOTI CE Availability of different functions and parameters depends on module s firmware version and the settings of parameters they may be dependent on 8 2 Parameter groups For clarity and ease of use the operating parameters of MT 202 module are divided into logically or functionally connected groups in the following order Header group contains unmodifiable parameters describing the module its firmware and configuration General group contains basic parameters defining module s operating mode GPRS group contains necessary parameters to log in to GPRS network and defines parameters vital for transmission reliability Authorized numbers group contains lists of phone numbers and IP addresses of other terminals authorized for communication with configured module Operating mode group co
122. s of any slave connected to PORT2 The addition feature provides the possibility of resource mapping of devices connected to PORT2 into internal module Registers With this option active the module cyclically reads mapped areas of external devices and refreshes internal Registers Writing to external devices is possible as well In Mirror mode for every internal program cycle 100 ms the module compares state of mapped areas and upon detection of change in any Register a frame writing the change to external device is generated Values in internal registers may be changed remotely by master system or locally by internal user defined program Highlights of Modbus RTU Mirror mode e The ability to remotely read resources of different areas and devices by one Modbus frame reading internal Registers of the module thus increasing efficiency of GPRS transmission e The ability to generate alarms on state change in remote devices Local data reading in conjunction with processing of data by internal program and function of generating events significantly increases potential and dynamics of the whole system simultaneously reducing costs of transmission compared to systems based on cyclic querying from master e The ability of local control of the object including extension devices Bear in mind that e In communication with Slave devices the module employs standard MODBUS RTU frames with functions 1 2 3 4 for reading functions 5 6 do for w
123. signal level 88 Reading of signal level happens in the moment of login to network and every 12 minutes if the module operates in SMS mode Selection of GPRS mode only means that signal level is investigated only during login procedure typically at power up That does not pose any danger since no disturbances in module s operation mean that the signal strength is sufficient 10 1 4 PORT2 activity PORT 2 activity Hn GPS EN ES EM NU PN SOH LEVEL FA 75 LUND f 1 O Jl MT 202 gt b FORT RS EEN GM ALETA ETA TUS Ta EH E Es HERE BHCHR ATT HEA EG El BAT POR 12724 V IN S P EEA Hi TM ui LED indicators Tx and Rx of PORT 2 Activity display respectively sending and receiving data via PORT2 The activity may be observed when The Module operates in Modbus RTU Master mode and communicates with attached Master device passing GPRS received data The Module operates in Modbus RTU Slave mode and has sent received query to PORT 2 for Modbus ID different than its own The Module operates in Modbus RTU Mirror and sends queries for attached SLAVES to PORT 2 The Module operates in Transparent mode and reroutes data received via GPRS to PORT 2 The Module operates in GazModem or M Bus LEC mode and communicates with attached devices The Module operates in NMEAO183 mode and receives data from attached device Activity is observed only on Rx LED The Module operates in Mod
124. sters selection list Degrees minutes DDMM mmmmm Position registered in format Degrees DD ddddddd Position registered in format Degrees minutes SSMM mmmmm n a 8 2 5 6 10 3 Identifier 1 16 Function Data type Range Default value Comments Defines additional number of heat meter whose internal parameters shall be read number 0 999999999 0 Parameter enables addition of auxiliary identifier for heat meter in telemetry system The parameter is in no way connected to real address of meter The value of parameter is stored in MT module and can be read from its memory map 8 2 5 7 NMEA 0183 mode Module MT 202 operating in NMEA 0183 mode receives data from peripheral devices using communication protocol compliant with NMEA 0183 at PORT2 The module recognizes data received from AIRMAR weather station and places it in Internal registers Read more about NMEA 0183 mode 8 2 5 7 1 Data validity time Function Data type Range Default value Comments 8 2 5 8 FlexSerial Defines in seconds validity time of parameters read from NMEA frames received at PORT2 When exceeded due to incomplete reception relevant bits signal that values in registers are out of date In other words older than the time declared in configuration number 1 300 2 n a In FlexSerial mode MT 202 module can service units connected to PORT2 that employ non standard protocols 8 2 5 8 1 Max length of d
125. t Module Help Deb sso mx E J l ATTE expression result copy value copy X value is not equal to Y n Exit copy X value F Exit Buffer copy copy 2 value gt Module dissconnected ala Comi 62 9 3 1 Menu items 9 3 1 1 File EA MT program editor File Edit Module Help new e Oo VS EN E Import LJ E t execute get get set if ESL expression X Y error File copy 2 value REGI copy X value RTC sec REGA lil Ext cues is A not equal to Y RTC Sec REG2 P1 Cor xor gt R T Ext l ER ES c3 Always copy X value ETC Sec PEG gt lt Ls jr T Exit i eS r B Abways Buffer copy XREGI XREG2 Always copy X value AHI REGI gt Module dissconmected ala Coml Function New Erases the program visible in the table and the table is ready for editing of a new program The icon D on the toolbar performs same function Function I mport Writes a program previously stored on the hard disc into the table Programs have a default extension MTp The icon I on the toolbar performs same function Function Export Stores the program from the table on the hard disc with default extension MTp The icon li on the toolbar performs same function Function File Stores the program from the table on the hard disc in clear text creating good documentation Function Exit Closes the application after confirmation The keyboard shortcut for this function is Ctrl X The
126. t X register XREG10 get Y register REG1 store result register DREG2 If REG1 4 to function copies 4 values DREG5 XREG13 DREG4 XREG12 DREG3 XREG11 DREG2 XREG10 CAUTI ON The function starts copying from the last buffer register and ends at the first register It creates an easy way to create a logger keeping the history of selected resources in internal registers In section Examples of programs a Logger program illustrates using this function Copy block quickly The function copies data among blocks in internal registers space Following parameters are used register get X source block address 75 76 register get Y block size register store result destination block address Destination and source block may overlap When block size exceeds the size of internal register space the data is not copied and the function rises an error flag Example REG1 0x60 REG2 0x100 REG3 0x600 get X register REG 1 get Y register REG2 store result register REG3 The function copies data from source block 0x060 0x15F XREG1 XREG256 to destination block 0x600 0x6FF P2SND B1 P2SND B256 Read value from table This function takes the numerical value from table starting with get X register The value from table cell defined by index register get Y is copied to store result register Table cells are indexed from O store result get X get Y The function rises
127. ted in previous cycle PRG CLINE word OxOOBD Elapsed program execution time in previous cycle PRG CTIME word OxOOBE Help register for function in user program AUX RET1 word OxOOBF Help register for function in user program AUX RET2 word 0x00CO PAR 1 word 113 OxOOFF Parameter 64 PAR 64 word 0x500 Parameter 65 PAR 64 word 0x53F Parameter 128 PAR 128 word 13 10 4 Internal Registers space Internal registers space read command 03H write 06H or 10H Not zeroed at reset x000 Reserved E E A E 0x001F Reserved 0x0029 16 bit Timer T2 threshold value PV T2 16 bit value 0x0043 16 bit Program register unsigned value REG4 16 bit value 114 0x0044 16 bit Program register unsigned value 16 bit value 0x0048 16 bit Program register unsigned value REG9 16 bit value 0x0049 16 bit Program register unsigned value REG10 16 bit value ce pen 0x0051 32 bit Program register signed value Low 16 bits 0x003 0005 32 bit Program register signed value Low 16 bits 0x0053 32 bit Program register signed value DREG2 Low 16 bits X005 NE rc ECT L6 bits lOx0055 32 bit Program register signed value DREG3 Low 16 bits 16 bits 0x0056 High 16 bits 0x0057 32 bit Program register signed value DREG4 Low 16 bits D ATEO Ox0059 32 bit Program register signed value DREG5 RETO 16 bits 0x005A High 16 bits 16 bits 0x005B
128. ters diagnostic flags and internal registers used for SMS email and data sending setting internal markers and registers Ability to extend network with local extension modules e Spontaneous transmission of data on occurrence of pre defined alert states enabling application on objects requiring continuous monitoring GPRS packets routing also in Transparent operating mode e Access to internal resources by standard MODBUS RTU protocol Local Master or Slave functionality for devices connected to serial communication port MODBUS RTU GazModem NMEA 0183 protocols e External devices resources mapping Implementing of nonstandard serial protocols by user program in FlexSerial operating mode e MT2MT buffer direct data transmission between MT modules A typical application field for MT 202 are all installations requiring constant remote monitoring We encourage getting acquainted with the modules configuration and modes of operation along with examples of application in different configurations described in appendices 3 GSM requirements For proper operation the module needs a SIM card supplied by a GSM operator providing GPRS and or SMS services The GPRS enabled SIM card has to be registered in the APN 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 module to server communication within the APN structure A good and strong GSM sig
129. than Y get X get Y store result register register bit stx gev iid Is X lower than Y get X get Y store result register register bit get X get Y 1 Is X greater or equal Y get X get Y store result register register LIT I X gt get Y Is X lower or equal Y get X get Y store result register register bit get X get Y get X get Y I s X equal Y get X get Y store result register register bit getXequlgetY 1 Z I s X not equal Y get X get Y store result register register bit getXnotequlgetY 1 Copy X value store result register get X register Copy Boolean X store result bit 2 get X bit NOTI CE When copying register DREG to a 16 bit register the function returns an error since the copied value is not in the range of 0 65535 Divide X by Y store result register get X register get Y register NOTICE The function operates on integers The result is truncated to integer Crossing the valid range sets an error flag Examples 10 3 15 4 3 2 3 Multiply X by Y store result register get X register get Y register Crossing the valid range sets an error flag Subtract Y from X store result register get X register get Y register Crossing the valid range sets an error flag Add X to Y store result register get X register get Y register Crossing the val
130. tion deletes data from the module s data memory space Areas deleting Internal registers Binary outputs 3 Flags M Flags The selected for deletion areas should be checked in Pressing the OK button resets selected areas 67 9 3 1 4 Help 7 MT program editor File Edit Modde Help Bek g SN Settings get get store ag X Y result E ere aes 0 1 copy X value ETC Sec REGA is amp not equal to Y ETC Sec REGA P1 ffi Exit copy X value ETC Sec REGA ffi Exit Buffer copy ZREGI AREGZ copy X value REGI pas POE PE DOE AULE ee Q Module disscanmected ala comi in entia Function Transmission toggles transmission review window Local port Comi 0o SE ak 57 89 Ah OO 05 le 03 GF EF 67 89 Ad OO 05 le x The title bar displays transmission type and recipient address while status bar displays connection status The tool bar displays the icon closing the window The main window s tool bar icon toggles transmission window display Function Settings opens environment configuration window described in Starting to work section The icon NI on the toolbar performs same function Function About opens window displaying version number and Manufacturer s address data 68 9 3 1 5 Toolbar The main window s toolbar holds icons corresponding to following menu functions menu menu menu menu menu menu menu menu menu 0 ZA ia i 79 inel 0 9
131. tion for a particular cycle Bit test This function verifies whether at least one bit in get X register is set according to mask defined by get Y register If confirmed the function returns value 1 in store result column else O Example hexadecimal binary get X register 04D2 0000 0100 1101 0010 value get Y register 1820 0001 1000 0010 0000 mask store result bit 0 0 get X register 04F2 0000 0100 1111 0010 value 1820 1 get Y register store result bit 0001 1000 0010 0000 mask 1 Mask test This function verifies whether all bits in get X register defined in mask get Y are set If confirmed the function returns value 1 in store result column else O Example Hexadecimal binary get X register 04D2 0000 0100 1101 0010 value get Y register 1820 0001 1000 1110 0010 mask store result bit 0 0 get X register 04F2 0001 1100 1111 0010 value 1820 1 get Y register store result bit 0001 1000 1110 0010 mask 1 Buffer copy This function copies value of source buffer starting at register get X to destination buffer defined in store result The length of copied buffer depends on the value in get Y register The function stops when buffer length value is negative writing attempted beyond the buffer space copied value exceeds allowed value of destination buffer For instance an attempt to copy 1 from 32 bit register to 16 bit register Example ge
132. ts displays the identification of actual version of internal telemetry module program firmware text n a read only parameter the value of this field changes automatically after download of firmware 8 2 1 6 Configuration file version Function Data type a Range Comments 5 displays version identification of configuration file used for actual configuration text n a Read only parameter value depends on module s firmware version Auxiliary extension character defines the sub version 8 2 1 7 Configuration identifier Function Data type Range Comments displays identification of current configuration hexadecimal n a read only parameter the value of this parameter increases automatically by 1 after each successfully stored configuration 8 2 1 8 Last configuration date Function Data type Range Comments displays time and date of last successful configuration change text n a read only parameter the value changes automatically with successful configuration change Useful in tracing unauthorized configuration changes 8 2 1 9 Last read of device time Function Data type Range Comments 8 2 2 General displays internal module time recorded during last configuration reading or during last time setting text compliant with Date and Time format this field is useful in verifying last access time and checking internal module clock settings RTC General group encompasses parameters vita
133. ts with current values of gas counters Start Address Description MODBUS 0x0B8 10185 MCiVilL LL alarm bit for VAR1 counter 1 OxOB9 185 10186 MC1V1L L alarm bit for VAR1 counter 1 OxOBA 186 10187 MC1V1H H alarm bit for VAR1 counter 1 OxOBC 188 10189 MC1V2LL LL alarm bit for VAR2 counter 1 0x0D7 10216 MC1V8HH HH alarm bit for VAR8 counter 1 0x0D8 10217 MC2V1ll LL alarm bit for VAR1 counter 2 LL alarm bit for VARI counter 2 10696 HH alarm bit for VAR8 counter 16 Bits informing on state of communication with gas meter Description 13 10 6 Auxiliary resources for M Bus mode I nput registers space Start Address Description MODBUS 30135 data read from the gas counter 256 data read from counter LEC 1 118 30321 data read from counter LEC 2 30385 data read from counter LEC 3 30449 data read from counter LEC 4 30513 data read from counter LEC 5 240 576 30577 data read from counter LEC 6 280 640 30641 data read from counter LEC 7 data read from counter LEC 11 3C0 960 30961 datareadfromcounterLEC12 1216 Structure of data read from gas counter Offset Type Rx High Low Description 0 minutes 0 59 tb Volume at the beginning of hour or after establishing the communication for calculation of hourly flow minutes 0 59 th 32 word 16 bit Vh Flow at beginning of hour m Vn10 Vni 1e4 VnO Vh10 Vhi 1e4 VhO Vh Vn10 Vh10
134. tting this parameter to O results in sending data without waiting for confirmation of error free reception 3 In normal conditions it is not recommended to set this value to higher than 3 This effectively secures against loss of transmitted data without hampering processing following rules Note that consecutive data will be sent after successful conclusion of current transmission 8 2 3 9 Transmission timeout Function Data type Range Default value Comments Defines waiting time in seconds for confirmation of reception of sent data frame number 0 655 s 12 s This value in connection with declared Number of GPRS transmission retries defines max time of one data packet transmission described by formula MaxT number of GPRS transmission retries 1 transmission Timeout For default values MaxT 3 1 12 48s Please notice that calculated value does not define the time of delivery but the time to elapse before the module considers that transmission to appointed IP address is not possible the data will be lost due to unavailability of recipient and moves to sending next data frame awaiting transmission 8 2 3 10 Idle time Function Data type Range Default value Comments Defines the interval in seconds for sending data frame ping controlling the ability to communicate with the network in case of transmission inactivity number 0 86400 s 24h 240 s in case of inactivity l
135. twork Modbus RTU Mirror mode enables remote querying of module resources along with attached units working in Modbus RTU protocol and event triggered data sending as well as creating a mirror copy of connected units in module s internal registers Transparent PLUS identical with Transparent extended with ability of querying internal resources and event processing GazModem mode enables cooperation with units connected to PORT2 using GazModem protocol MT 202 acts as a local Master enabling local reading of connected units and alarm processing This mode minimizes transmission required to supervise units The mode is not supported by standard firmware and requires firmware marked as MT 202 x xxgm bin M Bus LEC this mode is dedicated to cooperation with units employing M Bus protocol As in the GazModem mode the MT module acts as local master for units connected to PORT2 enabling readings from central heating nodes The mode is not supported by standard firmware and requires firmware marked as MT 101 x xxgm bin NMEA 0831 this mode is dedicated to NMEA 0831 protocol Received data is stored in module s internal registers compliant to established standards FlexSerial this mode enables integration of any kind of PLC controllers I O units measurement equipment operator panels equipped with serial communication port RS 232 422 485 on the base of programmed servicing of non standard protocols Transparent choosing the appropriat
136. twork to the value set in Set IP field by user This mode is applicable only when operator policy allows forcing IP address by the user DHCP Manual mode is allowed only in few GSM networks enables manual entering of IP when parameter IP assignment is set to Manual IP number field 0 0 0 0 255 255 255 255 0 0 0 0 forcing of IP address mode assigned by operator is serviced only in few GSM networks 31 32 8 2 3 7 Virtual IP address Function Data type Range Default value Comments defines IP address that will be placed in internal data header of frames sent by the module IP number field 0 0 0 0 255 255 255 255 0 0 0 0 Parameter mandatory in case of operating MT 202 module in GSM networks where operator uses dynamic address translation of internal addresses to static external addresses visible to external users The parameter enables placing the external IP address under which the internal network node is visible in the header for sent data frame As a result external recipients will experience match of sender s IP with IP address written in data header It is necessary due to double authentication of received data employed by MT Data Provider MT DP 8 2 3 8 Number of GPRS transmission retries Function Data type Range Default value Comments defines number of retries of GPRS transmission in case of not receiving confirmation in time defined by Transmission timeout parameter number 0 255 Se
137. ule time modification for block writing only command 0x10 0x2700 RTC seconds 00 59 16 bit value 0x2701 RTC minutes 00 59 1 16bitvale 0x2702 RTC hous 00 23 16bitvalue 0x2703 RTC day of week 1 Saturday 7 Sunday 16 bit value 0x2704 RTC day of month 1 31 16bitvalue 0x2705 RTC month 1 12 1l6bitvalue 0x2706 RTC year 2000 2099 16bitvalue RTC negated bits of RTC registers 1 0x2707 protection against accidental RTC settings 16 bit value modification 13 10 5 Auxiliary resources for GazModem mode I nput registers space Registers holding signals read from gas counters icc dab High byte status Low signals We 30065 MC16SYG1 High byte status Low signals 30066 MC1SYG2 High byte status Low signals 0x50 80 30081 MC16SYG2 High byte status Low signals 30082 MC1SYG3 High byte status Low signals 0x60 96 30097 MC16SYG3 High byte status Low signals 30098 High byte status Low signals 30113 MC16SYG4 High byte status Low signals 116 Registers holding current data read from gas counters up to 8 variables from one counter Start Address Description Hex MODBUS 0x100 256 30257 MCiVAR1 H 0x101 30258 MCIVARi L 32 bit H L floating point 0x102 30259 MC1VAR2_H 0x103 259 30260 McivaR2 L 2 bit H L floating point 0x104
138. us 41051 Format FIX 1 Unit degrees WIMWV relative 125 0x41C 1052 Address Relative wind speed Modbus 41053 FIX 1 Unit kilometers hour km h WIMWV relative 0x41E 1054 Address Theoretical wind direction Modbus 41055 FIX 1 Unit degrees WIMWV theoretical 0x420 1056 Address Theoretical wind speed Modbus 41057 FIX 1 Unit kilometers hour km h WIMWV theoretical 0x422 1058 Address Relative wind chill temperature Modbus 41059 FIX 1 Unit degrees TIT 0x424 1060 Address Theoretical wind chill temperature Modbus 41061 FIX 1 Unit degrees TIT 126
139. value D H B S or none decimally hexadecimally for registers always in four digits e g 002F binary for registers always in 16 digits e g 0000000000010111 string read only Presents ASCII text stored in registers NULL 0x0000 character should be used as end of string marker 9o address space address access to internal variables I bits in binary inputs space Q bits in binary outputs space AI Input Registers 16 bit R Internal Registers 16 bit M internal flags Not deleted and zeroed during module reset S internal flags deleted and zeroed during module reset Examples of syntax that may along with simple text be a part of the SMS R15 value of Register 15 decimally HYAI4 value of Input Register 4 M123 value of M123 flag ZH9oR80ZH9eR81 value of 32 bit Register DREG1 memory map 16 bit R70 255 setting Register R70 to value of 255 FH R70 FF setting Register R7O to value 255 R1000 2 faulty resource address replay Err R70 100000 faulty value reply R7Z7O Err S R64 text coded in ASCII beginning in internal register which address is 64 decimally and ending in first following register with NULL sign 0x0000 Notice Valid syntax will be replaced in received SMS with current value of particular variable or else unchanged text will be returned e One SMS may read several variables If length of received SMS text length of variables replacing mnemonics exceeds 160 characters
140. wca 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 INVENTIA Sp z o o ul Kulczy skiego 14 02 777 Warszawa Tel 48 22 545 32 00 inventia inventia pl www inventia pl Version 1 46 Warsaw June 2010 MTC Compatibility 1 46 INDEX INTRODUCTION essem T 6 2 MODULE S DESTINATION cio 6 3 GSM REQUIREMENTS cord OA ade 7 As MODULES DESIGN nes 7 AE TOPOGRAP A da Lie
141. xecution of the function Double clicking with left mouse button causes a list of available functions to drop down However the function can also be selected from standard functions grouped around the numerical keypad from the list placed above the numerical keypad or by entering the name of the function manually In case of manual entering a warning message will appear if the name entered manually is not identical to one of the available functions For the columns Take X or Take Y double clicking with the left mouse button unfolds a box with a list of variables which may be used as arguments of the function selected earlier These will be either arithmetic or logical variables The same discrimination will be visible on the numerical keypad in the right side of the window In case of logical variables only the 0 and 1 buttons will be active Of course the names of variables or values can be entered from the computer keyboard If the function can only accept one argument it will be impossible to select and enter a second one The Store result column is filled out in a similar way A list of modifiable variables drops down after double clicking on the column with left mouse button Logical and analog inputs will not be displayed The type of variables is correlated with the previously selected function The optional selection in the If error column is limited to logical variables whose modification is possible Manipulation of pr

Download Pdf Manuals

image

Related Search

MT 202 user manual manual mt 07 2024 manual mt 03 2024 mt systems mt 202 mt 202 sample message montana driver manual 2024 manual mt 03 2022 mt new model 2024 mt form 2 instructions 2023 mt-1 technical guidance 2024 mt pte instructions 2023 state operation manual 2023 manual mt 03 2020 mt form 2 instructions 2024 mt pte instructions 2024 store manual 2023 pdf mt 09 2024 review mt 09 2024 accessories mt 09 2023 accessori mt code annotated 2023 mt202 cover format details umt mt2 latest setup mt 15 new model 2023 mt 09 2024 scheda tecnica what is an mt202

Related Contents

HA028225 Iss 3 - Temperature Control and Measurement from  全32ページ  Queijarias  EMマリアブルサクション  USER'S MANUAL - Smart Access Ltd  Imparare dagli errori - Politecnico di Milano  ELECTIONS MUNICIPALES  TROPHY  WRブルー・パール 車名・型式 車種 寸法・重量・定員 全長×全幅  

Copyright © All rights reserved.
Failed to retrieve file