PLC Subroutines Manual
54 6FC5397-0FP40-0BA0, 08/2013
Example for calling subroutine 51
Subroutine 52 - TURRET2_BIN_T (turret with binary coding function)
Purpose
Subroutine 52 is used to control the turret with encoder positioning signals and function of dual-direction adjacent tool
change. Contact the turret vendor for the working theory and the timing diagram of a tool change.
During a tool change, the NC interface signals "Read-in disable" (
) and "Feedhold" (
) are
set, so the part program can continue running only after the tool change action.
The turret position action is forbidden in case of an emergency stop, turret motor overload or program test/simulation.
This subroutine can activate the following alarms:
● Alarm 700022: Turret motor overload
● Alarm 700023: Programmed tool number higher than the max. tool number of the turret
● Alarm 700024: Wrong setting of the max. tool number for the turret
● Alarm 700026: Not able to find expected tool in monitor time
● Alarm 700011: Not able to lock tool in expected time
Local variable definition
Table 3-28 Inputs
Tmax WORD Max. tool number of the turret
Tm_Lck WORD Turret clamping time (unit: 0.1 s)
Tm_Chg WORD Tool change monitoring
T_1 BOOL Tool code A x 1
T_2 BOOL Tool code B x 2
T_3 BOOL Tool code C x 4
T_4 BOOL Tool code D x 8
Parity BOOL Position parity
Strobe BOOL Position strobe