Python: Codesamples

Read 8 Discrete Inputs from Modbus-TCP Server – Server available at Port 502 (IP-Address 190.172.268.100) – Starting Address “1”, Number of Inputs to Read: “8” (Notice that the Starting address might be shifted by “1”. In this example we are reading 8 Inputs, the first is Register “1” (Addressed with “0”) from easymodbus.modbusClient import ModbusClient[…]