Sie sind auf Seite 1von 42

CORUS

Gas Volume Converter

Communication Protocol and Exchanged Data


MODBUS RTU Protocol supplement

Revision AB
February 2010

1/42
TABLE OF CONTENTS

1 INTRODUCTION............................................................................................................................................... 4

2 REFERENCE DOCUMENTS ............................................................................................................................... 6


2.1 I-FLAG Protocol .................................................................................................................................................... 6
2.2 MODBUS RTU Protocol ........................................................................................................................................ 6
3 DESCRIPTION OF DATA ACCESS USING MODBUS RTU .................................................................................. 7
3.1 Access to the parameters .................................................................................................................................... 7
3.1.1 Parameters .................................................................................................................................................. 7
4 DATABASE LOGS READING ............................................................................................................................. 9
4.1 Definition of the address zones for database logs .............................................................................................. 9
4.2 Reading with direct access .................................................................................................................................10
4.3 Reading with extended access............................................................................................................................10
4.3.1 Frame mode ...............................................................................................................................................13
4.3.2 Page Mode..................................................................................................................................................17
5 SPECIAL FUNCTIONS ..................................................................................................................................... 21
5.1 Address reading of the addresses table ..........................................................................................................21
5.2 Priority of the addresses table ........................................................................................................................21
5.3 Reset of the addresses table ...........................................................................................................................22
ANNEX 1: CORUS MAIN PARAMETERS FORMAT AND DESCRIPTION .................................................................... 23

ANNEX 2: PARAMETERS ID NUMBER LIST ............................................................................................................. 31

ANNEX 3: CORUS EVENTS LOG / EVENTS NUMBERS AND VALUES ....................................................................... 36

ANNEX 4: PARAMETERS LOG / PARAMETERS NUMBERS ...................................................................................... 38

ANNEX 5: FORMATS AND STRUCTURES ................................................................................................................ 40

2/42
Revision Sheet
Revision Date Author Description of the modification
AA October-2006 M.TSIRKINIDIS Creation of the document
AB February-2010 P.NEXON General corrections (translations) + adds for MID versions

3/42
1 INTRODUCTION

This document is a complement of the Communication pack that ITRON provides after the
signature of a non-disclosure agreement (NDA) that ensures confidentiality of provided data and
information. It completes the description of the communication possibilities of the CORUS with the
description of the MODBUS RTU protocol.

The communication pack also includes :

Description of data and protocol (document for the I-FLAG protocol)


Drivers for integration of I-FLAG protocol low layers (DLL)
Document that explains how to use the DLL
Zip-file containing all available Mapping files

General information concerning CORUS protocols

The first protocol to have been implemented into the CORUS is based on SEVC-D one, called I-FLAG
(based on IEC61107). This allows warranting a compatibility of low-layers of the protocol.

To complete ITRON offer and achieve compatibility with most of AMR and SCADA systems, the
Modbus RTU protocol has also been integrated within CORUS since firmware version V0.74 (and
above) and also MID versions.
The Modbus RTU protocol does not replace the I-FLAG protocol. Both are present simultaneously
in the CORUS.

The result is a fully flexible communication system that usually reduces communication duration
and improve reliability, with a large choice of compatible AMR or SCADA software.

The CORUS is able to answer alternatively to requests of both protocols. However, the MODBUS
RTU protocol has no wake-up phase. So, the communication port must be set to the appropriate
communication speed (no auto-bauding function as for IFLAG protocol).

The current document includes two main parts :

Description of new functions and detection of the communication protocol


Description of CORUS data within MODBUS RTU protocol

4/42
CORUS Communication structure

PROTOCOL
DETECTION
I-FLAG (Connection Phase MODBUS
DETECTION Acknowledgement) DETECTION

I-FLAG CONNECTION
PHASE
(Power_On, Sign_On, Identification,
Acknowledgement)

SAM MODE
Single addressee
mode

DATA EXCHANGE PHASE DATA EXCHANGE PHASE


BF.. or BE for Reading
FF for Programming

END OF END OF
CONNECTION PHASE CONNECTION PHASE
(Break) Time-out

5/42
2 REFERENCE DOCUMENTS

2.1 I-FLAG Protocol

The I-FLAG protocol for CORUS is described in the document:


CORUS_MID COM-protocol _I-Flag_.pdf (version AA date 28/01/2010)

2.2 MODBUS RTU Protocol

The reference documents for the MODBUS protocol are:

[DG1] MODBUS Application protocol specification V1.1 (04/06/04)

[DG2] MODBUS over Serial Line V1.0 (02/12/02)

[DG3] MODBUS messaging on TCP/IP implementation guide V1.0a

These documents are available at www.modbus.org

6/42
3 Description of data access using MODBUS RTU
Data access using MODBUS RTU protocol can be split in two:
 Reading and programming CORUS parameters,
 Database reading (events, parameters and calendar and interval logs).

3.1 Access to the parameters

Addressing parameters using MODBUS is achieved using WORD format (2 bytes) and all
parameters of BYTE or FLAG format are given a complete address, meaning a WORD.

The management of MODBUS protocol in Corus requires new parameters:


MODBUS address table for parameters (one single address per parameter).
Description of the structure for database logs.
Etc..

3.1.1 Parameters
A table is giving the user the possibility to configure the MODBUS address for each single
parameter.
The table also contains the data formats and the access level.

Example:

Param_ID Param_Add_Mb Param_Format Param_Acces


0 0x0000 FLOAT R/W | LEVEL0
1 0x0002 FLOAT R | LEVEL1
2 0x0004 BYTE R/W | LEVEL 5
3 0x0005 FLAG R
4 0x0006 ULONG R
5 0x0008 INDEX R
6 0x000C

Rows description:

Param_ID ID-number of the parameter (same as for IFLAG protocol


mapping)
Param_Add_Mb MODBUS address
Param_Format Data format in MODBUS
Param_Acces Access (Read/Write) + access level

Param_ID is the same ID as in the IFLAG mapping file.


Param_Add_Mb is the address of the first Word of the parameter.
Param_Format can be used to include adaptation mechanisms to the format required by the user.
Example: Conversion of an INDEX to ULONG (integer part).

7/42
Param_Acces indicates if the parameter is only accessible for reading or reading/programming,
and defines the access level.

8/42
4 Database logs reading
The MODBUS address table doesnt give access to all data at the same time. So, a specific
mechanism has been defined to read the database.
The basic idea is to have a part of the database (the most recent) always visible with direct access.
The size of this part is configurable.
The rest of the database remains accessible with two modes Pages and Frames.

The Frames mode allows the reading of a restricted address zone (125 words) and uses the same
principle as the reading with the IFLAG protocol.

The Pages mode gives access to the integrality of the address zone reserved for database that is
split in pages. The number of pages must be specified to load the corresponding data into the
visible part.

4.1 Definition of the address zones for database logs


Each log has a structure defining its direct addressable zone. The format of this structure is the
following:

Name Function Type


DB_Start_Add Starting address of the database R/W WORD
DB_Nb_Record Number of directly visible records R/W WORD
DB_Mask_Data Mask for the fields of the database (option) R/W ULONG
DB_Record_Size Size of records in words R BYTE

These structures are parameters that can be accessed via MODBUS.

Example: The interval database must present 720 records, composed by all data of the database
(with DIM mask full), starting from address 0x10000.
The structure of the database is the following:

Name Value
DB_Start_Add 0x10000
DB_Nb_Record 720
DB_Mask_Data 0xFFFF
DB_Record_Size 38

Consequently, the MODBUS memory space reserved for the interval database will be:
0x10000  0x16AE0

The minimal size of the memory space for a log is one record.
Warning: The address space must contain at least 252 bytes (126 words) to enable the reading in
Frame mode.

9/42
4.2 Reading with direct access
If data are in the direct access space, the reading is done with the standard MODBUS commands
for the reading of registers (0x03).
A locking mechanism is activated to block the recording of new data in the database during the
reading. The mechanism is activated immediately after receiving the reading request for this
specific space, and remains active until the reading is completed for this space.

4.3 Reading with extended access

As previously indicated, there are two modes of extended access:

 Frame Mode
 Page Mode

These two modes are accessible through a programming command having the following structure:

Name Function RW Type


Num_DB Database number RW WORD
Mode Reading mode RW WORD
Num_Page Page number RW WORD
Num_Start/Date_Start Number and date of the first record RW ULONG
Num_End/Date_End Number and date of the last record RW ULONG
Total_Nb_Record Total number of records associated to the R WORD
reading request
Nb_Record Number of records on the current page R WORD
Nb_Pages Number of pages on the request R WORD
Record_Size Size of one record R WORD

Num_DB
Bit 7 6 5 4 3 2 1 0
Database number

Num_DB Database Logs


0 Interval
1 Hourly
2 Daily
3 Monthly
4 Events
5 Parameters

10/42
Mode
Bit 7 6 5 4 3 2 1 0
Current session RFU1 Date/Num Reading mode

Bit 15 14 13 12 11 10 9 8
Error code

Current session = If the value of this bit is 0, the lock of the database is activated.
During the reading of the other pages, this bit should be set to 1 to maintain the
coherence between pages.

Error code = Following a programming command of the structure (reading command of


database), its possible to detect if the command is correct by reading this field again.

The following error codes are managed:

Code Error
0 OK
30 Empty selection (Database empty or error on start/end)
31 Programming command of a database structure not correct (num_db, type, etc..)
32 PAGE: Page number not included on selected range
64 FRAME : No previous frame (start_add on frame 0)
65 FRAME : size superior to 124
66 FRAME : address different from start_add or start_add+1
67 FRAME : end of selection
(*)
Data are available but do not cover the total requested range.

Date/Num = Reading mode


0  Date = filter on Date_Start and Date_End
1 Num = filter on Num_Start and Num_End

Reading mode
Used to select the Page or Frame mode
Reading mode
0 Direct mode (End of reading UNLOCKED)
1 Page mode
2 Frame mode
3 RFU
4 RFU
5 RFU
6 RFU
7 RFU

1
Reserved for future use

11/42
Num_Page
Number of the page to be read.

Num_Start/Date_Start
Number of the first record or starting date of the selection.

Num_End/Date_End
Number of the last record or ending date of the selection.

12/42
4.3.1 Frame mode

The principle of the frame mode is to read the complete database by frames of 246 bytes, always
on the same MODBUS address. It allows the reduction of the direct addresses space of a database
to its minimal size and to be able to read all data.

Frame 0
Frame 1
Frame 2

Direct
Frame 3
Frame 4 Frame X
Frame 5 MODBUS
addresses space
Hidden zone

Frame N

The principle is the following:

1) Programming of the reading structure (Selection request).

This action defines the zone of the database that we wish to read.

Name Function
Num_DB Number of the data base
Mode 0x02
Num_Page Not used
Num_Start/Date_Start Number or date of the first record
Num_End/Date_End Number or date of the last record

13/42
2) Check of the reading structure.

Name Function
Num_DB Number of the database
Mode Reading Mode
Num_Page 0x00
Num_Start/Date_Start Number or date of the first record
Num_End/Date_End Number or date of the last record
Total_Nb_Record Total number of records associated to the
reading request
Nb_Record Not used
Nb_Pages Number of frames on the request
Record_Size Size of one record

The error code of the mode determines if the previous command has been acknowledged
correctly.

The Total_Nb_Record gives the total number of records selected by the request.

The Nb_Pages gives the number of frames of the selection.

The Record_Size gives the size of a record.

3) Frame reading

The reading of frames is uniquely made on the first MODBUS address of the direct access space
(Start_Add) + 1.

If the reading of the frame is correct, the next reading at address Start_Add+1 automatically
increments the pointer on the database. If there is an error during the reading, the next reading is
done at the address Start_Add, and, in this case, the pointer is not incremented so that we can
read the same frame again.

14/42
The reading of the structure is the following:

PDU format only. The Header and CRC must be added.

Word 0 1 2 3 4 5 6 7 124
Num_ Data
Frame

Num_Frame : number of frame in the selection.

If the last frame is not complete, the remaining space will be filled with 0xFF.

4) Example

Case:
Interval log reading
Records numbers 10 to 100
Frame mode.

The structure describing the Interval log accessible memory is the following:

Name Value
DB_Start_Add 0x10000
DB_Nb Record 720
DB_Record_Size ( bytes ) 38

Remark: In this example the direct access to data is possible. The direct addresses area zone
contains 720 records.

 Programming of the reading request

Name Value
Num_DB 0x00
Mode 0x0A
Num_Page 0x00 ( not used )
Num_Start/Date_Start 10
Num_End/Date_End 100

15/42
 Check of the request

Name Value
Num_DB 0x00
Mode 0x0A ( no error )
Num_Page 0x00
Num_Start/Date_Start 10
Num_End/Date_End 100
Total_Nb_Record 91
Nb_Record 0x00
Nb_Pages 15
Record_Size 38

 Frames reading:

Reading of 125 words at address 0x10001

 Answer
Word 0 1 2 3 4 5 6 7 124
0 Frame 0

Reading of 125 words at address 0x10001


 Answer
Word 0 1 2 3 4 5 6 7 124
1 Frame 1

Reading of 125 words at address 0x10001


 Answer
Word 0 1 2 3 4 5 6 7 124
1 Frame 1

Reading of 125 words at address 0x10001


 Answer
Word 0 1 2 3 4 5 6 7 124
2 Frame 2

 Programming of the end of reading request:

Name Value
Num_DB 0x00
Mode 0x00

This operation returns to the direct access mode.

16/42
4.3.2 Page Mode

The reading of the database is made on the complete associated memory space.
The access to the non accessible data via direct reading is possible through pages.

Page 0

Direct
Page 1
MODBUS
Addresses
space
Page 2
Non accessible space

Page 4
Page 3

Page 4

The process is the following:

1) Programming of the reading structure (Selection request).

This action defines the area of the database that we wish to read. By doing this, the database is
locked and new incoming data cant modify the selected area.

Name Function
Num_DB Database number
Mode 0x01
Num_Page 0x00
Num_Start/Date_Start Number or date of the first record
Num_End/Date_End Number or date of the last record

17/42
2) Check of the reading structure.

The check is not mandatory but gives the size of the zone covered by the request.

Name Function
Num_DB Number of the database
Mode Reading mode
Num_Page 0x00
Num_Start/Date_Start Number or date of the first record
Num_End/Date_End Number or date of the last record
Total_Nb_Record Total number of records associated to the
reading request
Nb_Record Number of records in a page
Nb_Pages Number of pages in the request
Record_Size Size of a record

The error code of the Mode determines if the previous command has been acknowledged
correctly.

The Total_Nb_Record gives the total number of records selected by the request.

The Nb_Record gives the number of records in a page.

The Nb_Pages gives the number of pages in the selection.

The Record_Size gives the size of a record.

3) Pages reading

Once that the selection is done, the reading of data is made through standard MODBUS frames
(register 0x03).

To change the page, the user must send a selection request where the bit Current Session of mode
field is set to TRUE. The number of the new page is in field Num_Page of the same request.
After sending a request to change the page, its possible to read again and check the field
Nb_Record to know the number of records contained in the page.
The sequence for reading the pages has no importance. The same applies for readings inside a
page.

18/42
4) Example

Case:
Interval log reading
Records 0 to 1000
Page mode

The structure describing the Interval log accessible memory is the following:

Name Value
DB_Start_Add 0x10000
DB_Nb Record 128
DB_Record_Size ( bytes ) 38

The real size of the Interval log is:


Number of records 3200
Size (bytes) 121600
Size of a page (bytes) 4864

 Programming of the reading request

Name Value
Num_DB 0x00
Mode 0x01
Num_Page 0x00 ( not used )
Num_Start/Date_Start 0
Num_End/Date_End 1000

 Check of the request

Name Value
Num_DB 0x00
Mode 0x01 ( no error )
Num_Page 0x00
Num_Start/Date_Start 0
Num_End/Date_End 1000
Total_Nb_Record 1001
Nb_Record 128
Nb_Pages 8
Record_Size 38

19/42
 Reading of a page
Reading of N (1 N 125) words at address Add_Read = 0x10000

 Answer
Word 0 1 2 3 4 5 6 7 N
Address_real from 0x0000 to 0x0000+N

Reading of M (1 M 125) words at address Add_Read = 0x10000+N+1



 Answer
Word 0 1 2 3 4 5 6 7 N
Address_real from 0x0000+N+1 to 0x0000+N+M+1

The real address is the position of data within the selection done on the database.
Address_real =
(Num_Page x DB_Nb Record x (DB_Record_Size/2)) + Add_Read - DB_Start_Add.

Add_Read = Reading address of MODBUS frame.

 Page change (Page 1)

Name Value
Num_DB 0x00
Mode 0x81
Num_Page 0x01

 Reading of page 0x01


Reading of N (1 N 125) words at address Add_Read = 0x10000

 Answer
Word 0 1 2 3 4 5 6 7 N
Address_real from 0x0980 to 0x0980+N

Reading of M (1 M 125) words at address Add_Read = 0x10000+N+1



 Answer
Word 0 1 2 3 4 5 6 7 N
Address_real from 0x0980+N+1 to 0x0980+N+M+1

 Programming of end of reading request

Name Value
Num_DB 0x00
Mode 0x00
This operation restores the direct access (page 0).

20/42
5 Special Functions
The MODBUS table of addresses is user-configurable. For this reason, mistakes made on the table
may affect readings using MODBUS and even make these readings impossible. In order to
overcome any possible problem, some special functions have been added to the protocol:
Address reading of the addresses table.
Priority to the addresses table in case of address discrepancy (overlap).
Possibility to reset the table to default settings.

5.1 Address reading of the addresses table

The addresses table is a table containing all the MODBUS addresses of the parameters used in
CORUS. The table also contains its own address. If the table must be modified in case of problem,
two information items are needed:
 The MODBUS address of the table.
 The position of this address within the table.

Its possible to access these data with a reading request of two WORD at the address 0xFFFF. This
operation is normally prohibited as we are outside the valid range of addresses for MODBUS, but
this limits the conflicts with other existing applications.

Reading request
0x01 0x03 0xFF 0xFF 0x00 0x00 0xC4 0x2F

Answer
Id XCMD0 Add XCMD0
0x01 0x03 0x00 0x00 0xF2 0x04 0x85 0x98 0xA3

Remark: The values are coded in little endian .


ID-Number XCMD0 = 0xF2 (Dec. 242 ).
Add XCMD0 = 0x485 (Dec. 1157 ).

5.2 Priority of the addresses table


Its possible to know the status of the MODBUS memory mapping by reading the parameter
XCMDF.
XCMDF = 1  Mapping OK
XCMDF = 0  Overlap in addresses

In case of overlap (XCMDF = 0), the priority for the address is given to the addresses table.

21/42
5.3 Reset of the addresses table

In case of a major problem concerning coherence on the MODBUS addresses, its possible to reset
the addresses to default values.

To do so, the user must program the value 0xDD100867 to the address 0xFFFF.

22/42
ANNEX 1: CORUS main parameters format and description
Name of the parameter : XPCFV (non-MID versions)
Default ID n of the parameter : 0x00
Description : Main firmware version
Type :R
Format / Size : String / 8 bytes
Remark/ Example : Ver0.71

Name of the parameter : XPCKV (MID versions only)


Default ID n of the parameter : 0x00
Description : Kernel firmware version
Type :R
Format / Size : String / 8 bytes
Remark/ Example : Ker1.01

Name of the parameter : XKEP (non-MID versions)


Default ID n of the parameter : 0x5E
Description : Parameters mapping version
Type :R
Format / Size : String / 8 bytes
Remark/ Example : FL_b0040

Name of the parameter : PVER (MID versions only)


Default ID n of the parameter : 0x5E
Description : Parameters mapping version
Type :R
Format / Size : String / 8 bytes
Remark/ Example : FL_M5A04

Name of the parameter : MVW1


Description : Input pulse weight
Type : R/W
Format / Size : Float / 4 bytes
Structure : possible values: 0.001 / 0.01 / 0.1 / 1 / 10 / 100 / 1000

Name of the parameter : MCF


Description : Compressibility formula
Type : R/W
Format / Size : BYTE / 1 byte
Structure:
0 : AGANX19 Standard
1 : S-GERG88
2 : PT
3 : AGANX19 modified
4 : PT (Enagas)
5:T
6 : 16 Coefficients
7 : AGA8 (Gross Method 2)
8 : AGANX19 modified (SNAM)
9 : AGA8 (Detailed Method)

Name of the parameter : MCRP


Description : Base pressure
Type : R/W
Format / Size : Float / 4 bytes
Structure : To be programmed in the selected pressure unit (XUP)

23/42
Name of the parameter : MCRT
Description : Base temperature
Type : R/W
Format / Size : Float / 4 bytes
Structure : To be programmed in Kelvin

Name of the parameter : MPTL


Description : Pressure low threshold (Pmin)
Type : R/W
Format / Size : Float / 4 bytes
Structure : To be programmed in the selected pressure unit (XUP)

Name of the parameter : MPTH


Description : Pressure high threshold (Pmax)
Type : R/W
Format / Size : Float / 4 bytes
Structure : To be programmed in the selected pressure unit (XUP)

Name of the parameter : MTTL


Description : Temperature low threshold (Tmin)
Type : R/W
Format / Size : Float / 4 bytes
Remark : To be programmed in the selected temperature unit (XUT)

Name of the parameter : MTTH


Description : Temperature high threshold (Tmax)
Type : R/W
Format / Size : Float / 4 bytes
Remark : To be programmed in the selected temperature unit (XUT)

Name of the parameter : XOM1


Description : On/Off Output n1 : configuration & operation mode
Type : R/W
Format / Size : BYTE / 1 byte
Structure :
0 : OFF
1 : Unconverted Volume (Pulse)
2 : Converted Volume (Pulse)
3 : Alarm limited
4 : Alarm standard
5 : 4/20 mA (available only if CORUS is external powered supply => XSM=1)
6 : 1Hz mode
7 : Completion period mode
8 : Converted Volume (Pulse) with retransmission of Converted Volume based on backup values when under alarm
(MID only)

Name of the parameter : XOVW1


Description : On/Off Output n1 : Pulse weight when output n1 is configured in Pulse mode
Type : R/W
Format / Size : Float / 4 bytes
Structure : possible values: 0.001 / 0.01 / 0.1 / 1 / 10 / 100 / 1000
XOVW1 has to be higher or equal than MVW1

24/42
Name of the parameter : XOM2
Description : On/Off Output n2 : configuration & operation mode
Type : R/W
Format / Size : BYTE / 1 byte
Structure :
0 : OFF
1 : Unconverted Pulse
2: Converted Pulse
3 : Alarm limited
4 : Alarm standard
5 : 4/20 mA (available only if CORUS is external powered supply => XSM=1)
6 : 1Hz mode
7 : Completion period mode
8 : Converted Volume (Pulse) with retransmission of Converted Volume based on backup values when under alarm
(MID only)

Name of the parameter : XOVW2


Description : On/Off Output n2 : Pulse weight when output n2 is configured in Pulse mode
Type : R/W
Format / Size : Float / 4 bytes
Structure : possible values: 0.001 / 0.01 / 0.1 / 1 / 10 / 100 / 1000
XOVW2 has to be higher or equal than MVW1

Name of the parameter : XPCD


Description : CORUS manufacturing date
Type :R
Format / Size : DATE/ 4 bytes
Remark : Programmed by the factory test bench

Name of the parameter : XPCFD


Description : Date of the main firmware version
Type :R
Format / Size : DATE/ 4 bytes
Structure : Included inside CORUS firmware

Name of the parameter : XPCKD (MID version only)


Description : Date of the kernel firmware version
Type :R
Format / Size : DATE/ 4 bytes
Structure : Included inside CORUS firmware

Name of the parameter : XIM


Description : LF Inputs (On/Off 1, On/Off 2, Tamper) and switches states
Type : R/W
Format / Size : BYTE / 1 byte
Structure : Mask for configuring binary inputs. The bits of this mask are assigned as follows:

00000001 : On/Off 1 used if bit set


00000010 : Normal On/Off state = High
00000100 : On/Off 2 used if bit set
00001000 : Normal On/Off 2 state = High
00010000 : Tampering input used if bit set
00100000 : Normal tampering state = High

Name of the parameter : XDZ


Description : Compressibility factor display mode
Type : R/W
Format / Size : Boolean / 1 byte
Structure :
0 : Display of Z/Zb
1 : Display of Zb/Z

25/42
Name of the parameter : XUP
Description : Pressure unit
Type : R/W
Format / Size : BYTE / 1 byte
Structure :
0 : bar
1 : psi
2 : kPa

Name of the parameter : XUT


Description : Temperature unit
Type : R/W
Format / Size : BYTE / 1 byte
Structure :
0 : C
1 : F

Name of the parameter : XUV


Description : Volume unit
Type : R/W
Format / Size : BYTE / 1 byte
Structure :
0 : m3
1 : ft3

Name of the parameter : XUN


Description : Converted volume unit ; Allows to display a letter (usually N or S before the volume unit)
Type : R/W
Format / Size : BYTE / 1 byte
Structure : ASCII character
N : 0x4E
S : 0x53
: 0x20

Name of the parameter : XUE


Description : Unit of the Calorific Value (used only with S-GERG formula)
Type : R/W
Format / Size : BYTE / 1 byte
Structure :
0 : kW.h
1 : MJ

Name of the parameter : XSM


Description : Power supply mode
Type : R/W
Format / Size : Boolean / 1 byte
Structure :
0 : Battery
1 : External power supply

Name of the parameter : XDC


Description : Current Date and Time
Type : R/W
Format / Size : DATE / 4 bytes
Structure : see DATE format in Annex 5
CORUS checks the conformity of its date (leap year,)

Name of the parameter : XSBR


Description : Battery autonomy counter
Type : R/W
Format / Size : WORD / 2 bytes
Structure : Expressed in days

26/42
Name of the parameter : XTSM
Description : Winter/Summer time management mode
Type : R/W
Format / Size : WORD / 2 bytes
Structure :
0 : Disabled
1 : Auto
2 : Manual

Name of the parameter : XIS


Description : Digital Inputs & switches status
Type :R
Format / Size : BYTE / 1 byte
Structure : Mask

Bit 0 : status of Prog. Switch ( 0 : On / 1 : Off)


Bit 1 : rfu
Bit 2 : status of On/Off Input n1 ( 0 : Closed / 1 : Open)
Bit 3 : status of On/Off Input n2 ( 0 : Closed / 1 : Open)
Bit 4 : rfu
Bit 5 : status of Tamper Input n1 ( 0 : Closed / 1 : Open)
Bit 6 : status of Client. Switch ( 0 : On / 1 : Off)
Bit 7 : rfu

Name of the parameter : ARS


Description : Standard alarms reset
Type :W
Format / Size : Boolean / 1 byte
Structure : 1 for reset

Name of the parameter : ARM


Description : Metrological alarms reset
Type :W
Format / Size : Boolean / 1 byte
Structure : 1 for reset

Name of the parameter : APL to AVC


Description : Alarm
Type :R
Format / Size : ALARM / 22 bytes
Structure : ALARM type described in Annex 5

Name of the parameter : AXA


Description : Active alarms status word
Type :R
Format / Size : AL_MASK / 4 bytes
Structure : AL_MASK type described in Annex 5

Name of the parameter : AXM


Description : Memorized alarms status word
Type :R
Format / Size : AL_MASK / 4 bytes
Structure : AL_MASK type described in Annex 5

Name of the parameter : DIL


Description : Duration of an interval of the Database Interval log
Type : R/W
Format / Size : BYTE / 1 byte
Structure : Expressed in minutes; Possible values are: 1, 2, 3, 4, 5, 10, 15, 20, 30, 60

27/42
Name of the parameter : DIM
Description : Database : Interval log configuration (optional fields)
Type : R/W
Format / Size : DB_MASK / 2 bytes
Structure : DB_MASK type described in section 2.2.3.4

Name of the parameter : DCM


Description : Database : Calendar logs configuration (optional fields)
Type : R/W
Format / Size : DB_MASK / 2 bytes
Structure : DB_MASK type described in section 2.2.3.4

Name of the parameter : DGH


Description : Gas Hour
Type : R/W
Format / Size : BYTE / 1 byte
Structure : From 0 to 23

Name of the parameter : DGD


Description : Gas Day
Type : R/W
Format / Size : BYTE / 1 byte
Structure : From 0 to 31 ; If Prog.value > last day of the current month, the gas day is forced by CORUS to be equal to the last
day of the month

Name of the parameter : DM


Description : Database activation
Type : R/W
Format / Size : Boolean / 1 byte
Structure 0 : Disabled
1 : Enabled

Name of the parameter : DRC


Description : Database: Calendar logs reset
Type :W
Format / Size : Boolean / 1 byte
Structure : 1 for reset

Name of the parameter : DRI


Description : Database: Interval log reset
Type :W
Format / Size : Boolean / 1 byte
Structure : 1 for reset

Name of the parameter : XIBM


Description : Index incrementation mode
Type : R/W
Format / Size : BYTE / 1 byte
Structure : Structure described in Annex 6

Name of the parameter : MVRI


Description : Unconverted Index
Type : R/W
Format / Size : INDEX / 8 bytes
Structure : INDEX format described in Annex 5

Name of the parameter : MVBI


Description : Converted Index
Type : R/W
Format / Size : INDEX / 8 bytes
Structure : INDEX format described in Annex 5

28/42
Name of the parameter : MVRC
Description : Unconverted counter under alarm
Type : R/W
Format / Size : INDEX / 8 bytes
Structure : INDEX format described in Annex 5

Name of the parameter : MVBC


Description : Converted counter (totalisation with backup values when P or T alarm)
Type : R/W
Format / Size : INDEX / 8 bytes
Structure : INDEX format described in Annex 5

Name of the parameter : MFRG


Description : Unconverted flow-rate
Type :R
Format / Size : Float / 4 bytes
Structure : -

Name of the parameter : MFBG


Description : Converted flow-rate
Type :R
Format / Size : Float / 4 bytes
Structure : -

Name of the parameter : MTG


Description : Gas Temperature
Type :R
Format / Size : Float / 4 bytes
Structure : Expressed in the selected unit (XUT)

Name of the parameter : MPG


Description : Gas Pressure
Type :R
Format / Size : Float / 4 bytes
Structure : Expressed in the selected unit (XUP)

Name of the parameter : MP2G


Description : Gas Pressure P2
Type :R
Format / Size : Float / 4 bytes
Structure : Expressed in the selected unit (XUP)

Name of the parameter : MCM


Description : Conversion factor
Type :R
Format / Size : Float / 4 bytes
Structure : -

Name of the parameter : MZR


Description : Compressibility factor (Zb/Z or Z/Zb according XDZ)
Type :R
Format / Size : Float / 4 bytes
Structure :-
Note : MZR is the compressibility factor available as a Read-only parameter. When, T or PT conversion is used,
compressibility has to be introduced as a constant through parameter MZF.

29/42
Name of the parameter : XSC
Description : Optional slot configuration
Type : R/W
Format / Size : Byte / 1 bytes
Structure :
Bit0  Enable
Bit1, 2, 3  Type
Bit4, 5, 6, 7 Data

Enable: Slot activation


Type: Type of board  0 : PSTN Modem (Auto)
1 : PSTN Modem (CMX869)
2 : PSTN Modem (CMX869A)
3 : RS-485 board
4 : Second pressure P2 board

30/42
ANNEX 2: Parameters ID Number list
NAME DESCRIPTION R/W TYPE UNIT

ELEMENT SIZE

NUMBER OF

MAX VALUE
MIN VALUE
ELEMENTS
MCF conversion formula R/W BYTE 1 1 0 9
MTG gas temperature R FLOAT 4 1
MTSS temperature sensor serial number R/W STRING 10 1
MTTL temperature low threshold R/W FLOAT 4 1 -45 85
MTTH temperature high threshold R/W FLOAT 4 1 -45 85
temperature warning thresholds
MTCTF R/W FLOAT 4 1
activation
MTCTL temperature low warning threshold R/W FLOAT 4 1 -45 85
MTCTH temperature high warning threshold R/W FLOAT 4 1 -45 85
MTSC[0..3] temperature sensor model coefficients R/W FLOAT 4 4 -9999 9999
MXBE back-up values enable flag R/W FLAG 1 1
MTB[0..11] temperature back-up values R/W FLOAT 4 12 -40C 80C XUT
MXBA back-up values auto-update flag R/W FLAG 1 1
MPG gas pressure R FLOAT 4 1 XUP
MPF gas fixed relative pressure R/W FLOAT 4 1 0bar 90 bar XUP
MPA converter's altitude R/W FLOAT 4 1 0 8000 m
MPST pressure sensor serial type R/W BYTE 1 1
MPSS pressure sensor serial number R/W STRING 10 1
MPSC[0..15] pressure sensor model coefficients R/W FLOAT 4 16 --9999 9999
MPTL pressure low threshold R/W FLOAT 4 1 0bar 90bar XUP
MPTH pressure high threshold R/W FLOAT 4 1 0bar 90bar XUP
MPCTF pressure warning thresholds activation R/W FLAG 1 1
MPCTL pressure low warning threshold R/W FLOAT 4 1 0bar 90bar XUP
MPCTH pressure high warning threshold R/W FLOAT 4 1 0bar 90bar XUP
MP2SS pressure P2 sensor serial number R/W STRING 10 1
MP2ST pressure P2 sensor serial type R/W BYTE 1 1
pressure P2 warning thresholds
MP2CTF R/W FLAG 1 1
activation
MP2TL pressure P2 low threshold R/W FLOAT 4 1 0bar 90bar XUP
MP2TH pressure P2 high threshold R/W FLOAT 4 1 0bar 90bar XUP
MP2SC[0..15] pressure P2 sensor model coefficients R/W FLOAT 4 16 -9999 9999
MP2G gas pressure P2
MPB pressure back-up value R/W FLOAT 4 1 0bar 90bar XUP
MZR gas compressibility ratio R FLOAT 4 1
MZF Fixed gas compressibility ratio R/W FLOAT 4 1 0 80
XDM Selection of display mode R/W BYTE 1 1 1 255
Flag display remaining '0' at the left of
XD0 R/W FLAG 1 1
index
compressibility ratio (display of Z/Zo or
XDZ R/W FLAG 1 1
Zo/Z)
XDMP Permanent display R/W FLAG 1 1
MZDR gas relative density under normal R/W FLOAT 4 1 0 5

31/42
conditions
gas superior calorific value under
MZP R/W FLOAT 4 1 5,27 kW.h 14 kW.h XUE
normal conditions
MZCO2 gas CO2 mole fraction R/W FLOAT 4 1 0 30
MZN2 gas N2 mole fraction R/W FLOAT 4 1 0 80
MZH2 gas H2 mole fraction R/W FLOAT 4 1 0 10
MZAP AGA8 reference pressure R/W FLOAT 4 1 0.1 bar 90 bar XUP
MZAT AGA8 reference temperature R/W FLOAT 4 1 233 344 K
MZC[0..15] gas Z array coefficients R/W FLOAT 4 16 -100 100
MCM gas conversion factor R FLOAT 4 1
MCP conversion period R/W BYTE 1 1 1 30 s
MCRP base pressure R/W FLOAT 4 1 0.1 bar 90 bar XUP
MCRT base temperature R/W FLOAT 4 1 233 344 K
MCAF0 Methane R/W FLOAT 4 1 70 100 %
MCAF1 Nitrogen R/W FLOAT 4 1 0 20 %
MCAF2 Carbon Dioxide R/W FLOAT 4 1 0 20 %
MCAF3 Ethane R/W FLOAT 4 1 0 10 %
MCAF4 Propane R/W FLOAT 4 1 0 3.5 %
MCAF5 Water R/W FLOAT 4 1 0 0.015 %
MCAF6 Hydrogen Sulfide R/W FLOAT 4 1 0 0.05 %
MCAF7 Hydrogen R/W FLOAT 4 1 0 10 %
MCAF8 Carbon Monoxide R/W FLOAT 4 1 0 3 %
MCAF9 Oxygen R/W FLOAT 4 1 0 0.05 %
MCAF10 i-Butane R/W FLOAT 4 1 0 1.5 %
MCAF11 n-Butane R/W FLOAT 4 1 0 1.5 %
MCAF12 i-Pentane R/W FLOAT 4 1 0 0.5 %
MCAF13 n-Pentane R/W FLOAT 4 1 0 0.5 %
MCAF14 n-Hexane R/W FLOAT 4 1 0 0.1 %
MCAF15 n-Heptane R/W FLOAT 4 1 0 0.1 %
MCAF16 n-Octane R/W FLOAT 4 1 0 0.05 %
MCAF17 n-Nonane R/W FLOAT 4 1 0 0.05 %
MCAF18 n-Decane R/W FLOAT 4 1 0 0.05 %
MCAF19 Helium R/W FLOAT 4 1 0 0.5 %
MCAF20 Argon R/W FLOAT 4 1 0 0.05 %
MZPA Air Pressure R/W FLOAT 4 1 0bar 90bar P
Index and Counters incrementation
XIBM R/W BYTE 1 1 0 3
mode
conversion factor alarms activation
MCTF R/W FLAG 1 1
flag
MCTL conversion factor low threshold R/W FLOAT 4 1 0,001 1000
MCTH conversion factor high threshold R/W FLOAT 4 1 0,001 1000
MVRI unconverted index R/W INDEX 8 1 0 99999999,999 XUV
MVBI converted index R/W INDEX 8 1 0 99999999,999 XUV
MVRC unconverted counter under alarm R/W INDEX 8 1 0 99999999,999 XUV
MVBC converted counter under alarm R/W INDEX 8 1 0 99999999,999 XUV
MVW1 input pulse weight R/W FLOAT 4 1 0,001 1000 XUV/pulse
MVBI_C converted consumption R ULONG 4 1 0 4294967295 XUV
converted consumption measurement
MVBI_CP R/W BYTE 1 1 0 4
period
MVBI_CT converted consumption high threshold R/W ULONG 4 1 0 4294967295 XUV
pulse inputs coherence control
XICM R/W FLAG 1 1
activation flag

32/42
XICC pulse inputs coherence counter R WORD 2 1
pulse inputs coherence counter
XICT R WORD 2 1
running time
XICH pulse inputs coherence high threshold R/W WORD 2 1 0 65535
XICP pulse inputs coherence interval period R/W WORD 2 1 1 days 1825 days days
instantaneous unconverted raw flow-
MFRG R FLOAT 4 1 XUV /h
rate
MFBG instantaneous converted flow-rate R FLOAT 4 1 XUV /h
unconverted flow-rate alarms
MFRTF R/W FLAG 1 1
activation flag
converted flow-rate alarms activation
MFBTF R/W FLAG 1 1
flag
MFRTL unconverted flow-rate low threshold R/W FLOAT 4 1 0 999999 XUV /h
MFRTH unconverted flow-rate high threshold R/W FLOAT 4 1 0 999999 XUV /h
MFBTL converted flow-rate low threshold R/W FLOAT 4 1 0 999999 XUV /h
MFBTH converted flow-rate high threshold R/W FLOAT 4 1 0 999999 XUV /h
DM calendar and interval logs activation R/W FLAG 1 1
DIL database interval value R/W BYTE 1 1 1 60
Interval log configuration (optional
DIM R/W WORD 2 1 0 65535
fields)
DGH gas hour R/W BYTE 1 1 0 23 h
DGD gas day R/W BYTE 1 1 1 31
DRC Calendar logs reset W FLAG 1 1
DRI Interval log reset W FLAG 1 1
Calendar logs configuration (optional
DCM R/W WORD 2 1 0 65535
fields)
ATL temperature low threshold alarm R ALARM 22 1
ATH temperature high threshold alarm R ALARM 22 1
ATF temperature sensor failure alarm R ALARM 22 1
APL pressure low threshold alarm R ALARM 22 1
APH pressure high threshold alarm R ALARM 22 1
APF pressure sensor failure alarm R ALARM 22 1
AIC pulse inputs coherence alarm R ALARM 22 1
AIT tamper input coherence alarm R ALARM 22 1
AIO1 on/off input #1 alarm R ALARM 22 1
AIO2 on/off input #2 alarm R ALARM 22 1
ACL conversion factor low threshold alarm R ALARM 22 1
ACH conversion factor high threshold alarm R ALARM 22 1
converted consumption threshold
AVC R ALARM 22 1
alarm
unconverted flow-rate low threshold
AFRL R ALARM 22 1
alarm
unconverted flow-rate high threshold
AFRH R ALARM 22 1
alarm
converted flow-rate low threshold
AFBL R ALARM 22 1
alarm
converted flow-rate high threshold
AFBH R ALARM 22 1
alarm
ASB battery life alarm R ALARM 22 1
ASE external power supply alarm R ALARM 22 1
AP2L pressure P2 low threshold alarm R ALARM 22 1
AP2H pressure P2 high threshold alarm R ALARM 22 1
AP2F pressure P2 sensor failure alarm R ALARM 22 1

33/42
APCL pressure low warning threshold alarm R ALARM 22 1
APCH pressure high warning threshold alarm R ALARM 22 1
temperature low warning threshold
ATCL R ALARM 22 1
alarm
temperature high warning threshold
ATCH R ALARM 22 1
alarm
ACRCI index CRC alarm R ALARM 22 1
ACRCP parameters CRC alarm R ALARM 22 1
ACRCK kernel CRC alarm R ALARM 22 1
AMETT metrological task alarm R ALARM 22 1
XRAM remote alarm activation mask RW AL_MASK 4 1 0 0x03FFFFFF
XRAP remote alarm port RW BYTE 1 1 0 2
XRAA remote alarm algorithm RW FLAG 1 1
XRAR remote alarm repetition number RW BYTE 1 1 1 6
XRAT remote alarm delay between two calls RW BYTE 1 1 1 8
XRAH remote alarm hourly repeat RW FLAG 1 1
XRAN0 remote alarm telephone number 0 RW STRING 1 21
XRAN1 remote alarm telephone number 1 RW STRING 1 21
XRAN2 remote alarm telephone number 2 RW STRING 1 21
XRAF remote alarm activation flag RW FLAG 1 1
XRAS remote alarm acknowledgment RW BYTE 1 30 0 7
AXA active alarms status word R AL_MASK 4 1
AXM memorized alarms status word R AL_MASK 4 1
K_AXA kernel active alarms status word R AL_MASK 4 1
K_AXM kernel memorized alarms status word R AL_MASK 4 1
ARM reset metrological alarms W FLAG 1 1
ARS reset standard alarms W FLAG 1 1
K_ARM reset metrological alarms kernel W FLAG 1 1
K_ARS reset standard alarms kernel W FLAG 1 1
XIM inputs mode R/W BYTE 1 1 0 0x3F
XIS inputs status R BYTE 1 1
K_XIS kernel inputs status R BYTE 1 1
XOM1 on/off output #1 operation mode R/W BYTE 1 1 0 8
XOM2 on/off output #2 operation mode R/W BYTE 1 1 0 8
XOVW1 volume output #1 pulse weight R/W FLOAT 4 1 0,001 100 XUV/pulse
XOVW2 volume output #2 pulse weight R/W FLOAT 4 1 0,001 100 XUV/pulse
XOVC1 volume output #1 time closed R/W BYTE 1 1 1 255 ms
XOVC2 volume output #2 time closed R/W BYTE 1 1 1 255 ms
XOAM1 on/off output #1 alarm mask R/W AL_MASK 4 1 0 4294967295
XOAM2 on/off output #2 alarm mask R/W AL_MASK 4 1 0 4294967295
XOAC1 alarm output #1 time closed R/W BYTE 1 1 1 255 min
XOAC2 alarm output #2 time closed R/W BYTE 1 1 1 255 min
XODD1 4-20mA output #1 tracked data R/W BYTE 1 1 0 3
XODD2 4-20mA output #2 tracked data R/W BYTE 1 1 0 3
XODL1 4-20mA output #1 tracked data level R/W FLOAT 4 1 -999999 999999
@4mA
XODL2 4-20mA output #2 tracked data level R/W FLOAT 4 1 -999999 999999
@4mA
XODH1 4-20mA output #1 tracked data level R/W FLOAT 4 1 -999999 999999
@20mA
XODH2 4-20mA output #2 tracked data level R/W FLOAT 4 1 -999999 999999

34/42
@20mA
XOPC0 end of period output #1 time closed R/W BYTE 1 1 1 60 s
XOPM0 end of period output #1 period R/W BYTE 1 1 0 3
XOPC1 end of period output #2 time closed R/W BYTE 1 1 1 60 s
XOPM1 end of period output #2 period R/W BYTE 1 1 0 3
XDC current date and time R/W DATE 4 1
XTSM winter/summer time management R/W BYTE 1 1 0 2
mode
XTSS summer time switching date/time R/W DATE 4 1
XTSW winter time switching date/time R/W DATE 4 1
XNSC Next summer date/time change R DATE 4 1
XNWC Next winter date/time change R DATE 4 1
XPDC1 Customer data#1 R/W STRING 32 1
XPDC2 Customer data#2 R/W STRING 32 1
XPDC3 Customer data#3 R/W STRING 32 1
XPDC4 Customer data#4 R/W STRING 9 1
XPMS Associated meter serial number R/W STRING 20 1
XPCI Converter commissioning date R/W DATE 4 1
XPDB Free Access Buffer R/W STRING 250 1
XPCS Converter serial number R STRING 20 1
XPCD Manufacturing date R DATE 4 1
XPCFV Main firmware version R STRING 8 1
XPCFD Date of the main firmware version R DATE 4 1
XPCMV Metrology firmware version R STRING 8 1
XPCMD Date of the metrology firmware R DATE 4 1
version
XPCKV Kernel firmware version R STRING 8 1
XPCKD Date of the kernel firmware version R DATE 4 1
XSM Flag configuration Battery / External R/W FLAG 1 1
XSBR Battery autonomy counter R/W WORD 2 1 0 65535 days
XUV Volume Unit R/W BYTE 1 1 0 1
XUP Pressure Unit R/W BYTE 1 1 0 2
XUT Temperature Unit R/W BYTE 1 1 0 1
XUN Standard or Normal unit for MVBI R/W BYTE 1 1 0 255
XUE Energy unit (used only for calorific R/W BYTE 1 1 0 1
value in GERG formula)
XUPR Gauge pressure Unit R/W BYTE 1 1 0 255
XSC Slot configuration R/W BYTE 1 1
XCM RS232 external modem R/W BYTE 1 1 0 255
XCAT0 RS232 external modem frame AT0 R/W STRING 40 1
XCAT1 RS232 external modem frame AT1 R/W STRING 40 1
XCAT2 RS232 external modem frame AT2 R/W STRING 40 1
XCAT3 RS232 external modem frame AT3 R/W STRING 40 1
XCATR RS232 external modem frame answer R/W STRING 8 1
AT
XCS RS232 external modem speed R/W BYTE 1 1 0 255

35/42
ANNEX 3: CORUS EVENTS LOG / Events numbers and values
Event CORUS Event Type Value Format of
Number the value
0 Reset CORUS -
1 Reset XEMICS (I/O C) -
2 Prog. Switch ON -
3 Prog. Switch OFF -
4 Client Switch ON -
5 Client Switch OFF -
6 Standard Alarms Reset -
7 Metrol. Alarms reset -
8 Database : Interval log reset -
9 Database : Calendar logs reset -
10 RFU -
11 Under alarm counters reset -
12 P_min alarm P value when alarm appears Float
13 P_max alarm P value when alarm appears Float
14 P sensor alarm -
15 T_min alarm T value when alarm appears Float
16 T_max alarm T value when alarm appears Float
17 T sensor alarm -
18 LF Coherence alarm -
19 Tamper alarm -
20 On/Off 1 alarm -
21 On/Off 2 alarm -
22 QU_min alarm Qu value when alarm appears Float
23 QU_max alarm Qu value when alarm appears Float
24 QB_min alarm Qb value when alarm appears Float
25 QB_max alarm Qb value when alarm appears Float
26 C_min alarm C value when alarm appears Float
27 C_max alarm C value when alarm appears Float
28 Battery alarm -
29 External power supply alarm -
30 Converted consumption alarm -
31 P_min alarm OFF P value when alarm disappears Float
32 P_max alarm OFF P value when alarm disappears Float
33 P sensor alarm OFF -
34 T_min alarm OFF T value when alarm disappears Float
35 T_max alarm OFF T value when alarm disappears Float
36 T sensor alarm OFF -
37 LF Coherence alarm OFF -
38 Tamper alarm OFF -
39 On/Off 1 alarm OFF -
40 On/Off 2 alarm OFF -
41 QU_min alarm OFF Qu value when alarm disappears Float
42 QU_max alarm OFF Qu value when alarm disappears Float
43 QB_min alarm OFF Qb value when alarm disappears Float
44 QB_max alarm OFF Qb value when alarm disappears Float
45 C_min alarm OFF C value when alarm disappears Float
46 C_max alarm OFF C value when alarm disappears Float

36/42
47 Battery alarm OFF -
48 External power supply alarm OFF -
49 Converted consumption alarm OFF -
50 New firmware Old firmware version number Float
51 Database activation -
52 Database deactivation - Float
53 Date/Time change Date of modification (old) Date
54 Remote Alarm Completed -
55 Remote Alarm Failure -
56 P2 lower threshold alarm ON P2 value when alarm appears Float
57 P2 higher threshold alarm ON P2 value when alarm appears Float
58 P2 sensor failure alarm ON -
59 P Low warning threshold alarm ON P value when alarm appears Float
60 P High warning threshold alarm ON P value when alarm appears Float
61 T Low warning threshold alarm ON T value when alarm appears Float
62 T High warning threshold alarm ON T value when alarm appears Float
63 P2 lower threshold alarm OFF P2 value when alarm disappears Float
64 P2 higher threshold alarm OFF P2 value when alarm disappears Float
65 P2 sensor failure alarm OFF -
66 P Low warning threshold alarm OFF P value when alarm disappears Float
67 P High warning threshold alarm OFF P value when alarm disappears Float
68 T Low warning threshold alarm OFF P value when alarm disappears Float
69 T High warning threshold alarm OFF P value when alarm disappears Float

37/42
ANNEX 4: PARAMETERS LOG / Parameters numbers

Num Param CORUS Identification Param.


name
0 Input pulse weight MVW1
1 Altitude MPA
2 Conversion formula, MCF
3 Gas absolute density MZDG
4 Air absolute density MZDA
5 Gas relative density MZDR
6 Base pressure MCRP
7 Superior calorific value MZP
8 Prd AGA8 MZAP
9 Trd AGA8 MZAT
10 Relative pressure MPF
11 Base temperature MCRT
12 Z-array coef0 MZC[0]
13 Z-array coef1 MZC[1]
14 Z-array coef2 MZC[2]
15 Z-array coef3 MZC[3]
16 Z-array coef4 MZC[4]
17 Z-array coef5 MZC[5]
18 Z-array coef6 MZC[6]
19 Z-array coef7 MZC[7]
20 Z-array coef8 MZC[8]
21 Z-array coef9 MZC[9]
22 Z-array coef10 MZC[10]
23 Z-array coef11 MZC[11]
24 Z-array coef12 MZC[12]
25 Z-array coef13 MZC[13]
26 Z-array coef14 MZC[14]
27 Z-array coef15 MZC[15]
28 CO2 MZCO2
29 H2 MZH2
30 N2 MZN2
31 Gas compressibility factor MZF
32 P min. threshold MPTL
33 P max. threshold MPTH
34 P sensor coef0 MPSC[0]
35 P sensor coef1 MPSC[1]
36 P sensor coef2 MPSC[2]
37 P sensor coef3 MPSC[3]
38 P sensor coef4 MPSC[4]
39 P sensor coef5 MPSC[5]
40 P sensor coef6 MPSC[6]
41 P sensor coef7 MPSC[7]
42 P sensor coef8 MPSC[8]
43 P sensor coef9 MPSC[9]
44 P sensor coef10 MPSC[10]
45 P sensor coef11 MPSC[11]

38/42
46 P sensor coef12 MPSC[12]
47 P sensor coef13 MPSC[13]
48 P sensor coef14 MPSC[14]
49 P sensor coef15 MPSC[15]
50 P sensor serial number MPSS
51 T probe serial number MTSS
52 T min. threshold MTTL
53 T max. threshold MTTH
54 Date and Time XDC
55 Database interval duration DIL
56 Gas hour DGH
57 Gas day DGD
58 Unconverted Index MVRI
59 Converted Index MVBI
60 Battery life-time counter XSBR
61 Methane (AGA8 Detailed) MCAF0
62 Nitrogen (AGA8 Detailed) MCAF1
63 Carbon dioxide (AGA8 Detailed) MCAF2
64 Ethane (AGA8 Detailed) MCAF3
65 Propane (AGA8 Detailed) MCAF4
66 Water (AGA8 Detailed) MCAF5
67 Hydrogen sulphide (AGA8 Detailed) MCAF6
68 Hydrogen (AGA8 Detailed) MCAF7
69 Carbon monoxide (AGA8 Detailed) MCAF8
70 Oxygen (AGA8 Detailed) MCAF9
71 i-Butane (AGA8 Detailed) MCAF10
72 n-Butane (AGA8 Detailed) MCAF11
73 i-Pentane (AGA8 Detailed) MCAF12
74 n-Pentane (AGA8 Detailed) MCAF13
75 n-Hexane (AGA8 Detailed) MCAF14
76 n-Heptane (AGA8 Detailed) MCAF15
77 n-Octane (AGA8 Detailed) MCAF16
78 n-Nonane (AGA8 Detailed) MCAF17
79 n-Decane (AGA8 Detailed) MCAF18
80 Helium (AGA8 Detailed) MCAF19
81 Argon (AGA8 Detailed) MCAF20
82 Atmospheric pressure MZPA

39/42
ANNEX 5: Formats and structures
Type Format Size Remarks
(bytes)
WORD (1) 16bits unsigned 2
E_WORD (1) 24bits unsigned 3
BYTE 8bits unsigned 1
DATE Typedef struct 4 LSB first ; Example :
{
unsigned long sc:6; 10/08/2004 16:10:27
unsigned long mn:6;
unsigned long hr:5; =>
unsigned long jo:5;
unsigned long mo:4; 0x1215029B
unsigned long an:6;
}DATE;
ULONG (1) 32 bits unsigned 4
E_ULONG (1) 40 bits unsigned 5
FLOAT Float 4
FLOAT16_1 16bits signed with a multiplier coefficient of 100 2 -1612 => -16.12
Used for temperature
in database logs only
FLOAT16_2 typedef struct 2 [e][-------m-------]
{ 15 14 0
word m:15; F =m * 10(e-3)
word e:1; Used for pressure in
}Lfloat1; database logs only
FLOAT16_3 typedef struct 2 [ e ][-------m-------]
{ 15 14 13 0
(e-1)
word m:14; F = m * 10
word e:2; Used for flow-rate in
}Lfloat2; database logs only
INDEX (1) typedef struct 8 DEC_FRAC =
{ 100000000
ulong p_int; // Integer part
ulong p_dec; // Fractional part (to be divided
by DEC_FRAC factor)
}INDEX;
INDEX9 typedef struct 9 DEC_FRAC =
{ 100000000
E_ULONG p_int; // Integer part
ulong p_dec; // Fractional part (to be divided
by DEC_FRAC factor)
}E_INDEX;
ALARM Typedef struct 22
{

40/42
byte active ; (1 if alarm in progress)
byte memo; (1 if alarm memorised)
float value ; (value when alarm appears)
DATE start ; ( date when active alarm appears)
DATE end ; (date when active alarm disappears)
DATE mstart ; (start date of last memorised
alarm
DATE mend ; (end date of last memorised
alarm)
} ALARM ;
AL_MASK Struct 4
{
unsigned long Pmin : 1;
unsigned long Pmax : 1;
unsigned long Psensor : 1;
unsigned long Tmin: 1;
unsigned long Tmax: 1;
unsigned long Tsensor: 1;
unsigned long LFCoherence:1;
unsigned long Tamper:1;
unsigned long On/Off1:1;
unsigned long On/Off2:1;
unsigned long QU_min:1;
unsigned long QU_max:1;
unsigned long QB_min:1;
unsigned long QB_max:1;
unsigned long C_min:1;
unsigned long C_max:1;
unsigned long Battery:1;
unsigned long Ext_Powerl:1;
unsigned long Conv_conso:1;
unsigned long P2min:1;
unsigned long P2max:1;
unsigned long P2sensor:1;
unsigned long Pwarning min:1;
unsigned long Pwarning max:1;
unsigned long Twarning min:1;
unsigned long Twarning max:1;
unsigned long rfu:6
} AL_MASK;
DB_STATUS typedef struct 1
{
byte al_press:1; // Pressure alarm
byte al_temp:1; // Temperature alarm
byte al_all:1; // Metrol. Alarm during whole
record

41/42
byte maj_date:1;// Date change during the
record
byte rfu:1;
byte modif_metrol:1;
byte rfu:2;
}DB_STATUS;
(1): Corresponding format expressed with INTEL format (Little Endian)

42/42

Das könnte Ihnen auch gefallen