Commissioning Manual
170 6FC5397-4EP10-0BA8, 07/2018
Local variable definition
Inputs
Possible positions of the turret
P_INDXo DWORD Pre-indexing position: the previous tool position of the desired tool in the direction of
an adjacent tool
DIR BOOL Direction for tool change
1: for turret CW; 0: for turret 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.
Subroutine 55 - Tail_stock_T (Tailstock control program for turning machines)
Purpose
Subroutine 55 is used to control forward or backward movement of the tailstock on a turning machine.
In JOG mode, press the "Tailstock" key to move the tailstock forward or backward. Pressing "Tailstock" moves the tailstock
forward, and one more pressing moves the tailstock backward.
In AUTO mode, you can use M20 or M21 to control the forward or backward movement of the tailstock.
Local variable definition
Inputs
Tailstock control key: press 1st time, advance; 2nd time, retract
Tail advance/retract flag