LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modbus RTU Error code 0x02

Hi Everyone.

Now, I want to use Modbus RTU to communicate (request values) from DW9E-DC38B (http://www.klaesb.com/catalogue/b7f6b467747c882b7c153a56ae3c5c1a.pdf). After I send hex code to test like in a manual page 5. The device return just 01 83 02 C0 F1 all the time, but i found that this error code mean Illegal Data Address. Is it strange? i'm using the same hex code from the manual why it's not working!!

 

Is it have some solution to fix this problem?

 

ps. sorry for my English.

Message 1 of 10
(6,506 Views)

You sent the values corresponding to the hex string "010300000002C40B" and it gave you an invalid address error?

 

Is it possible that your translation code has some small problem? By which I mean from string to output data?

 

Although the manual you linked to has some interesting phrasing/spelling, I would expect the example to work properly.


GCentral
Message 2 of 10
(6,489 Views)

Hi, cbutcher!

I'm using the same translate code from my last topic that you help me fix it but I just change the hex code part.

Download All
0 Kudos
Message 3 of 10
(6,470 Views)

As a quick question, what's the error code if you transmit an invalid CRC value? 


GCentral
0 Kudos
Message 4 of 10
(6,462 Views)

Sorry, i don't understand your question.

but After i check Error line and change databits between 8 and 9 bits, i see error code has chaged.

Is it has a relate?

 

thanks.

Download All
0 Kudos
Message 5 of 10
(6,459 Views)

No, sorry, I meant if you send for example 010300000002FFFF instead of 010300000002C40B, does the error code returned by the device change. If you get the same error, perhaps it's a problem with the communication?

 

Databits is constrained between 5 and 8 (inclusive) for the VISA Serial Port.


GCentral
0 Kudos
Message 6 of 10
(6,451 Views)

Oh i see, i'm already tested it.

and all of the request return nothing.

0 Kudos
Message 7 of 10
(6,447 Views)

Well, I guess at least that's good to know. I'm really stabbing in the dark now, but can you read or perhaps try writing the value "1" to 0057x? This is the "Connection mode Link" address according to the datasheet you linked, but there isn't really any information I can see that describes what that does. Remark 1, which apparently is in reference to it, only says that the menu display becomes "3-4" or "3-3".

 

No entry is listed for those in the configuration on the panel - is this something undocumented or just unclear to me? 3-1 and 3-2 correspond to the address and baud rate, but it doesn't mention a 3-3 or 3-4.


GCentral
Message 8 of 10
(6,439 Views)

I already try and it's return error "01 83 02 C0 F1" Again (Error hex 02).

0 Kudos
Message 9 of 10
(6,436 Views)

And about 3-3 or 3-4 i'm i'm not sure but this device is 3 phases power meter. 

Maybe number at the back mean 3 phase 3 lines and 3 phase 4 lines.

0 Kudos
Message 10 of 10
(6,434 Views)