I am using Python with the modbus_tk package to poll n
PLCs. Each poll takes ~5 seconds. Is it possible to run these in parallel so that it doesn't take n*5
seconds to get all the data back?
My current code:
for ip in ip_addresses:
master = modbus_tcp.TcpMaster(host=ip_address)
my_vals = (master.execute(1, cst.READ_HOLDING_REGISTERS, starting_address=15))
return my_vals