|
@@ -34,6 +34,7 @@ namespace VirgoRT.Devices
|
|
|
private readonly DIAccessor _diServo3BrakeON;
|
|
|
private readonly DIAccessor _diServo4BrakeON;
|
|
|
private readonly DIAccessor _diServoFSTP;
|
|
|
+ private readonly DIAccessor _diServoBusy;
|
|
|
|
|
|
private readonly DOAccessor _doReset;
|
|
|
|
|
@@ -172,6 +173,14 @@ namespace VirgoRT.Devices
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public bool IsBusy
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return _diServoBusy != null ? _diServoBusy.Value : false;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
public IoTriStateLift4(string module, XmlElement node, string ioModule = "")
|
|
|
{
|
|
|
base.Module = module;
|
|
@@ -194,6 +203,7 @@ namespace VirgoRT.Devices
|
|
|
_diServo3BrakeON = ParseDiNode("diServo3BrakeON", node, ioModule);
|
|
|
_diServo4BrakeON = ParseDiNode("diServo4BrakeON", node, ioModule);
|
|
|
_diServoFSTP = ParseDiNode("diServoFSTP", node, ioModule);
|
|
|
+ _diServoBusy = ParseDiNode("diServoBusy", node, ioModule);
|
|
|
//_diServoAlarm = ParseDiNode("diServoAlarm", node, ioModule);
|
|
|
//_diCCWLimitSensorAlarm = ParseDiNode("diCCWLimitAlarm", node, ioModule);
|
|
|
|
|
@@ -302,31 +312,31 @@ namespace VirgoRT.Devices
|
|
|
public bool GoPosition(Position position)
|
|
|
{
|
|
|
Reset();
|
|
|
- if (!_diServo1BrakeON.Value)
|
|
|
- {
|
|
|
- NoDuplicatedAlarm($"Lift Pin DI-{_diServo1BrakeON.Index} alarm");
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (!_diServo2BrakeON.Value)
|
|
|
- {
|
|
|
- NoDuplicatedAlarm($"Lift Pin DI-{_diServo2BrakeON.Index} alarm");
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (!_diServo3BrakeON.Value)
|
|
|
- {
|
|
|
- NoDuplicatedAlarm($"Lift Pin DI-{_diServo3BrakeON.Index} alarm");
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (!_diServo4BrakeON.Value)
|
|
|
- {
|
|
|
- NoDuplicatedAlarm($"Lift Pin DI-{_diServo4BrakeON.Index} alarm");
|
|
|
- return false;
|
|
|
- }
|
|
|
- if (!_diServoFSTP.Value)
|
|
|
- {
|
|
|
- NoDuplicatedAlarm($"Lift Pin DI-{_diServoFSTP.Index} alarm");
|
|
|
- return false;
|
|
|
- }
|
|
|
+ //if (!_diServo1BrakeON.Value)
|
|
|
+ //{
|
|
|
+ // NoDuplicatedAlarm($"Lift Pin DI-{_diServo1BrakeON.Index} alarm");
|
|
|
+ // return false;
|
|
|
+ //}
|
|
|
+ //if (!_diServo2BrakeON.Value)
|
|
|
+ //{
|
|
|
+ // NoDuplicatedAlarm($"Lift Pin DI-{_diServo2BrakeON.Index} alarm");
|
|
|
+ // return false;
|
|
|
+ //}
|
|
|
+ //if (!_diServo3BrakeON.Value)
|
|
|
+ //{
|
|
|
+ // NoDuplicatedAlarm($"Lift Pin DI-{_diServo3BrakeON.Index} alarm");
|
|
|
+ // return false;
|
|
|
+ //}
|
|
|
+ //if (!_diServo4BrakeON.Value)
|
|
|
+ //{
|
|
|
+ // NoDuplicatedAlarm($"Lift Pin DI-{_diServo4BrakeON.Index} alarm");
|
|
|
+ // return false;
|
|
|
+ //}
|
|
|
+ //if (!_diServoFSTP.Value)
|
|
|
+ //{
|
|
|
+ // NoDuplicatedAlarm($"Lift Pin DI-{_diServoFSTP.Index} alarm");
|
|
|
+ // return false;
|
|
|
+ //}
|
|
|
|
|
|
if (_diABSAlarm.Value)
|
|
|
{
|