roiyjet Posted June 5, 2018 Share Posted June 5, 2018 Hi We have Serial Pressure transmitter that have special protocol , we know how to write and read manualy from the Device. we try to use the CRC function we found in your Form private crc = 0xffff private raw = asca(buffer) for (private x = 0, x < GetLength(buffer), x++) crc = crc # raw[x] for (private j = 0, j < 8, j++) if (crc & 0x0001) crc = crc >> 1 crc = crc # 0xA001 else crc = crc >> 1 endif endfor endfor return(crc) I have stupid but it may explain me everything , what is the < is it Lower Then ? why nopt to use < ? what is the AMF ? what is crc = crc >> 1 ? (is it CRC>1 ) ? Regards Roy Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.