Read system data with FN 18: SYSREAD
Application
The FN 18: SYSREAD function can be used to read system data and store this data in variables.
Related topics
- List of the system data of the control
- Read system data using QS parameters
Description of function
The control always outputs system data in the metric system with FN 18: SYSREAD, regardless of the unit of the NC program.
Input
11 FN 18: SYSREAD Q25 = ID210 NR4 IDX3 | ; Save the active dimension factor of the Z axis in Q25 |
To navigate to this function:
Insert NC function FN Special functions FN 18 SYSREAD
The NC function includes the following syntax elements:
Syntax element | Meaning |
---|---|
FN18: SYSREAD | Read the syntax initiator for system data |
Q/QL/QR or QS | Variable in which the control stores the information Fixed or variable number or name |
ID | Group number of the system datum Fixed or variable number or name |
NR | System data number Fixed or variable number or name Optional syntax element |
IDX | Index Fixed or variable number or name Optional syntax element |
. | Sub-index for system data for tools Fixed or variable number or name Optional syntax element |
Note
As an alternative, you can use TABDATA READ to read out data from the active tool table. In this case, the control will automatically convert the table values to the unit of measure used in the NC program.