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,
Содержание Multilin G650
Страница 9: ...8 G650 Generator Protection Control System GEK 113285A TABLE OF CONTENTS ...
Страница 29: ...1 20 G650 Generator Protection Control System GEK 113285A 1 4 650 HARDWARE 1 GETTING STARTED 1 ...
Страница 293: ...5 150 G650 Generator Protection Control System GEK 113285A 5 9 LOGIC CONFIGURATION PLC EDITOR 5 SETTINGS 5 ...
Страница 391: ...11 6 G650 Generator Protection Control System GEK 113285A 11 4 RELAY CONFIGURATION 11 FREQUENTLY ASKED QUESTIONS 11 ...
Страница 426: ...GEK 113285A G650 Generator Protection Control System A 31 APPENDIX A A 1 LOGIC OPERANDS A ...
Страница 427: ...A 32 G650 Generator Protection Control System GEK 113285A A 1 LOGIC OPERANDS APPENDIXA A ...
Страница 587: ...C 22 G650 Generator Protection Control System GEK 113285A C 8 ANALOG INPUTS APPENDIXC C ...
Страница 595: ...D 8 G650 Generator Protection Control System GEK 113285A D 5 IEC 60870 5 104 POINT LIST APPENDIXD D ...
Страница 606: ...GEK 113285A G650 Generator Protection Control System E 11 APPENDIX E E 1 FACTORY DEFAULT LOGIC E ...
Страница 607: ...E 12 G650 Generator Protection Control System GEK 113285A E 1 FACTORY DEFAULT LOGIC APPENDIXE E ...
Страница 639: ...G 2 G650 Generator Protection Control System GEK 113285A G 1 GE MULTILIN WARRANTY APPENDIXG G ...