Descriptions of the PLC subroutines
3.27 Subroutine 54 - Turret2_3_ToolDir (tool change direction)
PLC Subroutines Manual
66 Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
Local variable definition
Table 3- 30 Inputs
Name Type Description
Tmax DWORD The max. turret tool position number
Pnum DWORD Programmed tool number
Tcurr DWORD Current position of the turret
Table 3- 31 Outputs
Name Type Description
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.
0DNHRXWWKHGLUHFWLRQRIWXUUHWDVZHOODVSUHLQGH[LQJSRVLWLRQ1HWZRUN
21(
722/B',5
7PD[
3B& B7)81&3QXP
7&855(173FXUU
3B,1'(;R3B,1'(;R
',50
(1