PLC Subroutines Manual
58 6FC5397-0FP40-0BA0, 08/2013
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
Local variable definition
Table 3-32 Inputs
Tmax DWORD The max. turret tool position number
Pnum DWORD Programmed tool number
Tcurr DWORD Current position of the turret
Table 3-33 Outputs
P_INDXo DWORD Pre-indexing position: the previous tool position of the desired tool in the direction of
an adjacent tool.
DIR BOOL Tool change direction:
1: CW; 0: CCW
Assigned global variables
None
Relevant PLC machine data
None
Example for calling subroutine 54
This subroutine is called by subroutine 52 and subroutine 53.