Exemplo n.º 1
0
        public TransTask(int id, string name, Station station) : base(id, name, station)
        {
            DualStartButton = new DualStartButton()
            {
                DiStart1 = station.Machine.Find <IDiEx>("DiStart1"),
                DiStart2 = station.Machine.Find <IDiEx>("DiStart2"),
            };

            MultiSensorCheck = new MultiDiSensorCheck()
            {
                DISensors = new List <IDiEx>()
                {
                    station.Machine.Find <IDiEx>("DiSensor1"),
                    station.Machine.Find <IDiEx>("DiSensor2"),
                }
            };

            MultiClampCylinders = new MultiClampCylinders()
            {
                Clamps = new List <ICylinderEx>()
                {
                    station.Machine.Find <ICylinderEx>("FBCY"),
                    station.Machine.Find <ICylinderEx>("LRCY"),
                }
            };


            Platform = station.Machine.Find <PlatformEx>("TransPlatform");

            VioMeasureStart  = station.Machine.Find <IVioEx>("VioMeasureStart");
            VioMeasureFinish = station.Machine.Find <IVioEx>("VioMeasureFinish");
        }
Exemplo n.º 2
0
        public TransTask(int id, string name, Station station) : base(id, name, station)
        {
            DualStartButton = new DualStartButton
            {
                DiStart1 = station.Machine.Find <IDiEx>("DiStart1"),
                DiStart2 = station.Machine.Find <IDiEx>("DiStart2")
            };

            FinSensorCheck = new MultiDiSensorCheck
            {
                DISensors = new List <IDiEx>()
                {
                    station.Machine.Find <IDiEx>("DiSensor2"),
                    station.Machine.Find <IDiEx>("DiSensor3"),
                    station.Machine.Find <IDiEx>("DiSensor1"),
                }
            };


            CarrierLoader = new CarrierLoader()
            {
                Task    = this,
                CyLeft  = station.Machine.Find <ICylinderEx>("LCY"),
                CyBack  = station.Machine.Find <ICylinderEx>("BCY"),
                CyFront = station.Machine.Find <ICylinderEx>("FCY"),
                CyRight = station.Machine.Find <ICylinderEx>("RCY"),


                Vaccum1 = station.Machine.Find <IDoEx>("DOVaccum1"),
                Vaccum2 = station.Machine.Find <IDoEx>("DOVaccum2"),

                VaccumSensor1 = station.Machine.Find <IDiEx>("DiVaccum1"),
                VaccumSensor2 = station.Machine.Find <IDiEx>("DiVaccum2"),

                CarrierSensor1 = station.Machine.Find <IDiEx>("DiSensor2"),
                CarrierSensor2 = station.Machine.Find <IDiEx>("DiSensor3"),
            };


            VioMeasureStart  = station.Machine.Find <IVioEx>("VioMeasureStart");
            VioMeasureFinish = station.Machine.Find <IVioEx>("VioMeasureFinish");


            Platform = station.Machine.Find <PlatformEx>("TransPlatform");
        }