# ID 310024

Before activating distance control the command height must be specified.
Description | Before distance control is activated in “surface” mode, specify the command height of the workpiece surface SET_POS. Example of axis-specific distance control: Z [DIST_CTRL ON SET_POS=100] See: [FCT-M3//Specifying the workpiece surface] Example of 3D distance control:

#DIST CTRL ON [SURFACE SET_POS=100 … ]

Response | Class | 7 | Controlled halt of the axis, the control loop is closed.
Solution | Class | 6 | Check and modify the NC program; set the command height before or on activating distance control.
Parameter | %1: | Logical axis number [-] or Logical channel number [-]
Logical axis number Axis parameters of the axis affected for axis-specific distance control, logical channel number Logical number of a NC channel (P-CHAN-00400) for 3D distance control.
%2: | Block number [-]
Block number in the NC program
Error type | -