C-Link Protocol Commands
Keys/Display
Thermo Fisher Scientific
Model 5028
i
Instruction Manual
B-39
encoded form to save time in transmission. It is sent as a type ‘5’ binary
C-Link response with no checksum.
The RLE encoding consists of a 0 followed by an 8-bit count of
consecutive 0xFF bytes. The following ‘c’ code will expand the incoming
data.
void unpackDisplay ( void far* tdib, unsigned char far* rlescreen )
{
int i,j,k;
unsigned char far *sc4bpp, *sc2bpp, *screen, *ptr;
ptr = screen = (unsigned char far *)malloc(19200);
//RLE decode the screen
for (i=0; i<19200 && (ptr - screen) < 19200; i++)
{
*(ptr++) = *(rle i);
if (*(rle i) == 0)
{
unsigned char rlecount = *(unsigned char *)(rle ++i);
while (rlecount)
{
*(ptr++) = 0;
rlecount--;
}
}
else if (*(rle i) == 0xff)
{
unsigned char rlecount = *(unsigned char *)(rle ++i);
while (rlecount)
{
*(ptr++) = 0xff;
rlecount--;
}
}
}
}
To convert this data into a BMP for use with Windows, it needs to be
saved as a 4-bit-per-pixel gray-scale image. Also note that BMP files are
upside down relative to this data, that is, the top display line is the last
line in the BMP.
sc
screen
These commands are meant for backward compatibility with the
C series. Screen information is instead reported using the “iscreen”
command above.
Send: screen
Receive:
screen This is an iSeries instrument.
Screen information not available.
Summary of Contents for 5028i
Page 1: ...Model 5028i Instruction Manual Continuous Particulate Monitor CIC0001582 April 2018...
Page 2: ......
Page 3: ...Model 5028i Instruction Manual Continuous Particulate Monitor Part Number CIC0001582 8Apr2018...
Page 6: ...WEEE Compliance Thermo Fisher Scientific...
Page 12: ...About This Manual WEEE Symbol vi Model 5028i Instruction Manual Thermo Fisher Scientific...
Page 36: ......
Page 142: ......
Page 154: ......
Page 220: ......
Page 232: ......
Page 328: ......
Page 329: ......