December 2001 Data Transfer NC → PLC, PLC → NC 7 – 23
7.3.3 Data Transfer NC Program → NC (SYSWRITE)
You can use the FN17: SYSWRITE function particularly for OEM cycles if you
wish to overwrite certain NC data, e.g., an active basic rotation, from the NC
program. A group number, a system data number, and an index specify the
particular item of system data that you write: FN17: SYSWRITE IDxxxx NRxxxx
IDXxxxx = Qxxx or numerical value; comment. In the NC program you must
enter the code number 555 343 before you can define function FN17 (soft
keys: Q-parameter programming, special functions). After a control reset, the
code number must be entered again if you wish to program FN17. The TNC
provides the following functions:
Group
name
Group
number
ID....
System data
number
NR....
System data
index
IDX....
System data item
Spindle switchover
20 13 – 0 = Spindle 1
1 = Spindle 2
Data from the tool table
50 1 Tool no. Tool length L
2 Tool no. Tool radius R
3 Tool no. Tool radius R2
4 Tool no. Oversize in tool length DL
5 Tool no. Oversize in tool radius DR
6 Tool no. Oversize in tool radius DR2
7 Tool no. Tool locked TL
0 = not locked, 1 = locked
8 Tool no. Number of the replacement tool RT
9 Tool no. Maximum tool age TIME1
10 Tool no. Maximum tool age TIME2
11 Tool no. Current tool age CUR. TIME
12 Tool no. PLC status
13 Tool no. Maximum tooth length LCUTS
14 Tool no. Maximum plunge angle ANGLE
15 Tool no. TT: Number of tool teeth CUT
16 Tool no. TT: Wear tolerance in length LTOL
17 Tool no. TT: Wear tolerance in radius RTOL
18 Tool no. TT: Direction of rotation DIRECT
0 = positive, –1 = negative
19 Tool no. TT: Offset in plane R-OFFS
R = 99 999.9999
20 Tool no. TT: Offset in length L-OFFS
21 Tool no. TT: Break tolerance in length LBREAK
22 Tool no. TT: Break tolerance in radius RBREAK
23 Tool no. PLC value