Jump to content

Modbus V2.0


zed

Recommended Posts

Upon compile I get a warning:

Modbus v1.0 (Legacy) is used in the application. It is recommended to switch to Modbus v2.0

How do I make the switch?  I began the project in an older version and created 4 Modbus slaves and later installed the latest Unilogic version.  

Would I just need to delete the existing slaves and create new ones?  

Thanks

Link to comment
Share on other sites

  • zed changed the title to Modbus V2.0
  • MVP 2023

Yes, that's what I would try.  I don't like to see warnings, either.

In version 1.33 a pretty significant change was made to the Modbus driver.

From the release notes:

image.png.7af9ee5698ae5bfa752e6969f95b32ab.png

 

I didn't know until your post that they called it "Modbus 2.0".   I also don't know why your definitions weren't automatically updated, unless it has something to do with backward compatibility.

 

Joe T.

 

Link to comment
Share on other sites

Yep. When switching it to V2 in uniapps it will just detect the the version is not the same as the project on the next download.  You can select to overwrite it or not but the path you show above Joe is how to set the project to V2 thus it will stay that way.   I found it and went to post it here but you beat me to it.  :) 

On a related manner with the same behavior, you can find screen saver settings for the project in the solution explorer,  Hardware config/ Controller Model.  You can also set these in uniapps but then it won't match the project  on the next download.  

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...