<< Prev        Next >>

ID : 3626

Area

Function

To change the detection area setting value.

This command is available in Ver.2.5.* or higher.

Syntax

Area area number, center, size, I/O number, storage variable number
[,
error detection setting] [, area option]

Guaranteed Entry

Area number
Designate an area number (0-31). Designate by Integer Type data.
Center
Designate the position and rotation (inclination) of the center point of a detection area. Designate by Position Type data.
Size
Designate the size (Dx, Dy, Dz) of an area by Vector Type data from area's center to corner.
I/O number
Designate an I/O port number to output signal at the time of detection. Designate by Integer Type data. Designate "-1" when no I/O output is performed. You cannot designate any non-existing port number or I/O port number that cannot output signals.
Storage variable number
Designate an index number of Position Type global variable to store the detection position. Designate by Integer Type data. Designate "-1" when no detection position is stored.
Error detection setting
Designate a detection method and error output. Designate by Integer Type data. This is an optional value. This should be "0" if this is omitted. For details, refer to FUCTION GUIDE "Interpreting a Detected Area Interference as an Error".
Area option
An optional function can be added. For details, refer to Area Option.

Description

The detection area setting value is changed.
Area is still checked during motor-off state.

Attention

Any change to the currently valid area data is reflected and area detection is performed with the changed data.

Example

'!TITLE "Declaration of Detection Area"
' Declare the area number 2 as a detection target
Sub Sample_Area

  ' Define an area specified by P[50], V[10] in the area number 2
  Area 2, P[50], V[10], 24, 55

  ' Enable area check of the area number 2
  SetArea 2

  ' Disable area check of the area number 2
  ResetArea 2

End Sub

ID : 3626

<< Prev        Next >>