Define control areas

Time of definition

No workspace/protection areas are predefined when the controller starts up. A definition in the configuration lists is not possible.

A work or protection space is defined directly in the NC program in a sequence of path motions embedded in plain text commands.

In this case, path motions must always be programmed in absolute dimensions. The contour of the control area in the plane is defined either by a closed polygon formed by linear blocks (target point and starting point of the block sequence must be identical) or by a full circle. The excursion in the third dimension and further characteristics of the control area are defined in the assigned plaintext command.

Start of control area definition:

#CONTROL AREA BEGIN [ ID<expr> WORK | PROT POLY | CIRC

                            MIN_EXCUR<expr> MAX_EXCUR<expr>

                             [EXCUR_AX<expr>|EXCUR_AXNR<expr>] ]

                             (modal, program global and CNC reset global)

ID<expr>

Identification number of the control area (ID). The definition is global valid after program end and RESET. Up to 20 different control areas can be defined.

WORK

Control area is a workspace.

PROT

Control area is a protection space.

POLY

Contour of a control area is defined as a polygonal shape.

CIRC

Contour of a control area is defined as a full circle.

MIN_EXCUR<expr>

Limitation of the control area in the third dimension in negative direction in [mm, inch].

MAX_EXCUR<expr>

Limitation of the control area in the third dimension in positive direction in [mm, inch].

EXCUR_AX<expr>

Optional specification of an axis identifier for the third excursion direction of the workspace or protection area (as of CNC Build V2.11.2025.00). By default the third main axis is used.

EXCUR_AX<expr>

Optional specification of a logical axis number for the third excursion direction of the workspace or protection area (as of CNC Build V2.11.2025.00). By default the third main axis is used.

End of control area definition:

#CONTROL AREA END                                                                                     (modal)

Each control area must be closed by the command #CONTROL AREA END. Only then can further control areas be defined.

Notice

notice

A deactivated area can be overwritten by reprogramming using the same ID.

Attention

attention

Active Cartesian transformations #(A)CS are not considered in the definition of monitored spaces. Workspaces and protection areas are always defined as Cartesian in the MCS coordinate system.

Programing Example

prg_example

Define control areas

(Define a polygonal workspace:

:

N10 #CONTROL AREA BEGIN [ID1 WORK POLY MIN_EXCUR=-50 MAX_EXCUR=50]

N20 G01 F1000 G90 X-150 Y75 (Starting point)

N30 X-50  Y150

N40 X50   Y150

N50 X150  Y75

N60 X150  Y0

N70 X50   Y0

N80 X50   Y75

N90 X-50  Y75

N100 X-50  Y0

N120 X-150 Y0

N130 X-150 Y75 (End point identical to starting point)

N140 #CONTROL AREA END

:

(Define a cylindrical protection area:

:

N210 #CONTROL AREA BEGIN [ID2 PROT CIRC MIN_EXCUR=-70 MAX_EXCUR=70]

N220 G01 X100 Y0 F10000 (Starting point for cylindrical prot. area)

N230 G02 G162 I50 J0

N240 #CONTROL AREA END

: