12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- using Aitex.Core.RT.Device;
- using Aitex.Core.RT.Log;
- using CyberX8_RT.Devices.AXIS;
- using CyberX8_RT.Devices.AXIS.Yaskawa;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace CyberX8_RT.Devices.TransPorter
- {
- public class ProcessTransporterElevatorAxisInterLock : IAxisInterLock
- {
- #region 内部变量
- private JetAxisBase _axis;
- #endregion
- #region 属性
-
-
-
- public string Module { get { return _axis.Module; } }
-
-
-
- public string Name { get { return _axis.Name; } }
- #endregion
-
-
-
-
-
- public ProcessTransporterElevatorAxisInterLock(JetAxisBase axis)
- {
- _axis = axis;
- }
-
-
-
-
-
- public bool CheckGotoPosition(string station)
- {
- if (!AxisManager.Instance.CheckModuleAxisSwitchOn(Module, Name))
- {
- return false;
- }
- JetAxisBase gantryAxis = DEVICE.GetDevice<JetAxisBase>($"{Module}.Gantry");
- if (gantryAxis != null)
- {
- if (gantryAxis.IsRun)
- {
- LOG.WriteLog(eEvent.ERR_AXIS, Module, "Gantry Axis is Run");
- return false;
- }
- }
- return true;
- }
- }
- }
|