Best way to scan for valid slaves?

M

Thread Starter

Mark H

Hi there,

I was wondering what would be the best method to build a list of all the valid modbus slave IDs on a network.

Currently, I am attempting this by polling all slaves IDs in the range 1-255 (JBUS) and storing a list of those that respond, i.e. that dont give an exception.

This seems a bit messy however, and prone to faults. Is there a better/standard way?

Much appreciated.
 
Top