Hi, I want to control two motor drivers that use Modbus RTU control via RS-485 communication.
The drivers are connected in a chain with via Ethernet cables with the computer.
The computer acts as a master, the the drivers as slaves, and the drivers are not addressed by IP addresses but via by a device number (which i can set with a switch on the device).
What I would like to know is how I can set up this kind of communication and which VIs I have to use.
Thats one of my problems.
The manual of the driver says clearly Modbus/RTU and RS485 and shows that the connection has to be done via a Ethernet cables (or at least something that looks like an Ethernet cables) and the driver doesn't have any serial ports.
The can see the driver (or at least a very similar one) here beginning from page 43.
why do you even think of "Ethernet" when the datasheet clearly mentions RS485?
Just because the connector socket looks similar to the LAN port of your computer?
the driver doesn't have any serial ports.
Yes, these are serial ports!
These are RS485 connectors and you need to use them as described in the manual for those devices!
Thanks for the clarification, I was under the impression that the serial RS485 port would look similar to a RS432 port.
But how do I include it in labview? Via the usual VIs for serial connection?
Search the NI website for Modbus Library. That does all the work for handling the modbus protocol. They use the NI-VISA VI's under the hood. Make sure you look at the example VI's within the library so you understand how they are used.