Original post

First of all, thank you very much for your work with Go and for sharing your knowledge. This helps so many of us learn every day.

I’m using the goburrow library to develop a code in go that takes the data from a Modbus meter, by TCP communication, and print it by the console. As easy as that.

To simulate Modbus I use Modbus Poll and Modbus Slave.

I started using the advanced usage example but I can’t get the printed data. Can anyone help me with the starter configuration?.

Here you can find the code:

Modbus Poll configuration:

  • Modbus TCP/IP:
  • IP Address: 127.0.0.1
  • Server Port: 502
  • Connected Timeout: 3000 ms
  • IPv4
  • Response Timeout: 1000
  • Delay between Polls: 20ms

Modbus Slave configuration:

  • Modbus TCP/IP:
  • IP Address: 127.0.0.1
  • Server Port: 502
  • IPv4
  • Any Address
  • Ignore Unit ID