10-05-2006 02:40 PM
10-05-2006 02:41 PM
10-05-2006 03:23 PM
10-05-2006 06:19 PM
Khalid,
Thanks for the help. I tried out the CRC calculator program but received x3937 for the calculated CRC for the sequence 08, 03, 00, 1C, 00, 01. However, I tried your calculation of x45CC and Labview read back a sequence from the serial port. However, when I tried it again, it would not read anything from the serial port as before. Any ideas? Thanks,
Adam
10-06-2006 01:50 AM
Hi Adam,
I use a Modbus protocol for a solid state PC we use. My CRC calculator comes up with the same result as you have. So that could be right, but I saw a lot of different ways of CRC calculation with different results.
Did the manufacturer of the device you use specified the type of CRC to use ?
Can you post the VI you use ?
10-06-2006 06:01 AM
10-06-2006 10:03 AM
10-06-2006 01:57 PM
Thanks for the suggestions! I looked played around with the modbus library for a bit and am confused on how to set up a VI to perform the query originally listed, 0803 001C 0001 4555. Could you show me how to construct a simple VI using the sub-VIs of the library? Thank you
Adam
10-06-2006 04:49 PM - edited 10-06-2006 04:49 PM
>Message Edited by Khalid on 10-06-2006 03:51 PM
10-07-2006 05:56 PM
Khalid,
Thanks for your help! Unfortunately, I still cannot seem to get a response from the air pump. I have attached a screen shot of the way I set up the MB serial mastery query. As circled, the field "Modbus Data Unit Out" is NOT set by the user, correct? Rather, it is the response from the slave device. In your screenshot, I notice that you have four fields in the data section, with the numbers "0 2 0 26" in consecutive boxes, and the function code read holding registers is the same as the modbus command (which I assume that it should). Compare yours to mine. Am I missing something? Thanks!
Adam