SETAREA (Statement)


Selects the area where an interference check is performed.


SETAREA <Interference check area number>


<Interference check area number> selects the interference check area previously defined. The valid area numbers are from 0 to 31. This must be declared beforehand using the AREA command.
An interference check is performed during the time after the SETAREA command is executed and prior to the execution of the RESETAREA command. Once interference is detected, the RESETAREA command is executed. The next interference is not detected until SETAREA is executed again.
An interference check can be executed simultaneously in a maximum of 32 areas specified using the area numbers from 0 to 31, if the SETAREA command has been executed.
The SETAREA command does not initialize the designated I/O declared by the AREA command. In such a case, the I/O is directly set in the input/output control statement and initialization of the RESETAREA command is required.



DIM lp1 As Position
DIM lv1 As Vector
Lp1 = (10, 10, 5, 0, 9, 0, 1)
Lv1 = (50, 10, 50)
AREA 2, lp1, lv1, 104, 1
'Declares I/O number 104 in the area
'specified by lv1 at the position
'specified by lp1 in area number 2.
SETAREA 2
'Makes the area check of number 2 valid.
RESETAREA 2
'Initializes the area check of number 2.


Top