Commissioning Manual
6 6FC5397-4EP10-0BA8, 07/2018
6.5 PLC machine data............................................................................................................................... 138
6.6 PLC subroutine library ......................................................................................................................... 140
6.6.1 Overview ............................................................................................................................................. 140
6.6.2 Conventions for the symbols used in the subroutines ......................................................................... 143
6.6.3 Subroutine 20 - AUX_MCP (machine auxiliary functions) ................................................................... 143
6.6.4 Subroutine 21 - AUX_LAMP (working lamp) ....................................................................................... 144
6.6.5 Subroutine 22 - AUX_SAFE_DOOR (safety door) .............................................................................. 144
6.6.6 Subroutine 23 - AUX_CHIP (chip conveyor) ....................................................................................... 145
6.6.7 Subroutine 24 - AUX_3Color_LAMP ................................................................................................... 146
6.6.8 Subroutine 31 - PLC_ini_USR_ini (user initialization) .......................................................................... 147
6.6.9 Subroutine 32 - PLC_INI (PLC initialization) ....................................................................................... 147
6.6.10 Subroutine 33 - EMG_STOP ............................................................................................................... 148
6.6.11 Subroutine 37 - MCP_NCK (MCP and HMI signal processing) ........................................................... 149
6.6.12 Subroutine 38 - MCP_Tool_Nr (display tool number on the MCP) ...................................................... 150
6.6.13 Subroutine 39 - HANDWHL (selecting a handwheel according to HMI interface signals) ................... 151
6.6.14 Subroutine 40 - AXIS_CTL (controlling the spindle and axes) ............................................................ 151
6.6.15 Subroutine 41 - MINI_HHU (handwheel on hand-held unit) ................................................................ 154
6.6.16 Subroutine 42 - SPINDLE (spindle control) ......................................................................................... 155
6.6.17 Subroutine 43 - MEAS_JOG (measurement in JOG mode) ................................................................ 156
6.6.18 Subroutine 44 - COOLING (cooling control) ........................................................................................ 157
6.6.19 Subroutine 45 - LUBRICAT (control of lubricate) ................................................................................ 158
6.6.20 Subroutine 46 - PI_SERVICE .............................................................................................................. 159
6.6.21 Subroutine 47 - PLC_Select_PP (PLC selects a subroutine) .............................................................. 161
6.6.22 Subroutine 48 - ServPlan (service planner) ........................................................................................ 161
6.6.23 Subroutine 49 - GearChg1_Auto (automatic spindle gear change) ..................................................... 162
6.6.24 Subroutine 50 - GearChg2_Virtual (virtual spindle gear change) ........................................................ 163
6.6.25 Subroutine 51 - Turret1_HED_T (turret with Hall effect device position sensor) ................................. 164
6.6.26 Subroutine 52 - Turret2_BIN_T (turret with binary coding function) .................................................... 166
6.6.27 Subroutine 53 - Turret3_CODE_T (tool change control for turret with coding function)....................... 168
6.6.28 Subroutine 54 - Turret2_3_ToolDir (tool change direction) .................................................................. 169
6.6.29 Subroutine 55 - Tail_stock_T (Tailstock control program for turning machines) ................................
.. 170
6.6.30 Subroutine 56 - Lock_unlock_T (clamping control for turning machine) .............................................. 171
6.6.31 Subroutine 58 (MM_MAIN) .................................................................................................................. 172
6.6.32 Subroutine 59 (MM_MCP_808D) ........................................................................................................ 174
6.6.33 Subroutine 60 - Disk_MGZ_M (disk-style tool magazine used for milling) ........................................... 175
6.6.34 Subroutine 62 - Trg_key_OR ............................................................................................................... 177
6.6.35 Subroutine 63 - TOGGLES ................................................................................................................. 181
6.6.36 Subroutines 0 to 19, 34 to 36, 57, and 61 ........................................................................................... 181
6.7 PLC Programming Tool ....................................................................................................................... 182
6.7.1 Overview of PLC Programming Tool ................................................................................................... 182
6.7.2 Renaming the default program ............................................................................................................ 183
6.7.3 Changing the display language ........................................................................................................... 184
6.7.4 Selecting a target system .................................................................................................................... 185
6.7.5 Downloading/uploading/comparing PLC applications ......................................................................... 186
6.7.6 Compiling and monitoring programs ................................................................................................... 194
6.8 PLC alarms ......................................................................................................................................... 195
6.8.1 Alarm cancel/reset and reaction .......................................................................................................... 197
6.8.2 Editing PLC alarm texts ....................................................................................................................... 197
6.9 PLC diagnostics .................................................................................................................................. 200
6.10 Handwheel assignment ....................................................................................................................... 203
7 Commissioning the prototype machine ................................................................................................................... 204
7.1 Overview on commissioning and operation wizards............................................................................ 204
7.2 Commissioning the PLC ...................................................................................................................... 206
7.2.1 Setting PLC related parameters .......................................................................................................... 206
7.2.2 Downloading and commissioning PLC programs ................................................................................ 206
7.2.3 Checking I/O address assignment ...................................................................................................... 207
7.2.4 Editing PLC alarm texts ....................................................................................................................... 208
7.3 Configuring the drives ......................................................................................................................... 209
7.4 Setting basic parameters .................................................................................................................... 211
7.4.1 Setting feed axis parameters .............................................................................................................. 211
7.4.2 Commissioning the referencing function ............................................................................................. 212