# Programming

In the NC program, the drive functions are controlled by the NC command #DRIVE WR SYN. The KEY call parameter is used to select the drive function.

## Example

In NC line above, the “MOMRED” drive function is invoked with the value 437 for the X axis.]

#DRIVE WR SYN [AX=X KEY=MOMRED, VAL=437]

The transferred value can be used for parameterisation, whether

- the value is transferred to the drive unchanged
- a parameterised conversion is applied to the value
- a bit is set or reset in a bit string transferred to the drive by the programmed value

By parameterising the CNC kernel, make sure that this NC line is mapped onto the appropriate parameterisation of the drive controller depending on the drive profile used.

## Notice

The value transferred to the call parameter VAL can only be converted to the drive format for torque/current values.

## Additional information

- Example 1: Reducing the maximum torque
- Example 2: Disabling speed monitoring