LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Based on LabWindows/CVI using Modbus communication by means of RS-232

Hello !

Thank you for your help.

There may be my mistake. I will solve the problem as soon as possible.

Thank you  again for your support and help.

Best regards.

 

xiepei. 

I wouldn't care success or failure,for I will only struggle ahead as long as I have been destined to the distance.
0 Kudos
Message 11 of 26
(2,261 Views)

Hello,

 

(Sorry for duplication of the message. I posted it as new message but I couold not remove the old one)

 

I am trying to use the Modbus Test CVI code from 

Always there is a way! Try to find it.
0 Kudos
Message 12 of 26
(2,034 Views)

(Answered here)



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 13 of 26
(2,025 Views)

I am getting the CRC error whether its read or write and writes work sometines. Is there any way to solve it 

0 Kudos
Message 14 of 26
(1,775 Views)

Did you solve this issue?

0 Kudos
Message 15 of 26
(1,783 Views)

did you solve the issue?

0 Kudos
Message 16 of 26
(1,783 Views)

How you detect CRC errors?

Have you tried dumping messages and checking the CRC?

And have you tried checking the calculated CRC on write messsage?

 



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 17 of 26
(1,774 Views)

Thanks for your reply. it was giving error 532, CRC error.  

 

I figured it out.  It was something wrong with the slave unit I was working. 

0 Kudos
Message 18 of 26
(1,757 Views)

I am facing another issue. I am able to read from the device, but i cannot write anything to the device. It gives error 99. I/O operation timed out.

 

Is there any way to solve this.

 

I can write to my device when i use another modbus app which i got form internet.

 

Is there anything specific to the  Modbus testing program which i should take care of, when writing?

0 Kudos
Message 19 of 26
(1,743 Views)

Which instruction is giving you this error? Can you post the relevant part of your code?

Since you say you can "read", this means you can write a query to the device and get a response from it, so you are already sending messages to your device without errors; given this, it seems possible that the problem is in how your write message is built and sent.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 20 of 26
(1,731 Views)