Exemple #1
0
 private void setupEasySerialPort(EasySerialPort esp)
 {
     this.currEasySerialPort       = esp;
     this.cbxCom.SelectedItem      = esp.PortName;
     this.cbxBaudRate.SelectedItem = (int)esp.BaudRate;
     this.cbxParity.SelectedItem   = esp.Parity;
     this.cbxDataBits.SelectedItem = (int)esp.DataBits;
     this.cbxStopBits.SelectedItem = esp.StopBits;
     this.currEasySerialPortBackUp = (EasySerialPort)this.currEasySerialPort.Clone();
 }
Exemple #2
0
        public Proportioner LoadSetting(EasySerialPort easySerialPort, ControlType controlType, int channel)
        {
            switch (controlType)
            {
            case ControlType.Direct:
                this.Proportional = new ProportionorAnda(easySerialPort);
                break;

            case ControlType.PLC:
                this.Proportional = new ProportionorPLC(easySerialPort);
                break;

            case ControlType.Disable:
                this.Proportional = new ProportionorDisable(easySerialPort);
                break;
            }
            this.Proportional.Channel = channel;
            return(this);
        }
Exemple #3
0
 public ProportionorAnda(EasySerialPort easySerialPort)
     : base(easySerialPort)
 {
 }
Exemple #4
0
 public BarcodeScannableCom(EasySerialPort easySerialPort)
 {
     this.EasySerialPort = easySerialPort;
 }
Exemple #5
0
 public LightCustom(EasySerialPort easySerialPort) : base(easySerialPort)
 {
 }
Exemple #6
0
 public LaserableIL(EasySerialPort easySerialPort)
     : base(easySerialPort)
 {
 }
Exemple #7
0
 public ThermostatOmron(byte slaveAddress, EasySerialPort easySerialPort)
 {
     this.EasySerialPort = easySerialPort;
     this.AddressSlave   = slaveAddress;
 }
Exemple #8
0
 public BarcodeScannableKencey(EasySerialPort easySerialPort) : base(easySerialPort)
 {
     easySerialPort.isDelimiter = true;
     easySerialPort.Delimiter   = this.Delimiter;
 }
Exemple #9
0
 public ScalableSartorius(EasySerialPort easySerialPort)
     : base(easySerialPort)
 {
     this.EasySerialPort.isDelimiter = true;
 }
Exemple #10
0
 public ConveyorHeaterConnecion(EasySerialPort easySerialPort)
 {
     this.EasySerialPort = easySerialPort;
 }
Exemple #11
0
 public AiKaThermostat(byte slaveAddress, EasySerialPort easySerialPort)
 {
     this.EasySerialPort = easySerialPort;
     this.SlaveAddr      = slaveAddress;
 }
Exemple #12
0
        //public ProportionorDisable()
        //{
        //    this.CommunicationOK = ComCommunicationSts.DISABLE;
        //}

        public ProportionorDisable(EasySerialPort easySerialPort) : base(easySerialPort)
        {
            this.CommunicationOK = ComCommunicationSts.DISABLE;
        }
Exemple #13
0
 public ScalebleDisable(EasySerialPort easySerialPort) : base(easySerialPort)
 {
 }
Exemple #14
0
 public LaserableDisable(EasySerialPort easySerialPort) : base(easySerialPort)
 {
     this.CommunicationOK = ComCommunicationSts.DISABLE;
 }
Exemple #15
0
 public BarcodeScannableDisable(EasySerialPort easySerialPort) : base(easySerialPort)
 {
     this.CommunicationOK = ComCommunicationSts.DISABLE;
 }
Exemple #16
0
 public ProportionorCom(EasySerialPort easySerialPort)
 {
     this.EasySerialPort = easySerialPort;
 }
Exemple #17
0
 public LaserableSickOD2(EasySerialPort easySerialPort)
     : base(easySerialPort)
 {
     this.CmdReadValue = GetCmdReadValue();
 }
Exemple #18
0
 public LaserableCom(EasySerialPort easySerialPort)
 {
     this.EasySerialPort = easySerialPort;
 }
Exemple #19
0
 public ScalableMettler(EasySerialPort easySerialPort)
     : base(easySerialPort)
 {
     this.EasySerialPort.isDelimiter = true;
 }
Exemple #20
0
 public LightingCom(EasySerialPort easySerialPort)
 {
     this.EasySerialPort = easySerialPort;
 }
Exemple #21
0
 public InvalidThermostat(EasySerialPort easySerialPort)
 {
     this.EasySerialPort = easySerialPort;
 }
Exemple #22
0
 public ProportionorPLC(EasySerialPort easySerialPort)
     : base(easySerialPort)
 {
 }
Exemple #23
0
 public DigitalGageEee(EasySerialPort easySerialPort) : base(easySerialPort)
 {
 }
Exemple #24
0
 public DigitalGagableCom(EasySerialPort easySerialPort)
 {
     this.EasySerialPort = easySerialPort;
 }
Exemple #25
0
 public ScalableCom(EasySerialPort easySerialPort)
 {
     this.EasySerialPort = easySerialPort;
 }
Exemple #26
0
 public LightingOPT(EasySerialPort easySerialPort) : base(easySerialPort)
 {
     this.Setup(0, easySerialPort.PortName);
 }