using System; using System.Text; using System.Linq; using System.Drawing; using System.Diagnostics; using System.Windows.Forms; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Tango.PMR.Hardware; using Tango.PMR.Printing; using Tango.PMR.Stubs; using Tango.Stubs; HardwarePidControl FeederPidControl = new HardwarePidControl(); FeederPidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorFeeder; FeederPidControl.OutputProportionalPowerLimit = 1.0; FeederPidControl.OutputProportionalBand = 5; FeederPidControl.IntegralTime = 5; FeederPidControl.DerivativeTime = 0; FeederPidControl.SensorCorrectionAdjustment = 0; FeederPidControl.SensorMinValue = 0; FeederPidControl.SensorMaxValue = 0; FeederPidControl.SetPointRampRateorSoftStartRamp = 0; FeederPidControl.SetPointControlOutputRate = 4; FeederPidControl.ControlOutputType = 0; FeederPidControl.SsrControlOutputType = 0; FeederPidControl.OutputOnOffHysteresisValue = 0; FeederPidControl.ProcessVariableSamplingRate = 1000; FeederPidControl.PvInputFilterFactorMode = 4; FeederPidControl.OutputProportionalCycleTime = 0; FeederPidControl.AcHeatersHalfCycleTime = 0; FeederPidControl.ProportionalGain = 50.0; HardwarePidControl PoolerPidControl = new HardwarePidControl(); PoolerPidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorPooler; PoolerPidControl.OutputProportionalPowerLimit = 1.0; PoolerPidControl.OutputProportionalBand = 5; PoolerPidControl.IntegralTime = 5; PoolerPidControl.DerivativeTime = 0; PoolerPidControl.SensorCorrectionAdjustment = 0; PoolerPidControl.SensorMinValue = 0; PoolerPidControl.SensorMaxValue = 0; PoolerPidControl.SetPointRampRateorSoftStartRamp = 0; PoolerPidControl.SetPointControlOutputRate = 4; PoolerPidControl.ControlOutputType = 0; PoolerPidControl.SsrControlOutputType = 0; PoolerPidControl.OutputOnOffHysteresisValue = 0; PoolerPidControl.ProcessVariableSamplingRate = 1000; PoolerPidControl.PvInputFilterFactorMode = 4; PoolerPidControl.OutputProportionalCycleTime = 0; PoolerPidControl.AcHeatersHalfCycleTime = 0; PoolerPidControl.ProportionalGain = 11.0; HardwarePidControl WinderPidControl = new HardwarePidControl(); WinderPidControl.HardwarePidControlType = Tango.PMR.Hardware.HardwarePidControlType.MotorWinder; WinderPidControl.OutputProportionalPowerLimit = 1.0; WinderPidControl.OutputProportionalBand = 5; WinderPidControl.IntegralTime = 7; WinderPidControl.DerivativeTime = 0; WinderPidControl.SensorCorrectionAdjustment = 0; WinderPidControl.SensorMinValue = 0; WinderPidControl.SensorMaxValue = 0; WinderPidControl.SetPointRampRateorSoftStartRamp = 0; WinderPidControl.SetPointControlOutputRate = 4; WinderPidControl.ControlOutputType = 0; WinderPidControl.SsrControlOutputType = 0; WinderPidControl.OutputOnOffHysteresisValue = 0; WinderPidControl.ProcessVariableSamplingRate = 1000; WinderPidControl.PvInputFilterFactorMode = 4; WinderPidControl.OutputProportionalCycleTime = 0; WinderPidControl.AcHeatersHalfCycleTime = 0; WinderPidControl.ProportionalGain = 12.0;