Overview
PLC Subroutines Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0
9
Subroutine No. Name Description
31 PLC_ini_USR_INI
Reserved for the initialization by the manufacturer (this
subroutine is automatically called by subroutine 32)
32 PLC_INI PLC initialization
33 EMG_STOP Emergency Stop
37 MCP_NCK
Signals from the MCP and the HMI are sent to NCK
interfaces
38 MCP_Tool_Nr Display tool numbers via the LED of the MCP
39 HANDWHL Handwheel selection via HMI
40 AXIS_CTL Control of feed axis enable and spindle enable
41 MINI_HHU Handwheel hand held unit
42 SPINDLE Spindle function
43 MEAS_JOG Tool measurement in the JOG mode
44 COOLING
Coolant control (Manual Machine key and M code: M07,
M08, M09)
45 LUBRICATE Lubrication control (interval and time)
46 PI_SERVICE ASUP (Asynchronous Subroutine Program)
47 PLC_Select_PP PLC selects a subroutine.
48 ServPlan Service plan
49 Gear_Chg1_Auto Automatic gear change of the spindle
50 Gear_Chg2_Virtual Dummy gear change of the spindle
51 Turret1_HED_T
Turret control of the turning machine (turret type: Hall
element transistor, 4/6 position)
52 Turret2_BIN_T
Turret control of the turning machine (turret type: position
detection with encodings)
53 Turret3_CODE_T
Hydraulic turret control of the turning machine (turret
type: position detection with encodings)
54 Turret2_3_ToolDir
Evaluate tool direction and calculate tool position (called
by Turret2_BIN_T, Turret3_CODE_T)
55 Tail_stock_T Tail stock control for the turning machine
56 Lock_unlock_T Clamp or release control for the turning machine
58 MM_MAIN Manual machine
59 MM_MCP_808D Spindle signal processing for the manual machine
60 Disk_MGZ_M Disk tool magazine for a milling machine
61, 62 Reserved for the subroutine
63 TOGGLE Six key-operated switches: K1 to K6
Two delay switches: K7, K8
MCP interface description
Input/output DB number Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
DB1000.DBB0 M01 Program
test
MDA Single
block
AUTO REF.
POINT
JOG Hand-
wheel
Input (MCP ->
PPU),
DB1000
DB1000.DBB1 Key 16 Key 15 Key 14 Key 13 Key 12 Key 11 Key 10 ROV