
PLC Subroutines Manual
Operating Instructions, 12/2012, 6FC5397-2EP10-0BA0 5
Table of contents
Preface ...................................................................................................................................................... 3
1 Overview.................................................................................................................................................... 7
2 PLC Programming Tool ........................................................................................................................... 11
2.1 Installing the 808D Toolbox .........................................................................................................11
2.2 PLC instructions...........................................................................................................................12
2.3 Data management .......................................................................................................................13
2.4 Program organization...................................................................................................................13
2.5 Testing and monitoring your program..........................................................................................14
2.6 Establishing a connection with the RS232 interface....................................................................17
2.7 PLC application Download/Upload/Copy/Compare.....................................................................22
3 Descriptions of the PLC subroutines........................................................................................................ 31
3.1 PLC machine data .......................................................................................................................31
3.2 Conventions for the symbols used in the subroutines .................................................................32
3.3 Subroutine 20 - AUX_MCP (machine auxiliary functions) ...........................................................34
3.4 Subroutine 21 - AUX_LAMP (working lamp)................................................................................35
3.5 Subroutine 22 - AUX_SAFE_DOOR (safe door)..........................................................................35
3.6 Subroutine 23 - AUX_CHIP (chip remover) .................................................................................36
3.7 Subroutine 31 - PLC_ini_USR_ini (user initialization)..................................................................37
3.8 Subroutine 32 - PLC_INI (PLC initialization)................................................................................37
3.9 Subroutine 33 - EMG_STOP........................................................................................................38
3.10 Subroutine 37 - MCP_NCK (MCP and HMI signal processing)...................................................39
3.11 Subroutine 38 - MCP_Tool_Nr (display tool number on the MCP)..............................................40
3.12 Subroutine 39 - HANDWHL (selecting a handwheel according to HMI interface signals) ..........41
3.13 Subroutine 40 - AXIS_CTL (controlling the spindle and axes) ....................................................42
3.14 Subroutine 41 - MINI_HHU (handwheel hand-held unit) .............................................................45
3.15 Subroutine 42 - SPINDLE (spindle control) .................................................................................47
3.16 Subroutine 43 - MEAS_JOG (measurement in the JOG mode) ..................................................48
3.17 Subroutine 44 - COOLING (cooling control)................................................................................49
3.18 Subroutine 45 - LUBRICAT (control of lubricate).........................................................................51
3.19 Subroutine 46 - PI_SERVICE (Asynchronous Subroutine Program)...........................................52
3.20 Subroutine 47 - PLC_Select_PP (PLC selects a subroutine) ......................................................54