Ejemplo n.º 1
0
 private void CreatePT1()
 {
     TempPt1 = new PT1_Floating(UpperLimit);
     TempPt1.FloatingChangeTime = 5000;
     TempPt1.FloatingTempValue  = 5;
     TempPt1.TimeConstant       = 30000;
 }
Ejemplo n.º 2
0
        private void _maxFlow_BeforeApplyChanges(object sender, EventArgs e)
        {
            FlowPt1 = new PT1_Floating(MaxFlow);
            FlowPt1.FloatingChangeTime = 2500;
            FlowPt1.FloatingTempValue  = 0.4;
            FlowPt1.TimeConstant       = 10000;

            _flow.InstrumentRange      = new OpcValueRange(MaxFlow, 0);
            _flow.EngineeringUnitRange = new OpcValueRange(MaxFlow, 0);
        }
Ejemplo n.º 3
0
        public Motor(IOpcNode parent, OpcName name, OpcContext context) : base(parent, name, context)
        {
            tempSensor = new TemperaturSensor(this, "Temperatur", context);
            tempSensor.AlarmEventChanged += TempSensor_AlarmEventChanged;
            tempSensor.UpperLimit         = 70.0;

            _speed       = new OpcDataVariableNode <double>(this, "Speed");
            _current     = new OpcDataVariableNode <double>(this, "Current");
            _power       = new OpcDataVariableNode <double>(this, "Power");
            _running     = new OpcDataVariableNode <bool>(this, "Running");
            _overcurrent = new OpcDataVariableNode <bool>(this, "AlarmÜberlast");

            ManualControl = new ManualControl(this, "Handbetrieb", Context);

            CreateSpeedPt1();
            PowerPt1   = new PT1_Floating(5000);
            CurrentPt1 = new PT1_Floating(12.5);
            CurrentPt1.TimeConstant = 200;
        }
Ejemplo n.º 4
0
 private void CreateSpeedPt1()
 {
     SpeedPt1 = new PT1_Floating(MaxSpeed);
     SpeedPt1.TimeConstant = 1000;
 }