PLC Subroutines Manual
6FC5397-0FP40-0BA0, 08/2013
73
Table 5-4
Definition of user-defined keys on the MCP
User-defined key 1
Working lamp
User-defined key 2
Manual cooling
User-defined key 3
Safe door
User-defined key 4
Manual clockwise rotation of the tool magazine
User-defined key 5
Manual reset of the tool magazine
User-defined key 6
Manual counter-clockwise rotation of the tool magazine
User-defined key 7
Removing chip forward
User-defined key 8
Removing chip backward
Structure of the sample application (OB1)
Call Conditions
Subroutine Name
Description
Each scan (SM0.0)
AUX_MCP (SBR20)
Auxiliary function
First scan (SM0.1)
PLC_INI (SBR32)
PLC initialization
Each scan (SM0.0)
EMG_STOP (SBR33)
Emergency Stop control
Each scan (SM0.0)
MCP_NCK (SBR37)
Transferring MCP and HMI signals to
the NCK interface
Each scan (SM0.0)
HANDWHL (SBR39)
Selecting a hand wheel through the
interface signal DB1900.DBB1xxx
Each scan (SM0.0)
AXIS_CTL (SBR40)
Coordinate enabling control, hardware
limit, etc.
Each scan (SM0.0)
SPINDLE (SBR42)
Spindle control
Each scan (SM0.0)
COOLING (SBR44)
Cooling control
Each scan (SM0.0)
LUBRICAT (SBR45)
Lubrication control
Setting relevant PLC machine data
Machine data
Corresponding function
14510[12]
JOG key layout
14510[13]
Time for spindle braking
14510[20]
The maximum number of tool positions
14510[24]
Lubrication interval (in 1min)
14510[25]
Lubrication duration (in 0.01s)
14512[16]
Bit 1
Function of chip remover
Bit 2
Function of safe door
Bit 3
When the function of safe door is active, it can be triggered by M01/M02
Bit 7
Handwheel assignment with the MCP / HMI
14512[17]
Bit 0
Tool magazine function
Bit 3
Selection between handwheel and hand-held unit (0: handwheel; 1: hand-held unit)
14512[18]
Bit 2
One time automatic lubrication after the power-on
Bit 4
Stop signal for an external spindle
Bit 5
Fixing the direction of a spindle
Bit 6
Hardware limit is independent of the PLC application
Bit 7
One hardware limit triggered per axis (enabled when bit 6=0)
14512[19]
Bit 1
Function of spindle braking
Bit 2
Password clearing by power-on (0: delete the password; 1: do not delete the password)
Bit 7
MM+ (Manual Machine Plus) function (enabled when the MM+ has been licensed and
corresponding PLC subroutine has been called)
14512[20]
Bit 1
Spindle disable mode