Detailed Description
2.2 Flat D number structure
Tool Compensation (W1)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2-21
Indirectly parameterized program
D=$A_DNO[n]
Meaning: Select the D number entered at position n (=1 to 9) in the VDI D number table.
The $A_DNO variable is read during run-up with advance forced synchronization with the
main run.
The D numbers available in the VDI interface can be read with $A_DND.
Note
Before the NCK main run reads the D number, it must be ensured beyond doubt that the
PLC has written the D numbers that match the previously programmed T value. This
mechanism (in the NCK) usually initiates a wait for PLC in the NCK.
Indirect indexed programming
Dn or D=n
Meaning: Select the D number entered at position n (=1 to 9) in the VDI D number table.
Although this syntax is identical to the conventional one, it activates the compensation block
for the D number determined for index n internally.
Example of indirect D programming sequence:
MD20270 = 0
MD22550 = 0
Spindle no. 2 is not the master spindle
Part program Action
T4 Tool change command: NCK outputs the value 4 as T auxiliary function. PLC
evaluates it and provides the associated absolute D numbers in the VDI. The
PLC only does this if the address extension received is the number of the
master spindle. A simple communication protocol allows the NCK to detect
whether the associated D numbers are available for the subsequent
programmed D.
X1
...
D1 The NCK feed is synchronized with the main run, checks whether the new D
numbers are present in the VDI (and waits if necessary) and accepts the
desired (absolute) D number at position 1 (D1), e.g., the number 4711.
The NCK now determines the compensation block 4711 and calculates the
geometry. The NC copies the entire content of the D number table to the VDI
interface (each time a tool change command is detected).
D=$P_DNO[2] Contents correspond to the programming of D2 (for indirect programming)