public override void ZoneInit() { base.ZoneInit(); AssignHardware(typeof(EnumAxisName), typeof(EnumInportName), typeof(EnumOutportName), typeof(EnumSerialPortName)); AxisThicknessMeasY = ThisAxis(EnumAxisName.ThicknessMeasY); AxisThicknessMeasY.AddPoints(typeof(EnumPointX)); SerialPort.Add(EnumCellIndex.左电芯, ThisSerialPortData(EnumSerialPortName.ThicknessSensorLeft)); SerialPort.Add(EnumCellIndex.中电芯, ThisSerialPortData(EnumSerialPortName.ThicknessSensorMid)); SerialPort.Add(EnumCellIndex.右电芯, ThisSerialPortData(EnumSerialPortName.ThicknessSensorRight)); Cylinder.Add(EnumCellIndex.左电芯, new CylinderControl(/*"左电芯压紧气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.ThicknessMeasCyLeftDown), ThisOutport(EnumOutportName.ThicknessMeasCyLeftUp), ThisInport(EnumInportName.ThicknessMeasCyLeftDown), ThisInport(EnumInportName.ThicknessMeasCyLeftUp))); Cylinder.Add(EnumCellIndex.中电芯, new CylinderControl(/*"中电芯压紧气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.ThicknessMeasCyMidDown), ThisOutport(EnumOutportName.ThicknessMeasCyMidUp), ThisInport(EnumInportName.ThicknessMeasCyMidDown), ThisInport(EnumInportName.ThicknessMeasCyMidUp))); Cylinder.Add(EnumCellIndex.右电芯, new CylinderControl(/*"右电芯压紧气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.ThicknessMeasCyRightDown), ThisOutport(EnumOutportName.ThicknessMeasCyRightUp), ThisInport(EnumInportName.ThicknessMeasCyRightDown), ThisInport(EnumInportName.ThicknessMeasCyRightUp))); ThicknessCellVacuums[EnumCellIndex.左电芯].Port = ThisOutport(EnumOutportName.ThicknessMeasVacLeft); ThicknessCellVacuums[EnumCellIndex.中电芯].Port = ThisOutport(EnumOutportName.ThicknessMeasVacMid); ThicknessCellVacuums[EnumCellIndex.右电芯].Port = ThisOutport(EnumOutportName.ThicknessMeasVacRight); CellBlow.Port = ThisOutport(EnumOutportName.ThicknessMeasBlow); CellVacSensor[EnumCellIndex.左电芯].Port = ThisInport(EnumInportName.ThicknessMeasVacSensLeft); CellVacSensor[EnumCellIndex.中电芯].Port = ThisInport(EnumInportName.ThicknessMeasVacSensMid); CellVacSensor[EnumCellIndex.右电芯].Port = ThisInport(EnumInportName.ThicknessMeasVacSensRight); ZoneSettingPanel = new SettingPanelZone厚度测量(); ZoneManualPanel = new ManualPanelZone厚度测量(); }
public override void ZoneInit() { base.ZoneInit(); AssignHardware(typeof(EnumAxisName), typeof(EnumInportName), typeof(EnumOutportName)); AxisSortingPNPY = ThisAxis(EnumAxisName.SortingPNPY); AxisSortingPNPZ = ThisAxis(EnumAxisName.SortingPNPZ); NGBoxFullSensor[0] = ThisInport(EnumInportName.SortingPNPNGBoxFull1); NGBoxFullSensor[1] = ThisInport(EnumInportName.SortingPNPNGBoxFull2); NGBoxFullSensor[2] = ThisInport(EnumInportName.SortingPNPNGBoxFull3); NGBoxFullSensor[3] = ThisInport(EnumInportName.SortingPNPNGBoxFull4); NGBoxBackSenser = ThisInport(EnumInportName.SortingPNPNGBoxBack); NGBoxFrontSensor = ThisInport(EnumInportName.SortingPNPNGBoxFront); AxisSortingPNPY.AddPoints(typeof(EnumPointPNPY)); AxisSortingPNPZ.AddPoints(typeof(EnumPointPNPZ)); PNPCylinder.Add(EnumCellIndex.左电芯, new CylinderControl(/*"左电芯Z气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.SortingPNPCyLeftDown), ThisOutport(EnumOutportName.SortingPNPCyLeftUp), ThisInport(EnumInportName.SortingPNPCyLeftDown), ThisInport(EnumInportName.SortingPNPCyLeftUp))); PNPCylinder.Add(EnumCellIndex.中电芯, new CylinderControl(/*"中电芯Z气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.SortingPNPCyMidDown), ThisOutport(EnumOutportName.SortingPNPCyMidUp), ThisInport(EnumInportName.SortingPNPCyMidDown), ThisInport(EnumInportName.SortingPNPCyMidUp))); PNPCylinder.Add(EnumCellIndex.右电芯, new CylinderControl(/*"右电芯Z气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.SortingPNPCyRightDown), ThisOutport(EnumOutportName.SortingPNPCyRightUp), ThisInport(EnumInportName.SortingPNPCyRightDown), ThisInport(EnumInportName.SortingPNPCyRightUp))); CellVacuums[EnumCellIndex.左电芯].MainPort.Port = ThisOutport(EnumOutportName.SortingPNPVacLeft); CellVacuums[EnumCellIndex.左电芯].AirPorts[(int)EnumVacuumIndex.后真空].Port = ThisOutport(EnumOutportName.SortingPNPVacLeftBack); CellVacuums[EnumCellIndex.左电芯].AirPorts[(int)EnumVacuumIndex.中真空].Port = ThisOutport(EnumOutportName.SortingPNPVacLeftCent); CellVacuums[EnumCellIndex.左电芯].AirPorts[(int)EnumVacuumIndex.前真空].Port = ThisOutport(EnumOutportName.SortingPNPVacLeftFront); CellVacuums[EnumCellIndex.中电芯].MainPort.Port = ThisOutport(EnumOutportName.SortingPNPVacMid); CellVacuums[EnumCellIndex.中电芯].AirPorts[(int)EnumVacuumIndex.后真空].Port = ThisOutport(EnumOutportName.SortingPNPVacMidBack); CellVacuums[EnumCellIndex.中电芯].AirPorts[(int)EnumVacuumIndex.中真空].Port = ThisOutport(EnumOutportName.SortingPNPVacMidCent); CellVacuums[EnumCellIndex.中电芯].AirPorts[(int)EnumVacuumIndex.前真空].Port = ThisOutport(EnumOutportName.SortingPNPVacMidFront); CellVacuums[EnumCellIndex.右电芯].MainPort.Port = ThisOutport(EnumOutportName.SortingPNPVacRight); CellVacuums[EnumCellIndex.右电芯].AirPorts[(int)EnumVacuumIndex.后真空].Port = ThisOutport(EnumOutportName.SortingPNPVacRightBack); CellVacuums[EnumCellIndex.右电芯].AirPorts[(int)EnumVacuumIndex.中真空].Port = ThisOutport(EnumOutportName.SortingPNPVacRightCent); CellVacuums[EnumCellIndex.右电芯].AirPorts[(int)EnumVacuumIndex.前真空].Port = ThisOutport(EnumOutportName.SortingPNPVacRightFront); CellBlow.Port = ThisOutport(EnumOutportName.SortingPNPBlow); CellVacSensor[EnumCellIndex.左电芯].Port = ThisInport(EnumInportName.SortingPNPVacSensLeft); CellVacSensor[EnumCellIndex.中电芯].Port = ThisInport(EnumInportName.SortingPNPVacSensMid); CellVacSensor[EnumCellIndex.右电芯].Port = ThisInport(EnumInportName.SortingPNPVacSensRight); ZoneSettingPanel = new SettingPanelZoneNG挑选机械手(); ZoneManualPanel = new ManualPanelZoneNG挑选机械手(); }
public override void ZoneInit() { base.ZoneInit(); AssignHardware(typeof(EnumAxisName), typeof(EnumInportName), typeof(EnumOutportName), typeof(EnumSerialPortName)); AxisLoadInConveyor = ThisAxis(EnumAxisName.LoadInConveyor); AxisLoadInConveyor.AddPoints(typeof(EnumPointConveyor)); ZoneSettingPanel = new SettingPanelZone上料传送(); ZoneManualPanel = new ManualPanelZone上料传送(); }
public override void ZoneInit() { base.ZoneInit(); AssignHardware(typeof(EnumAxisName), typeof(EnumInportName), typeof(EnumOutportName)); AxisLoadPNPY = ThisAxis(EnumAxisName.LoadPNPY); AxisLoadPNPY.AddPoints(typeof(EnumPointY)); AxisLoadPNPZ = ThisAxis(EnumAxisName.LoadPNPZ); AxisLoadPNPZ.AddPoints(typeof(EnumPointZ)); NGBoxFullSensor = ThisInport(EnumInportName.LoadPNPNGBoxFull); NGBoxSensor = ThisInport(EnumInportName.LoadPNPNGBox); PNPCylinder.Add(EnumCellIndex.左电芯, new CylinderControl(/*"左电芯Z气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.LoadPNPCyLeftDown), ThisOutport(EnumOutportName.LoadPNPCyLeftUp), ThisInport(EnumInportName.LoadPNPCyLeftDown), ThisInport(EnumInportName.LoadPNPCyLeftUp))); PNPCylinder.Add(EnumCellIndex.中电芯, new CylinderControl(/*"中电芯Z气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.LoadPNPCyMidDown), ThisOutport(EnumOutportName.LoadPNPCyMidUp), ThisInport(EnumInportName.LoadPNPCyMidDown), ThisInport(EnumInportName.LoadPNPCyMidUp))); PNPCylinder.Add(EnumCellIndex.右电芯, new CylinderControl(/*"右电芯Z气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.LoadPNPCyRightDown), ThisOutport(EnumOutportName.LoadPNPCyRightUp), ThisInport(EnumInportName.LoadPNPCyRightDown), ThisInport(EnumInportName.LoadPNPCyRightUp))); CellVacuums[EnumCellIndex.左电芯].MainPort.Port = ThisOutport(EnumOutportName.LoadPNPVacLeft); CellVacuums[EnumCellIndex.左电芯].AirPorts[(int)EnumVacuumIndex.后真空].Port = ThisOutport(EnumOutportName.LoadPNPVacLeftBack); CellVacuums[EnumCellIndex.左电芯].AirPorts[(int)EnumVacuumIndex.中真空].Port = ThisOutport(EnumOutportName.LoadPNPVacLeftCent); CellVacuums[EnumCellIndex.左电芯].AirPorts[(int)EnumVacuumIndex.前真空].Port = ThisOutport(EnumOutportName.LoadPNPVacLeftFront); CellVacuums[EnumCellIndex.中电芯].MainPort.Port = ThisOutport(EnumOutportName.LoadPNPVacMid); CellVacuums[EnumCellIndex.中电芯].AirPorts[(int)EnumVacuumIndex.后真空].Port = ThisOutport(EnumOutportName.LoadPNPVacMidBack); CellVacuums[EnumCellIndex.中电芯].AirPorts[(int)EnumVacuumIndex.中真空].Port = ThisOutport(EnumOutportName.LoadPNPVacMidCent); CellVacuums[EnumCellIndex.中电芯].AirPorts[(int)EnumVacuumIndex.前真空].Port = ThisOutport(EnumOutportName.LoadPNPVacMidFront); CellVacuums[EnumCellIndex.右电芯].MainPort.Port = ThisOutport(EnumOutportName.LoadPNPVacRight); CellVacuums[EnumCellIndex.右电芯].AirPorts[(int)EnumVacuumIndex.后真空].Port = ThisOutport(EnumOutportName.LoadPNPVacRightBack); CellVacuums[EnumCellIndex.右电芯].AirPorts[(int)EnumVacuumIndex.中真空].Port = ThisOutport(EnumOutportName.LoadPNPVacRightCent); CellVacuums[EnumCellIndex.右电芯].AirPorts[(int)EnumVacuumIndex.前真空].Port = ThisOutport(EnumOutportName.LoadPNPVacRightFront); CellBlow[EnumCellIndex.左电芯].Port = ThisOutport(EnumOutportName.LoadPNPBlowLeft); CellBlow[EnumCellIndex.中电芯].Port = ThisOutport(EnumOutportName.LoadPNPBlowMid); CellBlow[EnumCellIndex.右电芯].Port = ThisOutport(EnumOutportName.LoadPNPBlowRight); CellVacSensor[EnumCellIndex.左电芯].Port = ThisInport(EnumInportName.LoadPNPVacSensLeft); CellVacSensor[EnumCellIndex.中电芯].Port = ThisInport(EnumInportName.LoadPNPVacSensMid); CellVacSensor[EnumCellIndex.右电芯].Port = ThisInport(EnumInportName.LoadPNPVacSensRight); ZoneSettingPanel = new SettingPanelZone上料机械手(); ZoneManualPanel = new ManualPanelZone上料机械手(); DoUpdateNGBox(); ProductChangeHandler(null, null); }
public override void ZoneInit() { base.ZoneInit(); AssignHardware(typeof(EnumAxisName), typeof(EnumInportName), typeof(EnumOutportName)); AxisUnloadPNPY = ThisAxis(EnumAxisName.UnloadPNPY); AxisUnloadPNPY.AddPoints(typeof(EnumPoint)); PNPCylinder = new CylinderControl(/*"Z气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.UnloadPNPCyDown), ThisOutport(EnumOutportName.UnloadPNPCyUp), ThisInport(EnumInportName.UnloadPNPCyDown), ThisInport(EnumInportName.UnloadPNPCyUp)); CellVacuums[EnumCellIndex.左电芯].MainPort.Port = ThisOutport(EnumOutportName.UnloadPNPVacLeft); CellVacuums[EnumCellIndex.左电芯].AirPorts[(int)EnumVacuumIndex.后真空].Port = ThisOutport(EnumOutportName.UnloadPNPVacLeftBack); CellVacuums[EnumCellIndex.左电芯].AirPorts[(int)EnumVacuumIndex.中真空].Port = ThisOutport(EnumOutportName.UnloadPNPVacLeftCent); CellVacuums[EnumCellIndex.左电芯].AirPorts[(int)EnumVacuumIndex.前真空].Port = ThisOutport(EnumOutportName.UnloadPNPVacLeftFront); CellVacuums[EnumCellIndex.中电芯].MainPort.Port = ThisOutport(EnumOutportName.UnloadPNPVacMid); CellVacuums[EnumCellIndex.中电芯].AirPorts[(int)EnumVacuumIndex.后真空].Port = ThisOutport(EnumOutportName.UnloadPNPVacMidBack); CellVacuums[EnumCellIndex.中电芯].AirPorts[(int)EnumVacuumIndex.中真空].Port = ThisOutport(EnumOutportName.UnloadPNPVacMidCent); CellVacuums[EnumCellIndex.中电芯].AirPorts[(int)EnumVacuumIndex.前真空].Port = ThisOutport(EnumOutportName.UnloadPNPVacMidFront); CellVacuums[EnumCellIndex.右电芯].MainPort.Port = ThisOutport(EnumOutportName.UnloadPNPVacRight); CellVacuums[EnumCellIndex.右电芯].AirPorts[(int)EnumVacuumIndex.后真空].Port = ThisOutport(EnumOutportName.UnloadPNPVacRightBack); CellVacuums[EnumCellIndex.右电芯].AirPorts[(int)EnumVacuumIndex.中真空].Port = ThisOutport(EnumOutportName.UnloadPNPVacRightCent); CellVacuums[EnumCellIndex.右电芯].AirPorts[(int)EnumVacuumIndex.前真空].Port = ThisOutport(EnumOutportName.UnloadPNPVacRightFront); CellBlow.Port = ThisOutport(EnumOutportName.UnloadPNPBlow); CellVacSensor[EnumCellIndex.左电芯].Port = ThisInport(EnumInportName.UnloadPNPVacSensLeft); CellVacSensor[EnumCellIndex.中电芯].Port = ThisInport(EnumInportName.UnloadPNPVacSensMid); CellVacSensor[EnumCellIndex.右电芯].Port = ThisInport(EnumInportName.UnloadPNPVacSensRight); ZoneSettingPanel = new SettingPanelZone下料机械手(); ZoneManualPanel = new ManualPanelZone下料机械手(); }
public override void ZoneInit() { base.ZoneInit(); AssignHardware(typeof(EnumAxisName), typeof(EnumInportName), typeof(EnumOutportName), typeof(EnumSerialPortName)); AxisOutlineMeasX = ThisAxis(EnumAxisName.OutlineMeasX); AxisOutlineMeasX.AddPoints(typeof(EnumPointX)); CellVacuums[EnumCellIndex.左电芯].Port = ThisOutport(EnumOutportName.OutlineMeasVacLeft); CellVacuums[EnumCellIndex.中电芯].Port = ThisOutport(EnumOutportName.OutlineMeasVacMid); CellVacuums[EnumCellIndex.右电芯].Port = ThisOutport(EnumOutportName.OutlineMeasVacRight); CellBlow.Port = ThisOutport(EnumOutportName.OutlineMeasBlow); CellVacSensor[EnumCellIndex.左电芯].Port = ThisInport(EnumInportName.OutlineMeasVacSensLeft); CellVacSensor[EnumCellIndex.中电芯].Port = ThisInport(EnumInportName.OutlineMeasVacSensMid); CellVacSensor[EnumCellIndex.右电芯].Port = ThisInport(EnumInportName.OutlineMeasVacSensRight); ZoneSettingPanel = new SettingPanelZone尺寸测量(); ZoneManualPanel = new ManualPanelZone尺寸测量(); for (int i = 0; i <= CELLCOUNT; i++) { MeasDone[i] = true; } BufferDatas[CELLCOUNT] = ClassDataInfo.NewCellData(); }
public override void ZoneInit() { base.ZoneInit(); AssignHardware(typeof(EnumAxisName), typeof(EnumInportName), typeof(EnumOutportName)); AxisTopAlignBottom = ThisAxis(EnumAxisName.TopAlignBottom); AxisTopAlignBottom.AddPoints(typeof(EnumPointAlign)); AxisTopAlignSide = ThisAxis(EnumAxisName.TopAlignSide); AxisTopAlignSide.AddPoints(typeof(EnumPointAlign)); AxisTopAlignTop = ThisAxis(EnumAxisName.TopAlignTop); AxisTopAlignTop.AddPoints(typeof(EnumPointAlign)); AxisTopAlignXSide = ThisAxis(EnumAxisName.TopAlignXSide); AxisTopAlignXSide.AddPoints(typeof(EnumPointX)); AxisTopAlignZClamp = ThisAxis(EnumAxisName.TopAlignZClamp); AxisTopAlignZClamp.AddPoints(typeof(EnumPointAlign)); Cylinder.Add(EnumCellIndex.左电芯, new CylinderControl(/*"左电芯压紧气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.TopAlignCyLeftDown), ThisOutport(EnumOutportName.TopAlignCyLeftUp), ThisInport(EnumInportName.TopAlignCyLeftDown), ThisInport(EnumInportName.TopAlignCyLeftUp))); Cylinder.Add(EnumCellIndex.中电芯, new CylinderControl(/*"中电芯压紧气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.TopAlignCyMidDown), ThisOutport(EnumOutportName.TopAlignCyMidUp), ThisInport(EnumInportName.TopAlignCyMidDown), ThisInport(EnumInportName.TopAlignCyMidUp))); Cylinder.Add(EnumCellIndex.右电芯, new CylinderControl(/*"右电芯压紧气缸", "下降", "上升",*/ ThisOutport(EnumOutportName.TopAlignCyRightDown), ThisOutport(EnumOutportName.TopAlignCyRightUp), ThisInport(EnumInportName.TopAlignCyRightDown), ThisInport(EnumInportName.TopAlignCyRightUp))); TopAlignCellVacuums[EnumCellIndex.左电芯].Port = ThisOutport(EnumOutportName.TopAlignVacLeft); TopAlignCellVacuums[EnumCellIndex.中电芯].Port = ThisOutport(EnumOutportName.TopAlignVacMid); TopAlignCellVacuums[EnumCellIndex.右电芯].Port = ThisOutport(EnumOutportName.TopAlignVacRight); CellVacSensor[EnumCellIndex.左电芯].Port = ThisInport(EnumInportName.TopAlignVacSensLeft); CellVacSensor[EnumCellIndex.中电芯].Port = ThisInport(EnumInportName.TopAlignVacSensMid); CellVacSensor[EnumCellIndex.右电芯].Port = ThisInport(EnumInportName.TopAlignVacSensRight); CellBlow.Port = ThisOutport(EnumOutportName.TopAlignBlow); ZoneSettingPanel = new SettingPanelZone顶封边定位(); ZoneManualPanel = new ManualPanelZone顶封边定位(); AxisTopAlignXSide.HomeLimitReturnDis = 10; }