FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
108 views 0 comments
by anonymous
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 anonymous

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