You can use the Q, QL, QR and QS parameter variables of the control to perform calculations in an NC program, for example.
- For instance, you can program the following syntax elements variably:
- Coordinate values
- Feed rates
- Spindle speeds
- Cycle data
You can use the Q, QL, QR and QS parameter variables of the control to perform calculations in an NC program, for example.
Q parameters are always identified with letters and numbers. The letters determine the type of Q parameter and the numbers the Q parameter range.
You can define which parameters the control displays on the QPARA tab of the Status workspace for each variable type.
Defining the contents of the QPARA tab
The control provides the following variables for numerical values:
Q parameter type | Q parameter range | Meaning |
---|---|---|
Q parameters: | Parameters affect all NC programs in the control’s memory | |
0 to 99 | Parameters for the user, if there are no overlaps with the HEIDENHAIN-SL cycles Tip These parameters have a local effect within macros and OEM cycles. This means that changes are not returned to the NC program. For this reason, use the Q parameter range 1200 to 1399 for OEM cycles! | |
100 to 199 | Parameters for special functions on the control that can be read by NC programs of the user or by cycles | |
200 to 1199 | Parameters primarily used for HEIDENHAIN cycles | |
1200 to 1399 | Parameters primarily used for OEM cycles | |
1400 to 1999 | Parameters for users | |
QL parameters: | Parameters only effective locally within an NC program | |
0 to 499 | Parameters for users | |
QR parameters: | Parameters are retained in all NC programs in the control’s memory, including after a power interruption | |
0 to 99 | Parameters for users | |
100 to 199 | Parameters for HEIDENHAIN functions (e.g., cycles) | |
200 to 499 | Parameters for the machine manufacturer (e.g., cycles) |
In addition, the control provides QS parameters for alphanumeric values, e.g. texts:
Q parameter type | Q parameter range | Meaning |
---|---|---|
QS parameters: | Parameters affect all NC programs in the control’s memory | |
0 to 99 | Parameters for the user, where no overlaps with the HEIDENHAIN SL cycles are present Tip These parameters have a local effect within macros and OEM cycles. This means that changes are not returned to the NC program. For this reason, use the QS parameter range 200 to 499 for OEM cycles! | |
100 to 199 | Parameters for special functions on the control that can be read by NC programs of the user or by cycles | |
200 to 1199 | Parameters primarily used for HEIDENHAIN cycles | |
1200 to 1399 | Parameters primarily used for OEM cycles | |
1400 to 1999 | Parameters for users |
In the Q parameter list window, you can see and edit the current values of all variables defined in the control.
In the left-hand panel, you can select the variable type to be displayed.
If the field in the Value column is displayed with a white background, you can enter a value or edit the existing value.
While the control is executing an NC program, you cannot edit the variables using the Q parameter list window. Changes are only possible while a program run has been interrupted or aborted.
Status overview on the control bar
This status is reached after an NC block has been executed, for example in the Single Block mode
You can select the NR or Value columns and then enter the desired string. The control will search the selected column for this string.
In the Manual and Program Run operating modes, the window can be opened with the Q key.
On the virtual keyboard, this procedure only works with the Q key in the NC functions area.
Virtual keyboard of the control bar
Setting a variable to undefined
The control saves QR parameters within a backup.
If the machine manufacturer did not define a specific path, the control will save the QR parameter values in the following path: SYS:\runtime\sys.cfg. This partition will only be backed up in full backups.
If the machine manufacturer used the optional machine parameters to specify a path on the TNC partition, you can perform a backup with the NC/PLC Backup functions without entering a code number.