C
Are the coils/registers a part of the slave/master devices? If I'm using two PC's as master slave, where are the coils/registers? How can they be accessed?
Chris
Chris
Hi,It might be helpful to see a working Modbus Master and Slave in action. Minimally, it would be helpful to have a known working slave when developing the master and vice versa.
You can download Automated Solutions' Modbus Master and Slave ActiveX Control trial editions, which are fully functioning for 30 days.
Modbus RTU & ASCII Master
http://automatedsolutions.com/products/modbusrtu.asp
Modbus/TCP Master
http://automatedsolutions.com/products/modbustcp.asp
Modbus RTU, ASCII, and TCP Slave
http://automatedsolutions.com/products/modbusslave.asp
Each comes with a ready to run example application called MiniHMI. So you don't need to write any code. The products allow you to read/write the complete range of Modbus registers and discretes.
Ultimately, you might want to save time and effort and use the ActiveX Controls in your c++ application. They are mature products that are field tested and implement a very broad range of Modbus functions including the ability to intentionally force bad packet to test slave response.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
Modbus connection to Trane Fan&Coil Unit | Modbus | 3 | ||
A | Linux Modbus Command line utility to set a coil on/off | Modbus | 3 | |
I | (Modbus) How to assign coil address as ports in PIC? | Modbus | 9 | |
X | FlowBoss S600 flow computer modbus coil writing problem | Modbus | 3 | |
D | Modbus-Writing into Holding Registers and Coil | Modbus | 1 |