|
@@ -25,115 +25,219 @@ namespace PunkHPX8_RT.Devices.Safety
|
|
|
public class SafetyDevice : BaseDevice, IDevice
|
|
|
{
|
|
|
#region 常量
|
|
|
- private const string TWINCAT_STATE = "TwincatState";
|
|
|
- private const string MAIN_COMM_ERR = "MainCommErr";
|
|
|
- private const string LOADER_PUF_COMM_ERR="LoaderPufCommErr";
|
|
|
- private const string SRD_COMM_ERR = "SrdCommErr";
|
|
|
- private const string TRANSPORTER_COMM_ERR="TransportCommErr";
|
|
|
- private const string MAIN_FUNCTION_BLOCK_ERR= "MainFunctionBlockErr";
|
|
|
- private const string LOADER_PUF_FUNCTION_BLOCK_ERR="LoaderPufFunctionBlockErr";
|
|
|
- private const string SRD_FUNCTION_BLOCK_ERR = "SrdFunctionBlockErr";
|
|
|
- private const string TRANSPORTER_FUNCTION_BLOCK_ERR="TransporterFunctionBlockErr";
|
|
|
+
|
|
|
private const string IS_INITIALIZED = "IsInitialized";
|
|
|
private const double OP_HOT_CONNECT_STATE = 8;
|
|
|
- #region Hot Connect
|
|
|
- private const string HOT_CONNECT_STATE = "HotConnectState";
|
|
|
- private const string LOADER_HOT_CONNECT_STATE= "LoaderHotConnectState";
|
|
|
- private const string PUF_HOT_CONNECT_STATE="PufHotConnectState";
|
|
|
- private const string SRD_HOT_CONNECT_STATE="SrdHotConnectState";
|
|
|
- private const string TRANSPORTER_HOT_CONNECT_STATE="TransporterHotConnectState";
|
|
|
- private const string LDR_HOT_CONNECT_STATE="LdrHotConnectState";
|
|
|
- private const string PRC_HOT_CONNECT_STATE="PrcHotConnectState";
|
|
|
- private const string RESERVOIR1_HOT_CONNECT_STATE="Reservoir1HotConnectState";
|
|
|
- private const string RESERVOIR2_HOT_CONNECT_STATE="Reservoir2HotConnectState";
|
|
|
- private const string FFU_HOT_CONNECT_STATE="FFUHotConnectState";
|
|
|
- #endregion
|
|
|
|
|
|
- #region Restart
|
|
|
- private const string RUNSTOP = "RunStop";
|
|
|
- private const string ERRACK = "ErrAck";
|
|
|
- private const string SLS_RESTART = "SlsRestart";
|
|
|
- private const string TX_STO_MON_Restart = "TxStoMonRestart";
|
|
|
- private const string TX_STO1_ESTOP_Restart = "TxSto1EstopRestart";
|
|
|
- private const string TX_STO2_ESTOP_RESTART = "TxSto2EstopRestart";
|
|
|
- private const string LDR_PUF_STO_MON_RESTART = "LdrPufStoMonRestart";
|
|
|
- private const string LDR_PUF_STO1_ESTOP_RESTART = "LdrPufSto1EstopRestart";
|
|
|
- private const string LDR_PUF_STO2_ESTOP_RESTART = "LdrPufSto2EstopRestart";
|
|
|
- private const string SRD_STO_ESTOP_RESTART = "SrdStoEstopRestart";
|
|
|
- private const string PUMP_STO_ESTOP_RESTART = "PumpStoEstopRestart";
|
|
|
- private const string FLUID_ESTOP_RESTART = "FluidEstopRestart";
|
|
|
+ #region Hot_Connect
|
|
|
+ /// <summary>
|
|
|
+ /// Twincat状态
|
|
|
+ /// </summary>
|
|
|
+ private const string TWINCAT_STATE="TwincatState";
|
|
|
+ /// <summary>
|
|
|
+ /// Main通信故障
|
|
|
+ /// </summary>
|
|
|
+ private const string MAIN_COMM_ERR="MainCommErr";
|
|
|
+ /// <summary>
|
|
|
+ /// Main Function Block故障
|
|
|
+ /// </summary>
|
|
|
+ private const string MAIN_FB_ERR="MainFbErr";
|
|
|
+ /// <summary>
|
|
|
+ /// VPW状态
|
|
|
+ /// </summary>
|
|
|
+ private const string VPW_HOTCONNECT_STATE="VpwHotConectState";
|
|
|
+ /// <summary>
|
|
|
+ /// VPW通信故障
|
|
|
+ /// </summary>
|
|
|
+ private const string VPW_COMM_ERR="VpwCommErr";
|
|
|
+ /// <summary>
|
|
|
+ /// VPW function block故障
|
|
|
+ /// </summary>
|
|
|
+ private const string VPW_FB_ERR="VpwFbErr";
|
|
|
+ /// <summary>
|
|
|
+ /// RES1_2状态
|
|
|
+ /// </summary>
|
|
|
+ private const string RES1_2_HOT_CONNECT_STATE="Res12HotConectState";
|
|
|
+ /// <summary>
|
|
|
+ /// RES1_2通信故障
|
|
|
+ /// </summary>
|
|
|
+ private const string RES1_2_COMM_ERR="Res12CommErr";
|
|
|
+ /// <summary>
|
|
|
+ /// RES1_2 Function Block故障
|
|
|
+ /// </summary>
|
|
|
+ private const string RES1_2_FB_ERR="Res12FbErr";
|
|
|
+ /// <summary>
|
|
|
+ /// RES3_4状态
|
|
|
+ /// </summary>
|
|
|
+ private const string RES3_4_HOT_CONNECT_STATE="Res34HotConectState";
|
|
|
+ /// <summary>
|
|
|
+ /// RES3_4通信故障
|
|
|
+ /// </summary>
|
|
|
+ private const string RES3_4_COMM_ERR="Res34CommErr";
|
|
|
+ /// <summary>
|
|
|
+ /// RES3_4Function Block故障
|
|
|
+ /// </summary>
|
|
|
+ private const string RES3_4_FB_ERR="Res34FbErr";
|
|
|
+ /// <summary>
|
|
|
+ /// Facility状态
|
|
|
+ /// </summary>
|
|
|
+ private const string FACILITY_HOT_CONNECT_STATE="FacilityHotConectState";
|
|
|
+ /// <summary>
|
|
|
+ /// Facility通信故障
|
|
|
+ /// </summary>
|
|
|
+ private const string FACILITY_COMM_ERR="FacilityCommErr";
|
|
|
+ /// <summary>
|
|
|
+ /// Facility Function Block故障
|
|
|
+ /// </summary>
|
|
|
+ private const string FACILITY_FB_ERR="FacilityFbErr";
|
|
|
+ /// <summary>
|
|
|
+ /// PlatingCell1_2状态
|
|
|
+ /// </summary>
|
|
|
+ private const string PLATING1_2_HOT_CONNECT_STATE="Plating12HotConectState";
|
|
|
+ /// <summary>
|
|
|
+ /// Plating1_2通信故障
|
|
|
+ /// </summary>
|
|
|
+ private const string PLATING1_2_COMM_ERR="Plating12CommErr";
|
|
|
+ /// <summary>
|
|
|
+ /// Plating1_2 Function Block故障
|
|
|
+ /// </summary>
|
|
|
+ private const string PLATING1_2_FB_ERR="Plating12FbErr";
|
|
|
+ /// <summary>
|
|
|
+ /// Plating3_4状态
|
|
|
+ /// </summary>
|
|
|
+ private const string PLATING3_4_HOT_CONNECT_STATE="Plating34HotConectState";
|
|
|
+ /// <summary>
|
|
|
+ /// Plating3_4通信故障
|
|
|
+ /// </summary>
|
|
|
+ private const string PLATING3_4_COMM_ERR="Plating34CommErr";
|
|
|
+ /// <summary>
|
|
|
+ /// Plating34 Function Block故障
|
|
|
+ /// </summary>
|
|
|
+ private const string PLATING3_4_FB_ERR="Plating34FbErr";
|
|
|
+ /// <summary>
|
|
|
+ /// SRD状态
|
|
|
+ /// </summary>
|
|
|
+ private const string SRD_HOT_CONNECT_STATE="SrdHotConnectState";
|
|
|
+ /// <summary>
|
|
|
+ /// SRD通信故障
|
|
|
+ /// </summary>
|
|
|
+ private const string SRD_COMM_ERR="SrdCommErr";
|
|
|
+ /// <summary>
|
|
|
+ /// SRD Function Block故障
|
|
|
+ /// </summary>
|
|
|
+ private const string SRD_FB_ERR="SrdFbErr";
|
|
|
#endregion
|
|
|
|
|
|
- #region Door Lock
|
|
|
- private const string LOADER_DOOR_LOCK= "LoaderDoorLock";
|
|
|
- private const string LOADER_DOOR_LOCKED="LoaderDoorLocked";
|
|
|
- private const string LOADER_PANEL_REMOVED="LoaderPanelRemoved";
|
|
|
- private const string LOWER_LOADER_PANEL_REMOVED = "LowerLoaderPanelRemoved";
|
|
|
- private const string BUFFER_DOOR_LOCK="BufferDoorLock";
|
|
|
- private const string BUFFER_DOOR_LOCKED="BufferDoorLocked";
|
|
|
- private const string BUFFER_PANEL_REMOVED = "BufferPanelRemoved";
|
|
|
- private const string PROCESS_DOOR_LOCK="ProcessDoorLock";
|
|
|
- private const string PROCESS_DOOR1_LOCKED="ProcessDoor1Locked";
|
|
|
- private const string PROCESS_DOOR2_LOCKED="ProcessDoor2Locked";
|
|
|
- private const string PROCESS_DOOR3_LOCKED="ProcessDoor3Locked";
|
|
|
- private const string PROCESS_DOOR4_LOCKED="ProcessDoor4Locked";
|
|
|
- private const string PROCESS_UPPER_PANELS_ON = "ProcessUpperPanelsOn";
|
|
|
+ #region restart
|
|
|
+ /// <summary>
|
|
|
+ /// Run stop
|
|
|
+ /// </summary>
|
|
|
+ private const string RUN_STOP="RunStop";
|
|
|
+ /// <summary>
|
|
|
+ /// Err ack
|
|
|
+ /// </summary>
|
|
|
+ private const string ERR_ACK="ErrAck";
|
|
|
+ /// <summary>
|
|
|
+ /// VPW Estop restart
|
|
|
+ /// </summary>
|
|
|
+ private const string VPW_STO_ESTOP_RESTART="VpwStoEstopRestart";
|
|
|
+ /// <summary>
|
|
|
+ /// Res12 Estop restart
|
|
|
+ /// </summary>
|
|
|
+ private const string RES1_2_STO_ESTOP_RESTART="Res12StoEstopRestart";
|
|
|
+ /// <summary>
|
|
|
+ /// Res34 Estop restart
|
|
|
+ /// </summary>
|
|
|
+ private const string RES3_4_STO_ESTOP_RESTART="Res34StoEstopRestart";
|
|
|
+ /// <summary>
|
|
|
+ /// Plating cell 1_2 sto1 estop restart
|
|
|
+ /// </summary>
|
|
|
+ private const string PLATING_CELL1_2_STO1_ESTOP_RESTART="PlatingCell12Sto1EstopRestart";
|
|
|
+ /// <summary>
|
|
|
+ /// Plating cell 1_2 sto2 estop restart
|
|
|
+ /// </summary>
|
|
|
+ private const string PLATING_CELL1_2_STO2_ESTOP_RESTART="PlatingCell12Sto2EstopRestart";
|
|
|
+ /// <summary>
|
|
|
+ /// Plating cell 3_4 sto1 estop restart
|
|
|
+ /// </summary>
|
|
|
+ private const string PLATING_CELL3_4_STO1_ESTOP_RESTART="PlatingCell34Sto1EstopRestart";
|
|
|
+ /// <summary>
|
|
|
+ /// Plating cell 3_4 sto2 estop restart
|
|
|
+ /// </summary>
|
|
|
+ private const string PLATING_CELL3_4_STO2_ESTOP_RESTART="PlatingCell34Sto2EstopRestart";
|
|
|
+ /// <summary>
|
|
|
+ /// Facility sto estop restart
|
|
|
+ /// </summary>
|
|
|
+ private const string FACILITY_STO_ESTOP_RESTART="FacilityStoEstopRestart";
|
|
|
+ /// <summary>
|
|
|
+ /// SRD Sto Estop restart
|
|
|
+ /// </summary>
|
|
|
+ private const string SRD_STO_ESTOP_RESTART="SrdStoEstopRestart";
|
|
|
#endregion
|
|
|
|
|
|
- private const string SRD_TOP_PANEL_REMOVED="SrdTopPanelRemoved";
|
|
|
- private const string SRD_LOWER_PANEL_REMOVED="SrdLowerPanelRemoved";
|
|
|
- private const string PLUMBING_DOOR_CLOSED = "PlumbingDoorClosed";
|
|
|
- private const string PROCESS_HALT_BUTTON1="ProcessHaltButton1";
|
|
|
- private const string PROCESS_HALT_BUTTON2="ProcessHaltButton2";
|
|
|
- private const string LOADER_HALT_BUTTON= "LoaderHaltButton";
|
|
|
- private const string MODE_SELECTOR_SWITCH="ModeSelectorSwitch";
|
|
|
- private const string MODE_SIREN="ModeSiren";
|
|
|
-
|
|
|
- #region SLS
|
|
|
- private const string LOADER_ROTATION_SLS="LoaderRotationSls";
|
|
|
- private const string LOADER_SWINGA_SLS="LoaderSwingASls";
|
|
|
- private const string LOADER_SWINGB_SLS="LoaderSwingBSls";
|
|
|
- private const string LOADER_TILTA_SLS="LoaderTiltASls";
|
|
|
- private const string LOADER_TILTB_SLS="LoaderTiltBSls";
|
|
|
- private const string PUF1_VERTICAL_SLS="Puf1VerticalSls";
|
|
|
- private const string PUF2_VERTICAL_SLS="Puf2VerticalSls";
|
|
|
- private const string LOADER_GANTRY_SLS="LoaderGantrySls";
|
|
|
- private const string LOADER_ELEVATOR_SLS="LoaderElevatorSls";
|
|
|
- private const string PROCESS_GANTRY_SLS="ProcessGantrySls";
|
|
|
- private const string PROCESS_ELEVATOR_SLS="ProcessElevatorSls";
|
|
|
+ #region Doors Lock
|
|
|
+ /// <summary>
|
|
|
+ /// Req Aligner Door Lock
|
|
|
+ /// </summary>
|
|
|
+ private const string REQ_ALIGNER_DOOR_LOCK="ReqAlignerDoorLock";
|
|
|
+ /// <summary>
|
|
|
+ /// Req cassette doors lock
|
|
|
+ /// </summary>
|
|
|
+ private const string REQ_CASSETE_DOORS_LOCK="ReqCassetteDoorsLock";
|
|
|
+ /// <summary>
|
|
|
+ /// Req cell 1_2 doors lock
|
|
|
+ /// </summary>
|
|
|
+ private const string REQ_CELL1_2_DOORS_LOCK="ReqCell12DoorsLock";
|
|
|
+ /// <summary>
|
|
|
+ /// Req cell doors lock
|
|
|
+ /// </summary>
|
|
|
+ private const string REQ_CELL3_4_DOORS_LOCK="ReqCell34DoorsLock";
|
|
|
#endregion
|
|
|
|
|
|
- #region Disable
|
|
|
- private const string PUF_VERTICAL_DISABLE= "PufVerticalDisable";
|
|
|
- private const string PUF1_FLIP_ROTATION_DISABLE="Puf1FlipRotationDisable";
|
|
|
- private const string PUF2_FLIP_ROTATION_DISABLE="Puf2FlipRotationDisable";
|
|
|
- private const string LOADER_DISABLE="LoaderDisable";
|
|
|
- private const string TRANSPORTER_DISABLE="TransporterDisable";
|
|
|
- private const string SRD_ARM_DISABLE="SrdArmDisable";
|
|
|
- private const string SRD_ROTATION_DISABLE="SrdRotationDisable";
|
|
|
+ #region locked
|
|
|
+ /// <summary>
|
|
|
+ /// Cell1_2 Doors Left Locked
|
|
|
+ /// </summary>
|
|
|
+ private const string CELL1_2_DOORS_LEFT_LOCKED="Cell12DoorsLeftLocked";
|
|
|
+ /// <summary>
|
|
|
+ /// Cell1_2 Doors Right Locked
|
|
|
+ /// </summary>
|
|
|
+ private const string CELL1_2_DOORS_RIGHT_LOCKED="Cell12DoorsRightLocked";
|
|
|
+ /// <summary>
|
|
|
+ /// Cell3_4 Doors Left Locked
|
|
|
+ /// </summary>
|
|
|
+ private const string CELL3_4_DOORS_LEFT_LOCKED="Cell34DoorsLeftLocked";
|
|
|
+ /// <summary>
|
|
|
+ /// Cell3_4 Doors Right Locked
|
|
|
+ /// </summary>
|
|
|
+ private const string CELL3_4_DOORS_RIGHT_LOCKED="Cell34DoorsRightLocked";
|
|
|
+ /// <summary>
|
|
|
+ /// Cassette Doors Left locked
|
|
|
+ /// </summary>
|
|
|
+ private const string CASSETE_DOORS_LEFT_LOCKED="CassetteDoorsLeftLocked";
|
|
|
+ /// <summary>
|
|
|
+ /// Cassette Doors Right locked
|
|
|
+ /// </summary>
|
|
|
+ private const string CASSETE_DOORS_RIGHT_LOCKED="CassetteDoorsRightLocked";
|
|
|
#endregion
|
|
|
|
|
|
- #region safety
|
|
|
- private const string TRANSPORTER_SAFE_SLS="TransporterSafeSls";
|
|
|
- private const string LOADER_SAFE_SLS="LoaderSafeSls";
|
|
|
- private const string PUF_VERTICAL_SAFE_SLS="PufVerticalSafeSls";
|
|
|
- private const string LOADER_SAFE_STO="LoaderSafeSto";
|
|
|
- private const string PUF_VERTICAL_SAFE_STO="PufVerticalSafeSto";
|
|
|
- private const string PUF1_FLIP_ROTATION_SAFE_STO="Puf1FlipRotationSafeSto";
|
|
|
- private const string PUF2_FLIP_ROTATION_SAFE_STO="Puf2FlipRotationSafeSto";
|
|
|
- private const string TRANSPORTER_SAFE_STO="TransporterSafeSto";
|
|
|
- private const string SRD_ROTATION_SAFE_STO = "SrdRotationSafeSto";
|
|
|
- private const string SRD_ARM_SAFE_STO="SrdArmSafeSto";
|
|
|
+ #region Closed
|
|
|
+ /// <summary>
|
|
|
+ /// Aligner Door closed
|
|
|
+ /// </summary>
|
|
|
+ private const string ALIGNER_DOOR_CLOSED="AlignerDoorClosed";
|
|
|
+ private const string RES1_2_DOOR_CLOED="Res12DoorClosed";
|
|
|
+ private const string RES3_4_DOOR_CLOED="Res34DoorClosed";
|
|
|
+ private const string VPW_DOOR_CLOSED="VpwDoorClosed";
|
|
|
+ private const string PLUMBLING_DOOR_CLOSED="PlumblingDoorClosed";
|
|
|
+ private const string SRD_PANEL_CLOSED="SrdPanelClosed";
|
|
|
#endregion
|
|
|
|
|
|
- #region Plumbling
|
|
|
- private const string PUMP_EDM="PumpEdm";
|
|
|
- private const string RESERVIOR_HIGH_LEVEL="ReservoirHighLevel";
|
|
|
- private const string FLUID_ENABLE_EDM="FluidEnableEdm";
|
|
|
+ #region Halt
|
|
|
+ private const string HALT_BUTTON_LEFT="HaltButtonLeft";
|
|
|
+ private const string HALT_BUTTON_RIGHT="HaltButtonRight";
|
|
|
#endregion
|
|
|
|
|
|
- private const string SRD_ARM_RESET="SRDArmReset";
|
|
|
-
|
|
|
private const string SAFETY_DATA="SafetyData";
|
|
|
|
|
|
#endregion
|
|
@@ -220,61 +324,9 @@ namespace PunkHPX8_RT.Devices.Safety
|
|
|
LOG.WriteLog(eEvent.ERR_SAFETY, Module, "All On Error");
|
|
|
}
|
|
|
}
|
|
|
- SLSAxisModeSiren();
|
|
|
return true;
|
|
|
}
|
|
|
/// <summary>
|
|
|
- /// SLS模块下Axis Mode Siren
|
|
|
- /// </summary>
|
|
|
- private void SLSAxisModeSiren()
|
|
|
- {
|
|
|
-
|
|
|
- int count = 0;
|
|
|
- //count += AxisModeSirenOn(SafetyData.Puf1VerticalSls, $"{ModuleName.PUF1}.Vertical");
|
|
|
- //count += AxisModeSirenOn(SafetyData.Puf2VerticalSls, $"{ModuleName.PUF2}.Vertical");
|
|
|
- //count += AxisModeSirenOn(SafetyData.LoaderTiltASls, $"{ModuleName.Loader1}.TiltA");
|
|
|
- //count += AxisModeSirenOn(SafetyData.LoaderTiltBSls, $"{ModuleName.Loader1}.TiltB");
|
|
|
- //count += AxisModeSirenOn(SafetyData.LoaderSwingASls, $"{ModuleName.Loader1}.SwingA");
|
|
|
- //count += AxisModeSirenOn(SafetyData.LoaderSwingBSls, $"{ModuleName.Loader1}.SwingB");
|
|
|
- //count += AxisModeSirenOn(SafetyData.LoaderRotationSls, $"{ModuleName.Loader1}.Rotation");
|
|
|
- //count += AxisModeSirenOn(SafetyData.LoaderGantrySls, $"{ModuleName.Transporter2}.Gantry");
|
|
|
- //count += AxisModeSirenOn(SafetyData.LoaderElevatorSls, $"{ModuleName.Transporter2}.Elevator");
|
|
|
- //count += AxisModeSirenOn(SafetyData.ProcessGantrySls, $"{ModuleName.Transporter1}.Gantry");
|
|
|
- //count += AxisModeSirenOn(SafetyData.ProcessElevatorSls, $"{ModuleName.Transporter1}.Elevator");
|
|
|
- count += AxisModeSirenOn(!SafetyData.ModeSelectorSwitch, $"{ModuleName.PUF1}.Vertical");
|
|
|
- count += AxisModeSirenOn(!SafetyData.ModeSelectorSwitch, $"{ModuleName.PUF2}.Vertical");
|
|
|
- count += AxisModeSirenOn(!SafetyData.ModeSelectorSwitch, $"{ModuleName.Loader1}.TiltA");
|
|
|
- count += AxisModeSirenOn(!SafetyData.ModeSelectorSwitch, $"{ModuleName.Loader1}.TiltB");
|
|
|
- count += AxisModeSirenOn(!SafetyData.ModeSelectorSwitch, $"{ModuleName.Loader1}.ShuttleA");
|
|
|
- count += AxisModeSirenOn(!SafetyData.ModeSelectorSwitch, $"{ModuleName.Loader1}.ShuttleB");
|
|
|
- count += AxisModeSirenOn(!SafetyData.ModeSelectorSwitch, $"{ModuleName.Loader1}.Rotation");
|
|
|
- count += AxisModeSirenOn(!SafetyData.ModeSelectorSwitch, $"{ModuleName.Transporter2}.Gantry");
|
|
|
- count += AxisModeSirenOn(!SafetyData.ModeSelectorSwitch, $"{ModuleName.Transporter2}.Elevator");
|
|
|
- count += AxisModeSirenOn(!SafetyData.ModeSelectorSwitch, $"{ModuleName.Transporter1}.Gantry");
|
|
|
- count += AxisModeSirenOn(!SafetyData.ModeSelectorSwitch, $"{ModuleName.Transporter1}.Elevator");
|
|
|
- if (count==0&&SafetyData.ModeSiren)
|
|
|
- {
|
|
|
- ModeSirenOff();
|
|
|
- }
|
|
|
- }
|
|
|
- /// <summary>
|
|
|
- /// Axis运动Mode Siren On
|
|
|
- /// </summary>
|
|
|
- /// <param name="jetAxisBase"></param>
|
|
|
- private int AxisModeSirenOn(bool sls,string axisName)
|
|
|
- {
|
|
|
- JetAxisBase axis = DEVICE.GetDevice<JetAxisBase>(axisName);
|
|
|
- if (axis != null && axis.IsSwitchOn)
|
|
|
- {
|
|
|
- if (axis.IsRun&&sls)
|
|
|
- {
|
|
|
- ModeSirenOn();
|
|
|
- return 1;
|
|
|
- }
|
|
|
- }
|
|
|
- return 0;
|
|
|
- }
|
|
|
- /// <summary>
|
|
|
/// 初始化
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
@@ -309,12 +361,14 @@ namespace PunkHPX8_RT.Devices.Safety
|
|
|
/// </summary>
|
|
|
private void InitializeOperation()
|
|
|
{
|
|
|
- OP.Subscribe($"{Module}.LockProcessDoors", (cmd,args) => LockProcessDoor());
|
|
|
- OP.Subscribe($"{Module}.UnlockProcessDoors", (cmd, args) => UnlockProcessDoor());
|
|
|
- OP.Subscribe($"{Module}.LockLoaderDoors", (cmd, args) => LockLoaderDoor());
|
|
|
- OP.Subscribe($"{Module}.UnlockLoaderDoors", (cmd, args) => UnlockLoaderDoor());
|
|
|
- OP.Subscribe($"{Module}.LockBufferDoors", (cmd, args) => LockBufferDoor());
|
|
|
- OP.Subscribe($"{Module}.UnlockBufferDoors", (cmd, args) => UnlockBufferDoor());
|
|
|
+ OP.Subscribe($"{Module}.LockAlignerDoor", (cmd,args) => LockAlignerDoor());
|
|
|
+ OP.Subscribe($"{Module}.UnlockAlignerDoor", (cmd, args) => UnlockAlignerDoor());
|
|
|
+ OP.Subscribe($"{Module}.LockCasseteDoor", (cmd, args) => LockCasseteDoor());
|
|
|
+ OP.Subscribe($"{Module}.UnlockCasseteDoor", (cmd, args) => UnlockCasseteDoor());
|
|
|
+ OP.Subscribe($"{Module}.LockCell12Door", (cmd, args) => LockCell12Door());
|
|
|
+ OP.Subscribe($"{Module}.UnlockCell12Door", (cmd, args) => UnlockCell12Door());
|
|
|
+ OP.Subscribe($"{Module}.LockCell34Door", (cmd, args) => LockCell34Door());
|
|
|
+ OP.Subscribe($"{Module}.UnlockCell34Door", (cmd, args) => UnlockCell34Door());
|
|
|
OP.Subscribe($"{Module}.ResetOperation",(cmd, args) => ResetOperation());
|
|
|
OP.Subscribe($"{Module}.AllOnOperation", (cmd, args) => AllOnOperation());
|
|
|
}
|
|
@@ -324,97 +378,54 @@ namespace PunkHPX8_RT.Devices.Safety
|
|
|
private void SubscribeValueAction()
|
|
|
{
|
|
|
BeckhoffIoSubscribeUpdateVariable( MAIN_COMM_ERR);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_PUF_COMM_ERR);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( SRD_COMM_ERR);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( TRANSPORTER_COMM_ERR);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( MAIN_FUNCTION_BLOCK_ERR);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_PUF_FUNCTION_BLOCK_ERR);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( SRD_FUNCTION_BLOCK_ERR);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( TRANSPORTER_FUNCTION_BLOCK_ERR);
|
|
|
-
|
|
|
BeckhoffIoSubscribeUpdateVariable( TWINCAT_STATE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_HOT_CONNECT_STATE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( FFU_HOT_CONNECT_STATE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PRC_HOT_CONNECT_STATE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LDR_HOT_CONNECT_STATE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( TRANSPORTER_HOT_CONNECT_STATE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( SRD_HOT_CONNECT_STATE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUF_HOT_CONNECT_STATE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( RESERVOIR2_HOT_CONNECT_STATE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( RESERVOIR1_HOT_CONNECT_STATE);
|
|
|
-
|
|
|
- BeckhoffIoSubscribeUpdateVariable( RUNSTOP);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( ERRACK);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( SLS_RESTART);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( TX_STO1_ESTOP_Restart);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( TX_STO_MON_Restart);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( TX_STO2_ESTOP_RESTART);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LDR_PUF_STO_MON_RESTART);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LDR_PUF_STO1_ESTOP_RESTART);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LDR_PUF_STO2_ESTOP_RESTART);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( MAIN_FB_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( VPW_HOTCONNECT_STATE);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( VPW_COMM_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( VPW_FB_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( FACILITY_HOT_CONNECT_STATE);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( FACILITY_COMM_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( FACILITY_FB_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( RES1_2_HOT_CONNECT_STATE);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( RES1_2_COMM_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( RES1_2_FB_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( RES3_4_HOT_CONNECT_STATE);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( RES3_4_COMM_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( RES3_4_FB_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( PLATING1_2_HOT_CONNECT_STATE);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( PLATING1_2_COMM_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( PLATING1_2_FB_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( PLATING3_4_HOT_CONNECT_STATE);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( PLATING3_4_COMM_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( PLATING3_4_FB_ERR);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( ERR_ACK);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( RUN_STOP);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( CASSETE_DOORS_LEFT_LOCKED);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( CASSETE_DOORS_RIGHT_LOCKED);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( CELL1_2_DOORS_LEFT_LOCKED);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( CELL1_2_DOORS_RIGHT_LOCKED);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( CELL3_4_DOORS_LEFT_LOCKED);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( CELL3_4_DOORS_RIGHT_LOCKED);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( VPW_DOOR_CLOSED);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( SRD_PANEL_CLOSED);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( ALIGNER_DOOR_CLOSED);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( PLUMBLING_DOOR_CLOSED);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( SRD_PANEL_CLOSED);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( FACILITY_STO_ESTOP_RESTART);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( PLATING_CELL1_2_STO1_ESTOP_RESTART);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( PLATING_CELL1_2_STO2_ESTOP_RESTART);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( PLATING_CELL3_4_STO1_ESTOP_RESTART);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( PLATING_CELL3_4_STO2_ESTOP_RESTART);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( RES1_2_STO_ESTOP_RESTART);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( RES3_4_STO_ESTOP_RESTART);
|
|
|
BeckhoffIoSubscribeUpdateVariable( SRD_STO_ESTOP_RESTART);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUMP_STO_ESTOP_RESTART);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( FLUID_ESTOP_RESTART);
|
|
|
-
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_DOOR_LOCK);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_DOOR_LOCKED);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_PANEL_REMOVED);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOWER_LOADER_PANEL_REMOVED);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( BUFFER_DOOR_LOCK);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( BUFFER_DOOR_LOCKED);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( BUFFER_PANEL_REMOVED);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PROCESS_DOOR_LOCK);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PROCESS_DOOR1_LOCKED);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PROCESS_DOOR2_LOCKED);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PROCESS_DOOR3_LOCKED);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PROCESS_DOOR4_LOCKED);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PROCESS_UPPER_PANELS_ON);
|
|
|
-
|
|
|
- BeckhoffIoSubscribeUpdateVariable( SRD_TOP_PANEL_REMOVED);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( SRD_LOWER_PANEL_REMOVED);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PLUMBING_DOOR_CLOSED);
|
|
|
-
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PROCESS_HALT_BUTTON1);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PROCESS_HALT_BUTTON2);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_HALT_BUTTON);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( MODE_SELECTOR_SWITCH);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( MODE_SIREN);
|
|
|
-
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_ROTATION_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_SWINGA_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_SWINGB_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_TILTA_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_TILTB_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUF1_VERTICAL_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUF2_VERTICAL_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_GANTRY_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_ELEVATOR_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PROCESS_GANTRY_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PROCESS_ELEVATOR_SLS);
|
|
|
-
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUF_VERTICAL_DISABLE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUF1_FLIP_ROTATION_DISABLE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUF2_FLIP_ROTATION_DISABLE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_DISABLE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( TRANSPORTER_DISABLE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( SRD_ARM_DISABLE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( SRD_ROTATION_DISABLE);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( TRANSPORTER_SAFE_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_SAFE_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUF_VERTICAL_SAFE_SLS);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( LOADER_SAFE_STO);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUF_VERTICAL_SAFE_STO);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUF1_FLIP_ROTATION_SAFE_STO);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUF2_FLIP_ROTATION_SAFE_STO);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( TRANSPORTER_SAFE_STO);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( SRD_ARM_SAFE_STO);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( SRD_ROTATION_SAFE_STO);
|
|
|
-
|
|
|
- BeckhoffIoSubscribeUpdateVariable( PUMP_EDM);
|
|
|
- BeckhoffIoSubscribeUpdateVariable( RESERVIOR_HIGH_LEVEL);
|
|
|
- BeckhoffIoSubscribeUpdateVariable(FLUID_ENABLE_EDM);
|
|
|
-
|
|
|
- BeckhoffIoSubscribeUpdateVariable(SRD_ARM_RESET);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( VPW_STO_ESTOP_RESTART);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( REQ_ALIGNER_DOOR_LOCK);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( REQ_CASSETE_DOORS_LOCK);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( REQ_CELL1_2_DOORS_LOCK);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable( REQ_CELL3_4_DOORS_LOCK);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable(HALT_BUTTON_LEFT);
|
|
|
+ BeckhoffIoSubscribeUpdateVariable(HALT_BUTTON_RIGHT);
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// 订阅IO变量
|
|
@@ -445,10 +456,6 @@ namespace PunkHPX8_RT.Devices.Safety
|
|
|
{
|
|
|
_variableInitializeDic[variable] = true;
|
|
|
}
|
|
|
- if(variable.EndsWith("Sls"))
|
|
|
- {
|
|
|
- SlsChangedSpeed(variable,(bool)value);
|
|
|
- }
|
|
|
CheckIsDataAbonrmal(variable, value);
|
|
|
}
|
|
|
|
|
@@ -540,84 +547,6 @@ namespace PunkHPX8_RT.Devices.Safety
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
-
|
|
|
- #region SLS
|
|
|
- /// <summary>
|
|
|
- /// SLS更改速度
|
|
|
- /// </summary>
|
|
|
- /// <param name="variable"></param>
|
|
|
- /// <param name="sls"></param>
|
|
|
- private void SlsChangedSpeed(string variable,bool sls)
|
|
|
- {
|
|
|
- int slsSpeed = SC.GetValue<int>("Twincat.SlsSpeed");
|
|
|
- if(sls)
|
|
|
- {
|
|
|
- ModuleChangeSpeed(variable, slsSpeed);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- ModuleChangeSpeed(variable, 100);
|
|
|
- }
|
|
|
- }
|
|
|
- /// <summary>
|
|
|
- /// 模块更改速度
|
|
|
- /// </summary>
|
|
|
- /// <param name="variable"></param>
|
|
|
- /// <param name="percent"></param>
|
|
|
- private void ModuleChangeSpeed(string variable,int percent)
|
|
|
- {
|
|
|
- switch(variable)
|
|
|
- {
|
|
|
- case PUF1_VERTICAL_SLS:
|
|
|
- UpdateAxisSpeed(DEVICE.GetDevice<JetAxisBase>($"{ModuleName.PUF1}.Vertical"), percent);
|
|
|
- break;
|
|
|
- case PUF2_VERTICAL_SLS:
|
|
|
- UpdateAxisSpeed(DEVICE.GetDevice<JetAxisBase>($"{ModuleName.PUF2}.Vertical"), percent);
|
|
|
- break;
|
|
|
- case LOADER_TILTA_SLS:
|
|
|
- UpdateAxisSpeed(DEVICE.GetDevice<JetAxisBase>($"{ModuleName.Loader1}.TiltA"), percent);
|
|
|
- break;
|
|
|
- case LOADER_TILTB_SLS:
|
|
|
- UpdateAxisSpeed(DEVICE.GetDevice<JetAxisBase>($"{ModuleName.Loader1}.TiltB"), percent);
|
|
|
- break;
|
|
|
- case LOADER_SWINGA_SLS:
|
|
|
- UpdateAxisSpeed(DEVICE.GetDevice<JetAxisBase>($"{ModuleName.Loader1}.ShuttleA"), percent);
|
|
|
- break;
|
|
|
- case LOADER_SWINGB_SLS:
|
|
|
- UpdateAxisSpeed(DEVICE.GetDevice<JetAxisBase>($"{ModuleName.Loader1}.ShuttleB"), percent);
|
|
|
- break;
|
|
|
- case LOADER_ROTATION_SLS:
|
|
|
- UpdateAxisSpeed(DEVICE.GetDevice<JetAxisBase>($"{ModuleName.Loader1}.Rotation"), percent);
|
|
|
- break;
|
|
|
- case LOADER_GANTRY_SLS:
|
|
|
- UpdateAxisSpeed(DEVICE.GetDevice<JetAxisBase>($"{ModuleName.Transporter2}.Gantry"), percent);
|
|
|
- break;
|
|
|
- case LOADER_ELEVATOR_SLS:
|
|
|
- UpdateAxisSpeed(DEVICE.GetDevice<JetAxisBase>($"{ModuleName.Transporter2}.Elevator"), percent);
|
|
|
- break;
|
|
|
- case PROCESS_GANTRY_SLS:
|
|
|
- UpdateAxisSpeed(DEVICE.GetDevice<JetAxisBase>($"{ModuleName.Transporter1}.Gantry"), percent);
|
|
|
- break;
|
|
|
- case PROCESS_ELEVATOR_SLS:
|
|
|
- UpdateAxisSpeed(DEVICE.GetDevice<JetAxisBase>($"{ModuleName.Transporter1}.Elevator"), percent);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- /// <summary>
|
|
|
- /// 更改Axis速度百分比
|
|
|
- /// </summary>
|
|
|
- /// <param name="jetAxisBase"></param>
|
|
|
- /// <param name="percent"></param>
|
|
|
- private void UpdateAxisSpeed(JetAxisBase jetAxisBase,int percent)
|
|
|
- {
|
|
|
- if (jetAxisBase != null)
|
|
|
- {
|
|
|
- jetAxisBase.ChangePercentSpeedAceleration(percent);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- #endregion
|
|
|
-
|
|
|
#region Reset
|
|
|
/// <summary>
|
|
|
/// Reset Operation
|
|
@@ -644,90 +573,80 @@ namespace PunkHPX8_RT.Devices.Safety
|
|
|
|
|
|
#region Lock Door
|
|
|
/// <summary>
|
|
|
- /// Lock Process Door
|
|
|
+ /// Lock Aligner Door
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public bool LockProcessDoor()
|
|
|
+ public bool LockAlignerDoor()
|
|
|
{
|
|
|
- string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{PROCESS_DOOR_LOCK}");
|
|
|
+ string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{REQ_ALIGNER_DOOR_LOCK}");
|
|
|
return IOModuleManager.Instance.WriteIoValue(ioName, true);
|
|
|
}
|
|
|
/// <summary>
|
|
|
/// Unlock Process Door
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public bool UnlockProcessDoor()
|
|
|
+ public bool UnlockAlignerDoor()
|
|
|
{
|
|
|
- string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{PROCESS_DOOR_LOCK}");
|
|
|
+ string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{REQ_ALIGNER_DOOR_LOCK}");
|
|
|
return IOModuleManager.Instance.WriteIoValue(ioName, false);
|
|
|
}
|
|
|
/// <summary>
|
|
|
- /// Lock Buffer Door
|
|
|
+ /// Lock cassete Door
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public bool LockBufferDoor()
|
|
|
+ public bool LockCasseteDoor()
|
|
|
{
|
|
|
- string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{BUFFER_DOOR_LOCK}");
|
|
|
+ string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{REQ_CASSETE_DOORS_LOCK}");
|
|
|
return IOModuleManager.Instance.WriteIoValue(ioName, true);
|
|
|
}
|
|
|
/// <summary>
|
|
|
- /// Unlock Buffer Door
|
|
|
+ /// Unlock cassete Door
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public bool UnlockBufferDoor()
|
|
|
+ public bool UnlockCasseteDoor()
|
|
|
{
|
|
|
- string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{BUFFER_DOOR_LOCK}");
|
|
|
+ string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{REQ_CASSETE_DOORS_LOCK}");
|
|
|
return IOModuleManager.Instance.WriteIoValue(ioName, false);
|
|
|
}
|
|
|
/// <summary>
|
|
|
- /// Lock Loader Door
|
|
|
+ /// Lock Cell1_2 Door
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public bool LockLoaderDoor()
|
|
|
+ public bool LockCell12Door()
|
|
|
{
|
|
|
- string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{LOADER_DOOR_LOCK}");
|
|
|
+ string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{REQ_CELL1_2_DOORS_LOCK}");
|
|
|
return IOModuleManager.Instance.WriteIoValue(ioName, true);
|
|
|
}
|
|
|
/// <summary>
|
|
|
- /// Unlock Loader Door
|
|
|
+ /// Unlock Cell1_2 Door
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public bool UnlockLoaderDoor()
|
|
|
+ public bool UnlockCell12Door()
|
|
|
{
|
|
|
- string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{LOADER_DOOR_LOCK}");
|
|
|
+ string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{REQ_CELL1_2_DOORS_LOCK}");
|
|
|
return IOModuleManager.Instance.WriteIoValue(ioName, false);
|
|
|
}
|
|
|
- #endregion
|
|
|
-
|
|
|
- #region Mode Siren
|
|
|
/// <summary>
|
|
|
- /// Mode Siren On
|
|
|
+ /// Lock Cell3_4 Door
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public bool ModeSirenOn()
|
|
|
+ public bool LockCell34Door()
|
|
|
{
|
|
|
- if (!SafetyData.ModeSiren)
|
|
|
- {
|
|
|
- string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{MODE_SIREN}");
|
|
|
- return IOModuleManager.Instance.WriteIoValue(ioName, true);
|
|
|
- }
|
|
|
- return true;
|
|
|
+ string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{REQ_CELL3_4_DOORS_LOCK}");
|
|
|
+ return IOModuleManager.Instance.WriteIoValue(ioName, true);
|
|
|
}
|
|
|
/// <summary>
|
|
|
- /// Mode Siren Off
|
|
|
+ /// Unlock Cell3_4 Door
|
|
|
/// </summary>
|
|
|
/// <returns></returns>
|
|
|
- public bool ModeSirenOff()
|
|
|
+ public bool UnlockCell34Door()
|
|
|
{
|
|
|
- if (SafetyData.ModeSiren)
|
|
|
- {
|
|
|
- string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{MODE_SIREN}");
|
|
|
- return IOModuleManager.Instance.WriteIoValue(ioName, false);
|
|
|
- }
|
|
|
- return true;
|
|
|
+ string ioName = BeckhoffModuleIOManager.Instance.GetIoNameByInnerModuleName($"{Module}.{REQ_CELL3_4_DOORS_LOCK}");
|
|
|
+ return IOModuleManager.Instance.WriteIoValue(ioName, false);
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
|
+
|
|
|
public void Monitor()
|
|
|
{
|
|
|
}
|