LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

frame modbus ascii

Hi...
I write you because I have a question about modbus ascii.....
I have a problem with timeout with my device , I send 3A30 3130 3630 3030 3031 3730 313F 310D 0A, ( function 06, word 1701 hex and LRC = E1)
and I don´t know if there is a problem with the frame because my device not responds
and always occurs and error of timeout...
thanks for your colaboration
0 Kudos
Message 1 of 3
(2,789 Views)
Two observations;

The string you say you send contains an LRC that is
?1 not E1. In addition there is no CRLF at the end...the complete string you need to send is:

3A30 3130 3630 3030 3031 3730 3145 310D 0A

or as we are in ASCII here anyway, in code display:

:010600001701E1\r\n

If sending that does not help; are you sure the unit is slave id 1, has the same baud rate etc...(i.e. does it respond to anything at all?).

Using a third-party modbus simulator you could check if it's your code or the unit / link.

Mads
Message 2 of 3
(2,789 Views)
Thanks Mad.... I change the frame and my device
responds perfectly..

Jav
0 Kudos
Message 3 of 3
(2,789 Views)