python modbus控制plc_python 玩转 modbus
import sysimport modbus_tkimport structimport modbus_tk.defines as cstfrom modbus_tk import modbus_rtuimport timeimport serialimport threadingPORT = 'com3'#PORT = '/dev/ptyp5'def main():"""main"""glob...