ProSoft Technology PTQ-AFC User Manual
Page 231
PTQ-AFC ♦ Modicon Quantum Platform
Reference
Liquid and Gas Flow Computer for Hydrocarbon Products
User Manual
ProSoft Technology, Inc.
Page 231 of 259
June 23, 2011
11.6 Archive Data Format
There are 3 columns associated with each archive data:
Column
Description
Ofs
Shows the offset location of the data in each archive. The maximum offset value
will depend on the Record Size value you configured.
If the value has a "+" value (for example 0+) it means that the data occupies 2
words of data.
Reg
Shows the Primary Modbus Slave Address of the data. This is a meter-relative
address. For example: a Reg value of 890+ for meter 1 would be equivalent to
Modbus addresses 8890 and 8891.
Description
Data Description.
11.6.1 Timestamp Date and Time Format
The date and time format used in the archives is stored in a highly compressed
form in order to represent the date and time using only 2 words of data:
Word
Description
0
Date
1
Time
In order to extract the information from the date format use the following
arithmetic:
Date Word
Year = ([Bits 15 thru 9] from Word 0) + 1996
Month = ([Bits 8 thru 5] from Word 0) + 1
Day = ([Bits 4 thru 0] from Word 0) + 1
Time Word
Hour = ([Bits 15 thru 11] from Word 1)
Minute = ([Bits 10 thru 5] from Word 1)
Second = ([Bits 4 thru 0] from Word 1 )* 2
The first 10 words of data (archive header) are common for all archives:
11.6.2 Pre-defined Header
These archive areas are included in the default archive data, and cannot be
reconfigured by the user.
Start
Offset
End
Offset
Data Format
Type
Description
0
1
Timestamp
Snapshot
Closing timestamp of archive
2
Word
Calculated
Flowing period
3
Bitmap Calculated
Cumulative meter alarms
4
Bitmap
Calculated
Cumulative status
5
Word Snapshot
Event
counter
6
7
Double word
Calculated
Flowing period, seconds
8
9 Timestamp
snapshot
Opening timestamp of archive