Descriptions of the PLC subroutines
3.32 Subroutine 60 - Disk_MGZ_M (disk-style tool magazine for milling)
PLC Subroutines Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
73
3.32 Subroutine 60 - Disk_MGZ_M (disk-style tool magazine for milling)
Purpose
You can use subroutine 60 to control the disk-style tool magazine on a milling machine.
In the reference point mode, initialize the tool magazine by pressing the "Original position of
the tool magazine" key.
In the manual mode, you can rotate the tool magazine clockwise or counter-clockwise, and
enable the tool magazine to reach the spindle or tool change position respectively through
the "Clockwise rotation of the magazine", "Counter-clockwise rotation of the magazine",
"Tool magazine reaching the spindle", and "Tool magazine reaching the tool change
position" keys.
In the auto mode, you need to execute M06 to call the tool change subroutine when
compiling a part program. Subroutine 60 and the tool change subroutine must be used
together during the tool change process. Three operations are involved in the tool change
control, that is, tool return, tool retrieval, and tool change.
1. The tool return operation is to return the tool on the spindle back to the tool magazine
disk when compiling T0 and a tool is located on the spindle.
2. The tool retrieval operation is to get the desired tool from the tool magazine disk and
install it on the spindle when compiling Tx (x ≠ 0) and no tool is on the spindle.
3. The tool change operation is to first return the tool on the spindle back to the tool
magazine disk and then get the desired tool from the tool magazine disk when compiling
Tx (x ≠ 0; x ≠ number of the tool on the spindle).
For details, please refer to the tool change subroutine.
The following machine data is involved in this subroutine:
MD10715: M_NO_FCT_CYCLE[0]
MD10716: M_NO_FCT_CYCLE_NAME[0]
MD22550: TOOL_CHANGE_MODE
MD22560: TOOL_CHANGE_M_CODE
Local variable definition
Table 3- 39 Inputs
Name Type Description
MgzCnt BOOL Tool magazine count
MgzRef_k BOOL Tool magazine reset, with the current tool number set
to 1
MgzCW_k BOOL Tool magazine forward
MgzCCW_k BOOL Tool magazine backward
MgzSp_k BOOL Spindle position key for the tool magazine
MgzOrg_k BOOL Original position key for the tool magazine