December 2001 Data Transfer NC → PLC, PLC → NC 7 – 27
7.3.4 Data Transfer NC → NC Program (SYSREAD)
You can use the FN18: SYSREAD function particularly for OEM cycles if you wish
to access certain NC data, e.g., active tool compensation values, from the NC
program. A group number, a system data number, and an index specify the
particular item of system data that you read:
FN18: SYSREAD Qxxx = IDxxxx NRxxxx IDXxxxx (xxxx: Q parameter or
numerical value); comment
Group
name
Group
number
ID....
System data
number
NR....
System data
index
IDX....
System data item
Program information
10 1 – mm = 0, inch = 1
2 – Overlap factor for pocket milling
3 – Number of the active fixed cycle
4 – Number of the last DEF-active OEM
cycle
Machine state
20 1 – Tool number
2 – Prepared tool number
3 – Active tool number
0 = X 6 = U
1 = Y 7 = V
2 = Z 8 = W
4 – Programmed spindle speed
5 – Active spindle status
–1 = Spindle status undefined
0 = M3 active
1 = M4 active
2 = M5 active after M3
3 = M5 active after M4
8 – Active coolant status
0 = off, 1 = on
9 – Active feed rate
11 – Index of the active tool
15 Number of the
logical axis
Assignment of the logical axes and
geometrical axes (0 = X, 1 = Y, 2 = Z,
3 = A, 4 = B, 5 = C, 6 = U, 7 = V, 8 =
W)