12
Data Communication
Examples of Data Logger Codes
Thermo Scientific
Heracell Vios 160i / 250i CR
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
Содержание Heracell Vios 160i CR
Страница 8: ...Table of Contents 6 Heracell Vios 160i 250i CR Thermo Scientific...
Страница 12: ...Figures 4 Heracell Vios 160i 250i CR Thermo Scientific...
Страница 36: ...2 Installation of the Device Retrofitting Modifications 2 12 Heracell Vios 160i 250i CR Thermo Scientific...
Страница 60: ...3 Description of the Device Electromechanical Door Lock 3 24 Heracell Vios 160i 250i CR Thermo Scientific...
Страница 86: ...5 Operation Water Filling 5 6 Heracell Vios 160i 250i CR Thermo Scientific...
Страница 138: ...6 Handling and Control Error Messages 6 52 Heracell Vios 160i 250i CR Thermo Scientific...
Страница 178: ...11 Specifications Heracell Vios 250i CR 11 10 Heracell Vios 160i 250i CR Thermo Scientific...
Страница 208: ...13 Device Log 13 2 Heracell Vios 160i 250i CR Thermo Scientific...
Страница 212: ...14 Contact Information Thermo Scientific 14 4 Heracell Vios 160i 250i CR Thermo Scientific...