Zinenko Alex Posted March 1, 2021 Report Share Posted March 1, 2021 Hello, I was interested in the "modbus set slave ID" block with its name, but I do not know how to work with it and what it does, I also wanted to understand - is it possible to change the slave ID in Unilogic? Link to comment Share on other sites More sharing options...
NoamM Posted March 3, 2021 Report Share Posted March 3, 2021 Dear Zinenko Alex , On UniLogic you set the Slave ID in the next view: The "Set Slave ID" bloack allow you to change the value on run time. For example if I set in UniLogic slave ID 2 and I want to change it to some other value on the PLC I will use "Set Slave ID". Link to comment Share on other sites More sharing options...
micapp Posted October 29, 2021 Report Share Posted October 29, 2021 Can you please make a user guide for this block? Link to comment Share on other sites More sharing options...
curtharrington1 Posted January 11, 2022 Report Share Posted January 11, 2022 try this: Slave1.SlaveID is unitronics' struct newSlaveID is UINT8 and is the new ID you are requesting Link to comment Share on other sites More sharing options...
pascal Posted January 17, 2022 Report Share Posted January 17, 2022 Tried this on Panel Ethernet master Modbus, but here this is not working 😪..... I have about 50 slave's I have to read.... So I tought, I only make 1 routine for all 50 slaves, just changing it's slave ID nr, but no... any suggestions ? Link to comment Share on other sites More sharing options...
MVP 2023 Joe Tauser Posted January 19, 2022 MVP 2023 Report Share Posted January 19, 2022 Advanced Modbus will set you free. It's more complicated but gives you the control of the Vision function blocks. See this topic- I set up all my slaves in this application in a couple of data tables. It worked quite well, as I wrote a State Machine that loops through the appropriate table until it finds a slave ID of 0. I wrote four separate functions for read coils, write coils, read registers, and write registers to keep it "simple". You can put your Slave ID, Start Address, Length, and a pointer to a an array element for a local tag in the table. Unfortunately, the application I wrote is for a customer and I can't post it but if you take a swing at it and PM me I can work with you. Joe T. Link to comment Share on other sites More sharing options...
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