|
@@ -136,22 +136,22 @@ namespace SKMC.Api.Motion.Control
|
|
|
/// <para>3.剩下返回true</para>
|
|
/// <para>3.剩下返回true</para>
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
/// <param name="pointCode">点位码</param>
|
|
/// <param name="pointCode">点位码</param>
|
|
|
- /// <param name="axisIndex">绑定点位的电机序号, 0开头, 默认-1表示该点位的所有电机</param>
|
|
|
|
|
|
|
+ /// <param name="index">绑定点位的电机序号, 0开头, 默认-1表示该点位的所有电机</param>
|
|
|
/// <param name="negativeOffset">大于该点位的负方向距离</param>
|
|
/// <param name="negativeOffset">大于该点位的负方向距离</param>
|
|
|
/// <param name="positiveOffset">小于该点位的正方向距离</param>
|
|
/// <param name="positiveOffset">小于该点位的正方向距离</param>
|
|
|
/// <returns>是否满足位置条件</returns>
|
|
/// <returns>是否满足位置条件</returns>
|
|
|
- bool CheckNear(string pointCode, short axisIndex = -1, double negativeOffset = 0.1, double positiveOffset = 0.1);
|
|
|
|
|
|
|
+ bool CheckNear(string pointCode, short index = -1, double negativeOffset = 0.1, double positiveOffset = 0.1);
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 通过点位码驱动对应的Axis运动, speedRadio表示每秒旋转圈数
|
|
/// 通过点位码驱动对应的Axis运动, speedRadio表示每秒旋转圈数
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
/// <param name="pointCode">点位码</param>
|
|
/// <param name="pointCode">点位码</param>
|
|
|
- /// <param name="speedRadio">每秒旋转圈数</param>
|
|
|
|
|
|
|
+ /// <param name="speedRound">电机每秒旋转圈数</param>
|
|
|
/// <param name="waiting">是否等待到位, 默认为true</param>
|
|
/// <param name="waiting">是否等待到位, 默认为true</param>
|
|
|
/// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
/// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
|
- void MoveRound(string pointCode, double speedRadio, bool waiting = true, double inRange = -1,
|
|
|
|
|
|
|
+ void MoveRound(string pointCode, double speedRound, bool waiting = true, double inRange = -1,
|
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -178,6 +178,18 @@ namespace SKMC.Api.Motion.Control
|
|
|
void MovePoint(RecipePoint recipePoint, RecipeSpeed recipeSpeed = null, bool waiting = true, double inRange = -1,
|
|
void MovePoint(RecipePoint recipePoint, RecipeSpeed recipeSpeed = null, bool waiting = true, double inRange = -1,
|
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 让绑定点位码的(多个)电机以指定速度运动到点位码
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ /// <param name="recipePoint">点位对象</param>
|
|
|
|
|
+ /// <param name="speedCode">速度码, null表示使用该点配置的默认速度码</param>
|
|
|
|
|
+ /// <param name="waiting">是否等待到位, 默认为true</param>
|
|
|
|
|
+ /// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
|
|
|
+ /// <param name="onSuccess">运动完成后的回调动作</param>
|
|
|
|
|
+ /// <param name="onTimeout">超时未完成的回调动作</param>
|
|
|
|
|
+ void MovePoint(RecipePoint recipePoint, string speedCode = null, bool waiting = true, double inRange = -1,
|
|
|
|
|
+ Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 让绑定点位码的(多个)电机以指定速度运动到点位码并能叠加指定偏移量
|
|
/// 让绑定点位码的(多个)电机以指定速度运动到点位码并能叠加指定偏移量
|
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -191,6 +203,19 @@ namespace SKMC.Api.Motion.Control
|
|
|
void MovePointFix(string pointCode, double[] posOffsets, string speedCode = null, bool waiting = true, double inRange = -1,
|
|
void MovePointFix(string pointCode, double[] posOffsets, string speedCode = null, bool waiting = true, double inRange = -1,
|
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 让绑定点位码的(多个)电机以指定速度运动到点位码,并能叠加指定偏移量
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ /// <param name="recipePoint">点位对象</param>
|
|
|
|
|
+ /// <param name="posOffsets">各个电机的偏移量数组, 需要按电机绑定顺序赋值</param>
|
|
|
|
|
+ /// <param name="speedCode">速度码, null表示使用该点配置的默认速度码</param>
|
|
|
|
|
+ /// <param name="waiting">是否等待到位, 默认为true</param>
|
|
|
|
|
+ /// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
|
|
|
+ /// <param name="onSuccess">运动完成后的回调动作</param>
|
|
|
|
|
+ /// <param name="onTimeout">超时未完成的回调动作</param>
|
|
|
|
|
+ void MovePointFix(RecipePoint recipePoint, double[] posOffsets, string speedCode = null, bool waiting = true, double inRange = -1,
|
|
|
|
|
+ Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
+
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 让绑定点位码的(多个)电机以指定速度运动到点位码,并能叠加指定偏移量
|
|
/// 让绑定点位码的(多个)电机以指定速度运动到点位码,并能叠加指定偏移量
|
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -208,13 +233,13 @@ namespace SKMC.Api.Motion.Control
|
|
|
/// 让绑定点位码的指定单个电机以指定速度运动到点位码
|
|
/// 让绑定点位码的指定单个电机以指定速度运动到点位码
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
/// <param name="pointCode">点位码</param>
|
|
/// <param name="pointCode">点位码</param>
|
|
|
- /// <param name="index">该点位绑定的轴序号, 例如绑定了x1,y1,需要x1移动时传0,需要y1移动时传1</param>
|
|
|
|
|
|
|
+ /// <param name="axisCode">指定电机的电机码</param>
|
|
|
/// <param name="speedCode">速度码, null表示使用该点配置的默认速度码</param>
|
|
/// <param name="speedCode">速度码, null表示使用该点配置的默认速度码</param>
|
|
|
/// <param name="waiting">是否等待到位, 默认为true</param>
|
|
/// <param name="waiting">是否等待到位, 默认为true</param>
|
|
|
/// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
/// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
|
- void MovePointOne(string pointCode, short index = 0, string speedCode = null,
|
|
|
|
|
|
|
+ void MovePointOne(string pointCode, string axisCode, string speedCode = null,
|
|
|
bool waiting = true, double inRange = -1,
|
|
bool waiting = true, double inRange = -1,
|
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
|
|
@@ -222,13 +247,27 @@ namespace SKMC.Api.Motion.Control
|
|
|
/// 让绑定点位码的指定单个电机以指定速度运动到点位码
|
|
/// 让绑定点位码的指定单个电机以指定速度运动到点位码
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
/// <param name="recipePoint">点位对象</param>
|
|
/// <param name="recipePoint">点位对象</param>
|
|
|
- /// <param name="index">该点位绑定的轴序号, 例如绑定了x1,y1,需要x1移动时传0,需要y1移动时传1</param>
|
|
|
|
|
|
|
+ /// <param name="axisCode">指定电机的电机码</param>
|
|
|
|
|
+ /// <param name="speedCode">速度码, null表示使用该点配置的默认速度码</param>
|
|
|
|
|
+ /// <param name="waiting">是否等待到位, 默认为true</param>
|
|
|
|
|
+ /// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
|
|
|
+ /// <param name="onSuccess">运动完成后的回调动作</param>
|
|
|
|
|
+ /// <param name="onTimeout">超时未完成的回调动作</param>
|
|
|
|
|
+ void MovePointOne(RecipePoint recipePoint, string axisCode, string speedCode = null,
|
|
|
|
|
+ bool waiting = true, double inRange = -1,
|
|
|
|
|
+ Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
+
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 让绑定点位码的指定单个电机以指定速度运动到点位码
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ /// <param name="recipePoint">点位对象</param>
|
|
|
|
|
+ /// <param name="axisCode">指定电机的电机码</param>
|
|
|
/// <param name="recipeSpeed">速度对象, null表示使用该点配置的默认速度</param>
|
|
/// <param name="recipeSpeed">速度对象, null表示使用该点配置的默认速度</param>
|
|
|
/// <param name="waiting">是否等待到位, 默认为true</param>
|
|
/// <param name="waiting">是否等待到位, 默认为true</param>
|
|
|
/// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
/// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
|
- void MovePointOne(RecipePoint recipePoint, short index = 0, RecipeSpeed recipeSpeed = null,
|
|
|
|
|
|
|
+ void MovePointOne(RecipePoint recipePoint, string axisCode, RecipeSpeed recipeSpeed = null,
|
|
|
bool waiting = true, double inRange = -1,
|
|
bool waiting = true, double inRange = -1,
|
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
|
|
@@ -237,13 +276,13 @@ namespace SKMC.Api.Motion.Control
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
/// <param name="pointCode">点位码</param>
|
|
/// <param name="pointCode">点位码</param>
|
|
|
/// <param name="fixset">基于点位的偏移量(mm)</param>
|
|
/// <param name="fixset">基于点位的偏移量(mm)</param>
|
|
|
- /// <param name="index">该点位绑定的轴序号, 例如绑定了x1,y1,需要x1移动时传0,需要y1移动时传1</param>
|
|
|
|
|
|
|
+ /// <param name="axisCode">指定电机的电机码</param>
|
|
|
/// <param name="speedCode">速度码, null表示使用该点配置的默认速度码</param>
|
|
/// <param name="speedCode">速度码, null表示使用该点配置的默认速度码</param>
|
|
|
/// <param name="waiting">是否等待到位, 默认为true</param>
|
|
/// <param name="waiting">是否等待到位, 默认为true</param>
|
|
|
/// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
/// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
|
- void MovePointOneFix(string pointCode, double fixset, short index = 0, string speedCode = null,
|
|
|
|
|
|
|
+ void MovePointOneFix(string pointCode, double fixset, string axisCode, string speedCode = null,
|
|
|
bool waiting = true, double inRange = -1,
|
|
bool waiting = true, double inRange = -1,
|
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
|
|
@@ -252,13 +291,28 @@ namespace SKMC.Api.Motion.Control
|
|
|
/// </summary>
|
|
/// </summary>
|
|
|
/// <param name="recipePoint">点位对象</param>
|
|
/// <param name="recipePoint">点位对象</param>
|
|
|
/// <param name="fixset">基于点位的偏移量(mm)</param>
|
|
/// <param name="fixset">基于点位的偏移量(mm)</param>
|
|
|
- /// <param name="index">该点位绑定的轴序号, 例如绑定了x1,y1,需要x1移动时传0,需要y1移动时传1</param>
|
|
|
|
|
|
|
+ /// <param name="axisCode">指定电机的电机码</param>
|
|
|
/// <param name="recipeSpeed">速度对象, null表示使用该点配置的默认速度</param>
|
|
/// <param name="recipeSpeed">速度对象, null表示使用该点配置的默认速度</param>
|
|
|
/// <param name="waiting">是否等待到位, 默认为true</param>
|
|
/// <param name="waiting">是否等待到位, 默认为true</param>
|
|
|
/// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
/// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
|
- void MovePointOneFix(RecipePoint recipePoint, double fixset, short index = 0, RecipeSpeed recipeSpeed = null,
|
|
|
|
|
|
|
+ void MovePointOneFix(RecipePoint recipePoint, double fixset, string axisCode, RecipeSpeed recipeSpeed = null,
|
|
|
|
|
+ bool waiting = true, double inRange = -1,
|
|
|
|
|
+ Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
+
|
|
|
|
|
+ /// <summary>
|
|
|
|
|
+ /// 让绑定点位码的指定单个电机以指定速度运动到点位码,并能叠加指定偏移量
|
|
|
|
|
+ /// </summary>
|
|
|
|
|
+ /// <param name="recipePoint">点位对象</param>
|
|
|
|
|
+ /// <param name="fixset">基于点位的偏移量(mm)</param>
|
|
|
|
|
+ /// <param name="axisCode">指定电机的电机码</param>
|
|
|
|
|
+ /// <param name="speedCode">速度码, null表示使用该点配置的默认速度码</param>
|
|
|
|
|
+ /// <param name="waiting">是否等待到位, 默认为true</param>
|
|
|
|
|
+ /// <param name="inRange">整定范围, 单位毫米或者步距</param>
|
|
|
|
|
+ /// <param name="onSuccess">运动完成后的回调动作</param>
|
|
|
|
|
+ /// <param name="onTimeout">超时未完成的回调动作</param>
|
|
|
|
|
+ void MovePointOneFix(RecipePoint recipePoint, double fixset, string axisCode, string speedCode = null,
|
|
|
bool waiting = true, double inRange = -1,
|
|
bool waiting = true, double inRange = -1,
|
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
|
|
@@ -332,8 +386,7 @@ namespace SKMC.Api.Motion.Control
|
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
/// <param name="onSuccess">运动完成后的回调动作</param>
|
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
/// <param name="onTimeout">超时未完成的回调动作</param>
|
|
|
void WaitPoint(RecipePoint recipePoint, int timeout = 10000, double inRange = -1,
|
|
void WaitPoint(RecipePoint recipePoint, int timeout = 10000, double inRange = -1,
|
|
|
- Func<bool> safeCnd = null, Action onSuccess = null, Action onTimeout = null,
|
|
|
|
|
- Func<bool> checkCnd = null, Action onChecked = null);
|
|
|
|
|
|
|
+ Action onSuccess = null, Action onTimeout = null);
|
|
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
|
/// 等待电机组所有电机到位
|
|
/// 等待电机组所有电机到位
|