InsidePlane函数
用于返回进入检测平面的检测状态。
格式
InsidePlane (平面编号 [, 机器人编号 | All])
参数
- 平面编号
- 指定返回状态的进入检测平面的编号(1~15的整数)。
- 机器人编号
- 以整数值指定要检测的机器人编号。已省略机器人编号时,以当前选择的机器人为对象。指定All时,进入1台机器人也会返回True。
返回值
如果机器人的卡爪工具位置进入到指定的进入检测平面,则会返回“True”;如果未进入,则会返回“False”。
参阅
InsideBox、GetRobotInsidePlane、Plane、PlaneClr、PlaneDef
注意
在Epson RC+5.0中可以与Wait命令组合等待InsidePlane函数的结果,而在Epson RC+ 6.0, RC+ 7.0, Epson RC+ 8.0中不能与Wait命令组合。在这种情况下,请使用GetRobotInsidePlane函数以替代InsidePlane函数。
对应表
RC+版本 | 机器人控制器 | Wait | Till、Find、Sense、Trap | Print等左述以外的命令/分支判定处理 | GetRobotInsideBox函数的利用 |
---|---|---|---|---|---|
RC+ 8.0 | RC700系列 | 不可 | 不可 | 可 | 均可 |
RC+ 8.0 | RC90系列 | 不可 | 不可 | 可 | 均可 |
RC+ 7.0 | RC700系列 | 不可 | 不可 | 可 | 均可 |
RC+ 7.0 | RC90系列 | 不可 | 不可 | 可 | 均可 |
RC+ 6.0 | RC620 | 不可 | 不可 | 可 | 均可 |
RC+ 5.0 | RC90系列 | 可 | 不可 | 可 | 不可 |
- 不可:不可利用的组合
- 可:可利用的组合
- 均可:可用于Wait、Till、Find、Sense、Trap、Print等的显示、分支判定处理
InsidePlane函数使用示例
下述程序示例为判断3号平面是否进入了机器人1的示例。
Function PrintInsidePlane
If InsidePlane(3,1) = True Then
Print "Inside Plane3"
Else
Print "Outside Plane3"
EndIf
Fend
← InsideBox函数 InStr函数 →