using Bro.Common.Helper; using Bro.Common.Interface; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Bro.Common.Base { /// /// 运动机构接口 具体由PLC/板卡实现 /// public interface IMotion { List GetCurrentAxisInfo(params string[] axisName); /// /// 运动机构点到点移动 /// /// 运动配置 /// true:正常结束 false:异常结束 bool MoveToPoint(IOperationConfig opConfig); } /// /// 板卡接口 /// public interface IMotionCard : IMotion { /// /// 板卡执行动作 除了运动动作外还包含IO操作 /// /// /// bool Run(IOperationConfig config); } public class AxisInfo : IComplexDisplay { public string AxisName { get; set; } public double AxisLocation { get; set; } public string GetDisplayText() { return $"{AxisName}:{AxisLocation}"; } } }