zed Posted June 9 Report Share Posted June 9 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 Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted June 9 MVP 2022 Report Share Posted June 9 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. Quote Link to comment Share on other sites More sharing options...
zed Posted June 9 Author Report Share Posted June 9 Nope. Didn't work. I get the same warning. Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted June 9 MVP 2022 Report Share Posted June 9 Send the question to support@unitronics.com and let us know what they say. Joe T. Quote Link to comment Share on other sites More sharing options...
zed Posted June 9 Author Report Share Posted June 9 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 Quote Link to comment Share on other sites More sharing options...
MVP 2022 Joe Tauser Posted June 9 MVP 2022 Report Share Posted June 9 Nice detective work! I went digging and it's also selected in an inconspicuous dropdown under the top tree in Modbus protocols: Joe T. Quote Link to comment Share on other sites More sharing options...
zed Posted June 9 Author Report Share Posted June 9 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.