我这里有个速度/位置 轴,开始位置在75mm处,通过_pos指令走到0,之后通过_move指令正向运动,当传感器检测到信号时通过_stop指令停止轴,但是监控上该轴位置还在变化,轴.motionstate处于standstill状态
轴.motioncommond处于end_of_interpolation状态
下面我把几个指令贴出来
//------------------------------------------------------------------
var_myretdint := _move(axis :=axis1,
direction :=positive,
velocityType :=DIRECT,
velocity :=40.0,
moveTimeOutType :=WITHOUT_TIME_LIMIT,
positiveAccelType :=DIRECT,
positiveAccel :=100,
negativeAccelType :=DIRECT,
negativeAccel :=100,
positiveAccelStartJerkType :=DIRECT,
positiveAccelStartJerk :=100,
positiveAccelEndJerkType :=DIRECT,
positiveAccelEndJerk :=100,
negativeAccelStartJerkType :=DIRECT,
negativeAccelStartJerk :=100,
negativeAccelEndJerkType :=DIRECT,
negativeAccelEndJerk :=100,
mergeMode :=IMMEDIATELY,
nextCommand :=IMMEDIATELY,
commandId :=_getCommandId(),
movingMode :=POSITION_CONTROLLED);
//----------------------------------------------------------------------------------------------
Var_MyRetDint :=_stop(axis :=axis1,
stopMode :=STOP_AND_ABORT,
stopSpecification :=ALL_AXIS_MOTION,
movingMode :=CURRENT_MODE,
stopId :=_getCommandId(),
velocityProfile :=TRAPEZOIDAL,
positiveacceltype :=DIRECT,
positiveaccel :=5000.0,
negativeacceltype :=DIRECT,
negativeaccel :=5000.0,
mergeMode :=IMMEDIATELY,
nextCommand :=IMMEDIATELY,
commandId :=_getCommandId());