FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12671 questions

15052 answers

24115 comments

47054 members

0 votes
52 views 0 comments
by
Hi all

I am using a RUT240 (firmware RUT2_R_00.07.02.6) with the Modbus funcionality. Reading data acc. to the wiki is working just fine, however setting parameters does not seem to work as expected.

Example: Switch mobile data connection register address 204 (one register), Function Code 03, returns an error. See attached screenshot for raw communication.

The RUT240 responds with error code 02 (illegal data address), therefore I assume there is an issue with this register in the RUT240?

Thanks!

David

1 Answer

0 votes
by

Hello,

Based on data provided here, MODBUS register 204 is not available to get information. It is used for setting device parameters. Besides, function code 3 is used to read holding registers, to set register values code 6 has to be used.

Using the following configuration with internal RUT240 MODBUS TCP Master application available to download in Package manager I was able to successfully disable mobile data with the following MODBUS request configuration and reenable it by replacing 0 to 1:

Best regards,

Best answer