|
|
@@ -23,6 +23,7 @@ using PunkHPX8_RT.Devices.SRD;
|
|
|
using PunkHPX8_RT.Devices.Temperature;
|
|
|
using PunkHPX8_RT.Devices.VpwCell;
|
|
|
using PunkHPX8_RT.Devices.VpwMain;
|
|
|
+using PunkHPX8_RT.Modules;
|
|
|
using SecsGem.Core.ItemModel;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
@@ -76,8 +77,8 @@ namespace PunkHPX8_RT.Instances
|
|
|
InitializePowerSuppliers();
|
|
|
InitializeVpw();
|
|
|
InitializeReservoir();
|
|
|
- InitializePlatingVerticals();
|
|
|
InitializePlatingCells();
|
|
|
+ InitializePlatingVerticals();
|
|
|
|
|
|
TotalReservoirDevice totalReservoirDevice = new TotalReservoirDevice();
|
|
|
AddCustomDevice(totalReservoirDevice);
|
|
|
@@ -116,7 +117,6 @@ namespace PunkHPX8_RT.Instances
|
|
|
|
|
|
foreach(string item in VpwCellItemManager.Instance.InstalledModules)
|
|
|
{
|
|
|
-
|
|
|
BeckhoffAxis rotationBeckhoffAxis = BeckhoffAxisManager.Instance.GetAxis($"{item}.Rotation");
|
|
|
if (rotationBeckhoffAxis != null)
|
|
|
{
|
|
|
@@ -127,7 +127,6 @@ namespace PunkHPX8_RT.Instances
|
|
|
}
|
|
|
VpwCellDevice vpwCellDevice= new VpwCellDevice(item);
|
|
|
AddCustomDevice(vpwCellDevice);
|
|
|
-
|
|
|
}
|
|
|
|
|
|
VpwDeviceTimer vpwDeviceTimer = new VpwDeviceTimer();
|
|
|
@@ -140,6 +139,8 @@ namespace PunkHPX8_RT.Instances
|
|
|
{
|
|
|
foreach (string item in PlatingCellItemManager.Instance.InstalledModules)
|
|
|
{
|
|
|
+ PlatingCellItem platingCellItem = PlatingCellItemManager.Instance.GetPlatingCellItem(item);
|
|
|
+ ModuleMatcherManager.Instance.InitialPlatingCellVerticalID(platingCellItem.ModuleName, platingCellItem.VerticalID);
|
|
|
//初始化platingcell rotation轴
|
|
|
BeckhoffAxis rotationBeckhoffAxis = BeckhoffAxisManager.Instance.GetAxis($"{item.ToString()}.Rotation");
|
|
|
if (rotationBeckhoffAxis != null)
|
|
|
@@ -150,7 +151,6 @@ namespace PunkHPX8_RT.Instances
|
|
|
}
|
|
|
|
|
|
|
|
|
- PlatingCellItem platingCellItem = PlatingCellItemManager.Instance.GetPlatingCellItem(item);
|
|
|
if (platingCellItem.SubType == ReservoirType.DegasMembrance.ToString())
|
|
|
{
|
|
|
DMPlatingCellDevice platingCellDevice = new DMPlatingCellDevice(item);
|
|
|
@@ -166,8 +166,6 @@ namespace PunkHPX8_RT.Instances
|
|
|
DIPlatingCellDevice platingCellDevice = new DIPlatingCellDevice(item);
|
|
|
AddCustomDevice(platingCellDevice);
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|
|
|
@@ -175,19 +173,16 @@ namespace PunkHPX8_RT.Instances
|
|
|
/// </summary>
|
|
|
private void InitializePlatingVerticals()
|
|
|
{
|
|
|
- BeckhoffAxis verticalBeckhoffAxis1_2 = BeckhoffAxisManager.Instance.GetAxis("PlatingCell1_2.Vertical");
|
|
|
- if (verticalBeckhoffAxis1_2 != null)
|
|
|
- {
|
|
|
- JetAxisBase verticalAxis = AxisManager.Instance.GetAxisInstance(verticalBeckhoffAxis1_2.MotorType, "PlatingCell1_2", "Vertical");
|
|
|
- AddCustomModuleDevice(verticalAxis);
|
|
|
- AxisManager.Instance.AddModuleAxis("PlatingCell1_2", verticalAxis);
|
|
|
- }
|
|
|
- BeckhoffAxis verticalBeckhoffAxis3_4 = BeckhoffAxisManager.Instance.GetAxis("PlatingCell3_4.Vertical");
|
|
|
- if (verticalBeckhoffAxis3_4 != null)
|
|
|
+ List<string> lst = ModuleMatcherManager.Instance.GetAllPlatingCellVertialList();
|
|
|
+ foreach (string str in lst)
|
|
|
{
|
|
|
- JetAxisBase verticalAxis3 = AxisManager.Instance.GetAxisInstance(verticalBeckhoffAxis3_4.MotorType, "PlatingCell3_4", "Vertical");
|
|
|
- AddCustomModuleDevice(verticalAxis3);
|
|
|
- AxisManager.Instance.AddModuleAxis("PlatingCell3_4", verticalAxis3);
|
|
|
+ BeckhoffAxis verticalBeckhoffAxis1_2 = BeckhoffAxisManager.Instance.GetAxis($"{str}.Vertical");
|
|
|
+ if (verticalBeckhoffAxis1_2 != null)
|
|
|
+ {
|
|
|
+ JetAxisBase verticalAxis = AxisManager.Instance.GetAxisInstance(verticalBeckhoffAxis1_2.MotorType, str, "Vertical");
|
|
|
+ AddCustomModuleDevice(verticalAxis);
|
|
|
+ AxisManager.Instance.AddModuleAxis(str, verticalAxis);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
/// <summary>
|