Table of Contents

Advertisement

Quick Links

SINUMERIK
SINUMERIK 808D ADVANCED
PLC Subroutines Manual
User Manual
Legal information
Warning notice system
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent damage to property. The
notices referring to your personal safety are highlighted in the manual by a safety alert symbol, notices referring only to property damage
have no safety alert symbol. These notices shown below are graded according to the degree of danger.
DANGER
indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will be used. A notice warning of
injury to persons with a safety alert symbol may also include a warning relating to property damage.
Qualified Personnel
The product/system described in this documentation may be operated only by personnel qualified for the specific task in accordance with
the relevant documentation, in particular its warning notices and safety instructions. Qualified personnel are those who, based on their
training and experience, are capable of identifying risks and avoiding potential hazards when working with these products/systems.
Proper use of Siemens products
Note the following:
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products
and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage,
installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any
problems. The permissible ambient conditions must be complied with. The information in the relevant documentation must be observed.
© Siemens AG 2012 - 2013. All rights reserved
6FC5397-0FP40-0BA0, 08/2013
1

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SINUMERIK 808D ADVANCED T

  • Page 1 WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
  • Page 2: Preface

    Mechanical and electrical designers, technical professionals, and commissioning engineers My Documentation Manager (MDM) Under the following link you will find information to individually compile your documentation based on the Siemens content: www.siemens.com/mdm Standard scope This manual only describes the functionality of the standard version. Extensions or changes made by the machine tool manufacturer are documented by the machine tool manufacturer.
  • Page 3: Table Of Contents

    Table of contents Preface ................................... 2 Overview ................................4 PLC Programming Tool ............................7 Installing the 808D Toolbox ........................... 7 PLC instructions ............................8 Data management............................9 Program organization ............................ 9 Testing and monitoring your program ......................10 Establishing a connection with the RS232 interface ................... 13 Establishing a direct connection with the Ethernet interface ...............
  • Page 4: Overview

    3.27 Subroutine 54 - Turret2_3_ToolDir (tool change direction) ................. 57 3.28 Subroutine 55 - Tail_stock_T (Tailstcok control program for turning machines) ......... 59 3.29 Subroutine 56 - Lock_unlock_T (clamping control for turning machines) ............ 59 3.30 Subroutine 58 (MM_MAIN) ......................... 61 3.31 Subroutine 59 (MM_MCP_808D) ........................
  • Page 5 T16 to T63 (10ms timer) – Counter C0 to C63 (64 counters) ● NCK – PLC machine data: MD14510, MD14512, MD 14514 – MD14510 machine data INT: DB4500.DBW0 to DB4500.DBW62 (32 words) – MD14512 machine data hex: DB4500.DBB1000 to EDB4500.DBB1031 (32 bytes) –...
  • Page 6 Subroutine No. Name Description AUX_CHIP Chip remover control, called in the subroutine "AUX_MCP" of a milling application. PLC_ini_USR_INI Reserved for the initialization by the manufacturer (this subroutine is automatically called by subroutine 32) PLC_INI PLC initialization EMG_STOP Emergency Stop MCP_NCK Signals from the MCP and the HMI are sent to NCK interfaces MCP_Tool_Nr Display tool numbers via the LED of the MCP...
  • Page 7: Plc Programming Tool

    Input/output DB number Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 DB1000.DBB6 DB1000.DBB7 DB1000.DBB8 Feed override value (in Gray code) DB1000.DBB9 Spindle override value (in Gray code) DB1000.DBB10 Output (PPU - DB1100.DBB0 LED 8 LED 7 LED 6 LED 5 LED 4 LED 3 LED 2...
  • Page 8: Plc Instructions

    ● PLC Programming Tool The tool for creating PLC user programs ● Windows setup software for toolbox ● User documentation ● License information and conditions about Open Source Software (Readme_OSS) ● SinuComPCIN ● Access MyMachine P2P (AMM) Installing the 808D toolbox The toolbox installation folder is shown below: To start the installation, double-click the Setup.exe file.
  • Page 9: Data Management

    You can right-click over an instruction or directly press the F1 key to view its help information. For example: Data management The data can be broken down into three areas: ● non-retentive data ● retentive data ● machine data for the PLC (this machine data is all active at POWER ON) Most data, such as the process image, timers, and counters are non-retentive and are cleared each time the control system is restarted.
  • Page 10: Testing And Monitoring Your Program

    Testing and monitoring your program You can check or perform an error analysis of the user program in two methods: ● HMI of the SINUMERIK 808D ADVANCED ● PLC Programming Tool Testing and monitoring a PLC program with the HMI There are three ways for program testing and monitoring in the <SYSTEM>...
  • Page 11 You can view the status of a PLC signal. By default, three signal status lists (inputs, flags and outputs) are displayed in three columns. You can change column sequence or assign a new signal status list (variables) with the softkey. You can also change the status of a PLC signal with the softkey.
  • Page 12 ● → You can view the status of the main program or use the softkey to view the status of a subroutine. Two windows are available for you to view the program. PLC Subroutines Manual 6FC5397-0FP40-0BA0, 08/2013...
  • Page 13: Establishing A Connection With The Rs232 Interface

    Testing and monitoring a PLC program with the PLC Programming Tool You can also view the status of your PLC program with the PLC Programming Tool: 1. Establish the communication between the SINUMERIK 808D ADVANCED and the PLC Programming Tool. There are three methods for establishing the communication between the SINUMERIK 808D ADVANCED and the PLC Programming Tool: –...
  • Page 14 Press these two softkeys in succession to open the following communication setting window. → Use this softkey to select a communication baud rate. The SINUMERIK 808D ADVANCED supports the following baud rates: ● 9.6 kbps ● 19.2 kbps ● 38.4 kbps ●...
  • Page 15 Alternatively, you can call the above dialog by double clicking the icon in the project tree or choosing from the main screen menu: Double-click the access point symbol. Then the following "Set PG/PC Interface" dialog is displayed. Check the PG/PC interface being used. For RS232 communication, you must assign the interface "PLC802(PPI)"...
  • Page 16 Double click the interface "PLC802(PPI)" or click the context menu "Properties", and the following property dialog is displayed. On the "PPI" tab page, set the baud rate for the transmission rate, which the PLC Programming Tool will use for communication. NOTE: The baud rate you select must be the same as what you have set on the control.
  • Page 17: Establishing A Direct Connection With The Ethernet Interface

    Note Before configuring communications in the PLC Programming Tool, make sure the connection is already enabled on the control. Establishing a direct connection with the Ethernet interface You can establish a direct connection between the control system and the PC/PG via the Ethernet interface. Operating sequence to enable an Ethernet peer-to-peer connection to the control Connect the control system with the PC/PG using an Ethernet cable.
  • Page 18 Operating sequence to configure communications in the PLC Programming Tool Choose these two menus from the menu bar to open the following communication setting window. → Also you can click the communication button in the navigation bar, or click the communication icon in the project tree to display the window.
  • Page 19 Select the TCP/IP pointed to the Ethernet card of your PC, and then click the button. You can find the name of your Ethernet card under "Start" > "Settings" > "Network connections" on your PC. On the left side of the communication setting window, enter the IP address for the corresponding SINUMERIK 808D ADVANCED control, which is previously displayed in the link setting dialog on the control, as shown below.
  • Page 20: Establishing A Network Connection With The Ethernet Interface

    Establishing a network connection with the Ethernet interface You can establish a network connection between the control system and the PC/PG via the Ethernet interface. Operating sequence to enable an Ethernet network connection to the control Connect the control system with the local network using an Ethernet cable. Select the desired operating area on the PPU.
  • Page 21 Press this softkey to save the configuration. If you select "Yes" for the DHCP, you need to restart the control system to activate the network configuration. Operating sequence to configure communications in the PLC Programming Tool Choose these two menus from the menu bar to open the following communication setting window.
  • Page 22: Plc Application Download/Upload/Copy/Compare

    Select the TCP/IP pointed to the Ethernet card of your PC, and then click the button. You can find the name of your Ethernet card under "Start" > "Settings" > "Network connections" on your PC. On the left side of the communication setting window, enter the IP address for the corresponding SINUMERIK 808D ADVANCED control.
  • Page 23 Download You can write the transferred data into the permanent memory (load memory) of the control system with the PLC Programming Tool or a USB stick. To download a PLC application with the PLC Programming Tool, proceed as follows: Establish the communication between the control and the PLC Programming Tool. You can establish the connection by using the following three methods: ●...
  • Page 24 Click this button to proceed directly. You can also select the checkbox "Data Blocks (only actual values)" to include the actual values of the data blocks, and then click this button. Choose to download the PLC application when the PLC is in the run mode or in the stop mode. Caution: You are recommended to download the PLC application when the PLC is in the stop mode.
  • Page 25 To download a machine manufacturer's PLC application with a USB stick, perform as follows: → Choose these two menus from the menu bar to export the PLC application created with the PLC Programming Tool to a USB stick. Insert the USB stick into the USB interface at the front of the PPU. Select the desired operating area on the PPU.
  • Page 26 Upload You can back up a PLC application from the permanent memory of the control using the PLC Programming Tool or a USB stick. To upload a PLC application using the PLC Programming Tool, proceed as follows: → Choose these two menus from the menu bar or click in the tool bar to create a new and empty PLC application.
  • Page 27 → Choose these two menus from the menu bar or click the upload icon to start the upload, and the upload dialog pops up: Click this button to proceed directly. You can also select the checkbox "Data Blocks (only actual values)"...
  • Page 28 Click this button and you can view the upload results. To upload a PLC application using a USB stick, proceed as follows: Insert the USB stick into the USB interface at the front of the PPU. Select the desired operating area on the PPU. Access the "808D data"...
  • Page 29 → Choose these two menus from the menu bar or click in the tool bar to create a new and empty PLC application. → Import the .pte file from the USB stick by choosing these two menus from the menu bar. Click this button or double click the .pte file.
  • Page 30 Compare You can compare the project in the PLC Programming Tool with the project on the control by performing the following steps: → Choose these two menus from the menu bar. You can also select the checkbox "Data Blocks (only actual values)" to include the actual values of the data blocks.
  • Page 31 Click this button and the comparing begins. Wait for a few seconds, and then you can view the compare results. Version display The transferred PLC application will be active in the working memory of the control after the system is started up. Then you can view the detailed information about the currently active PLC application in the version display through the following steps: →...
  • Page 32: Plc Subroutines

    PLC subroutines PLC machine data Table 3-1 USER_DATA_INT Unit Description 14510 [12] Layout of the traverse keys 14510 [13] 0.1s Time for spindle braking 14510 [20] The maximum number of tool bits 14510 [21] 0.1s Turret clamping time 14510 [22] 0.1s Monitoring time for searching a tool 14510 [24]...
  • Page 33 ● Subsequent characters are for areas – N_: NCK – C_: Channel – 1_: Axes – M_: MCP Other short forms of the symbols – HWL: Hardware Limit – HW: Handwheel – RT: Rapid Traverse – TK: Traverse key – ACT: Active –...
  • Page 34: Subroutine 20 - Aux_Mcp (Machine Auxiliary Functions)

    Symbol table 17: IS_HMI The symbol table 17 defines interface signals to/from the HMI. Symbol table 18: IS_AUX The symbol table 18 defines the interface signals from the NCK channel, including the auxiliary functions, D functions, H function, etc. Symbol table 19: IS_NCK The symbol table 19 defines the interface signals to/from the NCK.
  • Page 35: Subroutine 21 - Aux_Lamp (Working Lamp)

    Example for calling subroutine 20 Subroutine 21 - AUX_LAMP (working lamp) Purpose Subroutine 21 is used to control working lamp and can be called in AUX_MCP. One-time pressing of the "LAMP" key activates the working lamp while double pressing de-activates the working lamp. Local variable definition None Relevant PLC machine data...
  • Page 36: Subroutine 23 - Aux_Chip (Chip Remover)

    Subroutine 23 - AUX_CHIP (chip remover) Purpose Subroutine 23 is used to control chip remover and can be called in AUX_MCP. At first-time pressing of the "Chip Forward" key the output "ChipFwd" is high; at second-time pressing of the "Chip Forward" key the output "ChipFwd" becomes low. When the output "ChipFwd"...
  • Page 37: Subroutine 33 - Emg_Stop

    ● DB380x.DBX1.5: measurement system 1 of the axes is active ● DB380x.DBX1.7: feed override of the axes is active ● DB1700.DBX1.3: active ROV the following are reset: ● DB1700.DBX0.6:reset DRY At the end of this subroutine, subroutine 31 (PLC_ini_USR_ini) is automatically called. You can program the initialization of customer PLC project in the subroutine 31.
  • Page 38: Subroutine 37 - Mcp_Nck (Mcp And Hmi Signal Processing)

    Variable Type Description This input can come from signal OVlmt of subroutine 40, and triggers the emergency stop when the hardware limit appears. Before the drive system disables the control enable signal, the PLC detects the spindle stop signal from NCK to ensure that the spindle has stopped.
  • Page 39: Subroutine 38 - Mcp_Tool_Nr (Display Tool Number On The Mcp)

    Example for calling subroutine 37 3.11 Subroutine 38 - MCP_Tool_Nr (display tool number on the MCP) Purpose Subroutine 38 is used to display active tool number (< 100) with the 7-segment LED on the MCP. For a tool number ≥ 100, it displays "FF".
  • Page 40: Subroutine 40 - Axis_Ctl (Controlling The Spindle And Axes)

    Example for calling subroutine 39 3.13 Subroutine 40 - AXIS_CTL (controlling the spindle and axes) Purpose Subroutine 40 is used to control the drive pulse enable (DB380xDBX4001.7) and controller enable (DB380xDBX2.1), monitoring the hardware limits and the reference cam signals, and controlling the enable signal for the spindle according to a spindle command (for example, SPINDLE CW, SPINDLE CCW, M03, M04, SPOS, etc.).
  • Page 41 In the hardware solution above, the feed stop signals for all axes can be activated via the hardware limit switches when any of the hardware limits is reached or an EMERGENCY STOP happens. You can check the information of the PLC diagnostics from the encoding of the hardware limit switches shown in the table above, and identify the cause (Emergency Stop button or a hardware limit switch of an axis) of the EMERGENCY STOP signal.
  • Page 42: Subroutine 41 - Mini_Hhu (Handwheel Hand-Held Unit)

    Value Description When setting bit 1 to 1, make sure that the speed control mode is active. Note When performing the axis control related operations on a stand-alone controller without any connection to the motor or drive, you need to set MD30350 to 1 for each axis, which indicates that the axis-specific NC/PLC interface signals for a simulated axis are output to the PLC;...
  • Page 43: Subroutine 42 - Spindle (Spindle Control)

    Example for calling subroutine 41 3.15 Subroutine 42 - SPINDLE (spindle control) Purpose Subroutine 42 is used for spindle control, including the spindle braking function. When the braking function is activated, in the JOG mode press the "SPINDLE LEFT" key or "SPINDLE RIGHT" key and then press the "SPINDLE STOP" key, after that, the spindle brakes.
  • Page 44: Subroutine 43 - Meas_Jog (Measurement In The Jog Mode)

    Local variable definition Table 3-9 Inputs Name Type Description DELAY WORD Spindle braking duration (unit: 0.1 s) DrvEn BOOL Drive enable SP_EN BOOL Spindle action condition (1: allowed; 0: not allowed) IsBrake BOOL Spindle braking function (1: enabled; 0: forbidden) Table 3-10 Outputs Name...
  • Page 45: Subroutine 44 - Cooling (Cooling Control)

    Name Type Description DB1400.DBD64 DWORD Valid tool number DB1400.DBD64 Assigned global variables MEAS_OPAUT M240.0 Measuring in the AUTO mode CHL_HMI M240.2 From HMI signals: mode changes during measurement NO_KEY M240.3 No JOG key available for the axes FDI_MEASJOG M240.5 Meas_JOG forbidden for feed ON_MEASJOG M240.6 Meas_JOG activated...
  • Page 46: Subroutine 45 - Lubricat (Control Of Lubricate)

    Table 3-13 Outputs Name Type Description C_out BOOL Coolant output C_LED BOOL Coolant status display Assigned global variables COOLon MB150.0 Coolant on/off status Relevant PLC machine data None Example for calling subroutine 44 3.18 Subroutine 45 - LUBRICAT (control of lubricate) Purpose Subroutine 45 is used to control the lubrication according to specific time interval and duration (independent of the distance that the axis has travelled).
  • Page 47: Subroutine 46 - Pi_Service (Asynchronous Subroutine Program)

    Assigned global variables L_interval Timer for the lubricating time intervals (unit: min) L_time Timer for very lubricating time duration (unit: 0.01s, max. 327.67 s) Relevant PLC machine data Unit Range Description 14510 [24] Min. Lubricating time interval 14510 [25] 0.01 s 100 to 2,000 Lubricating time duration Example for calling subroutine 45...
  • Page 48: Subroutine 47 - Plc_Select_Pp (Plc Selects A Subroutine)

    Local variable definition Table 3-17 Inputs Name Type Description ASUP1_trigger BOOL Calling the ASUP1, rising edge active ASUP2_trigger BOOL Calling the ASUP1, rising edge active Table 3-18 Outputs Name Type Description ASUP1Run BOOL Running state of the ASUP1 ASUP2Run BOOL Running state of the ASUP2 Err1 BOOL...
  • Page 49: Subroutine 48 - Servplan (Service Plan)

    Table 3-20 Outputs Name Type Description Finish BOOL Part program selection finished Error BOOL Part program selection error Assigned global variables SelPP_FinOm BOOL M239.6 Indicates that a part program has been selected SelPP_ErrOm BOOL M239.7 Indicates that an error occurs when selecting a part program Relevant PLC machine data None Example for calling subroutine 47...
  • Page 50: Subroutine 49 - Gearchg1_Auto (Automatic Spindle Gear Change)

    Relevant PLC machine data None Example for calling subroutine 48 3.22 Subroutine 49 - GearChg1_Auto (automatic spindle gear change) Purpose Subroutine 49 is used to automatically change the gear for the analog spindle with 2-level gear detection signals. During a gear change, the spindle oscillates and the PLC outputs the gear change signal. When the PLC detects that the desired gear level has been reached, the gear change has been completed.
  • Page 51: Subroutine 50 - Gearchg2_Virtual (Virtual Spindle Gear Change)

    Dstill BOOL M248.5 Signal for spindle stop Dchg BOOL M248.6 Spindle gear change delay Dmon BOOL M248.7 Monitoring for the gear change Req_SP_G_CH BOOL M244.0 Request for spindle gear change Req_Low_G BOOL M244.1 Request to change to the low gear stage Req_Hign_G BOOL M244.2...
  • Page 52: Subroutine 51 - Turret1_Hed_T (Turret With Hall Effect Device Position Sensor)

    Example for calling subroutine 50 3.24 Subroutine 51 - Turret1_HED_T (turret with Hall effect device position sensor) Purpose Subroutine 51 is used to control the turret with a Hall effect device positioning sensor, and the turret motor is controlled by the PLC.
  • Page 53 Local variable definition Table 3-26 Inputs Name Type Description Tmax WORD Max. tool number of the turret C_time WORD CCW clamping time (unit: 0.1 s) M_time WORD Monitoring time for the tool change T_polar BOOL Polar selection for the tool change 0: tool position low active 1: tool position high active T_key...
  • Page 54: Subroutine 52 - Turret2_Bin_T (Turret With Binary Coding Function)

    Example for calling subroutine 51 3.25 Subroutine 52 - TURRET2_BIN_T (turret with binary coding function) Purpose Subroutine 52 is used to control the turret with encoder positioning signals and function of dual-direction adjacent tool change. Contact the turret vendor for the working theory and the timing diagram of a tool change. During a tool change, the NC interface signals "Read-in disable"...
  • Page 55 Name Type Description OVload BOOL Turret motor overload (NC) P_Indx BOOL Turret pre-indexing sensor T_key BOOL Manual tool change key (triggering signal ) Table 3-29 Outputs Name Type Description T_cw BOOL Turret CW rotation output T_ccw BOOL Turret CCW rotation output Magent BOOL Turret clamping output...
  • Page 56: Subroutine 53 - Turret3_Code_T (Tool Change Control For Turret With Coding Function)

    Example for calling subroutine 52 3.26 Subroutine 53 - Turret3_CODE_T (tool change control for turret with coding function) Purpose Subroutine 53 is used to control the turret with coded tool positions and function of adjacent tool change. The difference between the subroutine 52 and the subroutine 53 is that the subroutine 52 uses binary tool position codes while the subroutine 53 uses tool position codes made according to a specific common turret.
  • Page 57: Subroutine 54 - Turret2_3_Tooldir (Tool Change Direction)

    Table 3-31 Outputs Name Type Description T_UNCLAMP BOOL Turret release T_CLAMP BOOL Turret clamping T_CW BOOL Turret CW rotation T_CCW BOOL Turret CCW rotation T_LED BOOL Status display during the tool change Assigned global variables Tpos_C BOOL M156.4 Tool searching finished T_cwm BOOL M235.6...
  • Page 58 Tool position Current position Programmed tool number Pre-indexing position Direction number Local variable definition Table 3-32 Inputs Name Type Description Tmax DWORD The max. turret tool position number Pnum DWORD Programmed tool number Tcurr DWORD Current position of the turret Table 3-33 Outputs Name...
  • Page 59: Subroutine 55 - Tail_Stock_T (Tailstcok Control Program For Turning Machines)

    3.28 Subroutine 55 - Tail_stock_T (Tailstcok control program for turning machines) Purpose Subroutine 55 is used to control forward or backward movement of the tail stock on a turning machine. In the JOG mode, press the "Tailstock" key to move the tailstock forward or backward. Pressing "Tailstock" moves the tailstock forward, and one more pressing moves the tailstock backward.
  • Page 60 Note The chuck status should be kept when clamping outputs are zero. Local variable definition Table 3-36 Inputs Name Type Description Delay WORD Clamping delay time LckRel_k BOOL Lock / release toggle signal ExtIn_k BOOL External/inside clamping key S_velo BOOL Spindle velocity signals 0: spindle velocity is 0 1: spindle is running...
  • Page 61: Subroutine 58 (Mm_Main)

    3.30 Subroutine 58 (MM_MAIN) Purpose To use subroutine 58, you must have licensed the optional Manual Machine Plus function for the SINUMERIK 808D ADVANCED T (Turning). The subroutines 46, 58 and 59 must be used together. This subroutine is used to control the manual machine function after the manual machine interface is activated.
  • Page 62 Byte Signal Byte 7 Byte 6 Byte 5 Byte 4 Byte 3 Byte 2 Byte 1 Byte 0 MB174 HMI<->MM Cone Cone Cone Cone Cone Cone Cone Cone angle angle angle angle angle 90°- angle 90° angle 0°- angle 0° 270°- 270°...
  • Page 63: Subroutine 59 (Mm_Mcp_808D)

    Example for calling subroutine 58 3.31 Subroutine 59 (MM_MCP_808D) Purpose To use subroutine 59, you must have licensed the optional Manual Machine Plus function for the SINUMERIK 808D ADVANCED T (Turning). The subroutines 46, 58 and 59 must be used together. Normally, the spindle will be stopped after you press the NC reset key.
  • Page 64: Subroutine 60 - Disk_Mgz_M (Disk-Style Tool Magazine For Milling)

    Local variable definition Table 3-40 Inputs Name Type Description SP_STOP_K BOOL Spindle stop Outputs None Assigned global variables None Relevant PLC machine data Unit Range Description MD14512[19].7 1: to enable the manual machine function 0: to disable the manual machine function Example for calling subroutine 59 3.32 Subroutine 60 - Disk_MGZ_M (disk-style tool magazine for milling)
  • Page 65 MD22560: TOOL_CHANGE_M_CODE Local variable definition Table 3-41 Inputs Name Type Description MgzCnt BOOL Tool magazine count MgzRef_k BOOL Tool magazine reset, with the current tool number set to 1 MgzCW_k BOOL Tool magazine forward MgzCCW_k BOOL Tool magazine backward MgzSp_k BOOL Spindle position key for the tool magazine MgzOrg_k...
  • Page 66: Subroutines 34 To 36, 57, 61 And 62

    Relevant PLC machine data None Example for calling subroutine 60 3.33 Subroutines 34 to 36, 57, 61 and 62 Explanation Subroutines 34 to 36, 57, 61 and 62 are reserved for users. 3.34 Subroutine 63 - TOGGLES Purpose Two types of switches are provided in subroutine 63, more specifically, a hold switch for switching a circuit on (press) and off (press again), and a delay switch for switching on a circuit and automatically switching it off after a certain time period.
  • Page 67: Use Of User Alarms In The Plc Subroutines

    Table 3-44 Outputs Name Type Description Ko_1…Ko_8 BOOL Output of switch 1...output of switch 8 Assigned global variables K1st1 … K8st1 MB245 State 1 of the hold switch K1st2 … K8st2 MB246 State 2 of the hold switch K1on … K8on MB247 "On"...
  • Page 68: Plc Sample Applications

    Alarm No. Interface Address Alarm Description From SBR 700023 DB1600.DBX2.7 Programmed tool number > max. turret on turret SBR52: Turret2_BIN_T number SBR53: Turret3_CODE_T 700024 DB1600.DBX3.0 Max. tool number setting error 700025 DB1600.DBX3.1 No position signals from turret 700026 DB1600.DBX3.2 Not able to find expected tool in monitor time 700027 DB1600.DBX3.3 Approach reference point again after rotation...
  • Page 69 Table 5-1 Assignment of inputs and outputs Signal Description Remark I0.0 Emergency Stop button Normally closed I0.1 Limit switch in the "+" direction of axis X Normally closed I0.2 Limit switch in the "-" direction of axis X Normally closed I0.3 I0.4 I0.5...
  • Page 70 Signal Description Remark Q0.4 Cooling pump Q0.5 Lubrication pump Q0.6 Chuck output 1 Q0.7 Chuck output 2 Q1.0 Turret motor rotating clockwise Q1.1 Turret motor rotating counter-clockwise Q1.2 Reserved for other types of turrets Q1.3 Reserved for other types of turrets Q1.4 Gear shift: low gear level (SBR49: GearChg1_Auto) / Gear level status (SBR50: GearChg2_Virtual)
  • Page 71: Plc Sample Application (Milling)

    Machine data Corresponding function 14510[24] Lubrication interval (in 1min) 14510[25] Lubrication duration (in 0.01s) 14512[16] Bit 7 Handwheel assignment with the MCP / HMI 14512[17] Bit 0 Turret function Bit 1 Clamping function Bit 2 Tailstock 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...
  • Page 72 Signal Description Remark I2.2 I2.3 Normally open I2.4 Coolant level too low Normally closed I2.5 Cooling pump motor overload Normally closed I2.6 Lubricant level too low Normally closed I2.7 Lubrication pump motor overload Normally closed I3.0 Reserved I3.1 Reserved I3.2 Reserved I3.3 Reserved...
  • Page 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...
  • Page 74: Index

    Trademarks All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication may be trademarks whose use by third parties for their own purposes could violate the rights of the owner. Disclaimer of Liability We have reviewed the contents of this publication to ensure consistency with the hardware and software described.

This manual is also suitable for:

Sinumerik 808d advanced m

Table of Contents