0% found this document useful (0 votes)
139 views30 pages

MAGX2 Modbus RTU User Guide - 0-V1.5 23-01-2018

This document provides information about the Modbus RTU communication protocol for the MAGX2 flowmeter. It describes the technical specifications, commissioning instructions, addressing details, supported function codes, and layout of the holding registers containing real-time measurements, settings, and other data. Configuration of the slave address, baud rate, and parity can be done through the device display menu.

Uploaded by

Jose Carrasquel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
139 views30 pages

MAGX2 Modbus RTU User Guide - 0-V1.5 23-01-2018

This document provides information about the Modbus RTU communication protocol for the MAGX2 flowmeter. It describes the technical specifications, commissioning instructions, addressing details, supported function codes, and layout of the holding registers containing real-time measurements, settings, and other data. Configuration of the slave address, baud rate, and parity can be done through the device display menu.

Uploaded by

Jose Carrasquel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 30

MAGX2 Modbus RTU User Guide -0- V1.

5 23-01-2018
List of Contents

1. INTRODUCTION ............................................................................................................................................ 2
1.1 DEFINITIONS AND ABBREVIATIONS ...................................................................................................................... 2
1.2 REFERENCES ........................................................................................................................................................ 2

2. TECHNICAL DATA ....................................................................................................................................... 3


2.1 GENERAL MODBUS RTU ...................................................................................................................................... 4

3. COMMISSIONING ......................................................................................................................................... 5
4. MODBUS ADDRESSING MODULE ............................................................................................................ 6
4.1 MODBUS FUNCTION CODES................................................................................................................................... 6

5. MODBUS HOLDING REGISTERS .............................................................................................................. 7


5.1 PASSWORD ........................................................................................................................................................... 8
5.2 REAL-TIME MEASUREMENT .................................................................................................................................. 9
5.3 FLOAT REAL-TIME MEASUREMENT ..................................................................................................................... 11
5.4 INFO ................................................................................................................................................................... 12
5.5 DISPLAY ............................................................................................................................................................. 14
5.6 USER SETTINGS .................................................................................................................................................. 15
5.7 EXTERNAL MEASUREMENTS .............................................................................................................................. 22
5.8 SERVICE SETTINGS ............................................................................................................................................. 23
5.9 FACTORY SETTINGS ........................................................................................................................................... 25
5.10 AUTHORIZE ...................................................................................................................................................... 27
5.11 DATALOGGER ................................................................................................................................................... 28

6. CONTACT...................................................................................................................................................... 29

MAGX2 Modbus RTU User Guide -1- V1.5 23-01-2018


1. Introduction

This manual describes the MAGX2 Modbus-RTU communication protocol.

1.1 Definitions and Abbreviations

CRC Cyclic Redundancy Check, Used for error-checking in Modbus RTU.


See appendix
A Modbus device, which is able to access data in one or more
Modbus master connected Modbus slaves
A Modbus device, which is able to respond to requests from a single
Modbus slave Modbus master
Throughout this document the following notation is used to address
Modbus address Modbus RTU registers:
1234 - Holding register 1234 (addressed in messages by 1233)
Refers to the communication standard defined by EIA/TIA-232C.
RS232
(Physical layer) EIA/TIA232C
USB Refers to the USB Specification usb.org
RS485 Refers to the 2-wire communication standard defined by EIA/TIA-485.
(Physical layer)
RTU Remote Terminal Unit - Standard Modbus transmission mode

1.2 References

Reference 1 Modbus over Serial Line Specification & Implementation guide v. 1.0
Modbus.org 12/02/02
Reference 2 Modbus Application Protocol Specification v. 1.1 Modbus.org
12/06/02
Reference 3 MAGX2 manual
Reference 4 GSM SMS Module Specification

MAGX2 Modbus RTU User Guide -2- V1.5 23-01-2018


2. Technical data

ARKON Flowmeter Modbus RTU specification


Device type Slave
Baud rates 4800, 9600, 19200, 38400 bits/sec.
Number of stations max. 31 per segment without repeaters
Recommended:
Device address range 1-247
Protocol Modbus RTU (Other Modbus protocols like ASCII, Plus or TCP/IP are
not supported)
Electrical interface RS232, RS485 - 2 wire, USB, TCP/IP, Bluetooth
3 read holding registers
Supported function code 16 write multiple registers
17 report slave ID
Broadcast No
Maximum cable length Reference 3
Standard Modbus over serial
line v1.0)
Certified No

MAGX2 Modbus RTU User Guide -3- V1.5 23-01-2018


2.1 General Modbus RTU

The module complies with the Modbus serial line protocol [Reference 1].

Among other things, this implies a master-slave protocol at level 2 of the OSI model. One
node, (the master), issues explicit commands to one of the „slave“-nodes and processes responses.
Slave nodes will not transmit data without request from the master node, and do not communicate with
other slaves. Modbus is a mono master system, which means that only one master can be
connected at any single point in time.

Two modes of communication are possible, Unicast and Broadcast. Unicast mode is where
the master sends a request to one slave device, and waits a specified time for a response. In
Broadcast mode the master sends out a request to address „0“, which means that the information is
for all slave devices on the network. In Broadcast mode there is no response from the slave
devices.

The Modbus frame is shown below, and is valid for both requests and responses.

Further details of the Modbus protocol can be found in Reference 1 and 2.

MAGX2 Modbus RTU User Guide -4- V1.5 23-01-2018


3. Commissioning

Before communicating with the master, Baud rate, slave ID and Parity must be selected. This
can be done from the display. Please look at into the MAGX2 transmitter manual to locate the Modbus
menu. (see Reference 3.)

Item Value Comments


Slave address 1 - 247 Device address [Factory setting: 1]
Communication speed [Factory setting:
Baud rate 4800, 9600, 19200, 38400
9600]
Even, 1 stopbit
Odd, 1 stopbit Communication parameters [Factory
Parity/framing
None, 2 stopbit setting: Even, 1 stopbit]

None, 1 stopbit

MAGX2 Modbus RTU User Guide -5- V1.5 23-01-2018


4. Modbus addressing module
The module allows R/W access to the following standard Modbus data register blocks:
• Holding registers

I.e. the module will not support the other standard data register blocks:
• Coils
• „Discrete input“
• „Input registers“

4.1 Modbus function codes


This device supports following function codes: 3, 16 and 17.

Function code 3 and 16 are used for accessing registers. Function code 17 (report slave ID)
will return a structure of identification information of the device. Below the different function code
exceptions are described.

Function code 3 (Read holding registers)


General exceptions:
• Requesting less than 1 or more than 125 registers => Exception 3 (Illegal data value)
• Requesting more than max. message size => Exception 2 (Illegal data address)
• Requesting data above/crossing limitation of max. register address (0xFFFF) => Exception 2
(Illegal data address)
• If the end address is only part of a mapped holding register item (e.g. one half of a longint
value) => Exception 2 (Illegal data address)

Application exceptions:
• Application errors => Exception 2 (Illegal data address)
Holes/register alignment:
• The read command always returns data if no exception is given. Bad start/end alignment will
result in only parts of the data item being read.
• Holes in the holding register map return Exception 2 (Illegal data address)

Function code 16 (Write multiple registers)


General exceptions:
• Exceeding max. message size => Exception 2 (Illegal data address)
• Writing data above/crossing limitation of max. register address (0xFFFF) => Exception
2(Illegal data address)
Application exceptions:
• Application errors => Exception 2 (Illegal data address)
• Application errors include writing to ReadOnly holding registers
Holes / register alignment:
• If start-address is not the start of a mapped holding register => Exception 2 (Illegal data
address)
• Writing to holes is not allowed => Exception 2 (Illegal data address)
• If the end address is only part of a mapped holding register item (e.g. one half of a longint
value), the action depends on the datatype.
• If the end address is only part of a mapped holding register item (e.g. one half of a longint
value) => Exception 2 (Illegal data address)

Function code 17 (Report Slave ID)


• There are no exceptions for this function

MAGX2 Modbus RTU User Guide -6- V1.5 23-01-2018


5. Modbus holding registers
Below, the holding registers for the MAGX2 Modbus RTU module are described.

Modbus
Section
Start Register
2 Password
100 Real-time measurement
150 Float real-time measurement
1000 Info
1500 Display
2000 User settings
2500 External measurements
3000 Service settings
4000 Factory settings
5000 Authorize
10000 Datalogger

Holding registers memory map

When writing to the Holding registers, data validity is not checked. Writing incorrect values can
result in unexpected behaviour of the device. In any further explanations, the following data types are
used:

Longint – Number consisting of 32 bits, formed by 2 Modbus registers. It is necessary to write


both Low and High Word of this item, the register number always has to be an even number. Not
meeting these requirements will cause an Exception 2 error (Illegal data address). In case information
about the number of decimals is available, then the final number is given by the following formula: Y =
X * 10^(-DEC), where Y is the final number, X the read number, and DEC the number of decimals.

Bool – this item can be read, but its value has no meaning. Writing value 1 to this item will
cause an unspecified operation to be performed (erasing the Memory module, resetting the flow
totalizers, etc. Reference 3). It is necessary to write both Low and High Word of this item, the register
number always has to be an even number. Not meeting these requirements will cause an Exception 2
error (Illegal data address).

Float – IEEE 754-1985 single precistion (Approximately 7 decimal digits), number consisting of
32 bits, formed by 2 Modbus registers. It is necessary to write both Low and High Word of this item,
the register number always has to be an even number. Not meeting these requirements will cause an
−38 38
Exception 2 error (Illegal data address). Full range ±1.18×10 to ±3.4×10 .

Modbus Data Low/High


register Type Word
2 L
Longint
3 H
4 L
Bool
5 H
6 L
Float
7 H

Data type memory map

MAGX2 Modbus RTU User Guide -7- V1.5 23-01-2018


5.1 Password
To enter the "User settings, Service settings, Factory settings, and Authorize" sections, it is
necessary to enter a password in the same way as for the MAGX2 flowmeter menu, see reference 3.

Modbus Modbus No. of No. of Max Read/


Data type Min Value Description
register address bytes decimal Value Write

2 1 4 Longint 0 0 9999 Password (User) R*/W

4 3 4 Longint 0 0 999999 Password (Service) R*/W

6 5 4 Longint 0 0 99999999 Password (Factory) R*/W

8 7 4 Longint 0 0 99999999 Password (Authorize) R*/W

Password(External
10 9 4 Longint 0 0 9999 R*/W
Measurements)

*) For safety purposes, it is not possible to read this item directly. In case a 0 is read from this
register, it means that no valid password was entered, and the given section is not accessible. In case
a 1 is read, a valid password was entered and hence the given section can be accessed freely. To
close the section, you write any possible invalid password to the password entry.

Password (User) – default user password “1111”

Password (External Measurements) – default External Measurements password “1111”

MAGX2 Modbus RTU User Guide -8- V1.5 23-01-2018


5.2 Real-time measurement

Modbus Modbus No. of No. of Min Read/


Data type Max Value Description
register address bytes decimal Value Write

100 99 4 Longint 3 -10^7 10^7 FLOW R

102 101 4 Longint 0 0 2^32 TOTAL * R

104 103 4 Longint 6 0 2^32 TOTAL DEC * R

106 105 4 Longint 0 0 2^32 AUX * R

108 107 4 Longint 6 0 2^32 AUX DEC * R

110 109 4 Longint 0 0 2^32 TOTAL+ * R

112 111 4 Longint 6 0 2^32 TOTAL+ DEC * R

114 113 4 Longint 0 0 2^32 TOTAL- * R

116 115 4 Longint 6 0 2^32 TOTAL- DEC * R

118 117 4 Longint 1 0 2^32 TEMP R

120 119 4 Longint - 0 0xFFFFFFFF Actual Error R

External
122 121 4 Longint 1 -10^7 10^7 R
Temperature
External
124 123 4 Longint 3 0 2^32 R
Pressure

126 125 4 Longint 3 0 2^32 FLOW ABS R

128 127 4 Bool - 0 1 FLOW SIGN R

*) The final number is given by the sum of the whole and the decimal. Example: Resulting
Total measurement = (TOTAL) + (TOTAL DEC*10^-3).

Flow

Unit: m3/h - it is not possible to change it. Real value = Actual value divided by 1000.

TOTAL (TOTAL +, TOTAL -, AUX +)


3
Unit: m – it is not possible to change it. Real value = Actual value divided by 1000.

Temp

Temperature real value = Actual value divided by 10.

MAGX2 Modbus RTU User Guide -9- V1.5 23-01-2018


Actual Error

Actual error is represented in Hex format. For decode it has to be conversed to binary format, where
each bit represent specific error. (See MAGX2 manual, MAGX2 Error Code Table)

External Temperature

If external measurements module temperature is used then real temperature value = Actual value
divided by 10.

External Pressure

If external measurements module pressure is used then real pressure value = Actual value divided by
1000.

Flow ABS and SIGN

In case signed value for longint cannot be used, a absolute value of flow and its sign can be used.
Unit: m3/h - it is not possible to change it. Real ABS value = Actual value divided by 1000.

MAGX2 Modbus RTU User Guide -10- V1.5 23-01-2018


5.3 Float real-time measurement

Modbus Modbus No. of Read/


Data type Description
register address bytes Write

150 149 4 Float Float FLOW R

152 151 4 Float Float TOTAL R

154 153 4 Float Float AUX R

156 155 4 Float Float TOTAL+ R

158 157 4 Float Float TOTAL- R

160 159 4 Float Float TEMP R

162 161 4 Float Float External Temperature R

164 163 4 Float Float External Pressure R

Float Flow

Unit: m3/h - it is not possible to change it.

Float TOTAL (TOTAL +, TOTAL -, AUX +)


3
Unit: m – it is not possible to change it.

Float Temp

Temperature.

Float External Temperature

When external measurements module temperature is used.

Float External Pressure

When external measurements module pressure is used.

MAGX2 Modbus RTU User Guide -11- V1.5 23-01-2018


5.4 Info

Modbus Modbus No. of No. of Min Read/


Data type Max Value Description
register address bytes decimal Value Write

1000 999 4 Longint 0 - - Unit No. R

1002 1001 4 Longint 0 - - Sensor Unit No. R

1004 1003 4 Longint 0 - - Error [min] R

1006 1005 4 Longint 0 - - OK [min] R

1008 1007 4 Longint 0 - - Diameter [mm] R

1010 1009 4 Longint 3 - - Flow Qn [m3/h] R

1012 1011 4 Longint 2 - - FirmWare No. R

1014 1013 4 Longint 0 - - Actual Error R

1016 1015 4 Longint 0 - - FW Checksum R

SD Card Present,
1018 1017 4 Longint 0 0 1 0=No, R
1=Yes
GSM Module
present,
1020 1019 4 Longint 0 0 1 R
0=No,
1=Yes

1022 1021 4 Longint 0 0 0xffffffff GPRS IP Address R

1024 1023 4 Longint 0 0 100 GSM Signal [%] R

GPRS Module
Present,
1026 1025 4 Longint 0 0 1 R
0=No,
1=Yes
Wi-Fi Module
Present,
1028 1027 4 Longint 0 0 1 R
0=No,
1=Yes

Unit no. – unique number for each Flowmeter. If there are any problems, please refer to this number.

Error [min] – the number of minutes the device was measuring with some error.

OK [min] - the number of minutes that the device measured correctly.

Diameter [mm] – the nominal sensor diameter.

MAGX2 Modbus RTU User Guide -12- V1.5 23-01-2018


Flow Qn [m3/h] – nominal flow.

Firmware No. – this item shows the current firmware version

Actual Error - Actual error is represented in Hex format. For decode it has to be converted to binary
format, where each bit represent each error. (See MAGX2 manual, MAGX2 Error Code Table).

FW Checksum – Validation of not allowed changes in FW (Metrological purposes)

SD Card Present – Value represent if SD card is present. (0 = not, 1 = is present).

GSM Module present - Value represent if GSM Module is present (0 = not, 1 = is present) [Reference
4].

GPRS IP Address - Actual IP address of GPRS module.

GSM Signal – Signal strength of GSM module [Reference 4].

GPRS Module present - Value represent if GSM Module is present (0 = not, 1 = is present)

Wi-fi Module present - Value represent if GSM Module is present (0 = not, 1 = is present)

MAGX2 Modbus RTU User Guide -13- V1.5 23-01-2018


5.5 Display

Modbus Modbus No. of No. of Min Read/


Data type Max Value Description
register address bytes decimal Value Write

Unit Flow,
0=UKG/min,
1500 1499 4 Longint - 0 4 1=USG/min, R/W
2=m3/h,
3=l/min, 4=l/s
Unit Volume,
0=UKG,
1502 1501 4 Longint - 0 3 1=USG, R/W
2=m3,
3=l
Unit
Temperature
1504 1503 4 Longint - 0 1 R/W
0 = °C,
1 = °F
Unit
Pressure
1506 1505 4 Longint - 0 1 R/W
0 = bar,
1 = psi
Language,
0 = ENG,
1 = SPA,
1508 1507 4 Longint - 0 4 R/W
2 = RUS,
3 = UKR,
4 = TUR

1510 1509 4 Longint - 0 100 Contrast [%] R/W

Backlight,
0 = 10 sec,
1512 1511 4 Longint - 0 1 R/W
1 = Always
on
3
Unit Flow – actual flow unit (default m /h).
3
Unit Volume – totalizer unit (default m ).

Unit Temperature – applies for both internal and external temperature sensors.

Language – Language of transmitter menu.

Contrast – Set display’s contrast.

Backlight – Set display’s backlight behaviour.

MAGX2 Modbus RTU User Guide -14- V1.5 23-01-2018


5.6 User settings

Modbus Modbus No. of No. of Min Read/


Data type Max Value Description
register address bytes decimal Value Write
Datalogger Interval,
0 = OFF,
1 = 1min,
2 = 5min,
3 = 10min,
4 = 15min,
2000 1999 4 Longint - 0 10 R/W
5 = 30min,
6 = 1h,
7 = 2h,
8 = 6h,
9 = 12h,
10 = 24h
CSV Format,
2002 2001 4 Longint - 0 1 0 = Coma (,), R/W
1 = Semicolon (;)
Air Detector
2004 2003 4 Longint - 0 1 0 = OFF, R/W
1 = ON
Delete Auxiliary
2006 2005 4 Bool - 0 1 R/W
Volume?

2008 2007 4 Longint 0 1 120 (60) Samples per Avg. R/W


Current Loop Setting -
Signal,
0 = Flow+,
1 = Flow-,
2010 2009 4 Longint - 0 6 2 = Error, R/W
3 = Air detector,
4 = Fixed,
5 = Direct driving,
6 = OFF

2012 2011 4 Longint 3 0 36 000 Flow min. [m3/h] R/W

2014 2013 4 Longint 3 0 36 000 Flow max. [m3/h] R/W

2016 2015 4 Longint 0 4 20 Current min. [mA] R/W

2018 2017 4 Longint 0 4 20 Current max. [mA] R/W

Current Loop
2020 2019 4 Longint 0 4 20 Calibration point 1 R/W
[mA]

Current Loop
2022 2021 4 Longint 0 4 20 Calibration point 2 R/W
[mA]
Current Loop
2024 2023 4 Longint 4 0.5 1.5 R/W
Calibration const 1

MAGX2 Modbus RTU User Guide -15- V1.5 23-01-2018


Current Loop
2026 2025 4 Longint 4 0.5 1.5 R/W
Calibration const 2
Voltage Output
Setting - Signal,
0 = Flow+,
1 = Flow-,
2028 2027 4 Longint - 0 6 2 = Error, R/W
3 = Air detector,
4 = Fixed,
5 = Direct driving,
6 = OFF

2030 2029 4 Longint 3 0 36 000 Flow min. [m3/h] R/W

2032 2031 4 Longint 3 0 36 000 Flow max. [m3/h] R/W

2034 2033 4 Longint 0 0 10 Voltage min. [V] R/W

2036 2035 4 Longint 0 0 10 Voltage max. [V] R/W

Relay 1
Setting - Signal,
0 = OFF,
1 = Fixed,
2 = Flow+,
3 = Flow-,
2038 2037 4 Longint - 0 9 4 = Error, R/W
5 = Air Detect,
6 = On In,
7 = On Out,
8 = On<F1,
9 = On>F1

Relay 2
Setting - Signal,
0 = OFF,
1 = Fixed,
2 = Flow+,
3 = Flow-,
2040 2039 4 Longint - 0 9 4 = Error, R/W
5 = Air Detect,
6 = On In,
7 = On Out,
8 = On<F1,
9 = On>F1

2042 2041 4 Longint 3 0 36 000 Flow 1 [m3/h] R/W

2044 2043 4 Longint 3 0 36 000 Flow 2 [m3/h] R/W

2046 2045 4 Longint 3 0 36 000 Hysteresis 1 [m3/h] R/W

2048 2047 4 Longint 3 0 36 000 Hysteresis 2 [m3/h] R/W

MAGX2 Modbus RTU User Guide -16- V1.5 23-01-2018


Relay 3
Setting – Signal,
0 = OFF,
1 = ON,
2 = Flow+,
2050 2049 4 Longint - 0 8 3 = Flow-, R/W
4 = Error,
5 = Air Detect,
6 = Pulse/Litre+,
7 = Pulse/Litre-,
8 = Dosing
Relay 4
Setting – Signal,
0 = OFF,
1 = ON,
2 = Flow+,
2052 2051 4 Longint - 0 8 3 = Flow-, R/W
4 = Error,
5 = Air Detect,
6 = Pulse/Litre+,
7 = Pulse/Litre-,
8 = Dosing

2054 2053 4 Longint 0 0 99 999 Pulse / Litre + [l] R/W

2056 2055 4 Longint 0 0 99 999 Pulse / Litre – [l] R/W

2058 2057 4 Longint 0 0 99 999 Dose (Batch) [l] R/W

Frequency
Settings – Signal,
0 = OFF,
1 = Fixed,
2060 2059 4 Longint - 0 6 2 = Flow+, R/W
3 = Flow-,
4 = Error,
5 = Air Detect,
6 = Direct Driving

2062 2061 4 Longint 3 0 36 000 Flow 1 [m3/h] R/W

2064 2063 4 Longint 3 0 36 000 Flow 2 [m3/h] R/W

2066 2065 4 Longint 0 0 1 000 Frequency min [Hz] R/W

2068 2067 4 Longint 0 0 1 000 Frequency max [Hz] R/W

2070 2069 4 Longint 0 1 99 Duty Cycle [%] R/W

2072 2071 4 Bool - 0 1 Load Default Settings R/W

2074 2073 4 Longint 0 0 9 999 User Password R/W

Modbus Slave
2076 2075 4 Longint 0 0 247 R/W
Address

MAGX2 Modbus RTU User Guide -17- V1.5 23-01-2018


Modbus Baudrate,
0 = 4800,
2078 2077 4 Longint 0 0 3 1 = 9600, R/W
2 = 19200,
3 = 38400
Parity,
0 = Even, 1stopbit,
2080 2079 4 Longint 0 0 3 1 = Odd,1stopbit, R/W
2 = None, 2stopbits,
3 = None, 1stopbit
Totalizer Cycling,
2082 2081 4 Longint 0 0 1 0 = ON, R/W
1 = OFF
GSM Data Interval
2084 2083 4 Longint 5 0 50000 R/W
[min]

2086 2085 4 Longint 8 0 99999999 GSM Phone 1 High R/W

2088 2087 4 Longint 8 0 99999999 GSM Phone 1 Low R/W

2090 2089 4 Longint 8 0 99999999 GSM Phone 2 High R/W

2092 2091 4 Longint 8 0 99999999 GSM Phone 2 Low R/W

2094 2093 4 Longint 8 0 99999999 GSM Phone 3 High R/W

2096 2095 4 Longint 8 0 99999999 GSM Phone 3 Low R/W

GSM Empty Pipe


Event,
2098 2097 4 Longint - 0 1 R/W
0 = OFF,
1 = ON
GSM Zero Flow
Event,
2100 2099 4 Longint - 0 1 R/W
0 = OFF,
1 = ON
GSM Error Detect
Event,
2102 2101 4 Longint - 0 1 R/W
0 = OFF,
1 = ON
GSM Empty Pipe
Event Settings,
2104 2103 4 Longint - 0 1 R/W
0 = ON and OFF,
1 = Only ON
GSM Empty Pipe
Event Settings,
2106 2105 4 Longint - 0 1 R/W
0 = ON and OFF,
1 = Only ON

2108 2107 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay0 R/W

2110 2109 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay1 R/W

MAGX2 Modbus RTU User Guide -18- V1.5 23-01-2018


2112 2111 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay2 R/W

2114 2113 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay3 R/W

2116 2115 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay4 R/W

2118 2117 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay5 R/W

2120 2119 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay6 R/W

2122 2121 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay7 R/W

2124 2123 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay8 R/W

2126 2125 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay9 R/W

2128 2127 4 Longint 0 0 0xFFFFFFFF GPRS _GateWay10 R/W

2130 2129 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay11 R/W

2132 2131 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay12 R/W

2134 2133 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay13 R/W

2136 2135 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay14 R/W

2138 2137 4 Longint 0 0 0xFFFFFFFF GPRS_GateWay15 R/W

2140 2139 4 Longint 0 0 0xFFFFFFFF GPRS_User0 R/W

2142 2141 4 Longint 0 0 0xFFFFFFFF GPRS_User1 R/W

2144 2143 4 Longint 0 0 0xFFFFFFFF GPRS_User2 R/W

2146 2145 4 Longint 0 0 0xFFFFFFFF GPRS_Password0 R/W

2148 2147 4 Longint 0 0 0xFFFFFFFF GPRS_Password1 R/W

2150 2149 4 Longint 0 0 0xFFFFFFFF GPRS_Password2 R/W

2152 2151 4 Longint 0 0 1 024 GPRS_Port R/W

2154 2153 4 Longint 0 0 9 999 GPRS_PIN R/W

2156 2155 4 Longint - 0 1 Wi-Fi AP mode R/W

MAGX2 Modbus RTU User Guide -19- V1.5 23-01-2018


Datalogger Interval – this function selects how often data is written to the datalogger.

CSV Format – Set separator between each data. Set comma or semicolon.

Air Detector – this option allows selecting empty pipe check. Default OFF.

Delete Aux + Volume – write value different to zero for erasing the auxiliary flow totalizer.

Samples per Avg. – the number of samples that the flowmeter will use for calculation of its displayed
average flow value. Default 15. (Maximal value for sensor v.8 and later is 120 and for sensor v.7 is 60)

Current Loop Setting - see chapter Current Loop in MAGX2 manual.

Flow min - see chapter User Setting Menu - Current Loop in MAGX2 manual.

Flow max - see chapter User Setting Menu - Current Loop in MAGX2 manual.

Current min - see chapter User Setting Menu - Current Loop in MAGX2 manual.

Current max - see chapter User Setting Menu - Current Loop in MAGX2 manual.

Current Loop Calibration point 1 - see chapter User Setting Menu - Current Loop in MAGX2
manual.

Current Loop Calibration point 2 - see chapter User Setting Menu - Current Loop in MAGX2
manual.

Current Loop Calibration constant 1 - see chapter User Setting Menu - Current Loop in MAGX2
manual.

Current Loop Calibration constant 2 - see chapter User Setting Menu - Current Loop in MAGX2
manual.

Voltage output Setting – see chapter User Setting Menu – Voltage Output in MAGX2 manual.

Flow min - see chapter User Setting Menu – Voltage Output in MAGX2 manual.

Flow max - see chapter User Setting Menu – Voltage Output in MAGX2 manual.

Voltage min - see chapter User Setting Menu – Voltage Output in MAGX2 manual.

Voltage max - see chapter User Setting Menu – Voltage Output in MAGX2 manual.

Relay 1 setting – see chapter User Setting Menu – Pulse Output in MAGX2 manual.

Relay 2 setting – see chapter User Setting Menu – Pulse Output in MAGX2 manual.

Flow 1 - see chapter User Setting Menu – Pulse Output in MAGX2 manual.

Flow 2 - see chapter User Setting Menu – Pulse Output in MAGX2 manual.

Hysteresis 1 - see chapter User Setting Menu – Pulse Output in MAGX2 manual.

Hysteresis 2 - see chapter User Setting Menu – Pulse Output in MAGX2 manual.

Relay 3 setting – see chapter User Setting Menu – Pulse Output in MAGX2 manual.

Relay 4 setting – see chapter User Setting Menu – Pulse Output in MAGX2 manual.

Volume plus - see chapter User Setting Menu – Pulse Output in MAGX2 manual.

MAGX2 Modbus RTU User Guide -20- V1.5 23-01-2018


Volume minus - see chapter User Setting Menu – Pulse Output in MAGX2 manual.

Dose (Batch) - see chapter User Setting Menu – Pulse Output in MAGX2 manual.

Frequency setting – see chapter User Setting Menu – Frequency Output in MAGX2 manual.

Flow 1 - see chapter User Setting Menu – Frequency Output in MAGX2 manual.

Flow 2 - see chapter User Setting Menu – Frequency Output in MAGX2 manual.

Frequency 1 - see chapter User Setting Menu – Frequency Output in MAGX2 manual.

Frequency 2 - see chapter User Setting Menu – Frequency Output in MAGX2 manual.

Duty cycle - see chapter User Setting Menu – Frequency Output in MAGX2 manual.

Load default settings – Load default factory setting or users changing setting on function Save
setting.

Password Setup – Set password (user).

Modbus Slave Address – Modbus device address. Default 1

Modbus Baudrate – setup communication speed. Default 9600.

Modbus Parity – setup communication parameters. Default Even, 1 stopbit.

Totalizer Cycling – If set, each 3 seconds change totalizer on Main screen.

GSM Data Interval – For more info see GSM SMS Module Specification (chapter Set Sending
Interval) [Reference 4].

GSM Phone 1 H, GSM Phone 2 H, GSM Phone 3 H – High part of phone number (i.e. 4207 for
phone number +420777123456). Do not enter character +. The character + is added automatically. All
phone numbers must be in international format (i.e. +420123456789). For more info see GSM SMS
Module Specification [Reference 4].

GSM Phone 1 L, GSM Phone 2 L, GSM Phone 3 L – Low part of phone number (i.e. 77123456 for
phone number +420777123456) [Reference 4].

GSM Empty Pipe Event – For more info see GSM SMS Module Specification [Reference 4].

GSM Zero Flow Event – For more info see GSM SMS Module Specification [Reference 4].

GSM Error Detect Event – For more info see GSM SMS Module Specification [Reference 4].

GSM Empty Pipe Event Settings – For more info see GSM SMS Module Specification [Reference 4].

GSM Zero Flow Event Settings – For more info see GSM SMS Module Specification [Reference 4].

Wi-Fi AP mode – For more info see Wi-Fi Module Specification

MAGX2 Modbus RTU User Guide -21- V1.5 23-01-2018


5.7 External Measurements

Modbus Modbus No. of No. of Min Read/


Data type Max Value Description
register address bytes decimal Value Write

External
temperature
2500 2499 4 Longint 0 0 1 measurement state, R/W
0 = ON,
1 = OFF
Temperature
sensor type,
0 = PT100,
2502 2501 4 Longint 0 0 3 R/W
1 = PT200,
2 = PT500,
3 = PT1000
Temperature
sensor connection,
2504 2503 4 Longint 0 0 2 0 = 2-Wire, R/W
1 = 3-Wire,
2 = 4-Wire

Temperature
2506 2505 4 Longint 1 0 1000 sensor calibration, R/W
actual temperature
Temperature
2508 2507 4 Bool 0 0 1 sensor calibration, R/W
start now

External pressure
measurement state,
2510 2509 4 Longint 0 0 1 R/W
0 = ON,
1 = OFF

2512 2511 4 Longint 0 4 20 Current min. [mA] R/W

2514 2513 4 Longint 0 4 20 Current max. [mA] R/W


Pressure min
2516 2515 4 Longint 3 0 9999999 R/W
[mbar]
Pressure max
2518 2517 4 Longint 3 0 9999999 R/W
[mbar]

External temperature measurement state – Switches on/off the external temperature module.

Temperature sensor type and connection – defines which and how is the external temperature
sensor connected. For more information follow MAGX2 manual (Reference 3).

Temperature sensor calibration temperature and start now - set the known temperature * 10 to
actual temperature register and write 1 to start now.

External pressure measurement state – Switches on/off the external pressure module.

External pressure current loop calibration – defines input current span that is equal to measured
pressure.

MAGX2 Modbus RTU User Guide -22- V1.5 23-01-2018


5.8 Service Settings

Modbus Modbus No. of Data No. of Read/


Min Value Max Value Description
register address bytes type decimal Write

3000 2999 4 Bool - 0 1 Error Delete? R/W

3002 3001 4 Bool - 0 1 OK Delete? R/W

3004 3003 4 Bool - 0 1 Delete Volume (-)? R/W

3006 3005 4 Bool - 0 1 Delete Volume (+)? R/W

3008 3007 4 Bool - 0 1 Delete Volume Total? R/W

3010 3009 4 Longint 0 0 1 Flow simulation, 0=ON, 1=OFF R/W

3012 3011 4 Longint 3 0 36 000 000 Simulated flow [m3/h] R/W

3014 3013 4 Longint - 0 1 Service Mode, 0=ON, 1=OFF R/W

Measurement,
3016 3015 4 Longint - 0 1 0 = Run, R/W
1 = Stop

3018 3017 4 Longint 3 0 0,999 Air Constant R/W

3020 3019 4 Longint 0 0 120 Start Delay [s] R/W

Invert Flow,
3022 3021 4 Longint - 0 1 0 = No-invert, R/W
1 = Invert
Electrode Cleaning, 0 = OFF,
3024 3023 4 Longint 0 0 2 1 = ON, R/W
2 = ON Start

3026 3025 4 Longint 0 1 9999 Clean Time [s] R/W

3028 3027 4 Bool - 0 1 Start Now? R/W

Low Flow Cutoff,


0 = 0.5%,
1 = 1%,
3030 3029 4 Longint - 0 5 2 = 2%, R/W
3 = 5%,
4 = 10%,
5 = OFF

3032 3031 4 Longint 3 0 36 000 Flow Qn [m3/h] R/W

MAGX2 Modbus RTU User Guide -23- V1.5 23-01-2018


3034 3033 4 Longint 0 0 31 129 999 Date Settings R/W

3036 3035 4 Longint 0 0 235 959 Time Settings R/W

Delete Error (min) – write value different to zero for erasing the Error min counter.

Delete OK (min) – write value different to zero for erasing the OK min counter.

Delete Total – Volume – write value different to zero for erasing the Total – flow totalizer.

Delete Total + Volume – write value different to zero for erasing the Total + flow totalizer.

Delete Total Volume – write value different to zero for erasing the Total flow totalizer.

Flow Simulation – switch off/on the simulation flow function. Default OFF.

Simulated Flow – write simulated flow.

Service Mode – write value different to zero for turn ON the service mode. Default OFF.

Measurement – 0 = Stop – the unit shows actual flow, but the totalizers are stopped.
1 = Running – totalizers are active. Default Stop.

Air Constant – constant value to determine the Empty pipe detection limit. Default 188.

Start Delay – Value represent how long is stabilize all component. (actual flow is “0” at this time).

Invert Flow – this function serves to change the direction of the flow. Default No-invert.

Electrode Cleaning – Set electrode cleaning

Clean Time – number of seconds, how long run electrode cleaning, when select “On Start” or “Start
Now”

Start Now? – If set, start electrode cleaning now for Clean Time.

Low Flow Cutoff – this function serves to set the minimum flow the flowmeter will react on. Default
2%.

Flow Qn – set nominal flow (automatic set if changing the diameter).

Date Settings - date write in BCD format YYYYMMDD (i.e. 25.03.2010 = (hex)0x20100325)

Time Settings - time write in BCD format HHMMSS (i.e. 08:33:15 = (hex)0x00083315)

MAGX2 Modbus RTU User Guide -24- V1.5 23-01-2018


5.9 Factory Settings

Modbus Modbus No. of No. of Read/


Data type Min Value Max Value Description
register address bytes decimal Write

4000 3999 4 Longint 0 10 1 000 L = Diameter R/W

4002 4001 4 Longint 0 0 9 999 999 Unit No. R/W

Calibration
4004 4003 4 Longint 3 0.015 36 000 000 R/W
Point1
Calibration
4006 4005 4 Longint 3 0.015 36 000 000 R/W
Point2
Calibration
4008 4007 4 Longint 3 0.015 36 000 000 R/W
Point3
Calibration
4010 4009 4 Longint 0 -10000000 10000000 R/W *
Data1
Calibration
4012 4011 4 Longint 0 -10000000 10000000 R/W *
Data2
Calibration
4014 4013 4 Longint 0 -10000000 10000000 R/W *
Data3

4016 4015 4 Bool - 0 1 Zero Flow? R/W

Zero Flow
4018 4017 4 Longint 0 -10000000 10000000 R/W
Constant
Zero Flow
4020 4019 4 Bool - 0 1 R/W
Erase?
Excitation
frequency,
4022 4021 4 Longint - 0 1 R/W
0=3.125Hz,
1=6.250Hz
Excitation,
4024 4023 4 Longint - 0 1 R/W
0=ON, 1=OFF
Service Mode,
4026 4025 4 Longint - 0 1 R/W
0=ON, 1=OFF

4028 4027 4 Bool - 0 1 Save Settings? R/W

Sensor
4030 4029 4 Longint 0 0 99999999 communication R/W
module SN

Optical Buttons
4048 4047 4 Longint 0 0 100 R/W
Down/Up Level

Optical Buttons
4050 4049 4 Longint 0 0 100 R/W
Left/Right Level
Optical Buttons
4052 4051 4 Longint 0 0 100 Enter/ESC R/W
Level

MAGX2 Modbus RTU User Guide -25- V1.5 23-01-2018


Diameter – diameter of the sensor.

Unit No. – set serial number of the unit

Zero Flow? – after activation this function, average value from ADC converter ( number of samples
for average is value of Samples per Average).
.
Zero Flow Constant – Set manually value for zero flow constant.

Zero Flow Erase – erase zero flow constant.

Excitation Frequency – choose the excitation frequency.

Excitation – write zero for turn OFF the excitation. Default ON.

Service Mode – write value different to zero for turn ON the service mode. Default OFF.

Save Settings? – Save setting to battery backed up RAM, next time will be load with Load Default
Settings function.

Sensor communication module SN – Serial number of connected sensor communication module v8,
9

Optical buttons x/x level – sets level of sensitivity 0-100%. Higher number less sensitive buttons.

MAGX2 Modbus RTU User Guide -26- V1.5 23-01-2018


5.10 Authorize

Modbus Modbus No. of No. of Read/


Data type Min Value Max Value Description
register address bytes decimal Write

User Password
5000 4999 4 Longint 0 0 9 9999999 R/W
Setup

Password Setup – Set password (user).

MAGX2 Modbus RTU User Guide -27- V1.5 23-01-2018


5.11 Datalogger

Modbus Modbus No. of No. of Read/


Data type Min Value Max Value Description
register address bytes decimal Write

10000 9999 4 Longint 0 0 99991231 Request Date R/W

10002 10001 4 Longint 0 0 235959 Request Time R/W

10004 10003 4 Longint 0 0 235959 Datalogger Date R


Datalogger
10006 10005 4 Longint 0 0 235959 R
Time
10008 10007 4 Longint 0 0 235959 Total + DIG R

10010 10009 4 Longint 0 0 235959 Total + DEC R

10012 10011 4 Longint 0 0 235959 Total – DIG R

10014 10013 4 Longint 0 0 235959 Total – DEC R

10016 10015 4 Longint 0 0 235959 Error min R

10018 10017 4 Longint 0 0 235959 Error R

Request Date – Date which is needed to read from datalogger

Request Time – Time which is needed to read from datalogger

Datalogger Date – date of datalogger record

Datalogger Time – time of datalogger record

Total + DIG – Positive totalizer integral fraction

Total + DEC – Positive totalizer decimal fraction (always 3 decimal numbers, i.e.: 25 = 0.025)

Total – DIG – Negative totalizer integral fraction

Total – DEC – Negative totalizer decimal fraction (always 3 decimal numbers, i.e.: 25 = 0.025)

Error min – the number of minutes the device was not measuring because of errors.

Error – Error code, for decode see MAGX2 manual.

MAGX2 Modbus RTU User Guide -28- V1.5 23-01-2018


6. Contact
Technical support: [email protected]
Skype: support.arkon
Sales office: [email protected]

Office hours:
8:30 – 18:00 (GMT+1)

Direct technical support:


8:00 – 16:30 (GMT+1)

MAGX2 Modbus RTU User Guide -29- V1.5 23-01-2018

You might also like