APPENDIX
MANUAL TME400-VCF · EN08 · July, 01
st
2021
Content of the header after the writing of the second archive entry:
Position number of the next archive
Index of the oldest entry
Index of the newest entry
Content header after the writing of the 300
th
archive entry (archive full):
Position number of the next archive
Index of the oldest entry
Index of the newest entry
Content header after the writing of the 301
st
archive entry
(archive full, oldest entry overwritten in the ring buffer):
Position number of the next archive
Index of the oldest entry
Index of the newest entry
Procedure for determining the indexes to be read in the archive:
• Reading all four archive headers of an archive type
• Recognizing the current header
• Determine the range to be read:
If "Index oldest entry" = FFFFh and
"Index newest entry" = FFFFh, then the corresponding archive is empty
If "Index oldest entry" = 0 and "Index newest entry" = 0, then
the archive contains an entry
• If "Index oldest entry" < "Index newest entry", then the
Number of entries = "Index newest entry" - "Index oldest entry" + 1
• If "Index oldest entry" > "Index newest entry", then the
No. of ent. = max. archive ent. - "Index older ent." + "Index newest ent." + 1
(Archive is always full: Number of entries = Maximum archive entries,
Calculation for the purpose of completeness only)