Jump to content

Recommended Posts

Posted

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

  • MVP 2023
Posted

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.

 

Posted

Found it.  In Uniapps in bottom Network tab then Modbus then top Debug tab  there is a button:

Turn Legacy OFF

and a notice:

After changes please reboot the PLC

Posted

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.  

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.