ID : 3632
SetArea
Function
To activate detection in a designated detection area.
This command is available in Ver.2.5.* or higher.
Syntax
SetArea area number
Guaranteed Entry
- Area number
- Designate an area number from 0 to 31 by Integer Type data.
Description
An area of the designated area number is activated.
Related Terms
Area, ResetArea, AreaPos, AreaSize, GetAreaDetected, ClearAreaDetected, Area Function
Attention
- Activate Area detection. Switch ON/OFF the specified I/O, based on the Area command configuration.
- Assuming that the same I/O is used for two areas (see the figure below), and the I/O turns ON once an object enter the detection area. When SetArea1 command is executed while an object is already exist in Area1, the I/O turns ON; however, if SetArea2 command is executed succeedingly, the I/O turns OFF.
Example
'!TITLE "Initialization of Interference Check"
' Initialization of interference check
Sub Sample_SetArea
Dim aaa As Position
Dim bbb As Vector
aaa = P( 10, 10, 5, 0, 9, 0, 1 )
bbb = V( 50, 10, 50 )
Area 2, aaa, bbb, 104, 1
SetArea 2
ResetArea 2
End Sub
ID : 3632