PLC Subroutines Manual
6FC5397-0FP40-0BA0, 08/2013
3
Table of contents
Preface ................................................................................................................................................................... 2
1
Overview ................................................................................................................................................................ 4
2
PLC Programming Tool ........................................................................................................................................... 7
2.1
Installing the 808D Toolbox ........................................................................................................................... 7
2.2
PLC instructions ............................................................................................................................................ 8
2.3
Data management......................................................................................................................................... 9
2.4
Program organization .................................................................................................................................... 9
2.5
Testing and monitoring your program ......................................................................................................... 10
2.6
Establishing a connection with the RS232 interface ................................................................................... 13
2.7
Establishing a direct connection with the Ethernet interface ....................................................................... 17
2.8
Establishing a network connection with the Ethernet interface ................................................................... 20
2.9
PLC application Download/Upload/Copy/Compare ..................................................................................... 22
3
PLC subroutines ................................................................................................................................................... 32
3.1
PLC machine data....................................................................................................................................... 32
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) .................................................................................. 36
3.8
Subroutine 32 - PLC_INI (PLC initialization) ............................................................................................... 36
3.9
Subroutine 33 - EMG_STOP ....................................................................................................................... 37
3.10
Subroutine 37 - MCP_NCK (MCP and HMI signal processing) ................................................................... 38
3.11
Subroutine 38 - MCP_Tool_Nr (display tool number on the MCP) .............................................................. 39
3.12
Subroutine 39 - HANDWHL (selecting a handwheel according to HMI interface signals) ........................... 39
3.13
Subroutine 40 - AXIS_CTL (controlling the spindle and axes) .................................................................... 40
3.14
Subroutine 41 - MINI_HHU (handwheel hand-held unit) ............................................................................. 42
3.15
Subroutine 42 - SPINDLE (spindle control) ................................................................................................. 43
3.16
Subroutine 43 - MEAS_JOG (measurement in the JOG mode) .................................................................. 44
3.17
Subroutine 44 - COOLING (cooling control) ................................................................................................ 45
3.18
Subroutine 45 - LUBRICAT (control of lubricate) ........................................................................................ 46
3.19
Subroutine 46 - PI_SERVICE (Asynchronous Subroutine Program) ........................................................... 47
3.20
Subroutine 47 - PLC_Select_PP (PLC selects a subroutine) ...................................................................... 48
3.21
Subroutine 48 - ServPlan (service plan) ...................................................................................................... 49
3.22
Subroutine 49 - GearChg1_Auto (automatic spindle gear change) ............................................................. 50
3.23
Subroutine 50 - GearChg2_Virtual (virtual spindle gear change) ................................................................ 51
3.24
Subroutine 51 - Turret1_HED_T (turret with Hall effect device position sensor) ......................................... 52
3.25
Subroutine 52 - TURRET2_BIN_T (turret with binary coding function)........................................................ 54
3.26
Subroutine 53 - Turret3_CODE_T (tool change control for turret with coding function) .............................. 56