zed Posted June 9, 2023 Report Posted June 9, 2023 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 Joe Tauser Posted June 9, 2023 MVP 2023 Report Posted June 9, 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: 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.
MVP 2023 Joe Tauser Posted June 9, 2023 MVP 2023 Report Posted June 9, 2023 Send the question to support@unitronics.com and let us know what they say. Joe T.
zed Posted June 9, 2023 Author Report Posted June 9, 2023 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
MVP 2023 Joe Tauser Posted June 9, 2023 MVP 2023 Report Posted June 9, 2023 Nice detective work! I went digging and it's also selected in an inconspicuous dropdown under the top tree in Modbus protocols: Joe T.
zed Posted June 9, 2023 Author Report Posted June 9, 2023 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now