public PLC(ModbusCommunicator.ModbusType CommType, string Ip, int Port, int Id) { this.CommType = CommType; this.Ip = Ip; this.Port = Port; this.Id = Id; Init(); }
public PLC(ModbusCommunicator.ModbusType CommType, string Ip, int Port, int Id, string SerialPort, int BaudRate, int DataBits, Parity Parity, StopBits StopBits) { this.CommType = CommType; this.SerialPort = SerialPort; this.Id = Id; this.BaudRate = BaudRate; this.DataBits = DataBits; this.Parity = Parity; this.StopBits = StopBits; this.Ip = Ip; this.Port = Port; Init(); }