Descriptions of the PLC subroutines
3.27 Subroutine 54 - Turret2_3_ToolDir (tool change direction)
PLC Subroutines Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
65
Example for calling subroutine 53
3.27 Subroutine 54 - Turret2_3_ToolDir (tool change direction)
Purpose
Subroutine 54 is used to find out the direction of searching for an adjacent tool and the pre-
indexing position (this is, the previous position of the desired tool in the direction of an
adjacent tool). To find out the direction, you need to know the max. tool number of the turret
and the programmed tool number.
You can use this subroutine to control the turret to search for an adjacent tool on a turning
machine or a machine centre. The turret tool position ranges from 2 to 64.
For example:
&XUUHQWSRVWLRQ
&&:
&:
Tool position
number
Current position Programmed tool number Pre-indexing position Direction
1 7 2 1 CCW
2 7 5 6 CW
3 3 8 1 CW
4 1 4 3 CCW
5 6 8 7 CCW