12
Annex: Data communication
Examples of data logger codes
Thermo Scientific
S
TERI-CYCLE
i160
/
i250
12-19
if (!len) {
Ge+;
// requery
send_telegramm („2402“);
len = get_telegramm (buffer);
// again, no telegram received
if (!len) return 1;
}
// increase telegram counter
G+;
// length of sent payload
len = (ahex(buffer[7]) * 0x10 + ahex(buffer[8])) / 2;
// converting ASCII string into usable numeric string
for (i = 0; i < (string); i++)
numeric string [i] = (ahex(buffer[10 + (2*i)]) * 0x10 +
ahex(buffer[11 + (2*i)]));
// calculation of the sent data packages
data = ((len) / SIZE_DATA2);
// evaluation of all data packages
for (i = 0; i < data; i++)9{
len = 0;
// write time and date into file
len += time_2_str (numeric string[1+i*SIZE_DATA2],
&excelstring[len]);
excelstring[len ++] = ‘.’;
len += time_2_str (numeric string[2+i*SIZE_DATA2],
&excelstring[len]);
excelstring[len ++] = ‘.’;
len += time_2_str (numeric string[3+i*SIZE_DATA2],
&excelstring[len]);
excelstring[len ++] = ‘;’;
len += time_2_str (numeric string[4+i*SIZE_DATA2],
&excelstring[len]);
excelstring[len ++] = ‘:’;
len += time_2_str (numeric string[5+i*SIZE_DATA2],
&excelstring[len]);
excelstring[len ++] = ‘:’;
len += time_2_str (0, &excelstring[len]);
excelstring[len ++] = ‘;’;
switch (numeric string[i*SIZE_DATA2]){
case EVENT_STATUS:
//check cyclic entries for device errors
status = numeric string[6+i*SIZE_DATA2]*0x100+
numeric string[7+i*SIZE_DATA2];
if (status & INFO_ERROR){
str_cpy (&excelstring[len], „Error active;“, 13);
len += 13;
}
else{
// query all device errors (see
Overview of possible event entries in bit coding Overview of event
Summary of Contents for STERI-CYCLE i160
Page 8: ...Table of Contents 6 STERI CYCLE i160 i250 Thermo Scientific ...
Page 12: ...Figures 4 STERI CYCLE i160 i250 Thermo Scientific ...
Page 76: ...5 Operation Starting operation 5 6 STERI CYCLE i160 i250 Thermo Scientific ...
Page 154: ...9 Maintenance Replacing the Door Seal 9 12 STERI CYCLE i160 i250 Thermo Scientific ...
Page 166: ...11 Specifications STERI CYCLE i250 11 10 STERI CYCLE i160 i250 Thermo Scientific ...
Page 196: ...13 Device log 13 2 STERI CYCLE i160 i250 Thermo Scientific ...