# Programming

## Definition and activation

Workspace and protection areas are defined and activated directly in the NC program. Different # commands are available for this purpose. The #CONTROL AREA function initiates a workspace/protection area command. A number of different options are then expected depending on the # command issued.

All possible states for a single control area are shown in the diagram below. In the diagram, the term "nop" stands for ‘No Operation’ and thus for a direct state transition.

State transitions caused by #CONTROL AREA commands

## Notice

Program end

Active workspace and protection areas are not automatically deactivated at the end of the NC program; i.e. they continue to be monitored at the next program start. The OFF command can be used to explicitly deactivate workspace and protection areas at the end of the CNC program.

## Notice

Controller reset

Stored workspace/protection areas are not deleted when the controller is reset. They are only deactivated and can be reactivated at any time by their IDs.

The clear command is used to explicitly clear workspace/protection areas.

## Additional information

- Defining workspace and protection areas
- Activating workspace and protection areas
- Deactivating workspace and protection areas
- Clearing workspace and protection areas