from pymodbus.client import ModbusTcpClient PLC_IP = \'192.168.0.200\' PLC_PORT = 502 client = ModbusTcpClient(PLC_IP, PLC_PORT)