InsideBox Function
Returns the check status of the approach check area.
Syntax
InsideBox(AreaNum [, robotNumber | All])
Parameters
- AreaNum
- Specify the number (an integer from 1 to 15) of the entry detection area whose status is to be returned.
- robotNumber
- Specify the number of the robot to be detected as an integer value. If omitted, the current robot will be specified. If you specify All, True is returned if one robot is in the check area.
Return Values
True if the robot end effector approaches the specified approach check area, otherwise False.
See Also
Box, BoxClr, BoxDef, GetRobotInsideBox, InsidePlane
Note
You can use the Wait statement with InsideBox to wait for the result of the InsideBox function in EPSON RC+ 5.0. However, you cannot use it in EPSON RC+ 6.0, RC+ 7.0, and Epson RC+ 8.0. In this case, use the GetRobotInsideBox function instead of the InsideBox function.
Correspondence table
RC+ version | Robot Controller | Wait | Till, Find, Sense, Trap | Other commands (such as Print)/branch decision processing | Use of GetRobotInsideBox Function |
---|---|---|---|---|---|
RC+ 8.0 | RC700 series | Not available | Not available | Available | All available |
RC+ 8.0 | RC90 series | Not available | Not available | Available | All available |
RC+ 7.0 | RC700 series | Not available | Not available | Available | All available |
RC+ 7.0 | RC90 series | Not available | Not available | Available | All available |
RC+ 6.0 | RC620 | Not available | Not available | Available | All available |
RC+ 5.0 | RC90 series | Available | Not available | Available | Not available |
- Not available: Unavailable combination
- Available: Available combination
- All available: Available for Wait, Till, Find, Sense, Trap, Print, and branch decision processing.
InsideBox Function Example
The following program checks Robot 1 is in the check area (Box 3) or not.
Function PrintInsideBox
If InsideBox(3,1) = True Then
Print "Inside Box3"
Else
Print "Outside Box3"
EndIf
Fend