|
注册用户,获取RB币,享更多免费资源下载和阅读权限。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
程序运行停止指令ExitCycle-ABB机器人标准指令编程
6 `& ]; P# @: g+ a. K* A n5 fExitCycle; ExitCycle指令应用:1 N( T4 e) x( D. b% H, L- F' ?
机器人在当前指令行停止运行,并且设定当前循环结束,机器人自动从主程序第一行继续运行下一个循环。4 e F; H, v3 `) H# A: v# m
8 g3 M( c! t: N" c' s* ~+ r
ExitCycle指令实例:/ W. t; F( x- G9 J1 ^
PROC main()
& A# A' s. S' [ IF cyclecount=0 THEN
+ a9 I' I: {! D$ m2 w! v( c. e8 \1 U) ^ CONNECT error_intno WITH error_trap;
" ^2 s, ]# f8 Z8 G3 j ISignalDI di_error,1,error_intno;+ [4 d* \" k/ t: W/ I3 y! z3 `- t* @
ENDIF" O# s' `2 K6 A& u7 m! ^0 q$ E6 B$ S: x
cyclecount:=cyclecount+1;
- _& L1 j8 A, B W$ ~5 u: S9 R! ~ ! start to do something intelligent {. d+ Y2 a1 e0 R$ w
....
' }4 r4 C. e4 P! p- S2 K ENDPROC
. P( ]* d- _: E: I* l' |7 U& V( L6 n4 t+ ~! d/ E. V& C
; m6 o" X$ u. n7 E1 v2 u# l
TRAP error_trap
. x( {1 x% o3 p3 { TPWrite “I will start on the next item”;8 s2 |1 f" K8 A8 s3 W
ExitCycle;7 w* `. r7 Z; x2 E5 V
ENDTRAP% `1 J0 q3 D& g u, U: a
|
|