GEK-113285A
G650 Generator Protection & Control System
B-21
APPENDIX B
B.6 EVENTS STATUS REQUEST(ALARMS)
B
B.6.11 MODBUS CHECK FUNCTION
Next it is described the code to realize the message string check in ModBus, in a MOTOROLA micro. With this routine time
is optimized to obtain the check register.
USHORT fn_035c_cr16(UCHAR *p, UNSIGNED us)
{
const UCHAR hi[] = {
0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,0X1,0Xc0,
0X80,0X41,0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,
0X0,0Xc1,0X81,0X40,0X0,0Xc1,0X81,0X40,0X1,0Xc0,
0X80,0X41,0X1,0Xc0,0X80,0X41,0X0,0Xc1,0X81,0X40,
0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,0X0,0Xc1,
0X81,0X40,0X1,0Xc0,0X80,0X41,0X1,0Xc0,0X80,0X41,
0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,0X0,0Xc1,
0X81,0X40,0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,
0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,0X1,0Xc0,
0X80,0X41,0X0,0Xc1,0X81,0X40,0X0,0Xc1,0X81,0X40,
0X1,0Xc0,0X80,0X41,0X1,0Xc0,0X80,0X41,0X0,0Xc1,
0X81,0X40,0X1,0Xc0,0X80,0X41,0X0,0Xc1,0X81,0X40,
0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,0X1,0Xc0,
0X80,0X41,0X0,0Xc1,0X81,0X40,0X0,0Xc1,0X81,0X40,
0X1,0Xc0,0X80,0X41,0X0,0Xc1,0X81,0X40,0X1,0Xc0,
0X80,0X41,0X1,0Xc0,0X80,0X41,0X0,0Xc1,0X81,0X40,
0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,0X1,0Xc0,
0X80,0X41,0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,
0X0,0Xc1,0X81,0X40,0X0,0Xc1,0X81,0X40,0X1,0Xc0,
0X80,0X41,0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,
0X1,0Xc0,0X80,0X41,0X0,0Xc1,0X81,0X40,0X1,0Xc0,
0X80,0X41,0X0,0Xc1,0X81,0X40,0X0,0Xc1,0X81,0X40,
0X1,0Xc0,0X80,0X41,0X1,0Xc0,0X80,0X41,0X0,0Xc1,
0X81,0X40,0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,
0X0,0Xc1,0X81,0X40,0X1,0Xc0,0X80,0X41,0X1,0Xc0,
0X80,0X41,0X0,0Xc1,0X81,0X40};
const UCHAR lo[] = {
0X0,0Xc0,0Xc1,0X1,0Xc3,0X3,0X2,0Xc2,0Xc6,0X6,
0X7,0Xc7,0X5,0Xc5,0Xc4,0X4,0Xcc,0Xc,0Xd,0Xcd,
0Xf,0Xcf,0Xce,0Xe,0Xa,0Xca,0Xcb,0Xb,0Xc9,0X9,
0X8,0Xc8,0Xd8,0X18,0X19,0Xd9,0X1b,0Xdb,0Xda,0X1a,
0X1e,0Xde,0Xdf,0X1f,0Xdd,0X1d,0X1c,0Xdc,0X14,0Xd4,
Summary of Contents for Multilin G650
Page 9: ...8 G650 Generator Protection Control System GEK 113285A TABLE OF CONTENTS ...
Page 426: ...GEK 113285A G650 Generator Protection Control System A 31 APPENDIX A A 1 LOGIC OPERANDS A ...
Page 427: ...A 32 G650 Generator Protection Control System GEK 113285A A 1 LOGIC OPERANDS APPENDIXA A ...
Page 587: ...C 22 G650 Generator Protection Control System GEK 113285A C 8 ANALOG INPUTS APPENDIXC C ...
Page 639: ...G 2 G650 Generator Protection Control System GEK 113285A G 1 GE MULTILIN WARRANTY APPENDIXG G ...