5 - 14
IP
N 07
4-
51
1-
P1
C
SQM-160 Operating Manual
PROC_ERR:
MsgBox "Error: " & Err.Number & ". " & Err.Description, , _
"Shri"
Resume PROC_EXIT
End Function
5.5.2 Java
®
private short calcCRC(byte[] str) {
short crc = 0;
short tmpCRC;
int length = 1 + str[1] - 34;
if (length > 0) {
crc = (short) 0x3fff;
for (int jx = 1; jx <= length; jx++) {
crc = (short) (crc ^ (short) str[jx]);
for (int ix = 0; ix < 8; ix++) {
tmpCRC = crc;
crc = (short) (crc >> 1);
if ((tmpCRC & 0x1) == 1) {
crc = (short) (crc ^ 0x2001);
}
}
crc = (short) (crc & 0x3fff);
}
}
return crc;
}
private byte crcHigh(short crc) {
byte val = (byte) (((crc >> 7) & 0x7f) + 34);
return val;
}
private byte crcLow(short crc) {
byte val = (byte) ((crc & 0x7f) + 34);
return val;
}
5.5.3 C++
class CRC14
{
public:
CRC14(void) { crc = 0x0;};
public:
Содержание SQM-160
Страница 1: ...O P E R A T I N G M A N U A L SQM 1 60 Multi Film Rate Thickness Monitor IPN 074 511 P1C ...
Страница 2: ......
Страница 5: ......
Страница 6: ......
Страница 8: ......
Страница 22: ...1 10 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Страница 30: ...2 8 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Страница 60: ...4 12 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Страница 76: ...5 16 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Страница 98: ...6 22 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Страница 110: ...8 8 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...
Страница 120: ...A 10 IPN 074 511 P1C SQM 160 Operating Manual This page is intentionally blank ...