EasyManua.ls Logo

Svantek SV 971A - Structure of the Setup File; Date and Time

Svantek SV 971A
305 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SV 971A User Manual Appendixes
206
B.3 STRUCTURE OF THE SETUP FILE
SvanPC file header - cf. Tab. B.1.1.
File header - cf. Tab. B.1.2.
Unit and software specification - cf. Tab. B.1.3.
Setup data - cf. Tab. B.1.23.
File-end-marker - cf. Tab. B.1.24.
B.4 DATE AND TIME
Following function written in C explain how the date and time are coded:
void ExtractDateTime(int date, unsigned int time, int dt[])
{
dt[0] = time % 30; /* sec */
dt[1] = (time/30) % 60; /* min */
dt[2] = time/1800; /* hour */
dt[3] = date & 0x001F; /* day */
dt[4] = (date>>5) & 0x000F; /* month */
dt[5] = ((date>>9) & 0x007F) + 2000; /* year */
}

Table of Contents

Related product manuals