GE Multilin F650 Digital Bay Controller B-23
APPENDIX B B.1 MODBUS PROTOCOL FOR 650
B
typedef struct //reading string
{ UCHAR dire;
UCHAR fn; //3 o 4
USHORT mem;
USHORT off;
USHORT check;
} PET_READ;
static PET_READ vpet_read; Å------ this is the message (of reading)
And now it is proceed to perform the reading message check:
USHORT xx;
xx = vpet_read.check;
if(fn_035c_cr16( (UCHAR *)&vpet_read, sizeof(PET_READ)-2) == xx)
{ OK }
else
{ko }
If it is INTEL everything works but bytes are interchanged.