function axisLimitCheck(axis, distance){ // axis is either x, y, z, which the joging button was clicked // distance is the selected jog distance (-/+)
if (axis.location > (current position + distance )) { // 执行 } else if (axis.location < (current position + distance)) { // Alert warning and prompt to jog only up to max area of machine }
只允许前往机器区域
我错误地低估了几次慢跑距离,结果磨掉了机器上的齿轮。我试过搜索问题/功能请求,但没有找到类似这样的结果。我认为可以为 x、y、z 行程设置默认测量值(机器设置小部件?),并在执行慢跑步骤时执行计算:
function axisLimitCheck(axis, distance){
// axis is either x, y, z, which the joging button was clicked
// distance is the selected jog distance (-/+)
if (axis.location > (current position + distance )) {
// 执行
}
else if (axis.location < (current position + distance))
{
// Alert warning and prompt to jog only up to max area of machine
}
如果这已经存在,太好了!如果没有,谢谢您的考虑。