|
|
@@ -6,7 +6,7 @@ namespace SKMC.Api.Recipe.Model
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 电机点位配置模型
|
|
|
- /// 每个点位由1个或多个单轴位置ProcessPointPosition组成
|
|
|
+ /// 每个点位由1个或多个单轴位置RecipePointPosition组成
|
|
|
/// </summary>
|
|
|
public class RecipePoint : BindableBase, ICloneable
|
|
|
{
|
|
|
@@ -45,7 +45,7 @@ namespace SKMC.Api.Recipe.Model
|
|
|
private double[] fixset;
|
|
|
|
|
|
/// <summary>
|
|
|
- /// 该点位的单轴位置的偏移量数组, 序号与ProcessPointPositions的序号一致
|
|
|
+ /// 该点位的单轴位置的偏移量数组, 序号与RecipePointPositions的序号一致
|
|
|
/// </summary>
|
|
|
public double[] Fixset
|
|
|
{
|
|
|
@@ -55,9 +55,9 @@ namespace SKMC.Api.Recipe.Model
|
|
|
fixset = value;
|
|
|
for (int i = 0; i < fixset.Length; i++)
|
|
|
{
|
|
|
- if (ProcessPointPositions != null && ProcessPointPositions[i] != null)
|
|
|
+ if (RecipePointPositions != null && RecipePointPositions[i] != null)
|
|
|
{
|
|
|
- ProcessPointPositions[i].FixsetVal = fixset[i];
|
|
|
+ RecipePointPositions[i].FixsetVal = fixset[i];
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -75,9 +75,9 @@ namespace SKMC.Api.Recipe.Model
|
|
|
fixset[i] = 0;
|
|
|
}
|
|
|
}
|
|
|
- if (ProcessPointPositions != null)
|
|
|
+ if (RecipePointPositions != null)
|
|
|
{
|
|
|
- foreach (RecipePointPosition pointPosition in ProcessPointPositions)
|
|
|
+ foreach (RecipePointPosition pointPosition in RecipePointPositions)
|
|
|
{
|
|
|
pointPosition.FixsetVal = 0;
|
|
|
}
|
|
|
@@ -92,7 +92,7 @@ namespace SKMC.Api.Recipe.Model
|
|
|
/// <summary>
|
|
|
/// 点位单轴位置集合
|
|
|
/// </summary>
|
|
|
- public ObservableCollection<RecipePointPosition> ProcessPointPositions { get; set; } = new ObservableCollection<RecipePointPosition>();
|
|
|
+ public ObservableCollection<RecipePointPosition> RecipePointPositions { get; set; } = new ObservableCollection<RecipePointPosition>();
|
|
|
|
|
|
/// <summary>
|
|
|
/// 获取点位的轴位置值
|
|
|
@@ -101,8 +101,8 @@ namespace SKMC.Api.Recipe.Model
|
|
|
/// <returns></returns>
|
|
|
public double PositionVal(int index = 0)
|
|
|
{
|
|
|
- if (index < 0 || index > ProcessPointPositions.Count - 1) return 0;
|
|
|
- return ProcessPointPositions[index].Position;
|
|
|
+ if (index < 0 || index > RecipePointPositions.Count - 1) return 0;
|
|
|
+ return RecipePointPositions[index].Position;
|
|
|
}
|
|
|
|
|
|
public object Clone()
|
|
|
@@ -112,10 +112,10 @@ namespace SKMC.Api.Recipe.Model
|
|
|
Code = this.Code,
|
|
|
Name = this.Name,
|
|
|
};
|
|
|
- model.ProcessPointPositions = new ObservableCollection<RecipePointPosition>();
|
|
|
- foreach (var item in ProcessPointPositions)
|
|
|
+ model.RecipePointPositions = new ObservableCollection<RecipePointPosition>();
|
|
|
+ foreach (var item in RecipePointPositions)
|
|
|
{
|
|
|
- model.ProcessPointPositions.Add((RecipePointPosition) item.Clone());
|
|
|
+ model.RecipePointPositions.Add((RecipePointPosition) item.Clone());
|
|
|
}
|
|
|
return model;
|
|
|
}
|