Format for programming random tool table – Rockwell Automation 8520 9/Series CNC Lathe User Manual
Page 467

Tool Control Functions
Chapter 20
20-11
Format for Programming Random Tool Table
Use this block to set data for the random tool pocket assignment table:
G10.1 L20 P__ Q__ O__ R__;
Where :
Is :
G10.1 L20
This tells the control that the block will be setting data for the random tool pocket
table. The G10.1 L20 is not modal, it must be programmed in every block that
sets data for the random tool pocket assignment table.
P__
The value following the P-word determines the pocket number that is being set.
Q__
The value following the Q-word determines the tool number of the tool that is in
the pocket determined with the P-word.
O__
The value following the O-word enters the number of pockets that are needed for
the tool. Normally a value of one is entered here however, for custom tools that
require more than one pocket, program the number of pockets that are required.
R__
The value following the R-word enters the pocket number of the shaft pocket for
the tool. Normally a value of one is entered here. However, for custom tools
that require more than one pocket, program the location relative to the other
pockets for that tool that the tool changer goes to to access that tool.
For example, this block
G10.1L20P1Q20O1R1;
tells the control that tool number 20 is in pocket number 1;
G10.1L20P3Q23O4R2;
tells the control that tool number 23 has its shaft pocket as pocket number
3, four pockets are required for the custom tool and the second of these
four pockets is the shaft pocket. This means that pockets 2, 3, 4, and 5 are
used for the custom tool number 23.