PLC Subroutines Manual
6FC5397-0FP40-0BA0, 08/2013
59
3.28
Subroutine 55 - Tail_stock_T (Tailstcok control program for turning
machines)
Purpose
Subroutine 55 is used to control forward or backward movement of the tail stock on a turning machine.
In the 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 the AUTO mode, you can use M20 or M21 to control the forward or backward movement of the tailstock.
Local variable definition
Table 3-34
Inputs
Name
Type
Description
TailCtrl_K
BOOL
Tailstock
SP_status
BOOL
Spindle status
Table 3-35
Outputs
Name
Type
Description
TailAdv_O
BOOL
Output to move the tailstock forward
TailRet_O
BOOL
Output to move the tailstock backward
Assigned global variables
SP_RUNm
BOOL
M236.0
Indicate that the spindle is running
TailAdv_m
BOOL
M229.2
Indicates that the tailstock is moving forward
TailRet_m
BOOL
M229.3
Indicates tailstock is moving backward
Relevant PLC machine data
None
Example for calling subroutine 55
3.29
Subroutine 56 - Lock_unlock_T (clamping control for turning machines)
Purpose
Subroutine 56 is used to control the clamping or release for the chuck for a turning machine.
In the JOG mode, press the "External/Inside clamping" key to select either external clamping or inside clamping, and press
"Clamp" or "Unclamp" key to clamp or release the chuck. Furthermore, you can also use the "Foot switch" to clamp or
release the chuck. Pressing the "Foot switch" for once release the chuck, and one more pressing clamps the chuck.
In the AUTO mode, you can execute M10/M11 to control the clamping or release of the chuck.