Modbus poll troubleshooting serial#
A serial port or one of the Ethernet connections can be selected. The following properties and functions do the same as you setup in the connection dialog (F3).Ĭonnection selects the desired connection. Res = doc1.ReadHoldingRegisters(1, 0, 10, 1000)Ĭells(5, 7) = doc1.ReadResult() 'Show results for the requests Set doc2 = CreateObject("Mbpoll.Document") Set doc1 = CreateObject("Mbpoll.Document") Set app = CreateObject("Mbpoll.Application") Start → All Programs → Modbus Poll → Excel Example
![modbus poll troubleshooting modbus poll troubleshooting](https://www.aggsoft.com/serial-data-logger/tutorials/modbus-polling/image001.png)
This will show one of the windows.Īn example is also included with the Modbus Poll installation. Modbus Poll is hidden but you can show it by uncomment the "ShowWindow" line. One reading registers and another reading Coils. The Developer tab should now show in the ribbon (right most tab).
![modbus poll troubleshooting modbus poll troubleshooting](https://www.modbustools.com/images/mbslave-connection-setup.png)
![modbus poll troubleshooting modbus poll troubleshooting](https://www.modbustools.com/images/mbpoll-scaling.png)
to interpret and show the modbus data according to your specific requirements. That means you can use any program that supports VBA (Visual Basic for Applications) such as Visual Basic, Excel etc. This is also called an Automation controller.Īn Automation server is an application that exposes programmable objects to other applications. Automation (formerly known as OLE Automation) makes it possible for one application to manipulate objects implemented in another application.Īn Automation client is an application that can manipulate exposed objects belonging to another application.