July 2013 9.5 Data Transfer NC > PLC, PLC > NC 1725
9.5.4 Data transfer NC > NC program (FN18: SYSREAD)
The FN18: SYSREAD function is particularly useful for OEM cycles if you wish
to have access from the part program to certain NC data, such as active tool
compensation. 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 datum
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 status
20 1 – Active tool number
2 – Prepared tool number
3 – Active tool axis
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 active tool
13 – Number of the active spindle (0 or 1)
15 Number of
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)
17 – Current range of traverse