I try to use RTU 485 to communicate with inverter, and I also use LibDRVmbus sample, i don’t understand where do I get the pDevice value for the slave and master, can someone explain this to me? thank you
Some different ways to find out the correct pDevice can be found from this post here in the community.
What considered as Slave and Master for Modbus program? I tried to control Inverter via X20CS1030, and for the PC I use PPC2200
Master = Client, Slave = Server in more moder terminology.
In your case the Inverter is the slave and the PLC(PC) is the master.
Do I need to use the Slave program too or just the Master?
The two example programs provided are for two different use cases. You’d use one or the other depending on the function of the PLC. If you’re communicating with an inverter, the PLC is probably the Master and so you’d only need the Master program.
Do you still need help with this issue or were you able to find what you needed?