|
|
@ -56,12 +56,13 @@ namespace Rs.MotionPlat.Flow.SafePosFlow
|
|
|
|
|
|
|
|
|
|
|
|
private AlarmEntity alarmEntity = null;
|
|
|
|
private AlarmEntity alarmEntity = null;
|
|
|
|
EDischargeModuleGoSafePosFlowStep step = EDischargeModuleGoSafePosFlowStep.到安全位;
|
|
|
|
EDischargeModuleGoSafePosFlowStep step = EDischargeModuleGoSafePosFlowStep.到安全位;
|
|
|
|
TargetPosition targetPos = new TargetPosition();
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 排料头回安全位
|
|
|
|
/// 排料头回安全位
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public void GoSafePostion()
|
|
|
|
public void GoSafePostion()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
TargetPosition targetPos = new TargetPosition();
|
|
|
|
if (finished)
|
|
|
|
if (finished)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
taskFinishedEvent.Reset();
|
|
|
|
taskFinishedEvent.Reset();
|
|
|
@ -138,6 +139,7 @@ namespace Rs.MotionPlat.Flow.SafePosFlow
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public void MoveXToSafe()
|
|
|
|
public void MoveXToSafe()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
TargetPosition targetPos = new TargetPosition();
|
|
|
|
bool arrivedSafePos = false;
|
|
|
|
bool arrivedSafePos = false;
|
|
|
|
EDischargeModuleGoSafePosFlowStep moveXStep = EDischargeModuleGoSafePosFlowStep.到安全位;
|
|
|
|
EDischargeModuleGoSafePosFlowStep moveXStep = EDischargeModuleGoSafePosFlowStep.到安全位;
|
|
|
|
//判断Y1当前在治具还是在料仓,只有在治具侧才需要把X先移动到安全位
|
|
|
|
//判断Y1当前在治具还是在料仓,只有在治具侧才需要把X先移动到安全位
|
|
|
@ -184,6 +186,7 @@ namespace Rs.MotionPlat.Flow.SafePosFlow
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public void MoveY1ToFixtureSide(double targetLoadX)
|
|
|
|
public void MoveY1ToFixtureSide(double targetLoadX)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
TargetPosition targetPos = new TargetPosition();
|
|
|
|
bool arrivedSafePos = false;
|
|
|
|
bool arrivedSafePos = false;
|
|
|
|
EDischargeModuleGoSafePosFlowStep moveY1Step = EDischargeModuleGoSafePosFlowStep.到安全位;
|
|
|
|
EDischargeModuleGoSafePosFlowStep moveY1Step = EDischargeModuleGoSafePosFlowStep.到安全位;
|
|
|
|
//判断Y1当前在治具还是在料仓,只有在料仓侧才需要把Y1先移动治具那边
|
|
|
|
//判断Y1当前在治具还是在料仓,只有在料仓侧才需要把Y1先移动治具那边
|
|
|
|