Fanuc-Karel中STOP与RESUME功能体验
STOP动作:机器人所有动作减速停止,可以恢复
RESUME:重新启动
用法很多,我只是简单的介绍一下几个动作,说明FANUC机器人有这几个动作是吧,还是老样子,我们先来看一个视频,看程序是怎么运行的。
STOP动作:
主要语法为:STOP
如果说是没有指定组的stop的话,那么它默认所有动作组都将减速停止
可以随时恢复,继续运行
import ant; overflow-wrap: break-word !import ant;">STOP<GROUP[n{,n}]>
RESUME动作:
主要语法为:RESUME
恢复运行
import ant; overflow-wrap: break-word !import ant;">RESUME
import ant; overflow-wrap: break-word !ant;">--示例代码如下: import
import ant; overflow-wrap: break-word !ant;">PROGRAM Condition_TE import
import ant; overflow-wrap: break-word !ant;">%COMMENT='CONDITION V1.0' import
import ant; overflow-wrap: break-word !ant;"> import
import ant; overflow-wrap: break-word !ant;">CONST import
import ant; overflow-wrap: break-word !ant;">SUCCESS = 0 import
import ant; overflow-wrap: break-word !ant;"> import
import ant; overflow-wrap: break-word !ant;">VAR import
import ant; overflow-wrap: break-word !ant;">STATUS:INTEGER import
import ant; overflow-wrap: break-word !ant;">success1:BOOLEAN import
import ant; overflow-wrap: break-word !ant;">BEGIN import
import ant; overflow-wrap: break-word !ant;"> CONDITION[1]: import
import ant; overflow-wrap: break-word !ant;"> --定义条件处理指令1 import
import ant; overflow-wrap: break-word !ant;"> WHEN DOUT[25] DO import
import ant; overflow-wrap: break-word !ant;"> --当Dout[25]=TRUE 停止机器人 import
import ant; overflow-wrap: break-word !ant;"> ENABLE CONDITION[1] import
import ant; overflow-wrap: break-word !ant;"> STOP import
import ant; overflow-wrap: break-word !ant;"> --启用条件1 import
import ant; overflow-wrap: break-word !ant;"> ENDCONDITION import
import ant; overflow-wrap: break-word !ant;"> ENABLE CONDITION[1] import
import ant; overflow-wrap: break-word !ant;"> CONDITION[2]: import
import ant; overflow-wrap: break-word !ant;"> WHEN DOUT[27] DO DOUT[25]=FALSE import
import ant; overflow-wrap: break-word !ant;"> --当DOUT[27] =TRUE 将DOUT[25]置为FALSE import
import ant; overflow-wrap: break-word !ant;"> DISABLE CONDITION[1] import
import ant; overflow-wrap: break-word !ant;"> --禁用条件处理程序1 import
import ant; overflow-wrap: break-word !ant;"> RESUME import
import ant; overflow-wrap: break-word !ant;"> --恢复机器人动作 import
import ant; overflow-wrap: break-word !ant;"> ENDCONDITION import
import ant; overflow-wrap: break-word !ant;"> import
import ant; overflow-wrap: break-word !ant;"> ENABLE CONDITION[2] import
import ant; overflow-wrap: break-word !ant;"> RUN_TASK('movehome',1,TRUE,TRUE,1,STATUS) import
import ant; overflow-wrap: break-word !ant;"> --运行机器人回到HOME位置 import
import ant; overflow-wrap: break-word !ant;"> IF (STATUS = SUCCESS) THEN import
import ant; overflow-wrap: break-word !ant;"> WRITE('Robot Program runs success',CR) import
import ant; overflow-wrap: break-word !ant;"> ENDIF import
import ant; overflow-wrap: break-word !ant;"> import
import ant; overflow-wrap: break-word !ant;"> READ(CR)--读取enter键 import
import ant; overflow-wrap: break-word !ant;"> DISABLE CONDITION[1] import
import ant; overflow-wrap: break-word !ant;"> DISABLE CONDITION[2] import
import ant; overflow-wrap: break-word !ant;"> import
import ant; overflow-wrap: break-word !ant;"> import
import ant; overflow-wrap: break-word !ant;">END Condition_Te import