Box Method
Description
Specifies an approach check area defined within a box.
Syntax
Sub Box (AreaNumber As Integer, MinX As Single, MaxX As Single, MinY As Single, MaxY As Single, MinZ As Single, MaxZ As Single)
Sub Box (AreaNumber As Integer, MinX As Single, MaxX As Single, MinY As Single, MaxY As Single, MinZ As Single, MaxZ As Single, PolarityOn As Boolean)
Parameters
- AreaNumber
An integer from 1 to 15 indicating the number of the set area. - MinX
A number or formula that specifies the minimum X coordinate position (real number) of the set area. - MaxX
A number or formula that specifies the maximum X coordinate position (real number) of the set area. - MinY
A number or formula that specifies the minimum Y coordinate position (real number) of the set area. - MaxY
A number or formula that specifies the maximum Y coordinate position (real number) of the set area. - MinZ
A number or formula that specifies the minimum Z coordinate position (real number) of the set area. - MaxZ
A number or formula that specifies the maximum Z coordinate position (real number) of the set area. - PolarityOn
Optional. Sets the remote output logic when the corresponding remote output is used. To set I/O output to on when the end effector is in the box area, use True. To set I/O output to off when the end effector is in the box area, use False.
Remarks
If an error occurs and the ErrorNumber property of the SpelException is 3101, see the remarks in the SetPoint method.
See Also
BoxClr Method, BoxDef Method, Plane Method, SetPoint Method
Box Example
VB Example:
m_spel.Box(1, -5, 5, -10, 10, -20, 20)
C# Example:
m_spel.Box(1, -5, 5, -10, 10, -20, 20);