|
@@ -2,12 +2,6 @@
|
|
using Aitex.Core.RT.Routine;
|
|
using Aitex.Core.RT.Routine;
|
|
using CyberX8_Core;
|
|
using CyberX8_Core;
|
|
using CyberX8_RT.Devices.AXIS;
|
|
using CyberX8_RT.Devices.AXIS;
|
|
-using CyberX8_RT.Devices.PUF;
|
|
|
|
-using System;
|
|
|
|
-using System.Collections.Generic;
|
|
|
|
-using System.Linq;
|
|
|
|
-using System.Text;
|
|
|
|
-using System.Threading.Tasks;
|
|
|
|
|
|
|
|
namespace CyberX8_RT.Modules.Loader
|
|
namespace CyberX8_RT.Modules.Loader
|
|
{
|
|
{
|
|
@@ -19,8 +13,8 @@ namespace CyberX8_RT.Modules.Loader
|
|
ShuttleBSwitchOff,
|
|
ShuttleBSwitchOff,
|
|
TiltASwitchOff,
|
|
TiltASwitchOff,
|
|
TiltBSwitchOff,
|
|
TiltBSwitchOff,
|
|
- CRSASwitchOff,
|
|
|
|
- CRSBSwitchOff,
|
|
|
|
|
|
+ LSASwitchOff,
|
|
|
|
+ LSBSwitchOff,
|
|
RotationSwitchOff,
|
|
RotationSwitchOff,
|
|
End
|
|
End
|
|
}
|
|
}
|
|
@@ -30,8 +24,8 @@ namespace CyberX8_RT.Modules.Loader
|
|
private JetAxisBase _tiltAAxis;
|
|
private JetAxisBase _tiltAAxis;
|
|
private JetAxisBase _tiltBAxis;
|
|
private JetAxisBase _tiltBAxis;
|
|
private JetAxisBase _rotationAxis;
|
|
private JetAxisBase _rotationAxis;
|
|
- private JetAxisBase _crsAAxis;
|
|
|
|
- private JetAxisBase _crsBAxis;
|
|
|
|
|
|
+ private JetAxisBase _lsAAxis;
|
|
|
|
+ private JetAxisBase _lsBAxis;
|
|
private int _timeOut = 6000;
|
|
private int _timeOut = 6000;
|
|
#endregion
|
|
#endregion
|
|
public LoaderSwitchAllOffRoutine(string module) : base(module)
|
|
public LoaderSwitchAllOffRoutine(string module) : base(module)
|
|
@@ -42,8 +36,8 @@ namespace CyberX8_RT.Modules.Loader
|
|
_tiltAAxis = DEVICE.GetDevice<JetAxisBase>($"{module}.TiltA");
|
|
_tiltAAxis = DEVICE.GetDevice<JetAxisBase>($"{module}.TiltA");
|
|
_tiltBAxis = DEVICE.GetDevice<JetAxisBase>($"{module}.TiltB");
|
|
_tiltBAxis = DEVICE.GetDevice<JetAxisBase>($"{module}.TiltB");
|
|
|
|
|
|
- _crsAAxis = DEVICE.GetDevice<JetAxisBase>($"{module}.LSA");
|
|
|
|
- _crsBAxis = DEVICE.GetDevice<JetAxisBase>($"{module}.LSB");
|
|
|
|
|
|
+ _lsAAxis = DEVICE.GetDevice<JetAxisBase>($"{module}.LSA");
|
|
|
|
+ _lsBAxis = DEVICE.GetDevice<JetAxisBase>($"{module}.LSB");
|
|
|
|
|
|
_rotationAxis = DEVICE.GetDevice<JetAxisBase>($"{module}.Rotation");
|
|
_rotationAxis = DEVICE.GetDevice<JetAxisBase>($"{module}.Rotation");
|
|
}
|
|
}
|
|
@@ -59,8 +53,8 @@ namespace CyberX8_RT.Modules.Loader
|
|
.Run(SwitchOffAllStep.ShuttleBSwitchOff, () => { _shuttleBAxis.SwitchOff(); return true; }, () => { return !_shuttleBAxis.IsSwitchOn; }, _timeOut)
|
|
.Run(SwitchOffAllStep.ShuttleBSwitchOff, () => { _shuttleBAxis.SwitchOff(); return true; }, () => { return !_shuttleBAxis.IsSwitchOn; }, _timeOut)
|
|
.Run(SwitchOffAllStep.TiltASwitchOff, () => { _tiltAAxis.SwitchOff();return true; }, () => { return !_tiltAAxis.IsSwitchOn; }, _timeOut)
|
|
.Run(SwitchOffAllStep.TiltASwitchOff, () => { _tiltAAxis.SwitchOff();return true; }, () => { return !_tiltAAxis.IsSwitchOn; }, _timeOut)
|
|
.Run(SwitchOffAllStep.TiltBSwitchOff, () => { _tiltBAxis.SwitchOff(); return true; }, () => { return !_tiltBAxis.IsSwitchOn; }, _timeOut)
|
|
.Run(SwitchOffAllStep.TiltBSwitchOff, () => { _tiltBAxis.SwitchOff(); return true; }, () => { return !_tiltBAxis.IsSwitchOn; }, _timeOut)
|
|
- .Run(SwitchOffAllStep.CRSASwitchOff, () => { _crsAAxis.SwitchOff(); return true; }, () => { return !_crsAAxis.IsSwitchOn; }, _timeOut)
|
|
|
|
- .Run(SwitchOffAllStep.CRSBSwitchOff, () => { _crsBAxis.SwitchOff(); return true; }, () => { return !_crsBAxis.IsSwitchOn; }, _timeOut)
|
|
|
|
|
|
+ .Run(SwitchOffAllStep.LSASwitchOff, () => { _lsAAxis.SwitchOff(); return true; }, () => { return !_lsAAxis.IsSwitchOn; }, _timeOut)
|
|
|
|
+ .Run(SwitchOffAllStep.LSBSwitchOff, () => { _lsBAxis.SwitchOff(); return true; }, () => { return !_lsBAxis.IsSwitchOn; }, _timeOut)
|
|
.Run(SwitchOffAllStep.RotationSwitchOff, () => { _rotationAxis.SwitchOff(); return true; }, () => { return !_rotationAxis.IsSwitchOn; }, _timeOut)
|
|
.Run(SwitchOffAllStep.RotationSwitchOff, () => { _rotationAxis.SwitchOff(); return true; }, () => { return !_rotationAxis.IsSwitchOn; }, _timeOut)
|
|
.End(SwitchOffAllStep.End,NullFun);
|
|
.End(SwitchOffAllStep.End,NullFun);
|
|
|
|
|