### Write CNC Variable

Select the Operation | CNC Programming | Write CNC Variable menu option to open the Write CNC Variable dialog box.

Write CNC Variable dialog box

CNC/WRITEVARIABLE,variableNumber,valueToWrite

This command writes a value to a CNC register. A block of 10 values is reserved on the CNC control for I/O between the part program and the control.

variableNumber should be a value between 1 and 10. This will be mapped to a register on the CNC control.

valueToWrite is the value that will be written to the CNC register. This can be either a floating point number or an expression that evaluates to a floating point number. Expressions must be added in the edit window rather than entering it in the dialog. This command is supported only by controls that allow writing directly to registers by outside processes.