EasyManuals Logo

GE Multilin F650 User Manual

GE Multilin F650
533 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #424 background imageLoading...
Page #424 background image
GE Multilin F650 Digital Bay Controller B-21
APPENDIX B B.1 MODBUS PROTOCOL FOR 650
B
B.1.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,
0Xd5,0X15,0Xd7,0X17,0X16,0Xd6,0Xd2,0X12,0X13,0Xd3,

Table of Contents

Other manuals for GE Multilin F650

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the GE Multilin F650 and is the answer not in the manual?

GE Multilin F650 Specifications

General IconGeneral
BrandGE
ModelMultilin F650
CategoryController
LanguageEnglish

Related product manuals