Download Print this page
HEIDENHAIN MANUALplus 4110 Technical Manual
Hide thumbs Also See for MANUALplus 4110:

Advertisement

Quick Links

June 2002
Technical Manual
MANUALplus 4110
NC-Software
361 406-21 · 3 · 6/2002 · Bi · Printed in Germany · Subject to change without notice
(361 406-E1)
354 809-xx

Advertisement

loading
Need help?

Need help?

Do you have a question about the MANUALplus 4110 and is the answer not in the manual?

Questions and answers

Summary of Contents for HEIDENHAIN MANUALplus 4110

  • Page 1 Technical Manual MANUALplus 4110 NC-Software 354 809-xx June 2002 361 406-21 · 3 · 6/2002 · Bi · Printed in Germany · Subject to change without notice (361 406-E1)
  • Page 3: Update Information

    1 Update Information 1.1 General Information You will receive Update Information supplements for the MANUALplus 4110 at irregular intervals. Please file this information here. June 2002 General Information 1 – 1...
  • Page 4 1 – 2 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 5: Table Of Contents

    2 Introduction 2.1 General Information ................2–3 2.2 Component Overview of MANUALplus 4110........ 2–5 2.3 Brief Description ................2–8 2.4 Hardware ..................2–14 2.4.1 Designation of the Logic Unit ............ 2–14 2.5 Software ................... 2–15 2.5.1 Designation of the Software ............. 2–15 2.5.2 PLC Software ................
  • Page 6 2 – 2 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 7: Introduction

    The same functions are available for commissioning, optimization, and diagnosis for the feed axes, spindles, and C axis. The MANUALplus 4110 supports up to 4 control loops (axes, spindles and C axis). The following diagram illustrates drive control with the use of a rotary encoder for measuring the shaft speed actual values and a linear encoder (or angle encoder) for measuring the position actual values.
  • Page 8 Spindles can be controlled with an analog speed command interface as an alternative to digital control. Here the output voltage corresponds to the nominal speed value. 2 – 4 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 9: Component Overview Of Manualplus 4110

    2.2 Component Overview of MANUALplus 4110 LE 412 M Logic Unit 4 control loops with external PWM interface (ribbon-cable connector) for compact inverters and for modular inverter systems. 5 inputs for position encoders and handwheels: Position encoders with 1 V Handwheels with 1 V or 11 µA...
  • Page 10 Id. Nr. 263 371-12 64 inputs 31 outputs Id. Nr. 263 371-02 64 inputs 31 outputs 4 analog inputs 4 inputs for thermistors PL 405B Id. Nr. 263 371-21 32 inputs 15 outputs 2 – 6 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 11 MANUALplus 4110 User’s Manual (Id. Nr. 354 267-xx) CNC PILOT 4110 Pilot (brief programming guide) (Id. Nr. 354 268-10) The HEIDENHAIN inverters and motors for the MANUALplus 4110 are described in the Technical Manual “Inverter Systems and Motors.” You will receive a set of supplementary pages every time changes are made to this manual.
  • Page 12: Brief Description

    Interpolation Straight lines In 2 principle axes (max. ±10 m) Circle In 2 axes (maximum radius 100 m) C Axis Interpolation of X and Z linear axes with the C axis 2 – 8 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 13 Specifications Axis feedback control With following error With feedforward With jerk limiting Nominal feed rate mm/min or mm/revolution Constant cutting speed Feed rate with chip breaking Maximum rapid traverse of 400 m/min at 0.001 mm resolution Thread Longitudinal thread Transversal thread (only as DIN cycle) Tapered thread Multiple thread Discontinuous threads with slanted entry and exit...
  • Page 14 PL 410 B (version 2) 64 digital inputs 31 digital outputs 4 analog inputs ± 10 V 4 inputs for Pt 100 thermistors PL 405 B 32 digital inputs 15 digital outputs 2 – 10 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 15 Machine Integration Commissioning aids External in the PLC programming system PLC window in the screen Integrated oscilloscope for checking traversed distances and the dynamic adjustment of the drives Logic Analyzer for chronological representation of digital inputs/ outputs and PLC interface signals User functions Operating modes Manual mode...
  • Page 16 Calculation of machining and idle machine time Consideration of switching commands triggered by the CNC Individual times per cycle or tool for DIN programs Conversational languages German, English, French, Italian, Dutch, Danish, Swedish, Czech, Polish 2 – 12 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 17 Accessories MANUALplus 4110 Electronic handwheels Connection of up to two HR 150 handwheels for moving the slide as if on a manual machine. PLC programming software PLCdesign Configuration tool KonfigPilot: Configuration of the parameters Adjustment of M numbers PLC Input/Output Unit...
  • Page 18: Hardware

    Variant Hardware change 1) The basic ID number indicates hardware differences 2) This first digit of the variant number indicates hardware changes Variant Changes to LE 412 xxx xxx-3x Initial version 2 – 14 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 19: Software

    To display the software version number, select “Diagnosis—Info” (service mode). 2.5.2 PLC Software The PLC software is on the hard disk of the MANUALplus. HEIDENHAIN provides a PLC start-up program that you can request directly from HEIDENHAIN. With the PLC programming software PLCdesign you can very easily adapt this program to the requirements of the machine.
  • Page 20: Software Exchange

    In “Modem—Communications Port (COM1),” enter the baud rate. Move the new software to the “C:\Transfer” directory on the hard disk of the MANUALplus. Then exchange the software on the hard disk. 2 – 16 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 21 Software from Software updates, that you receive from HEIDENHAIN contain cyclic HEIDENHAIN redundancy check (CRC) codes. After the files have been transferred to the target system, the cyclic redundancy check is performed. The test results are saved in the file “c:\transfer\crc_err.log” and are also displayed in a DOS window: Acceptable files are indicated with a point “.”.
  • Page 22 MANUALplus. The directory name of the data backup is “CNC_Save.” Any old backup files are deleted. HEIDENHAIN recommends making this backup. It enables you to restore the original condition in the event that the software exchange fails. Depending on the update method, enter in the “path to update files”: –...
  • Page 23 U U U U Wait until the software exchange is complete. U U U U Switch MANUALplus off and back on again. U U U U Check whether the control starts properly—whereby you can ignore any error messages caused by incorrect parameter settings. U U U U Load the saved parameters, operating resource data and NC programs.
  • Page 24 – Connect the PC keyboard with the logic unit at the “keyboard” connection. – Use the key combination “ALT—Tab” to switch to the HAPL window. – Enter the password “956320”—and the previous software is reloaded. 2 – 20 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 25 U U U U MANUALplus shows an empty directory—confirm with “OK.” U U U U Acknowledge the message regarding the backup copy with “OK.” HEIDENHAIN recommends that the machine tool builder make this software backup before shipping the machine. June 2002 Software...
  • Page 26: Data Backup

    2.5.4 Data backup HEIDENHAIN recommends that the machine manufacturer make a backup copy on a floppy disk of all data specific to the machine, and to ship the disk along with the machine. Moreover, the customer should save copies in regular intervals of the part programs, operating resource data and parameters that he has changed.
  • Page 27: Configurations

    The following table lists machine variants with their configuration names. Configurations Configurations “behind the center” are indicated with an asterisk (*). Please contact HEIDENHAIN if the desired configuration is not listed in the table. Configuration examples of MANUALplus 4110 Machine variants...
  • Page 28: Software Releases

    Behavior of the spindle with “V constant for rapid traverse” is now adjustable: constant speed—or speed depending on the X position The software supplied in an update undergoes a cyclic redundancy check (CRC) after it is copied to the control. 2 – 24 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 29 3 Mounting and Electrical Installation 3.1 General Information ................ 3 – 3 3.1.1 Degrees of Protection ............... 3 – 3 3.1.2 Electromagnetic Compatibility ........... 3 – 3 3.1.3 Shipping Brace of the Hard Disk ..........3 – 4 3.2 Environmental Conditions .............. 3 – 5 3.2.1 Heat Generation and Cooling ............
  • Page 30 Regenerative HEIDENHAIN Inverter ........3 – 60 3.21.2 Cable Overview for LE 412 M with HEIDENHAIN Compact Inverter UE 2xxB ......3 – 61 3.21.3 Cable Overview for LE 412 M with UE 2xx Regenerative HEIDENHAIN Compact Inverters ......... 3 – 62 3.21.4 Cable Overview LE 412 M –...
  • Page 31: Mounting And Electrical Installation

    For cables in metallic ducting, adequate decoupling can be achieved by using a grounded separation shield. Shielding Use equipotential bonding conductors (see “Grounding Diagrams”) Use of genuine HEIDENHAIN cables, connectors and couplings June 2002 General Information 3 – 3...
  • Page 32: Shipping Brace Of The Hard Disk

    The shipping brace for the hard disk is not required when the machine is being transported. Should servicing become necessary (i.e. the LE is being shipped on its own), the hard disk must be secured with the shipping brace. 3 – 4 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 33: Environmental Conditions

    3 Watt/m2. Use of a heat exchanger with separate internal and external circulation. HEIDENHAIN advises against blowing external air through the control cabinet to replace the internal air. Electronic assemblies may be adversely affected by fine dust or vapors. If no other method of cooling is possible, then ensure that the fan extracts the warmed air from the electrical cabinet and that the air drawn in is adequately filtered.
  • Page 34: Humidity

    3.2.3 Mechanical Vibration Vibration: Maximum deflection ±0.075 mm from 10 to 41 Hz Maximum acceleration 5 m/s from 41 to 500 Hz Shock: Maximum 50 m/s , 11 ms 3 – 6 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 35: Mounting Attitude Le 412 M, Uv Xxx, Um Xxx

    3.2.4 Mounting Attitude LE 412 M, UV xxx, UM xxx Warning When mounting, please observe proper minimum clearance, space requirements, length and position of the connecting cables. Leave space for air circulation!The UE 21x with integral braking resistor can withstand temperatures up to >...
  • Page 36: Mounting Position Of Screen

    Please ensure that the screen is installed dust-proof in the pendant, so that dust cannot collect behind the screen surface. BFT 121 150° > α > 90° Refer to the dimension drawing for data on free space for air circulation. 3 – 8 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 37: Connection Overview

    3.3 Connection Overview LE 412 M X1 to X4, X6 Position encoder 1 V X15 to X19 Shaft speed encoder (rotary) 1 V , EnDat X51 to X56 PWM (motor power module) Nominal value output, analog (for spindles) Do not use Do not use Do not assign Ethernet data interface...
  • Page 38: Power Supply For The Logic Unit-The Uv 105 Power Module

    3.4 Power Supply for the Logic Unit—the UV 105 Power Module Operation with With the use of HEIDENHAIN inverters and with low power requirements, the HEIDENHAIN LE 412 M logic unit is powered by the UV 120, UV 130, UV 140 or UV 150 inverters power supply units.
  • Page 39 Connection overview UV 105 Conductor bar Power supply via UZ Free cable 5V power supply for LE (to 5 V terminal on LE) Power input from UV 120/140 or adapter connector Free cable Power supply for LE (to X69 on LE) Power supply LE power supply Connecting terminal...
  • Page 40 Do not assign RES.PS Do not assign PF.PS.ZK Reserved (SDA) ERR.UZ.GR Reserved (SLC) ERR.IZ.GR RES.LE ERR.TMP Danger Ensure that the power supply unit is switched off before connecting or disconnecting the power lines! 3 – 12 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 41: Supply Voltage For Plc Outputs

    3.5 Supply Voltage for PLC Outputs The PLC of the LE 412 M logic unit as well as the PL 410B/PL 405B are powered by the 24 Vdc control voltage of the machine (in accordance with VDE 0551). The control voltage must be smoothed at a capacity of 150 µF/A rated current, but with a minimum 1000 µF.
  • Page 42: Supply Voltage For Plc Outputs On The Pl 4Xxb

    +24 Vdc logic power supply and for control-is-ready signal +24 Vdc Power supply for outputs O48 – O55 O80 – O87 +24 Vdc Power supply for outputs O56 – O62 O88 – O94 3 – 14 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 43: Supply Voltage For Analog Inputs On Pl 410B

    3.5.3 Supply voltage for Analog Inputs on PL 410B X23: Supply voltage The PL 410B input/output unit is also available with additional analog inputs and inputs for Pt 100 thermistors. The power supply must comply with EN 50 178, 5.88 requirements for “low voltage electrical separation.” Pin layout on the PL 410B: Connecting Assignment...
  • Page 44: Power Supply For Control-Is-Ready Signal

    UV1xx power supply unit. The voltage is connected with signal terminal X34 (see ”Basic Circuit Diagram” section). If you are using a non-HEIDENHAIN inverter system, X34 must be wired in accordance with the basic circuit diagrams. Pin layout:...
  • Page 45: Axis-Specific Drive Controller Enabling

    3.7 Axis-Specific Drive Controller Enabling A drive controller can be enabled by software only if the controller is enabled with 24 V on X150 and on X42 pin 33. If the drive controller enable is withdrawn, the drives are braked with maximum torque.
  • Page 46: Encoder Connections

    3.8 Encoder Connections 3.8.1 General Information HEIDENHAIN contouring controls are designed for use with incremental linear and angular encoders as measuring systems. The 1 V signals are interpolated by a factor of 1024. Encoders with one reference mark are permissible.
  • Page 47: Input From Position Encoder (External Position Encoder)

    3.8.2 Input from Position Encoder (External Position Encoder) X1 to X4, X6: Position inputs accept only 1 V signals. Position encoder Pin layout of the logic unit and encoder cable: Logic unit Encoder cable D-sub Assignment Assignment D-sub connctr. connection 11 µA (female) (male) 15-pin...
  • Page 48: Speed (Rotary) Encoder Input

    The interface complies with the requirements of EN 50 178 for “low voltage electrical separation.” Enter the encoder model in the “expansion stage code” (machine parameter 802, ...: 1003, ...; 1103, ...). 3 – 20 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 49 X15 to X19: EnDat Pin layout on logic unit and adapter cable: speed encoder Logic unit Adapter cable Id. Nr. 336 376-xx D-sub Assignment D-sub connctr. Connctr. connection (female) 25-pin (female) 17-pin (male) 25-pin +5 V (U Brown/Green 0 V (U White/Green Green/Black A–...
  • Page 50: Motor Power Stage Connection

    Braking module To prevent damage to the inverters resulting from line-power interference, HEIDENHAIN recommends use of the UP 110 or PW 210 braking module (see Technical Manual for “Inverter Systems and Motors”). 3 – 22 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 51: Bft 121G Visual Display And Keyboard Unit

    3.10 BFT 121G Visual Display and Keyboard Unit Connection overview X1: BFT 121G Pin layout on the BFT 121G: power supply Connecting terminal Assignment + 24 V (PLC supply voltage as per VDE 0551); Power consumption 15 W X45: Keyboard Pin layout of the logic unit (X45), connecting cable, and BFT 121G (X4): Logic unit...
  • Page 52 Gray/Green 24 Yellow/ Brown Gray/Brown 26 Yellow/ Black RL19 White/ Yellow RL20 Gray/Blue Pink/Blue assigned RL21 Pink/Red RL22 Brown/Blue 32 RL23 Pink/Green 33 Brown assigned Yellow/Pink 35 assigned Violet assigned White assigned 3 – 24 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 53 X49: Visual display Distances > 25 m (82 ft) unit Pin layout of the logic unit (X49), connecting cable Id Nr. 312 875-xx, connecting cable Id. Nr. 312 876-xx and BFT 121G (X2): Logic unit Connecting cable Connecting cable BFT12G Id.
  • Page 54 Yellow Brown/ Brown/ Yellow Yellow Green/ Green/ Yellow Yellow Free Free DISP. Red/Blue Red/Blue DISP. Blue/Red Blue/Red DISP.ON 45 Red/ Red/ Orange Orange DISP.ON 46 Orange/ Orange/ Green/Red 47 Green/Red 47 3 – 26 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 55 Logic unit Connecting cable Connecting cable BFT12G Id. Nr. 312 876-xx Id. Nr. 312 875-xx D-sub Assign- D-sub D-sub D-sub D-sub D-sub connctn. ment connctr. connctr. connctr. connctr. connctn. (female) (male) (female) (male) (female) (male) 62-pin 62-pin 62-pin 62-pin 62-pin 62-pin Red/Green 48 Red/Green 48...
  • Page 56 VSYNC Blue/Black Green/White Orange/White Brown/White Gray/White Blue/White Violet/White Violet/Brown Violet/Green Violet/Orange Violet/Blue Red/Gray Red/Brown Yellow/Gray Yellow/Brown Yellow/Green Free Black/Gray CLP.P Black/Brown HSYNC Black/Green BLANK Black/Orange VSYNC Black/Blue White/Green White/Orange White/Brown White/Gray 3 – 28 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 57 Logic unit X49 Connecting cable Id. Nr. 340 300-xx BFT12G D-sub Assign- D-sub D-sub D-sub connctn. ment connctr. connctr. connctn. (female) (male) (female) (male) 62-pin 62-pin 62-pin 62-pin White/Blue Gray/Violet Brown/Violet Green/Violet Orange/Violet Blue/Violet Gray/Red Brown/Red Gray/Yellow Brown/Yellow Green/Yellow Free DISP.
  • Page 58: Machine Operating Panel

    34, 35 Brown, Yellow/ 34, 35 Pink 36, 37 +24 V (PLC) 36, 37 Violet, white 36, 37 Housing Ext. shield Housing Ext. shield Housing *) also available on X41 PLC output 3 – 30 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 59: Analog Nominal Value Output

    If you must branch to physically separate servo inputs, the connection must be made in a grounded terminal box, e.g. from HEIDENHAIN (Id. Nr. 251 249-01). The housing of the terminal box must be electrically connected with the frame of the machine.
  • Page 60: Switching Inputs 24 Vdc (Plc)

    I64 to I127 First PLC input/output unit PL410B I64 to I95 First PLC input/output unit PL405B I192 to I255 Second PLC input/output unit PL 410B I192 to I223 Second PLC input/output unit PL405B 3 – 32 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 61 X42: PLC outputs Pin layout of the logic unit: on the LE Logic unit Connecting cable Id. Nr. 244 005-xx, Id. Nr. 263 954-xx D-sub connctn. Assignment D-sub connctn. (female) 37-pin (male) 37-pin Gray/Red Brown/Black White/Black I3 Control-is-ready signal Green/Black Brown/Red White/Red White/Green...
  • Page 62: Plc Inputs On The Pl 410B

    I232 I120 I248 I105 I233 I121 I249 I106 I234 I122 I250 I107 I235 I123 I251 I108 I236 I124 I252 I109 I237 I125 I253 I110 I238 I126 I254 I111 I239 I127 I255 3 – 34 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 63: Plc Inputs On The Pl 405B

    3.13.3 PLC Inputs on the PL 405B X3, X4: PLC inputs Pin layout on the PL: Terminal Assignment Terminal Assignment I192 I208 I193 I209 I194 I210 I195 I211 I196 I212 I197 I213 I198 I214 I199 I215 I200 I216 I201 I217 I202 I218 I203...
  • Page 64: Switching Outputs 24 Vdc (Plc)

    O0 to O30 Logic unit X41 (PLC output) O0 to O7 Logic unit X46 (machine operating panel) O32 to O62 First PLC Input/Output Unit O64 to O94 Second PLC Input/Output Unit 3 – 36 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 65 X41: PLC Outputs Pin layout of the logic unit: on the LE Logic unit Connecting cable Id. Nr. 244 005-xx Id. Nr. 263 954-xx D-sub connctn. Assignment D-sub connctr. (female) 37-pin (male) 37-pin Power supply through X44, pin 2; over switchable EMERGENCY STOP Gray/Red Brown/Black White/Black...
  • Page 66 X7, X8: PLC outputs Pin layout on the PL: on the PL 410 B Terminal Assignment Terminal Assignment Control-is-ready signal 3 – 38 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 67: Plc Input/Output Unit Pl 4Xx B

    3.15 PLC Input/Output Unit PL 4xx B The control can accept up to two PL 4xxBs. Device Id. Nr. Switching Switching Analog inputs Inputs for Pt 100 inputs output (± 10 V) thermistors 24 Vdc 24 Vdc PL 410B 263 371-12 –...
  • Page 68 Serial OUT Serial OUT White/Pink Serial OUT Address 4 Black Address 4 Address 2 Gray Address 2 Address 0 White Address 0 Housing Ext. shield Housing Ext. shield Housing Housing Ext. shield 3 – 40 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 69 X2: PLC expansion Pin layout of the PL 410B, connecting cable and PL: PL 4xxB on the PL 410 B PL 410B Connecting cable Id. Nr. 289 111-xx, PL 4xxB Id. Nr. 317 788-xx D-sub Assignment D-sub D-sub X1 D-sub Assignment connctn.
  • Page 70: Analog Input

    Analog input 1: 0 V (reference potential) Analog input 2:–10 V to +10 V Analog input 2: 0 V (reference potential) Analog input 3:–10 V to +10 V Analog input 3: 0 V (reference potential) 3 – 42 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 71 D-sub connctn. (female) 25-pin Assignment 20 to 25 Do not assign Housing Ext. shield Warning Remember to connect the analog inputs with the correct polarity! Connection overview PL 410 B X15 to X18: Analog Pin layout: input on the PL 410B Connecting Assignment terminals...
  • Page 72 Connection of Characteristics of the connecting cable: analog voltage Shielding 2 conductors of 0.14 mm² Maximum length 50 m 3 – 44 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 73 U U U U Connection of the Configure the thermistor connection as a “four-conductor circuit.” Pt 100 thermistor inputs June 2002 Analog Input 3 – 45...
  • Page 74: Data Interfaces

    Yellow Yellow Green Green Brown Brown Signal GND Blue Gray Gray Pink Pink Do not assign 9 Violet Ext. Ext. Hsg. Hsg. Ext. shield Hsg. shield Hsg. Hsg. Hsg. Hsg. shield 3 – 46 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 75 Adapter block, 9-pin: Logic unit Conn. cable 355 484-xx Adapter block Conn. cable 366 964-xx 363 987-02 Male Assignment Female Color Male Female Male Female Color Female Do not assign 1 Yellow Yellow White White Brown Brown Signal GND Black Black Violet Violet...
  • Page 76 REC – Do not assign Do not assign Housing Ext. shield Face of the connector: Note The interface complies with the requirements of EN 50 178 for “low voltage electrical separation.” 3 – 48 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 77 Use a “crossover cable” if you wish to connect the control and the PC directly. Cable layout: RJ45 connection Assignment RJ45 connection Assignment (female) 8-pin (female) 8-pin REC+ REC- REC+ Do not assign Do not assign Do not assign Do not assign REC- Do not assign Do not assign...
  • Page 78: Handwheels

    Handwheels are connected with the position inputs X1 to X4 or X6. The handwheel connection is realized in the PLC The HEIDENHAIN HR 150 panel-mounted handwheels supply 11 µA signals. They are connected with the connecting cable Id. Nr. 309 782-xx to the position inputs.
  • Page 79: Dimensions

    3.19 Dimensions LE 412 M June 2002 Dimensions 3 – 51...
  • Page 80 BFT 121G Visual Display and Keyboard Unit 3 – 52 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 81 UV 105 Power Supply Unit June 2002 Dimensions 3 – 53...
  • Page 82 PL 405B, PL 410B 3 – 54 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 83 Adapter Block for the Data Interface June 2002 Dimensions 3 – 55...
  • Page 84 3 – 56 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 85: Basic Circuit Diagrams

    3.20 Basic Circuit Diagrams 3.20.1 Basic Circuit Diagram for LE 412 M Modular Regenerative HEIDENHAIN Inverter June 2002 3 – 57...
  • Page 86: Basic Circuit Diagram For Le 412 M With Ue 2Xxb Heidenhain Compact Inverter

    3.20.2 Basic Circuit Diagram for LE 412 M with UE 2xxB HEIDENHAIN Compact Inverter June 2002 3 – 58...
  • Page 87: Basic Circuit Diagram For Le 412 M With Ur 2Xx Regenerative Heidenhain Compact Inverter

    3.20.3 Basic Circuit Diagram for LE 412 M with UR 2xx Regenerative HEIDENHAIN Compact Inverter June 2002 3 – 59...
  • Page 88: Cable Overviews

    3.21 Cable Overviews 3.21.1 Cable Overview for LE 412 M Modular Regenerative HEIDENHAIN Inverter June 2002 3 – 60...
  • Page 89: Cable Overview For Le 412 M With Heidenhain Compact Inverter Ue 2Xxb

    3.21.2 Cable Overview for LE 412 M with HEIDENHAIN Compact Inverter UE 2xxB June 2002 3 – 61...
  • Page 90: Cable Overview For Le 412 M With Ue 2Xx Regenerative Heidenhain Compact Inverters

    3.21.3 Cable Overview for LE 412 M with UE 2xx Regenerative HEIDENHAIN Compact Inverters June 2002 3 – 62...
  • Page 91: Cable Overview Le 412 M - Accessories

    3.21.4 Cable Overview LE 412 M – Accessories June 2002 3 – 63...
  • Page 92 4 Machine and Control Parameters 4.1 Overview of Machine Parameters ............ 4–3 4.2 Overview of Control Parameters ............ 4–32 June 2002 4 – 1...
  • Page 93 4 – 2 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 94 4 Machine and Control Parameters 4.1 Overview of Machine Parameters Function and input Software Page vers. and behavior MP 1 Machine specification ID number 6–9 Enter the machine designation. Machine type Enter the specification of the machine. Release Enter the specification of the control. MP 2 Components of the machine Number of slides...
  • Page 95 3: Tool point — with reference to machine datum 4: Slide position 5: Distance from reference dog to zero pulse 6: Position nominal value 7: Difference from tool point to slide position 8: IPO nominal position 4 – 4 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 96 Function and input Software Page vers. and behavior MP 18 Control configuration PLC counts the workpieces RESET 6–14 Tools counted by 0: CNC 1: PLC M0/M1 for all NC channels RESET Specify the meaning of M0/M1: 0: M0/M1 triggers a STOP only on programmed channels. 1: M0/M1 triggers a STOP on all channels.
  • Page 97 MP 204, ... Feed rates Rapid traverse for manual control 6–19 Enter the velocity [mm/min]. Feed rate for manual control Enter the velocity [mm/min]. Feed rate per revolution for manual control Enter the velocity [mm/rev]. 4 – 6 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 98 Function and input Software Page vers. and behavior MP 208, ... Thread cutting for linear axis Maximum controller output for contour RESET 6–19 Enter the limit of the controller output for thread cuts [mm] for the X and Z axes. Maximum controller output step RESET Enter the limit of the change in output per control cycle for thread...
  • Page 99 Call the list of ID numbers and select the ID number of the drive motor. AMP ID number RESET Call the list of ID numbers and select the ID number of the power stage. 4 – 8 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 100 Calculate and enter the inductance [µH] of the series reactor. PWM frequency RESET Enter the frequency in accordance with the inverter being used: 5000 Hz (for HEIDENHAIN inverters) — or 3000 to 7000 Hz June 2002 Overview of Machine Parameters...
  • Page 101 Enter the tolerance [%] relative to the nominal speed value. Position window 6–86 Enter the tolerance [%] relative to the nominal position value. Speed tolerance for synchronous rotation Not used at present. 4 – 10 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 102 Function and input Software Page vers. and behavior Position tolerance for synchronism Not used at present. MP 810, ... Turret switching Maximum start-up acceleration 6–87 Enter the maximum acceleration in the start-up phase [rpm/s]. Maximum braking deceleration Enter the maximum deceleration in the braking phase [rpm/s]. Maximum speed of drive Enter the speed limit [rpm].
  • Page 103 Enter the maximum acceleration in the start-up phase [rpm/s]. Maximum braking deceleration Enter the maximum deceleration in the braking phase [rpm/s]. Maximum revolutions per minute Enter the speed limit for spindle point stop [rpm]. 4 – 12 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 104 Function and input Software Page vers. and behavior P component of the position controller Enter the proportional gain [1/s]. Maximum output of position controller Enter the controller output limit [rpm]. P component of the speed controller Enter the proportional gain [1/s]. Reset time of speed controller Enter the integral action component of the speed controller [ms].
  • Page 105 Voltage protection module available / reserve parameter 4 When synchronous motors are used, it indicates whether a voltage protection module is installed for the power module. 0: Voltage protection module not installed. 1: Voltage protection module installed. 4 – 14 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 106 Function and input Software Page vers. and behavior Maximum speed with analog drive / reserve parameter 5 354 809-06 6–43 For drives with analog speed command interface, it defines the speed at +/–10 V. — Range 0 to 100 000 [rpm] MP 1001, Configuration data, part 1 Logical axis number...
  • Page 107 Call the list of ID numbers and select the ID number of the drive motor. AMP ID number RESET Call the list of ID numbers and select the ID number of the power stage. 4 – 16 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 108 1: Spindle PWM frequency RESET Enter the frequency in accordance with the inverter being used: 5000 Hz (for HEIDENHAIN inverters) — or 3000 to 7000 Hz Expansion stage code 354 809-06 Specify the bitset for the expansion stage code (see table).
  • Page 109 Controller output limit C 6–94 Enter a limit [°/min] to the velocity at which a following error is overcome. P component of the position controller without feedforward Not used at present. 4 – 18 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 110 Function and input Software Page vers. and behavior MP 1007, Backlash compensation in C axis Type of backlash compensation 6–100 Specify the type of backlash compensation: 0: No compensation 1: Compensation outside the controlled distance (drive motor and rotary encoder are directly connected) 2: Backlash within the controlled distance (closed-loop distance measurement) Value of backlash compensation...
  • Page 111 Defines the angle between the reference point of the encoder and motor stator. The angle is multiplied with the encoder resolution. — Range –36 864 000 to +36 864 000 (corresponds to +/– 360 000 * 1024) 4 – 20 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 112 Function and input Software Page vers. and behavior Number of increments between zero pulses/reserve 354 809-06 parameter 2 Number of grating periods between the zero pulses of distance- coded encoders. — Range 0 to 1000 EMERGENCY OFF ramp / reserve parameter 3 354 809-06 Maximum brake acceleration of the drive during EMERGENCY STOP —...
  • Page 113 Configuration data, part 1 Logical axis number RESET 6–32 Specify the logical axis number: If the axis exists: keep the number generated by KonfigPilot. If the axis does not exist: enter 0. 4 – 22 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 114 Function and input Software Page vers. and behavior Axis code RESET Enter the code of the principal, auxiliary, or rotary axis: 88 = X axis (principal axis) 89 = Y axis 90 = Z axis 85 = U axis (auxiliary) 86 = V axis 87 = W axis 65 = A axis (rotary axis)
  • Page 115 1: Reverse position nominal values Rotary encoder monitoring on/off RESET 6–33 For encoders connected to the MCU (position encoder input), the amplitude and frequency can be monitored: 0: Monitoring off 1: Monitoring on 4 – 24 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 116 Function and input Software Page vers. and behavior Axis type RESET Specifies the type of drive interface: 1: Reserved 2: Reserved 3: Digital drive interface — position control in the NC (CC 422) 4: Digital drive interface — position control in the drive control (CC 424) Velocity 1 during reference run RESET...
  • Page 117 1: Spindle PWM frequency RESET Enter the frequency in accordance with the inverter being used: 5000 Hz (for HEIDENHAIN inverters) — or 3000 to 7000 Hz Expansion stage code 354 809-06 Specify the bitset for the expansion stage code (see table).
  • Page 118 Function and input Software Page vers. and behavior Acceleration at block end Enter the braking ramp for the block end [mm/s The axes are accelerated/braked on the programmed path over a cubic ramp so that the parameter value is not exceeded. Velocity at corners Enter the velocity [mm/min].
  • Page 119 Enter the starting point [mm] of the compensation series. The further compensation positions run in positive direction. Position grid RESET Enter the increment for which a compensation value [mm] is to apply. 4 – 28 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 120 Function and input Software Page vers. and behavior MP 1113, Axis parameters for digital linear axis Direction Not used at present. Type of drive RESET 6–55 0: The CCU does not evaluate the drive parameter block. 1: The CCU evaluates the drive parameter block. This sets a drive “inactive”...
  • Page 121 Not used at present. MP 1116, Limit switches, protection zone, feed rates Negative software limit switch 6–38 Positive software limit switch Enter limit-switch positions [mm] with respect to the machine datum. 4 – 30 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 122 Function and input Software Page vers. and behavior Negative dimension of protection zone Positive dimension of protection zone Enter protection-zone positions for “simple protection-zone monitoring” [mm] with respect to the machine datum. Rapid traverse velocity Enter rapid traverse velocity in automatic mode [mm/min]. Reference dimension Enter the position of the reference point [mm] with respect to the machine datum.
  • Page 123: Overview Of Control Parameters

    Minimum X coordinate 6–124 Enter the distance of the lower window edge referenced to the coordinate origin. Minimum Z coordinate Enter the distance of the left window edge referenced to the coordinate origin. 4 – 32 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 124 Definition Behavior/ Page SW Vers. Delta X Enter the vertical expansion of the graphic window. Delta Z Enter the horizontal expansion of the graphic window. CP 23 Simulation: Standard workpiece blank Outside diameter 6–125 Enter the diameter [mm]. Workpiece blank length Enter the entire workpiece length [mm].
  • Page 125 Picture in field n (n: 1 to 12) — see table RESET 6–128 Enter the identifier of the “picture” that you want to display here (for identifiers see the User’s Manual). Slide/spindle Not used at present. Component group RESET Enter 0. 4 – 34 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 126 5 Overview of Modules and Operands 5.1 Overview of Modules ................ 5–3 5.2 Overview of Operands (by Address) ..........5–5 5.3 Overview of Operands (by Operand Name) ........5–10 June 2002 5 – 1...
  • Page 127 5 – 2 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 128 5 Overview of Modules and Operands 5.1 Overview of Modules Module Function SW vers. Page 9003 Reading in analog inputs 8–16 9133 Load analog values of the logic unit 8–17 9006 Set and start PLC timers 8–8 9007 Diagnostic information of the PL modules 8–18 9019 Size of the processing stack...
  • Page 129 Control shutdown 8–25 9530 Parameter transfer to the NC 8–58 9540 Status of a file-access job 8–80 9560 Activate dialog 8–74 9561 Switch dialog status 8–74 9562 Query dialog status 8–75 5 – 4 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 130 5.2 Overview of Operands (by Address) Address Name Meaning Page 0056 NP_mutual_monitoring Mutual monitoring 8–26 0176 PN_PLC_identification_number PLC identification number 8–27 0185 PN_PLC_creation_date PLC creation date 8–27 0202 PN_Plcstatus Status of the PLC 8–24 0203 PN_nc_protectionclass Protection class 8–31 0208 NP_system_date_day System date —...
  • Page 131 Task option 1 — Spindle 1 8–101 1307 PN_S1_job_option_2 Task option 2 — Spindle 1 8–102 1308 PN_S1_job_parameter Job parameters — Spindle 1 8–103 W 1474 NP_K1_M_1st_m_function M function memory 1 — Channel 1 8–117 5 – 6 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 132 Address Name Meaning Page W 1476 NP_K1_M_2nd_m_function M function memory 2 — Channel 1 8–117 W 1478 NP_K1_M_3rd_m_function M function memory 3 — Channel 1 8–117 W 1480 NP_K1_T_function T function memory — Channel 1 8–120 1482 NP_K1_operating_mode_1 Operating mode (I) — Channel 1 8–121 1483 NP_K1_channel_status_1...
  • Page 133 W 4048 PN_number_of_activ_counters Number of active counters 8–10 6300 PN_handwheel_konfiguration Handwheel activation by the PLC 8–40 6302 PN_handwheel_type_x1 Handwheel type and signal type for 8–40 “handwheel connected at position input X*” 5 – 8 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 134 Address Name Meaning Page 6312 PN_handwheel_log_axis_x1 Handwheel assignment for “handwheel 8–41 connected at position input X*” 6324 PN_handwheel_line_count_x1 Line count of the handwheel encoder for 8–41 “handwheel connected at position input X*” 6364 PN_handwheel_resolution Handwheel resolution [µm] from the PLC 8–43 6368 PN_handwheel_movment_release Handwheel movements permitted by the...
  • Page 135 G function memory — Channel 1 8–140 1598 NP_K1_G_parameter_c C parameter of the G function — Channel 1 8–141 1602 NP_K1_G_parameter_f F parameter of the G function — Channel 1 8–141 5 – 10 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 136 Address Name Meaning Page 1610 NP_K1_G_parameter_h H parameter of the G function — Channel 1 8–141 1612 NP_K1_G_parameter_q Q parameter of the G function — Channel 1 8–141 1606 NP_K1_G_parameter_s S parameter of the G function — Channel 1 8–141 1608 NP_K1_G_parameter_t T parameter of the G function —...
  • Page 137 Channel requirements — Channel 1 8–142 1618 PN_K1_clear_reference_ Delete reference information — Channel 1 8–144 information 1620 PN_K1_external_event_1 External events (I) — Channel 1 8–152 1621 PN_K1_external_event_2 External events (II) — Channel 1 8–152 5 – 12 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 138 Address Name Meaning Page 1617 PN_K1_part_1_enabling_ Enabling signals (I) — Channel 1 8–145 signals 1619 PN_K1_part_1_limit_switch Safety limit switch (I) — Channel 1 8–150 1623 PN_K1_part_3_enabling_ Enabling signals (III) — Channel 1 8–149 signals W 1626 PN_K1_Plc_workpiece_ Workpiece counting — Channel 1 8–155 counting 1622...
  • Page 139 Job — Spindle 1 8–101 0463 PN_strobe_of_parameter_ Strobe of the parameter transfer 8–62 transfer 0355 PN_strobe_of_plc_error Strobe of the PLC error 8–52 6372 PN_x1_handwheel_max_feed Maximum handwheel feed rate [µm/s] 8–44 _rate 5 – 14 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 140 6 Machine Integration 6.1 Machine Parameters ................ 6 – 3 6.1.1 Parameter Structure ..............6 – 3 6.1.2 Logical Axis and Spindle Numbers ..........6 – 5 6.1.3 Editing the Bitsets ..............6 – 6 6.1.4 Parameter Transfer ..............6 – 7 6.1.5 Data Backup ................
  • Page 141 6 – 2 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 142: Machine Integration

    6 Machine Integration 6.1 Machine Parameters 6.1.1 Parameter Structure The machine parameters are divided into groups. Components such as spindles, slides, axes, etc. are each described in a group of associated parameters. Structure of machine parameters Number range Quantity per group Parameters for ...
  • Page 143 801 to 850 (1 spindle) 1101 to 1200 (2 axes) Parameter In conjunction with KonfigPilot, HEIDENHAIN supplies basic configurations configuration for the machine variants listed in Chapter 2. Using a basic configuration, KonfigPilot generates the data record for a specific lathe.
  • Page 144: Logical Axis And Spindle Numbers

    C axis and every spindle is assigned a “logical axis” number. The logical axis numbers can be assigned as desired, but they must be within the range of 1 to 16. HEIDENHAIN recommends the following assignment of logical axis numbers: Linear axes: 1 – 7 C axes: 8 – 9 Spindles: 10 –13...
  • Page 145: Editing The Bitsets

    Repeat this procedure until all the bits for this variable are set. U U U U Make sure that all bits are of the desired status. U U U U Press “Enter.” Example of editing a bitset. 6 – 6 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 146: Parameter Transfer

    6.1.4 Parameter Transfer Transfer methods The CNC PILOT supports the following methods of data backup and data exchange (see User’s Manual, Chapter 8.3 “File Transfer”): WINDOWS Networks: The CNC PILOT supports the networks commonly used under WINDOWS. The operator uses the CNC PILOT to transmit and receive files.
  • Page 147: Data Backup

    6.1.5 Data Backup HEIDENHAIN recommends that the machine manufacturer make a backup copy on a floppy disk of all data specific to the machine, and to ship the disk along with the machine. Moreover, the customer should save copies in regular intervals of the part programs, operating resource data and parameters that he has changed.
  • Page 148: General Machine Parameters

    6.2 General Machine Parameters 6.2.1 Identifying the Configuration, Machine Dimensions Identifying the MP 1 identifies the machine and control configuration. It serves as information configuration and has no effect on the behavior of the control. MP 1: Machine specification ID number Enter the machine designation.
  • Page 149: Setting The Position Display

    IPO tool tip nominal Nominal position of the tool tip referenced to position the machine datum IPO slide nominal Nominal position of the slide referenced to the position machine datum 6 – 10 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 150 June 2002 General Machine Parameters 6 – 11...
  • Page 151: Configuration

    Enter the maximum contouring speed in millimeters [mm] of axes in setup mode. Interpolation/loop clock pulse (position loop pulse) MANUALplus 4110: Enter “60” for 6 ms. Number of the program channel A “program channel” is used exclusively for calculations. No axes are assigned to this NC channel.
  • Page 152 Working plane, MP 5: Component group (AG) assignment / plane assignment coordinate system Channel n in component group (n: 1 to 6) Assign slides (NC channels) of the component group 1. Spindle n in component group (n: 1 to 4) Assign spindles of the component group 1.
  • Page 153 1: Interpreter stop — the look-ahead block interpretation is stopped and reactivated after the T command is executed. Expansion stage code 1 Specify the bitset for the expansion stage code (see table). 6 – 14 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 154 Expansion stage code of control Stan- Name Meaning dard ABST_1_ERWEITERTE_ Extended data release in consultation with the PLC: DATENFREIGABE 0: No extended data release 1: Extended data release ABST_1_M14_KEINE_ Spindle pre-positioning with M14: SPINDEL_VORPOS 0: Pre-positioning (using M19) 1: No pre-positioning ABST_1_KEINE_SPINDEL_ With Mx3, Mx4, Mx5 the spindle is controlled by the: SAETZE_BEI_M...
  • Page 155 Thread blocks go directly to the IPO: every thread block is transferred directly to the IPO. If successive thread blocks contain only very short paths, a subsequent block may not arrive at the IPO in time to machine the thread continuously. 6 – 16 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 156: Configuring The Slides

    6.3.2 Configuring the Slides Type and position MP 201, ...: Type and position of slide of slide Slide number Enter the number of this slide (NC channel) — Input: 1. Type of slide Enter the type of slide: 1: Compound rest Slide position at compound rest Enter the position of slide —...
  • Page 157 2nd linear or rotary axis 1st axis 2nd axis Third axis (and following) 1st linear or rotary axis 2nd linear or rotary axis 1st axis 2nd axis Third axis (and following) 6 – 18 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 158 Feed rates for Rapid traverse and feed rate velocities when you move the slide with the manual control manual axis direction keys (jog keys) or with the handwheel. MP 204, ...: Feed rates Rapid traverse for manual control Enter the velocity [mm/min]. Feed rate for manual control Enter the velocity [mm/min].
  • Page 159 6 – 20 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 160: Parameters For Power Modules And Motors

    6.3.3 Parameters for Power Modules and Motors The parameters for the power modules and drive motors are saved in internal tables. In the “Configuration data, part 3” parameter (MP 803, ...; 1003, ...; 1103, ...) you call the list “ID numbers of the power modules (AMP ID number)”...
  • Page 161 Calculate and enter the inductance [µH] of the series reactor (See “Series reactor” on page 27.). PWM frequency Enter the frequency in accordance with the inverter being used: 5000 Hz (for HEIDENHAIN inverters) — or 3000 to 7000 Hz 6 – 22 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 162 0: Feed axis 1: Spindle PWM frequency Enter the frequency in accordance with the inverter being used: 5000 Hz (for HEIDENHAIN inverters) — or 3000 to 7000 Hz Expansion stage code Specify the bitset for the expansion stage code (see table).
  • Page 163 During reference run, the first datum pulse found is used as reference (applicable with linear scales). 0: Not active 1: Active – – ENDAT_GEBER_CCU_NOT_ Unadjusted EnDat rotary encoder? ADJUSTED 0: Adjusted EnDat rotary encoder Unadjusted EnDat rotary encoder 6 – 24 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 164 0: Feed axis 1: Spindle PWM frequency Enter the frequency in accordance with the inverter being used: 5000 Hz (for HEIDENHAIN inverters) — or 3000 to 7000 Hz Expansion stage code Specify the bitset for the expansion stage code (see table).
  • Page 165 EnDat position encoder? 0: No EnDat position encoder – RPF_OHNE_NOCKEN During reference run, the first datum pulse found is used as reference (applicable with linear scales). 0: Not active 1: Active 6 – 26 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 166 A negative result means that there is no series reactor. Note If a series reactor is retrofitted, the digital current controller must be readjusted. Contact HEIDENHAIN for the motor parameters needed for calculating the series reactor. June 2002 Configuration 6 – 27...
  • Page 167 Reduce the factor for “I t monitoring” (MP 827, 1013, 1113,...). Note A reduction of the PWM frequency has no effect on the maximum speed, but it requires readjustment of the axes and spindles. 6 – 28 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 168 Reduction of the reference value for the I t monitoring The reduction of the reference value for I t monitoring can be calculated using two values (X1, X2) that can be found in the SIEMENS documentation. The percentage reduction of the rated current is calculated with the following formula: ) 8 kHz f PWM ⋅...
  • Page 169 – – --------------------------------------------------------------------------------------- - 10 % – è ø 8 kHz – 3,2 kHz U U U U Reduce the reference value for “I t monitoring”: t monitoring = X B 6 – 30 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 170 June 2002 Configuration 6 – 31...
  • Page 171: Linear And Rotary Axis Configuration

    90 = Z direction 120 = X direction (auxiliary axis) 121 = Y direction 122 = Z direction 97 = A direction (rotary axis) 98 = B direction 99 = C direction 6 – 32 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 172 Standardization factor Specify the meaning of the input and display (radius or diameter values): 1: Radius values 2: Diameter values Axis turns component (tool carrier) Enter only for rotary axes: 0: Axis does not turn a component 1: Axis turns a component Auxiliary axis number Specify the auxiliary axis number: 0: Axis is not an auxiliary axis...
  • Page 173 (for machine parameter 1104 see Page 66. The formula is: U: Parameter entry “spindle-to-motor gear ratio” Fmech: Traverse in one revolution of the feed screw [mm] Fpara: Parameter entry “ballscrew traverse” [mm] Zmotor: Gearwheel of motor Zspindel: Gearwheel of spindle 6 – 34 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 174 1. Rotary encoder In this example the rotary encoder is used to measure both the actual speed values as well as the actual position values. Encoder: 2049 lines per revolution Traverse per ballscrew revolution: 10 mm Gear ratio (motor-to-spindle): 24 / 40 DG: Rotary encoder for measurement of the actual values for both speed and position Determining the parameter entries:...
  • Page 175 Parameter entries (MP 1102): Ballscrew traverse: 10 mm Number of increments: 2500 U U U U Determine the motor-to-spindle gear ratio: U U U U Parameter entry (MP 1104) – “Spindle-to-motor gear ratio”: 0.6 6 – 36 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 176 3. Linear encoder In this example, a linear encoder is used to measure actual position values. Encoder: Linear encoder with a line spacing of 20 µm Gear ratio (motor-to-spindle): 24 / 40 DG: Rotary encoder for measurement of the actual speed values LM: Linear encoder for measurement of the actual position values Determining the parameter entries: U U U U...
  • Page 177 Rapid traverse velocity Enter rapid traverse velocity in automatic mode [mm/min]. Reference dimension Enter the position of the reference point [mm] with respect to the machine datum. 6 – 38 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 178 Setting the If the reference trip dog edge and the datum pulse coincide, use the “distance from trip parameter “Distance from trip dog to datum pulse” to “shift” the activation of dog to datum the datum pulse logic. pulse” MP 1116, ...: Limit switches, protection zones, feed rates Distance from dog to datum pulse Distance in [mm] traversed after detection of the trip dog, but before activation of the datum pulse logic.
  • Page 179: Configuring Spindles

    1 to 16: logical axis number of the assigned C axis Logical spindle number Specify the logical spindle number: If spindle exists: keep the number generated by KonfigPilot. If spindle does not exist: enter “0”. 6 – 40 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 180 MP 802, ...: Configuration data, part 2 Encoder resolution With the encoder resolution, the interpolator transfers the nominal position and speed value to the servo drive control. – Enter the number of increments per revolution of the position encoder. Expansion stage code Specify the bitset for the expansion stage code (see table).
  • Page 181 0: With absolute track 1: Without absolute track – – ENDAT_GEBER_CCU EnDat rotary encoder? 0: No EnDat rotary encoder 1: EnDat rotary encoder ENDAT_GEBER_MCU EnDat position encoder? 0: No EnDat position encoder 6 – 42 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 182 Expansion stage code for spindles Stan- Name Meaning dard RPF_OHNE_NOCKEN During reference run, the first datum pulse found is used as reference (applicable with linear scales). 0: Not active 1: Active – ENDAT_GEBER_CCU_NOT Unadjusted EnDat rotary encoder? _ADJUSTED 0: Adjusted EnDat rotary encoder Unadjusted EnDat rotary encoder STROMREGLER_ “Current controller adjustment”...
  • Page 183 2 Position the spindle with “M19 Spindle point stop” to the desired datum position (M function in the manual control mode). 3 Enter the value shown in the machine display as the “M19 Datum shift.” 6 – 44 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 184 Gear shifting MP 805, ...: General parameters Nominal value in transmission jog mode Enter the speed [rpm] for gear shifting. Nominal value for reversing Enter the speed [rpm] for gear reversing. Cycle time for reversing Enter in milliseconds [ms] the time until change of rotational direction during gear reversing.
  • Page 185 6 – 46 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 186: Configuring C Axes

    6.3.6 Configuring C Axes General MP 1001, ...: Configuration data, part 1 configuration Logical axis number Specify the logical axis number: If C axis exists: keep the number generated by KonfigPilot. If C axis does not exist: enter 0. Axis code Enter “67”...
  • Page 187 0: Do not reverse encoder signals 1: Reverse encoder signals Reverse algebraic sign of position nominal values Specify direction of nominal values: 0: Do not reverse position nominal values 1: Reverse position nominal values 6 – 48 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 188 Limit switch, rapid Machining is stopped when the limit switch is tripped. An error message traverse follows. For the C axis, limit switch monitoring is usually switched off. MP 1016, ...: Limit switches and rapid traverse velocity Negative software limit switch Define limit switch monitoring: Negative limit position in degrees [°] –...
  • Page 189: Configuring The Tool Carrier

    . . . MP699 – pp = 99 MP 601, ...: Tool holder 1, ... Compensation X Compensation Z Enter the compensation value in millimeters [mm] for “distance of carrier datum.” 6 – 50 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 190: Configuring A Driven Tool

    6.3.8 Configuring a Driven Tool Configure the driven tool with the following parameter settings: Parameter Tool Identification Driven driven General spindle configuration — Number of spindles Component groups / level assignment — Spindle 1 in component group Component groups / level assignment — Spindle 2 in component group Configuration data Part 1 Spindle —...
  • Page 191: Control Loops

    6.4 Control Loops HEIDENHAIN recommends adjusting the control loops with the integrated oscilloscope. Remember: Use the CCU mode when selecting the signals (measured values). Set the IPO measuring grid when you record signals of the “internal IPO” type. In the CCU mode the speeds of the drive are displayed.
  • Page 192: Digital Drive Control

    6.4.1 Digital Drive Control Drive control (I) MP 827, ...: Digital spindle parameter Direction Not used at present. Type of drive 0: The CCU does not evaluate the drive parameter block. 1: The CCU evaluates the drive parameter block. This sets a drive “inactive” (for example: during commissioning).
  • Page 193 1: Without monitoring of the braking current (with energy recovery). t monitoring Enter 0 to 1000.000 [· rated current of motor]. – Meaning: 0: I²t monitoring for feed motor switched off 1: Rated current of motor as reference value 6 – 54 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 194 MP 1113, ...: Axis parameters for digital linear axis Direction Not used at present. Type of drive 0: The CCU does not evaluate the drive parameter block. 1: The CCU evaluates the drive parameter block. This sets a drive “inactive” (for example: during commissioning).
  • Page 195 565 V for the UE 2xx compact inverter and the UV 130 modular inverter (HEIDENHAIN without energy recovery) 650 V for the UV 140 modular inverter (HEIDENHAIN with energy recovery) 600 V for Siemens Simodrive 611 (with energy recovery) Braking the spindle Under “braking for emergency stop”...
  • Page 196 Drive control (II) MP 827, ...: Digital spindle parameter Proportional factor for digital current control Enter the proportional factor [V/A]. Range: 0.00 to 9999.99. Integral factor for digital current control Enter the integral factor [V/As]. Range: 0.00 to 9999.99. element of the speed controller (second-order time delay element) Enter the delay [s].
  • Page 197 0: Voltage protection module not installed. 1: Voltage protection module installed. Maximum speed with analog drive / reserve parameter 5 Not used at present. 6 – 58 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 198 MP 1113, ...: Axis parameters for digital linear axis Proportional factor for digital current control Enter the proportional factor [V/A]. Range: 0.00 to 9999.99. Integral factor for digital current control Enter the integral factor [V/As]. Range: 0.00 to 9999.99. element of the speed controller (second-order time delay element) Enter the delay [s].
  • Page 199 Center the axes (in order to avoid collisions). 2 Prepare TNCOPT: Establish a connection between PC and CNC PILOT. Open the “project” for this machine configuration. Select the axis/spindle. Select the “Current controller step response” measuring function. 6 – 60 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 200 3 Initial values: P factor: DC-link voltage / motor rated current * 3 Increment: 1 I factor: 0 Increment: 500 4 Adjust the P factor: Adjust the P factor just far enough to eliminate overshoot during step measurement. Example: Correctly adjusted P factor: Example: P factor adjusted too high: June 2002 Control Loops...
  • Page 201 – Enter the ascertained parameters (Machine Parameters “Spindle/Axis parameters, digital” 827, ...; 1013, ...; 1113, ...): Proportional factor for digital current control (P factor) Integral factor for digital current control (I factor) 7 Restart CNC PILOT. 6 – 62 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 202 element of the If the controlled system is insufficiently dampened (e.g. direct coupling of speed encoder. motors or roller bearing), when the step response of the speed controllers is adjusted you will be unable to attain a sufficiently short settling time. The step response already begins to oscillate at a low proportional factor: U U U U Under “PT...
  • Page 203 Maximum braking Use the “maximum braking power” in special cases to limit the braking power power of the drive motor. Example: the drive motor is too large compared to the inverter. 6 – 64 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 204 June 2002 Control Loops 6 – 65...
  • Page 205: Control Loops For Linear Axes

    5 Display the nominal and actual speed values (speed target v., speed act. val.) with the oscilloscope (mode: CCU; measuring grid: CCU). 6 Move the linear axis cyclically on a path of 100 mm at a velocity of 1 m/min. 6 – 66 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 206 7 Increase the “P component of speed controller” until the axis shows a tendency to oscillate when it reaches the nominal velocity value. Reduce the value by 10%. 8 Reduce the “reset time of speed controller” until the difference between the nominal and actual velocity values has been minimized and the axis does not yet show any tendency to oscillate.
  • Page 207 Reduce the value by 10%. 8 Repeat steps 6 to 7 at higher and lower velocities. The setting is at its optimum when machining feed rates are positioned free of overshoot. 6 – 68 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 208 9 Repeat the adjustment of the position controller with “P component of the position controller without feedforward” with the feedforward switched off. Note: Even if the “P component of the position controller” is at its optimum setting, the curve of the actual velocity value might show a very dampened overshoot with a small overshoot width.
  • Page 209 9 Repeat steps 2 through 7, but position the linear axis at a velocity of 0.1 m/ min. If overshoots occur at low feed rates, the jerk limitation (MP 1108, …) must be optimized. 6 – 70 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 210 Note Note that the maximum possible drive acceleration/deceleration = M total = maximum drive moment (see ID label) = moment of inertia of moving mass, reduced on the drive shaft total Example: Optimally set acceleration values The actual acceleration follows the nominal acceleration to a great extent. Curves: Nominal velocity value (speed target v.): lower curve Actual velocity value (speed act.
  • Page 211 Explanation of the abbreviations: : Programmed velocity prog : Acceleration limiting (parameter value) para : Acceleration time : Jerk limiting (parameter value) para : Current (actual) jerk : (Theoretical) maximum jerk 6 – 72 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 212 MP 1108, ...: Look-ahead for linear axis Jerk limiting when moving to a target position Enter the limit of acceleration [m/s Setting jerk limiting: 1 Initial value: Jerk limiting: 1000 m/s 2 Display the nominal and actual velocity values (speed target v., speed act. val.), and nominal and actual position values (IPO_X_Soll, IPO_X_Ist) oscilloscope (mode: CCU;...
  • Page 213 5 Reduce the “dynamic following error limit” just until the following error monitor no longer responds during acceleration, braking and traversing with constant speed. 6 – 74 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 214 Example: Optimally set following error limit — The following error is controlled with the recorded lag error. Block enabling after After an “exact stop,” the next program block is not enabled until the exact exact stop position has been reached under consideration of the “tolerance window for position.”...
  • Page 215 Avoid position overshoot. Note Use feedforward only in connection with the acceleration limit (slope) to avoid overloading the drives (see “Acceleration block start/block end” in MP 1105, ...). 6 – 76 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 216 Example: Optimally set feedforward — only a small following error occurs during the acceleration phase. Curves: Nominal velocity value (speed target v.): lower curve Actual velocity value (speed act. val.): lower curve — slightly behind the nominal value Following error (lag error): upper curve June 2002 Control Loops 6 –...
  • Page 217 9 Repeat steps 4 to 7 for the X axis. Note The position controller for thread cutting is only activated when look- ahead is switched on. The thread cutting cycles on the MANUALplus operate without look- ahead. 6 – 78 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 218: Control Loops For Spindles

    6.4.3 Control Loops for Spindles The CNC PILOT uses different control loops for different spindle functions. In this way you can set optimum control parameters for each function. Starting with Parameter 811, four positions are reserved per gear range for up to four gear ranges.
  • Page 219 Note Note that the maximum possible drive acceleration/deceleration = M total = maximum drive moment (see ID label) = moment of inertia of moving mass, reduced on the drive shaft total 6 – 80 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 220 Speed controller for MP 811, ...: Standard block for gear range n (n: 1 to 4) standard machining P component of the speed controller Enter the proportional gain [1/s]. Reset time of speed controller Enter the integral-action component [ms] of the speed controller.
  • Page 221 7 If you increase the “tolerance for speed” or reduce the “waiting time for speed monitoring,” you will more quickly reach the “position attained” status and thus shorten the run time of the NC programs. 6 – 82 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 222 Position controller MP 812, ...: Tapping at gear range n (n: 1 to 4) for tapping Maximum start-up acceleration Enter the maximum acceleration in the start-up phase [rpm/s]. Maximum braking deceleration Enter the maximum deceleration in the braking phase [rpm/s]. Maximum revolutions per minute Enter the speed limit for tapping [rpm].
  • Page 223 Increase the reset time to weaken the effect of the controller. Reduce the reset time to increase the effect of the controller. 7 Repeat steps 4 to 6 at higher and lower speeds. 6 – 84 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 224 Position controller Adjust the position controller: for spindle point 1 Initial values: stop P component of the position controller: 5 Maximum output of position controller: 20 2 Display by oscilloscope the nominal velocity value and actual position value (mode: IPO; measuring grid: IPO). 3 Position the spindle from a standstill to 0°, 90°, 180°...
  • Page 225 8 If you increase the “tolerance for position” or reduce the ”waiting time for position monitoring,” you will more quickly reach the “position attained” status and thus shorten the run time of the NC programs. 6 – 86 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 226 Control loops for The turret is actuated with the following control loops and limits: turret actuation Speed controller Position controller Limits to acceleration, braking deceleration, and rotational speed MP 810, ...: Turret operation Maximum start-up acceleration Enter the maximum acceleration in the start-up phase [rpm/s]. Maximum braking deceleration Enter the maximum deceleration in the braking phase [rpm/s].
  • Page 227 10%. 5 Increase the “maximum output of the position controller” in order to reduce the positioning time. If a tendency to oscillate appears, reduce the “P component” or “maximum controller output.” 6 – 88 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 228 Turret actuation: To change between turret and spindle operation, the drive must be in the coupling position “coupling position.” The coupling position is the sum of the encoder scale reference-point position plus the datum shift under consideration of the “position window” tolerance range (see also “8.10.5 Turret Operation (Position Controlled Turret)).”...
  • Page 229 6 – 90 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 230: Control Loops For C Axes

    6.4.4 Control Loops for C Axes Limits MP 1005, ...: Acceleration / braking in C axis Acceleration at beginning of block Enter the acceleration ramp for the beginning of the block [°/s Acceleration at block end Enter the braking ramp for the block end [°/s The axes are accelerated/braked on the programmed path over a cubic ramp so that the parameter value is not exceeded.
  • Page 231 6 Reverse the C axis cyclically over an angle of 100° at a speed of 6000 °/ min. 7 Increase the “P component of speed controller” until the axis shows a tendency to oscillate when it reaches the nominal speed value. Reduce the value by 10%. 6 – 92 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 232 8 Reduce the “reset time of speed controller” until the difference between the nominal and actual speed values has been minimized and the axis does not yet show any tendency to oscillate. Increase the reset time to weaken the effect of the controller. Reduce the reset time to increase the effect of the controller.
  • Page 233 Note: Even if the “P component of the position controller” is at its optimum setting, the curve of the actual velocity value might show a very dampened overshoot with a small overshoot width. 6 – 94 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 234 Following error The following error depends on the velocity and acceleration of the axis. The monitoring following error is monitored in the position control loop. If the following error limit is exceeded (sum of static and dynamic following error limit), the NC program is interrupted and an error message results.
  • Page 235 Avoid position overshoot (See “Feedforward” on page 76.). Note Use feedforward only in connection with the acceleration limit (slope) to avoid overloading the drives (see “Acceleration block start/block end” in MP 1005, ...). 6 – 96 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 236 Jerk limiting MP 1008, ...: Feedforward C axis Jerk limiting when moving to a target position Enter the limit of acceleration [m/s Setting jerk limiting: 1 Initial value: Jerk limiting: 1000 m/s 2 Display the nominal and actual velocity values (speed target v., speed act. val.) and the nominal and actual position values (IPO_X_Soll, IPO_X_Ist) with the oscilloscope (mode: CCU;...
  • Page 237 6 – 98 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 238: Compensations

    6.5 Compensations The CNC PILOT supports the following compensation of mechanical axis error: Backlash compensation Screw pitch error compensation Misalignment compensation 6.5.1 Backlash compensation With backlash compensation, the “value of the backlash compensation” is calculated into every change in direction. If you want the backlash to be compensated differently depending on the axis position, switch the backlash compensation off and combine the backlash compensation with the screw pitch error compensation (see MP 1111, ...
  • Page 239 2: Value of the backlash compensation is subtracted. Backlash within the controlled distance (closed-loop distance measurement) Value of backlash compensation Enter the compensation value. Range: –1.0000° to +1.0000°. 6 – 100 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 240 MP 1107, ...: Backlash compensation in linear axis Type of backlash compensation Specify the type of backlash compensation: 0: No compensation Value of the backlash compensation is added. Backlash outside the controlled distance (drive motor and rotary encoder are directly connected) 2: Value of the backlash compensation is subtracted.
  • Page 241: Screw-Pitch-Error And Angle Compensation

    Enter the compensation value [°] of position n in positive direction of rotation. Compensation value in negative direction Enter the compensation value [°] of position n in negative direction of rotation. 6 – 102 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 242 Finding compensation values You can ascertain the compensation values with an additional angle encoder: 1 Specify the compensation grid: Number of position compensation points Beginning of position compensation Position grid 2 Move the C axis to “nominal position = beginning of compensation.” 3 Move in the positive direction to each position in succession (position grid): Compensation value = position of additional encoder –...
  • Page 243 “last position,” move in negative direction to each position (position grid) in succession: Compensation value = position of additional encoder – position of the integrated encoder Enter the compensation value as the “nth compensation value in negative direction.” 6 – 104 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 244: Misalignment Compensation

    6.5.3 Misalignment compensation Misalignment compensation counteracts nonparallelism in the axes of a slide. The compensation path for this axis is calculated per 100 mm traverse of the neighboring axes. The reference value is the machine datum. At the machine datum the compensation value is 0. Within the 100 mm interval the compensation path is interpolated linearly.
  • Page 245: Special Functions

    The limit velocity is calculated from the “control clock for Vlimit” for look-ahead (Vlimit(control)) and the traverse length of an NC block. Remember that: Vlimit(control) = 2 * path / control clock Vlimit = MINIMUM (Vlimit(control), Vlimit(brake), Vlimit(geo), ...) 6 – 106 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 246 Look-ahead on arcs With “Vlimit reduction on arcs” (Vlimit(centri), you reduce the velocity limit (due to centripetal acceleration) With “minimum Vlimit on arcs” (MinVlimit(centri)) you specify the minimum velocity limit. June 2002 Special Functions 6 – 107...
  • Page 247 This smoothens the workpiece surface on short paths. In the following illustration, the traversed speed lies above Vlimit(lin). The smoothing is achieved through other filters — Vlimit(lin) does not influence the velocity. In the following illustration, Vlimit(lin) smoothens the velocity. 6 – 108 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 248 Corner rounding Below the “limit angle for corner rounding,” non-tangential block transitions are rounded by the corner factor. Sharp edges are traversed above the limit angle. As soon as the “corner velocity” (VE) is reached (see MP 1005, ...; 1105, ...), the acceleration of the axis programmed in the following block begins.
  • Page 249 6 – 110 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 250: Real-Time Coupling Functions

    6.7 Real-Time Coupling Functions 6.7.1 General Information The “real-time coupling functions” make it possible for the machine and control to continuously adapt to “real-time data.” Examples include temperature compensation, control of synchronized axes (also called master- slave axes or gantry axes), eccentric turning, etc. For linear axes and C axes, up to five basic operations are defined in MP 1028, ...
  • Page 251: Defining Basic Operations

    Z_Op = Op1 * (–1) Negation Real Z_Op = Op1 * (–1) Standardized Integer Z_Op = Op1 * Op2 /10 e7 — Application example: multiplication conversion from “0.1 µm to m” 6 – 112 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 252 Code numbers (hex code) of the operator Operator Data Explanation code type Filtered Z_Op = Z_Op + minimum (Z_Op–Op1, Op2) assignment — if Z_Op–Op1 < Op2, then Z_Op–Op1 is added. — If Z_Op–Op1 > Op2, then Op2 is added. Comparison If (Op1 == Op2), then the following operation is performed.
  • Page 253 Traverse [0.1 µm] in current control loop clock v_soll Nominal velocity [0.1 µm/s] a_soll Nominal acceleration [0.1 µm/s lg_ist_absolut Absolute actual position value [0.1 µm] v_ist Actual velocity [0.1 µm/s] a_ist Actual acceleration [0.1 µm/s 6 – 114 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 254 MP 1028, ...: Real-time coupling functions in C axis Nth basic operation of parameter 1 (n: 1 to 10) Nth basic operation of 2nd parameter (n: 1 to 10) Enter parameters (for maximum 10 basic operations). MP 1128, ...: Real-time coupling functions in linear axis Nth basic operation of parameter 1 (n: 1 to 10) Nth basic operation of 2nd parameter (n: 1 to 10) Enter parameters (for maximum 10 basic operations).
  • Page 255: G Functions

    Since the machinist is not familiar with the definitions of real-time coupling functions, the capabilities of G functions must be explained exactly and in detail. HEIDENHAIN recommends using G functions to modify real-time coupling functions only in expert programs. G715 With G715 you change the “direct operands”...
  • Page 256 G718 (ignore following error) suppresses the automatic comparison of the control’s nominal position value with the axis position data (for example during traverse to a dead stop or after withdrawal and restoration of the controller enabling). To prevent this, during activation of the master-slave coupling, program G718 Q=1 (the following error remains saved).
  • Page 257: Examples

    NC-interpolator interface) Target operand = Operand 1 Operator Operand 2 lg_soll_absolut lg_soll_absolut Multiplication VAR_1_IPO_DP Axis 1 Axis 1 Parameter entry (in hex) 01 01 03 97 Parameter entry (decimal) 16 843 671 6 – 118 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 258 Linear and constant The logical axis 1 is compensated according to the following formula: temperature lg_komp = lg_soll * T_Koeff + T_Konst compensation Calculation is in two steps: First calculation: VAR_1_IPO = lg_soll * T_Koeff Second calculation: lg_soll_absolut = VAR_1_IPO + T_Konst Meaning: lg_komp: Position compensated lg_soll: Absolute nominal position value...
  • Page 259: Conversions

    MPs 165 to 167 contain the conversion lists for adapting the M functions to the details of the machine tool original equipment manufacturer (OEM).- The “HEIDENHAIN M function” is replaced by the “OEM M function.” This conversion list is independent of the G30 conversions — it is always active.
  • Page 260 June 2002 Conversions 6 – 121...
  • Page 261: Control Parameters

    0: Suppress the output 1: Enable the output Metric / inch Set the units of measure: 0: Metric 1: Inches Start block search 0: Without start block search 1: With start block search 6 – 122 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 262 Languages In the control parameter 4, enter the identifiers of the languages that you want available in the control. File code Language deutsch German englisch English franz French ital Italian Dutch Spanish Danish Swedish Czech Polish SP 4: Languages Language Enter the language identifiers.
  • Page 263 Enter the distance of the left window edge referenced to the coordinate origin. Delta X Enter the vertical expansion of the graphic window. Delta Z Enter the horizontal expansion of the graphic window. 6 – 124 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 264 Simulation — If no workpiece blank is programmed, the CNC PILOT assumes a standard workpiece blank workpiece blank and works with the standard window size. SP 23: Simulation: Standard workpiece blank Outside diameter Enter the diameter [mm]. Workpiece blank length Enter the entire blank length [mm].
  • Page 265 LPTx (x: 1 to 4) for parallel interfaces Note The are only two serial interfaces available on the CNC PILOT. (The other COM and LPT interfaces are used to configure DataPilot.) 6 – 126 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 266 Interface parameters: Baud rate Word length Code Baud Code Bits per character 38400 Parity 1200 Code Parity 1800 No parity 2000 Odd parity 2400 Even parity 3600 Stop bits 4800 Code Number 7200 1 stop bits 9600 2 stop bits 19200 Protocol Code...
  • Page 267 HEIDENHAIN recommends using the transfer functions to make the Transfer directory parameter settings. SP 48: Transfer directory PCDIRECT directory Path of the directory that is released and displayed during communication with Direct Cable Connection NETWORK directory Path of the directory that is released and displayed during...
  • Page 268 June 2002 Control Parameters 6 – 129...
  • Page 269: Integrated Servicing Tools

    Actual position value [mm] Speed target v.: Nominal speed value [mm/s] Speed act. val.: Actual speed value [mm/s] Accel. target v.: Nominal acceleration value [mm/s Accel. act. val.: Actual acceleration value [mm/s 6 – 130 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 270 Jerk target v.: Nominal jerk value [mm/s Jerk act. val.: Actual jerk value [mm/s IPO signals (“IPO” mode): Position actual value [mm] Position nominal value [mm] Lag error (following error) [mm] Speed actual value [mm/s] Speed target value [mm/s] Acceleration actual value [mm/s Acceleration target value [mm/s Power [W] Torque [Nm]...
  • Page 271 0/1 in the input boxes “Num — Bit — Comp — Select.” In the “stop trailing” input box: Specify the number of measuring points to be recorded after the stop condition occurs. 6 – 132 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 272 Trigger — channel menu item with IPO signals (“channel trigger” dialog box). Select from the following triggers: “Start/Stop trigger — compare — value” input boxes: Select the trigger signal and define the comparison value. In the “stop trailing” input box: Specify the number of measuring points to be recorded after the stop condition occurs.
  • Page 273 Trig Trig – – Legend: Cmp: Comparison value Trig: Trigger condition is fulfilled 6 – 134 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 274 Menu item Display (“Set display” dialog box influences the representation of the curve): With the Continue key, select the signal (the color of the curve, the component and the signal type are displayed). “Amplitude 100%” input box: Specify the signal value to correspond to the display value 100 (the display window has the scale –100 ...
  • Page 275 Red: Recorded measured values are being written to the file. IPO mode: Black: Do not save status of measured values. Green: Measured values are written to a file (no differentiation between recording and waiting for trigger). 6 – 136 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 276 “File display” menu Display of saved data: When saving displayed data, the CNC PILOT switches to the “file display” menu. The current settings are displayed below the display window. The measured values at the cursor position are shown in the box at the right.
  • Page 277 Select the record file (recommended: “OSCI”): Menu item “Settings — measured value organization — load” — select file. U U U U Define the signals to be recorded: “Measured values” menu item — “channel definition” dialog box. 6 – 138 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 278 U U U U Specify the trigger condition: menu item “Trigger — CCU trigger” — dialog box “trigger condition”: U U U U Save settings: menu item “settings — setting organization — save” — select/save the file (in this example “LA_KREIS”). U U U U Start recording: menu item “start”...
  • Page 279 6 – 140 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 280: Commissioning

    With KonfigPilot you can edit the source configuration supplied by HEIDENHAIN to create the proper machine configuration. The machine configuration includes the parameters, M function settings, menu settings, etc. that are appropriate for the specific machine version.
  • Page 281 Note If you set the parameter “type of drive = 0” (MP 827, ...; 1013, ...; 1113, ...), the drive is switched to inactive for servicing. 6 – 142 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 282: Parameter List For Initial Operation

    6.11.2 Parameter List for Initial Operation General settings Function and input Page General configuration MP 2 Components of the machine 6 - 12 Number of slides Total number of axes Number of C axes MP 3 General axis configuration 6 - 12 Maximum setup feed rate Interpolation/loop clock pulse (position loop pulse)
  • Page 283 Rotor position of reference angle / reserve parameter 1 Number of increments between zero pulses/ reserve parameter 2 EMERGENCY OFF ramp / reserve parameter 3 Voltage protection module available / reserve parameter 4 6 – 144 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 284: Commissioning

    Expansion stage code for encoders Expansion stage code with ... Separate encoders for position and speed measurement Encoders for pos. control (connection to MCU) Incremental angle encoder Rotary encoders for speed control (connection to the CCU) Incremental rotary encoder (synchronous motor, aligned by manufacturer) Incremental rotary encoder (asynchronous motor) 0 Rotary encoders with EnDat interface...
  • Page 285 Expansion stage code for rotational direction Expansion stage code for setting the rotational direction Reverse algebraic sign of speed nominal value Reverse algebraic sign of actual position value 6 – 146 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 286 Drives for C axes Function and input Page Configuring the motor and power stage MP 1002, Configuration data, part 2 — C axis 6 - 47 Axis type MP 1003, Configuration data, part 3 — C axis 6 - 23 MOT ID number AMP ID number Encoder input...
  • Page 287 Incremental rotary encoder (asynchronous motor) 0 Incremental rotary encoder (synchronous motor, aligned by manufacturer) Absolute rotary encoders with EnDat interface Absolute rotary encoders with EnDat interface — not adjusted 6 – 148 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 288 Drives for linear axes Function and input Page Configuring the motor and power stage MP 1102, Configuration data, part 2 — linear and rotary 6 - 33 axis Axis type MP 1103, Configuration data, part 3 — linear and rotary 6 - 25 axis MOT ID number...
  • Page 289 Incremental rotary encoder (asynchronous motor) 0 Incremental rotary encoder (synchronous motor, aligned by manufacturer) Absolute rotary encoders with EnDat interface Absolute rotary encoders with EnDat interface — not adjusted 6 – 150 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 290 Configuring encoders Function and input Page Configuring the encoders MP 801, Configuration data, part 1 6 - 40 , ... Number of gear ranges MP 802, Configuration data, part 2 6 - 41 Encoder resolution MP 1002, Configuration data, part 2 6 - 47 Rotary encoder monitoring on/off Velocity 2 during reference run...
  • Page 291 6 - 70 Acceleration at beginning of block Acceleration at block end Velocity at corners MP 1116, Limit switches, protection zone, feed rates 6 - 39 Distance from trip dog to datum pulse 6 – 152 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 292 U U U U Inspecting the Check the PLC parameters drives U U U U Main switch OFF U U U U Remove the starting-lockout connector for all drives (on the power module). Check in sequence the main spindle, other spindles, and the axis drives: U U U U Main switch OFF U U U U...
  • Page 293 Reset time of speed controller Spindle-to-drive gear ratio MP 802, Configuration data, part 2 6 - 82 Waiting time for speed monitoring MP 806, Tolerance values 6 - 82 Tolerance for speed 6 – 154 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 294 Function and input Page MP 814, Spindle point stop for gear range n (n: 1 to 4) 6 - 84 Maximum start-up acceleration Maximum braking deceleration Maximum revolutions per minute P component of the position controller Maximum output of position controller P component of the speed controller Reset time of speed controller MP 802,...
  • Page 295 Tapping for gear range n (n: 1 to 4) 6 - 83 Maximum start-up acceleration Maximum braking deceleration Maximum revolutions per minute P component of the position controller Maximum output of position controller 6 – 156 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 296 Function and input Page Tolerance values MP 806, Tolerance values 6 - 86 Position window MP 805, General parameters 6 - 44 Number of revolutions for cutting free Limit switch MP 1016, Limit switches and rapid traverse velocities 6 - 49 Negative software limit switch Positive software limit switch Tool carriers...
  • Page 297 6 - 124 functions Nth M function (n: 1 to 10) Time allowance CP 22 Simulation: Standard window size 6 - 124 Minimum X coordinate Minimum Z coordinate Delta X Delta Z 6 – 158 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 298 6.11.3 Commissioning If a machine version has already been put into service, the following steps are necessary for putting other machines into service: Load the machine configuration generated through KonfigPilot. Load the PLC program. Enter the software key for control-loop and software options. Adjust the following machine-specific parameters.
  • Page 299 Number of compensation values Position grid Beginning of position compensation MP 1021 Angle compensation values 1 – 100 6 - 102 – 1026, ... Compensation value in positive direction Compensation value in negative direction 6 – 160 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 300 User settings Definition Page Units of measure, languages CP 1 Settings 6 - 122 Metric / inch Display format CP 4 Languages 6 - 123 Language Data Interfaces CP 40 Assignment to the interfaces 6 - 126 External input/output DATAPILOT Printers Service SP 41 to...
  • Page 301 6 – 162 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 302: Cnc Pilot Block Diagram

    6.12 CNC PILOT block diagram June 2002 6 – 163...
  • Page 303 7 PLC Programming 7.1 Introduction ..................7 – 5 7.2 PLCdesign ..................7 – 7 7.2.1 Installation ................. 7 – 7 7.2.2 First Steps ................. 7 – 9 7.2.3 User Interface ................7 – 11 7.2.4 Calling the Menus and Functions ..........7 – 14 7.2.5 Help Functions ................
  • Page 304 Push Word Accumulator onto the Data Stack (PSW)..... 7 – 135 Pull Logic Accumulator from the Data Stack (PLL)....7 – 136 Pull Word Accumulator from the Data Stack (PLW)....7 – 136 7 – 2 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 305 7.3.14 Jump commands ..............7 – 137 Unconditional Jump (JP)............7 – 137 Jump if logic accumulator = 1 (JPT) ........7 – 137 Jump if Logic Accumulator = 0 (JPF) ........7 – 138 Call Module (CM)..............7 – 138 Call Module if Logic Accumulator = 1 (CMT) ......
  • Page 306 7 – 4 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 307: Plc Programming

    7 PLC Programming 7.1 Introduction The PLC system consists of the run-time system as part of the CNC PILOT and the PLCdesign program package for creating and testing PLC programs. In addition, KonfigPilot is used to generate the PLC parameters and texts. PLCdesign and KonfigPilot run on standard PCs.
  • Page 308 The PLC systems consists of the following components: PLCdesign: PLCdesign assists the machine manufacturer in creating, modifying, translating, and testing PLC programs on all current HEIDENHAIN controls. PLCdesign runs on standard PCs. Version 4.0 of PLCdesign offers the following possibilities: PLC program creation (STL) with symbolic operands...
  • Page 309 Proceed as follows for installation with Windows 95, Windows 98 or Windows NT. U U U U Insert the CD into the drive. The HEIDENHAIN start-up screen appears automatically if the CD-ROM Startup function has not been turned off. U U U U...
  • Page 310 U U U U Install PLCdesign If the startup function is not active, select "run" in the "start" menu and enter "d:\ setup.exe" (if "d:" is the letter designation of your CD-ROM drive). 7 – 8 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 311 7.2.2 First Steps If example programs are to be installed, the Folder JHPGM is automatically created as a subdirectory of C:\PLC during installation. For your work with the PLC compiler, we recommend that you make further subdirectories for your own projects after you have installed the program. If you are working under Windows, you can use “Project Setup”...
  • Page 312 Before compiling can be started, you must designate the main file of the PLC project under Compile/Main file. This file should have the name extension SRC. You must enter the type of control under Options/NC. 7 – 10 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 313 7.2.3 User Interface General The user interface has the following layout Information Main menu in the uppermost line Work area Footer Example of a loaded PLC program: Main menu From here you can open further menus, depending on the desired function. The submenus each contain a list of selectable functions or settings.
  • Page 314 ↵ key, or by clicking or double-clicking with the mouse (depending on the window). You can move the cursor either by moving the scroll bar with the arrow keys or by clicking the direction keys with the mouse. 7 – 12 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 315 Status window The status window is automatically opened when the compiler or a transfer program is started. It provides information on the progress of these functions. Example of status window for compiling After the function is finished, you can close the status window by pressing any key.
  • Page 316 An even faster way is to press and hold ALT, then press the letter highlighted in the menu item to open the submenu. Many functions can also be called using key combinations. In the Appendix you will find a complete list of all such key combinations. 7 – 14 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 317 7.2.5 Help Functions The PLC programming software has very comprehensive help texts with information on how to use the program. If necessary, texts can be copied out of opened help windows and pasted into the program to be created. The help window can be closed by clicking the [n] symbol or by pressing ESC. Selecting the menu item Help brings up the following submenu: You can choose various help functions from this menu: Contents...
  • Page 318 Next Put the next window in the foreground. Show all Show all windows next to each other. Cascade Show all windows overlapping. Close Close the active window. 7 – 16 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 319 Further preferences can be set under Options: Color Here you can adjust the foreground and background colors. Screen lines Here you can adjust the number of screen lines to be displayed. Note (in Windows): If you have selected a large font for the DOS box, the resulting window size may be too large to fit in your screen.
  • Page 320 When Compile/Build or Compile/Make are called, the PLC source files are translated into binary files. After an error-free compilation, the PLC binary file is transferred to the control either with Transfer/Upload, or automatically, if Automatic upload is turned on. 7 – 18 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 321 7.2.8 File Management ("File" menu) The menu item File contains all file management functions for files on the PC. The pull-down menu appears when File is activated (with the mouse or the keyboard). The file management functions are: Creates a new file. When you are saving this file, you are automatically asked for a name under which you wish to save it.
  • Page 322 Takes you temporarily into DOS. You can go back into the program by typing EXIT. Exit Leaves the software and returns to the operating system. Functions that cannot be activated at the present time shown in faded type. 7 – 20 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 323 7.2.9 Editor The text editor is activated when you choose New or Load from the File menu to load a new or existing file. Up to six files can be open at one time. You can use Replace to replace the active file with a new one. In the upper window frame you can see the name of the open file (including path), the cursor position (row and column numbers), and the indicators if Insert or Automatic Indent are active.
  • Page 324 With the ← (BACKSPACE), you delete the character to the left of the cursor. If the cursor is at the beginning of a line, this line is appended to the previous line. 7 – 22 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 325 Delete a word With the CTRL+T key you delete the word in which the cursor is located. Valid delimiter characters for words are: Space, tab stop, comma, period, arithmetical operators. Delete a line With the CTRL+Y key you delete the line in which the cursor is located. The cursor is then located at beginning of the next line, which has moved up to replace the deleted line.
  • Page 326 The default tab spacing is eight characters. Before you change the distance, remember that most printers are also set to eight characters and that the position of the text will be shifted. 7 – 24 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 327 7.2.10 PLC Compiler Functionality Overview The PLC compiler makes the following functions possible: Translation of PLC source-code files into HEIDENHAIN binary format Processing symbolic label and operand names. Processing of arithmetic expressions with nonsymbolic operands and symbol definitions. Processing of special compiler instructions (e.g., conditional compiling, macros) Generating a documentation file for the compiled PLC program.
  • Page 328 Such a group of files is called a project. The individual files are then all called up from the main project file. This program structuring can be seen in the PLC program examples. 7 – 26 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 329 7.2.12 Compiler Settings Under Compile/Options you can make settings that influence the compilation process. Settings are activate or deactivated with a mouse click or by pressing the space bar. Activated settings are indicated with an X next to the item. Setting possibilities depend on the type of control.
  • Page 330 Below the definition line is a list of places at which the respective operand is used. On the left is the PLC file name, along with the commands used on the operand, along with the line number of the created PLC ASCII code. 7 – 28 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 331 Example of a project information: ______________Project Info________________ Used Files: Name Class Date 1.SRC Module 03.02.99 2.SRC Module 30.11.98 INCLUDE\GLOBAL.SRC Include 03.02.99 Memory Assignment: Range Max.Local/in File Global/Static Used Marker(r):1000-1200 1000-1023 2.SRC 1177-1200 Byte (r): 100- 127 120- 127 Vacant Memory Fragments: Marker(remanent): 0 Marker(nonremanent): 0 Byte(remanent) : 1...
  • Page 332 2, and not by 4. Checking Symbolic If Test Symbol Conflicts is activated, the compiler checks whether the same Operand Addresses address has been assigned to multiple symbolic operands, and generates warnings if necessary. 7 – 30 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 333 Using Extended Use Extended Memory allows you to use more memory area for the Memory compilation than the 640 KB available from DOS. If you receive the error message ”F3052: Not enough working memory. Cancel operation!” while compiling, you can use this option to make more working memory available for compiling.
  • Page 334 7 – 32 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 335 7.2.13 Symbolic programming An important software component is the support of symbolic label and memory operands. When designating operands, use names that refer to their functions and that follow fixed rules. This makes it much easier to read the PLC programs (see PLC programming example).
  • Page 336 As with the global operands, the memory space that they have reserved cannot be used for other purposes. Static symbols are always defined in the PLC program file (see “Static symbolic operands” on page 39). 7 – 34 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 337 7.2.14 Operand Arithmetic Nonsymbolic operand values in PLC commands and address data in symbol definitions can consist of arithmetical expressions. The compiler performs the operation during the translation. Operand arithmetic is also possible in the constants field. Arithmetic The following operations are permitted: operations OperatorOperation Addition...
  • Page 338 Compiler instructions are located in the source code, and are processed before the actual translation procedure. They control the compiling process. The instructions no longer appear in the translated HEIDENHAIN PLC ASCII format. Practical applications of the compiler instructions can be found in the PLC sample programs.
  • Page 339 Defining global Global symbols are always defined in separate files. The #define /g instruction symbolic operands causes a file in which symbol definitions are given to be read-in. Syntax: #define /g <symbol file name> Example: #define /g GLB_IO.Def The symbol name can contain any path that follows the DOS conventions. If no path is given, the compiler adds the path of the PLC main module.
  • Page 340 Decimal and hexadecimal formats do not change through compilation. The "/c" switch suppresses the monitoring of whether the symbol is assigned to an address that is already occupied. 7 – 38 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 341 Static symbolic Syntax: operands #define /s [/r][/c] <symbol name> <op. type> <operand> A character string which may not contain any separators is entered in the column symbol name. The first 24 characters are significant for distinction. No distinction is made between upper and lower case. The type of operand is set in the column operand type.
  • Page 342 The entered border values belong to the address area. For best memory utilization, the range limits for operands in the word area should be divisible by four. Example: #define #define 7 – 40 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 343 Macro Definitions Macros improve legibility of complex, repeated program segments. Syntax: #define /m <Macro Id.> [<param.list>] <macro expr.> A character string following the same rules as for symbol names is used for macro Id. The param.list is an optional entry that you can add if the macro is to be called with parameters.
  • Page 344 If arrays are defined in the double word or word area, ensure that the array size is divisible by four or two, since the compiler always reserves double word limits for word processing. Otherwise memory would be wasted. 7 – 42 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 345 Conditional In a conditional compilation, the program lines following the instruction #if or Compilation #ifdef are translated, depending on a condition. The lines are skipped if the condition is not fulfilled. The end mark #endif or the optional instruction #else indicates the end of the range of conditionally compiled source text.
  • Page 346 The logical operators are "or", "and", "or not" or "and not". This expression is evaluated from left to right. Example: #ifdef $TNC407$ CM Tool_changer407 #endif; #ifdef $280474_03$ or $280472$ and not $280472_01$ #else #endif; 7 – 44 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 347 #ifndef instruction Syntax: #ifndef <symbol> The #ifndef instruction is the counterpart to the #ifdef instruction. As symbol enter a symbolic operand identifier, macro identifier or a system parameter. Only if the identifier or system parameter is not defined will the following program sequence be translated up to the next #endif instruction or up to the module end.
  • Page 348 (.PLC)) srcpath <path> Alternative paths for searching for the source files (source path). symsort Sorting the cross reference according to ascending operand addresses splitdoc Individual documentation file for each program file 7 – 46 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 349 USES Instruction The USES instruction is for integrating further files into the PLC program. Syntax: USES [/b] <file name> The <file name> can be any path following DOS conventions. If no path is indicated, the compiler looks for the file in the directory of the main file specified under “Compile/Main file.”...
  • Page 350 A comment beginning with a semicolon is transmitted to the PLC ASCII file (not used with CNC PILOT). A comment beginning with an asterisk is not transmitted to the PLC ASCII file, meaning it appears only in the source code. 7 – 48 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 351 ._LL (binary) List of local symbolic labels. Created for each module if the Symbolic labels option is active and the Multifile option is not active. ._PL (ASCII) Compiled PLC programs in HEIDENHAIN ASCII format, without Multifile option June 2002 PLCdesign...
  • Page 352 ALT+0) or by clicking the message window with the mouse. More detailed support can be requested by right-clicking the error number, or by placing the cursor on the error number and choosing Help/Context from the menu. 7 – 50 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 353 7.2.18 Debug Functions General In connection with the PLCdesign software, the controls offer functions for Information remote-testing and error-searching in the PLC program under the menu item Debug. The following steps must be carried out to activate these functions: Connect the control to a serial port of your PC. Correctly set the transfer parameters and control under Options.
  • Page 354 Change to the text box by pressing Alt+W. The new value is saved with the ↵ key. Display can be decimal or hexadecimal. With F3 you can jump to a specific operand address. 7 – 52 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 355 The values are not updated until you have exited the text box by pressing the TAB key or Alt+T. Pressing F2 calls a special window for selecting the operand type. Use the cursor keys or mouse to select the desired entry. The end the table function, press ESC.
  • Page 356 H for hexadecimal. During trace operations you can use the ↑ and ↓ keys as well as PAGE UP and PAGE DOWN. To exit the trace function, press ESC. 7 – 54 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 357 7.2.19 Oscilloscope General PLCdesign makes an oscilloscope available, which you can use to record the Information characteristic curves of the axes when commissioning CNC PILOT controls. The data for the recording is transferred to the PC via the interface (LSV2 protocol).
  • Page 358: Individual Recording

    Here you specify whether the trigger is released on the rising (+) or falling (–) edge. DATA BEFORE TRIGGER The saved recording begins before the trigger time point by the value entered here. 7 – 56 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 359 Operating the Select the individual positions in the setup screen with the cursor keys. You can change the entries with the PAGE↑ and PAGE↓ keys, or with the ↵ Oscilloscope key. Only the trigger threshold must be entered as a numerical value. The defined settings are saved temporarily for the next program call.
  • Page 360 Return to the setup screen. Start recording the characteristics. Display present curves for evaluation. Start recording the characteristics. Stop recording the characteristics. Cancel the recording of characteristics. Exit the oscilloscope functions. 7 – 58 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 361 Once you have the recorded curves, you can evaluate them by choosing the DISPLAY soft key. A new set of soft keys appears. The recorded data remains stored until you start recording again or choose LOAD to load an old recording from a file. Use the cursor keys ↑...
  • Page 362 Display or cancel the second cursor. Decrease the horizontal resolution. Increase the horizontal resolution. Return to the first soft key level. Display or cancel the second cursor. Restart recording the characteristics. Return to the setup menu. 7 – 60 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 363 7.2.20 Program Transfer Executable PLC programs are transmitted to a control connected at the serial interface with Tools/Upload PLC (LSV2). The control must contain a software version that supports data transfer in LSV2 protocol. The control type (NC model), interface (Port) and baud rate (Baud rate) must be entered under options.
  • Page 364 The desired program is started in a DOS shell. In the command line you enter the name of the program with the required system parameters. System parameters are identified by a preceding and following $ character. 7 – 62 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 365 Input example: Menu text: Make project Call line:make.bat $port$ $main$ $model$ $variant$ $opt$ When the program starts, the system parameters are automatically replaced by the current settings The following system parameters can be entered: $BAUD$ Baud rate $PORT$ Interface COM1 ...COM4 $PATH$ Path in which PLC.EXE is located.
  • Page 366 This ends the recording process. This menu item appears instead of Start script during recording. Run script This runs the recorded entries and mouse actions. Recording must be stopped before a script can be run. 7 – 64 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 367 7.2.23 Error messages Causes of error <1> Directory could not be created: during installation Parent directory not available (i.e., in the path directory C:\PLC\BIN, the C:\PLC directory must already exist) or no memory available on the hard disk. <2> Installation disk cannot be accessed: Installation disk defective.
  • Page 368 "E3042: USES instruction not permissible here" "E3043: Instruction not permissible" "W3046: GLOBAL/EXTERNAL instruction without LBL label definition/ call in this file" "E3047: GLOBAL/EXTERNAL instruction without LBL label definition/ call in this file" 7 – 66 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 369 "E3048: GLOBAL instruction not permissible in the main file" "E3049: Label declared as GLOBAL more than once" "E3050: LBL instruction without label operand" "E3051: Label defined twice" "E3052: Not enough memory. Abort!" "E3053: Compiler was not able to assign memory" "E3054: Address may be assigned only by compiler"...
  • Page 370 Command not permitted here: String command expected" "E4005: Binary generation for this command not supported" "E4006: External declarations not permitted in binary modules" "E4007: Only one global label per binary module" "E4010: Too many parenthesis nesting levels" 7 – 68 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 371 "E4050: Macro with parameter cannot be used as a macro parameter" "E4051: Too many parameters in the macro call" "E4052: Multi-line macro cannot be used as a macro parameter" "E4053: Too many parameters in the macro call" "E4054: Macro may be defined only once" "E4056: Syntax error in macro call"...
  • Page 372 "generate debug information" compiler option. "Debug information file (.MAP) erroneous" You must translate the project without error using the current PLC software and the compiler option "generate debug information." 7 – 70 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 373 7.2.24 Key Combinations Keyboard Commands for the Key combination Function User Interface Help ALT+F1 Overview of help Ctrl+F1 Previous help topic Shift+F1 Contextual help ALT, F10 Main menu Save file Load file Translate PLC program again Alt+F7 Translate only the edited files Alt+F8 Transfer program to the NC Alt+F3...
  • Page 374 Mark beginning of block Ctrl+K+K Mark end of block Ctrl+K+C Copy block Ctrl+K+V Move block Ctrl+K+Y Delete block Ctrl+K+H Block on/off Ctrl+K+R Read block from file Ctrl+K+W Write block in file ALT+A Enter ASCII code 7 – 72 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 375 June 2002 PLCdesign 7 – 73...
  • Page 376 Set not Reset not Logical operations And NOT Or not Exclusive or Exclusive or not Arithmetical instructions – Subtraction Multiplication Division Remainder Increment Increment operand INCW Increment word accumulator INCX Increment index register 7 – 74 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 377 Group of Syntax Function functions Incrementing, Decrementing Increment operand INCW Increment word accumulator INCX Increment index register Decrement operand DECW Decrement word accumulator DECX Decrement index register Comparisons Equal < Less than > Greater than <= Less than or equal >= Greater than or equal <>...
  • Page 378 Call module if logic accumulator = 1 Call module if logic accumulator = 0 End of module, program end End of module if logic accumulator = 1 End of module if logic accumulator = 0 Label 7 – 76 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 379 7.3.2 Loading and saving instructions LOAD (L) Logic processing Syntax: L (LOAD) with the LOAD Operands: M, I, O, T, C command Action: Load the value of the addressed operand into the logic accumulator. Always use the L command at the beginning of a logic chain in order to be able to gate the operand in the following program sequence.
  • Page 380 = B8 0 ..0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 result to byte B8. 7 – 78 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 381 LOAD NOT (LN) Logic processing Syntax: LN (LOAD NOT) with the LOAD NOT Operands: M, I, O, T, C command Action: Load the complement of the addressed operand into the logic accumulator. Always use the L command at the beginning of a logic chain in order to be able to gate the operand in the following program sequence.
  • Page 382 = B8 0 ..0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 result to byte B8. 7 – 80 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 383: Load Two's Complement (L-)

    LOAD TWO’S COMPLEMENT (L–) Syntax: L– (LOAD MINUS) Operands: B, W, D, K Action: Load the two’s complement of the addressed operand, or of a constant, into the word accumulator. If necessary, the PLC run-time systems supplements the accumulator with the correct algebraic sign. The two’s complement allows negative numbers to be stored, i.e., a number loaded with the L command appears in the accumulator with an inverted sign.
  • Page 384: Load Byte (Lb)

    = B8 0 ..0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 1 0 1 1 0 0 1 1 1 contents to byte 8. 7 – 82 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 385: Load Double Word (Ld)

    LOAD WORD (LW) Syntax: LW (LOAD WORD) Operands: M, I, O, T, C Action: Copy 16 markers, inputs, outputs, timer or counters with ascending numbering into the word accumulator. Each operand occupies one bit in the accumulator. The PLC run-time system puts the entered operand address in the accumulator as the LSB, the entered address +1 as LSB +1, and so on.
  • Page 386 ..x x x x x x x x 0 x x x x x x x result to output O2. Assign the gating = O5 x ..x x x x x x x x 0 x x x x x x x result to output O5. 7 – 84 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 387 Word processing Syntax: = (STORE) with the ASSIGN Operands: B, W, D command Action: Assign the content of the word accumulator to the addressed operand. Unlike bit execution, in word processing you can also use the = command within a sequence of word-gating operations.
  • Page 388: Assign Byte (B=)

    LSB +1 is assigned to the address +1, and so on. The last (16th) operand is assigned the MSB. Example: See example of command D=. Use command B= like command D=, but the PLC run-time system processes 16 operands. 7 – 86 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 389 ASSIGN DOUBLE WORD (D=) Syntax: D= (STORE DOUBLE WORD) Operands: M, I, O, T, C Action: Assign 32 markers from the word accumulator to inputs, outputs, timer or counters with ascending numbering. Every bit occupies an operand. The PLC run-time system assigns the LSB in the accumulator to the operand address entered in the command, the LSB +1 is assigned to the address +1, and so on.
  • Page 390: Assign Not (=N)

    ASSIGN TWO’S COMPLEMENT (=–) Syntax: =– (STORE MINUS) Operands: B, W, D Action: Assign the TWO’S COMPLEMENT of the word accumulator to the addressed operand. For procedure, see example command ASSIGN (=). 7 – 88 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 391 7.3.3 Setting commands SET (S) Syntax: S (SET) Operands: M, I, O, T, C Action: If the logic accumulator = 1, then set the addressed operand to 1, otherwise do not change it. Use the S command at the end of a sequence of logical gating operations in order to influence an operand independently from the result of gating.
  • Page 392 O2. Since the result of R M500 x ..x x x x x x x x 1 x x x x x x x the operation is 1, reset marker M500. 7 – 90 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 393 SET NOT (SN) Syntax: SN (SET NOT) Operands: M, I, O, T, C Action: If the logic accumulator = 0, then set the addressed operand to 1, otherwise do not change it. Use the SN command at the end of a sequence of logical gating operations in order to influence an operand independently from the result of gating.
  • Page 394: Reset Not (Rn)

    O2. Since the result of x ..x x x x x x x x 0 x x x x x x x the operation is 0, M500 reset marker M500. 7 – 92 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 395 7.3.4 Logical operations AND (A) Logic processing Syntax: A (AND) with the AND Operands: M, I, O, T, C command Action: Gate the content of the logic accumulator and the logical state of the operand with AND. The PLC run-time system saves the result of the operation in the logic accumulator.
  • Page 396 = B8 0 ..0 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 result to byte B8. 7 – 94 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 397 AND NOT (AN) Logic processing Syntax: AN (AND NOT) with the AND NOT Operands: M, I, O, T, C command Action: At the beginning of a logic sequence, this command functions like an LN command, i.e., the logical state of the operand is loaded into the logic accumulator.
  • Page 398 0 ..0 0 0 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 0 0 result to word W8. 7 – 96 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 399 OR (O) Logic processing Syntax: O (OR) with the OR Operands: M, I, O, T, C command Action: At the beginning of a logic sequence, this command functions like an L command, i.e., the logical state of the operand is loaded into the logic accumulator.
  • Page 400 0 ..0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 result to word W8. 7 – 98 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 401 OR NOT (ON) Logic processing Syntax: ON (OR NOT) with the OR NOT Operands: M, I, O, T, C command Action: At the beginning of a logic sequence, this command functions like an LN command, i.e., the complement of the operand is loaded into the logic accumulator.
  • Page 402 1 ..1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 1 result to word W8. 7 – 100 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 403 EXCLUSIVE OR (XO) Logic processing Syntax: XO (EXCLUSIVE OR) with the Operands: M, I, O, T, C EXCLUSIVE OR Action: command At the beginning of a logic sequence, this command functions like an L command, i.e., the logical state of the operand is loaded into the logic accumulator.
  • Page 404 = W8 0 ..0 0 0 0 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 1 1 1 0 0 result to word W8. 7 – 102 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 405 EXCLUSIVE OR NOT (XON) Logic processing Syntax: XON (EXCLUSIVE OR NOT) with the Operands: M, I, O, T, C EXCLUSIVE OR Action: NOT command At the beginning of a logic sequence, this command functions like an LN command, i.e., the logical state of the operand is loaded into the logic accumulator.
  • Page 406 1 ..1 1 1 1 0 1 0 1 0 1 1 0 0 0 1 1 1 1 1 1 0 1 0 1 0 1 1 0 0 0 1 1 result to word W8. 7 – 104 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 407 7.3.5 Arithmetical instructions ADDITION (+) Syntax: + (PLUS) Operands: B, W, D, K Action: The PLC run-time system expands the operand to the width of the accumulator (32 bits), then adds the content of the operand to the content of the word accumulator.
  • Page 408 Subtract word W6 – W6 8 0 0 2 0 0 from the content of the word accumulator. Assign the result to = D8 8 0 0 9 8 0 0 double word D8. 7 – 106 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 409 MULTIPLICATION (X) Syntax: x (MULTIPLY) Operands: B, W, D, K Action: The PLC run-time system expands the operand to the width of the accumulator (32 bits), then multiplies the content of the operand by the content of the word accumulator. The result of the operation is stored in the word accumulator where you can process it further.
  • Page 410 Load the constant L K100 1 0 0 into the word accumulator. Divide the content of / W6 the word accumulator by word Assign the result to = D8 double word D8. 7 – 108 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 411: Remainder (Mod)

    REMAINDER (MOD) Syntax: MOD (MODULO) Operands: B, W, D, K Action: The PLC run-time system expands the operand to the width of the accumulator (32 bits), and then determines the REMAINDER created by dividing the content of the word accumulator by the content of the operand. The REMAINDER is stored in the word accumulator where you can process it further.
  • Page 412 Operands: None Action: Decrease the content of the word accumulator by one. DECREMENT index Syntax: DECX (DECREMENT INDEX) register Operands: None Action: Decrease the content of the index register by one. 7 – 110 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 413 7.3.7 Comparisons EQUAL TO (==) Syntax: == (EQUAL) Operands: B, W, D, K Action: This command sets off a direct transition from word to logical processing. Gate the content of the word accumulator with the content of the addressed operand. If the word accumulator and the operand are equal, the condition is true and the PLC run-time system sets the logic accumulator to 1.
  • Page 414 0. Assign the result to = M500 x ..x x x x x x x x 0 x x x x x x x marker M500. 7 – 112 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 415 GREATER THAN (>) Syntax: > (GREATER THAN) Operands: B, W, D, K Action: This command sets off a direct transition from word to logical processing. Gate the content of the word accumulator with the content of the addressed operand. If the word accumulator is greater than the operand, the condition is true and the PLC run-time system sets the logic accumulator to 1.
  • Page 416 0. Assign the result to = M500 x ..x x x x x x x x 0 x x x x x x x marker M500. 7 – 114 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 417 GREATER THAN OR EQUAL TO (>=) Syntax: >= (GREATER EQUAL) Operands: B, W, D, K Action: This command sets off a direct transition from word to logical processing. Gate the content of the word accumulator with the content of the addressed operand.
  • Page 418 Assign the result to = M500 x ..x x x x x x x x 1 x x x x x x x marker M500. 7 – 116 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 419 June 2002 PLC Block Commands 7 – 117...
  • Page 420 Maximum nesting depth: 16 parentheses. Please note: The function flow is the same with word processing; however, the PLC run- time system writes the entire word accumulator onto the program stack. 7 – 118 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 421 Example: Example for the commands AND [ ], AND NOT [ ], OR [ ], OR NOT [ ], EXCLUSIVE OR [ ], EXCLUSIVE OR NOT [ ]: Use parentheses to develop a statement list in accordance with the following logic circuit diagram: M500 M501...
  • Page 422: Exclusive Or Not (Xon )

    See example of command A[ ] (AND [ ]) EXCLUSIVE OR NOT [ ] (XON[ ]) Syntax: XON[ ] (EXCL: OR NOT [ ]) Operands: None Action: See example of command A[ ] (AND [ ]) 7 – 120 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 423 7.3.9 Parenthetical expressions with arithmetical instructions ADDITION [ ] (+[ ]) Syntax: +[ ] (PLUS[ ]) Operands: None Action: Use parentheses together with arithmetical commands only for word processing. By using parentheses you can change the sequence of processing in a statement list. The opening-parenthesis command puts the content of the word accumulator onto the program stack.
  • Page 424 Gate the accumulator content with the program stack (+[, –[ ..). Assign the result of = D100 0 1 0 1 5 0 1 0 the total operation to double word D100. 7 – 122 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 425 SUBTRACTION [ ] (–[ ]) Syntax: –[ ] (MINUS –[ ]) Operands: None Action: See example of command ADD [ ] MULTIPLICATION [ ] (X[ ]) Syntax: x[ ] (MULTIPLY [ ]) Operands: None Action: See example of command ADD [ ] DIVISION [ ] (/[ ]) Syntax: /[ ] (DIVIDE [ ])
  • Page 426 If the given comparison requirement is true, then the PLC run- time system sets the logic accumulator to 1. If the requirement is not satisfied, the logic accumulator is set to 0. See next page for example. 7 – 124 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 427 Example: Multiply a constant with double word D36, compare the result with double word D12, and assign the result to output O15. Initial state: Constant = 1000 (dec) Double wordD12= 15000 (dec) Double wordD36= 10 (dec) Output O15= ? To improve clarity, the contents of the accumulator and operand are shown in decimal notation.
  • Page 428 None Action: See example of command EQUAL [ ] NOT EQUAL [ ] (<>[ ]) Syntax: <>[ ] (NOT EQUAL [ ]) Operands: None Action: See example of command EQUAL [ ] 7 – 126 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 429: Shift Left

    7.3.11 Shifting instructions SHIFT LEFT (<<) Syntax: << (SHIFT LEFT) Operands: B, W, D, K Action: A SHIFT LEFT instruction multiplies the content of the word accumulator by two. All the bits in the accumulator are shifted one space to the left. The result must lie in the range of -2 147 483 648 to +2 147 483 647, otherwise the accumulator contains an undefined value.
  • Page 430: Shift Right

    = D12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 0 1 0 0 0 0 0 0 0 0 3 E8 to double word D12. Instead of using the >> K1 command four times, simply use the >> K4 command. 7 – 128 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 431 7.3.12 Bit commands BIT SET (BS) Syntax: BS (BIT SET) Operands: B, W, D, K, X Action: With the BIT SET command you can set each bit in the accumulator to 1. The corresponding bits are selected (addressed) by the content of the specified operand or by a constant.
  • Page 432 D8 into the word accumulator. Set the bit specified BC K+0 in the operand to 0. Assign the result to = D12 0 0 0 0 3 E 8 0 double word D12. 7 – 130 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 433 BIT TEST (BT) Syntax: BT (BIT TEST) Operands: B, W, D, K, X Action: With the BIT TEST you can interrogate the status of each bit in the accumulator. The BT command sets off a direct transition from word to logical processing, meaning the PLC run-time system tests the status of a bit from the word accumulator, and then sets the logic accumulator.
  • Page 434: Push Data Onto The Data Stack (Ps)

    K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K K Example: See PSW command. 7 – 132 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 435: Pull Data From The Data Stack (Pl)

    PULL DATA FROM THE DATA STACK (PL) Logic processing Syntax: PL (PULL) with the PL Operands: M, I, O, T, C command Action: The PL command is the counterpart to the PS command. Data that has been buffered with the PUSH command can be taken from the data stack by using the PULL command.
  • Page 436 Memory assignment in the data stack [bit] 15 ......7 ..... 0 x x x x x x x x L x x x x x x x Example: See PSW command. 7 – 134 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 437 PUSH WORD ACCUMULATOR ONTO THE DATA STACK (PSW) Syntax: PSW (PUSH WORDACCU) Operands: None Action: The PSW command enables you to buffer the word accumulator. With the PSW command the PLC run-time system copies the word accumulator onto the data stack. The content of the word accumulator (32 bits) occupies two words on the data stack.
  • Page 438 PLW command to copy two words of the current address of the data stack into the word accumulator. The PLC run-time system issues an error message if the stack is empty. Example: See PSW command. 7 – 136 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 439: Jump If Logic Accumulator = 1 (Jpt)

    7.3.14 Jump commands UNCONDITIONAL JUMP (JP) Syntax: JP (JUMP) Operands: Label (LBL) Action: With the JP command, the PLC run-time system jumps to the label entered by you and continues the program from there. JP interrupts a logic sequence. Example: See JPT command.
  • Page 440: Call Module (Cm)

    PLC run-time system calls the module that begins at the label you entered. If the logic accumulator = 0, the PLC run-time system does not call the module. CMT interrupts a logic sequence. Example: See command CMF. 7 – 138 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 441: Call Module If Logic Accumulator = 0 (Cmf)

    CALL MODULE IF LOGIC ACCUMULATOR = 0 (CMF) Syntax: CMF (CALL MODULE IF FALSE) Operands: Label (LBL) Action: The CMF command is a conditional module call. If the logic accumulator = 0, the PLC run-time system calls the module that begins at the label you entered. If the logic accumulator = 1, the PLC run-time system does not call the module.
  • Page 442: End Of Module, End Of Program (Em)

    You can define up to 1000 jump labels per file. The ASCII name of the label may be up to 32 characters long. However, the PLC run-time system only recognizes the first 16 characters. For importing global labels, see EXTERN instruction. 7 – 140 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 443 7.3.15 INDEX Register (X Register) You can use the index register for Data transfer Buffering results Indexed addressing of operands The index register is 32 bits wide. The PLC run-time system only uses the lower 16 bits for indexed addressing. You can use the X register at any point in the program;...
  • Page 444 LX(Load index to accu)Index register‘ word accumulator =X(Store accu to index)Word accumulator‘ index register PSX(Push index register)Index register‘ stack PLX(Pull index register)Stack‘ index register INCX(Increment index register) DECX(Decrement index register) 7 – 142 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 445 June 2002 PLC Block Commands 7 – 143...
  • Page 446 String accumulator and string memory are volatile, which means that they are erased by the PLC run-time system when power is switched off. The new operand “S” has been introduced for string processing. You can use the operand “S” with different arguments. 7 – 144 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 447 Operand The “S” operands are to be used only with string processing. You can target declaration the following addresses with the various arguments: Addressing string memory: After the operand designation, specify the number of the desired memory (S0 – S7). Address part of a string: Use the address Sn^X (see INDEX Register).
  • Page 448: Load String (L)

    PLC run-time system is to copy the string is selected through the argument <arg> after the operand designation. Permissible arguments: 0 to 7 (String memory S0 to S7). See also ”Operand declaration.” Example: See command OVWR. 7 – 146 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 449 OVERWRITING A STRING (OVWR) Syntax: OVWR (OVERWRITE) Operands: S <arg> Action: Save the string from the string accumulator in a string memory. This command is different from the = command, because the PLC run-time system does not transmit the “string end” sign. In this way you can overwrite the beginning of a string that is already in the string memory.
  • Page 450 S1 with content of string accumulator. Final state: String memory (characters) ..128 O I L H Y D R A U L I C O I L MI S S G 7 – 148 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 451: Equal To Command For String Processing

    EQUAL TO COMMAND FOR STRING PROCESSING (==) Syntax: == (EQUAL) Operands: S <arg> Action: This command sets off a direct transition from string to logical processing. Compare the content of the string accumulator with the string in the argument. If the string accumulator and the operand are equal, the condition is true and the PLC run-time system sets the logic accumulator to 1.
  • Page 452: Not Equal Command For String Processing

    If the string accumulator is not equal to the operand, the condition is true and the PLC run-time system sets the logic accumulator to 1. If the string accumulator is equal to the operand, it sets the logic accumulator to 0. 7 – 150 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 453 Example: This example of string processing also applies to the commands =, <, >, <=, >=, <>. Compare the immediate string with the content of the string memory S0. Depending on the result, call Module 50. Initial state: String memory = SPINDLE 2 Immediate string = SPINDLE 1...
  • Page 454 B/W/D/K <string address in which the PLC run-time system saves the ASCII-coded decimal number> 9051 Error recognition: Word Value Meaning W4024 Number was converted Invalid string address, invalid display mode or invalid number of places before or after the decimal point 7 – 152 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 455 Module 9052 Conversion of ASCII numbers → binary Conversion from ASCII → binary Module 9052 converts an ASCII-coded decimal number (possibly with decimal places) into a signed number and an exponent to the base of 10. You must assign the ASCII-coded decimal number to one of the string memories S0 to S7.
  • Page 456 B/W/D/K <string address in which the PLC run-time system saves the hexadecimal numbers> B/W/D/K <number of data bytes> 9053 Error recognition: Word Value Meaning W4024 Number was converted Too many data bytes Invalid string address Invalid word address 7 – 154 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 457 Module 9054 Conversion from ASCII/hexadecimal → binary Conversion from ASCII/hexadecimal Module 9054 converts strings of ASCII-coded hexadecimal values into a block → binary of binary values in the word-marker range. The string in the specified string memory is interpreted as a sequence of ASCII-coded hexadecimal numbers and is converted into a block of corresponding binary bytes.
  • Page 458 = S0 PS K+0 PS K+1 CM 9070 PL W520 String memory (characters) Data stack [bit] 1 ......10..............128 X – P O S . : 1 2 3 1 2 3 7 – 156 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 459 Modules for String Module 9071 Find the string length Processing The PLC run-time system ascertains the length of the string in a selectable string memory (S0 to S7). Call: K/B/W/D/S<string no. or string> 9071 B/W/D <length of the string> Error recognition: Marker Value Meaning...
  • Page 460 The PLC run-time system checks the access to constants fields in the same way as the writing access for indexed operands. X can assume only positive values from 0 to <length of constants field –1>. 7 – 158 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 461 7.3.18 Program Structures To design an easily understandable program, divide it into program sequences. Use labels (LBL) as well as conditional and unconditional jumps. If you use structured statements, the compiler creates the labels and jump commands. Remember that using these labels and jump commands reduces the number of available labels accordingly.
  • Page 462 Conclusion of the previous commands. Repeat the following program code REPEAT Program code to be run Load the index register Check the index register >= K100 Repeat until X >= 100 UNTILT 7 – 160 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 463 WHILE ... ENDW STRUCTURE The WHILE ... ENDW structure repeats a program sequence if a condition is fulfilled. Under no circumstances can you wait with this structure in the cyclic PLC program for the occurrence of an external event! The following commands are available WHILET (WHILE TRUE): Run the sequence if logic accumulator = 1.
  • Page 464 Call module if operand content = 4 CM 203 Call module if operand content = 5 CM 204 Call module if operand content = 6 CM 300 End of the CASE statement ENDC 7 – 162 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 465 7.3.19 Linking Files You can store the source code of the PLC program in several files. Use the following commands to manage the files: USES GLOBAL EXTERN These instructions must be located at the beginning of your PLC program— i.e., before the first PLC command (see PLC programming example). With the USES instruction you link another file into the program.
  • Page 466 Link file with general subroutines USES PLCUPG.PLC Program code Function File for tool change TCHANGE.PLC Link file with general subroutines USES PLCUPG.PLC Program code Function File with general subroutines PLCUPG.PLC Program code 7 – 164 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 467 GLOBAL INSTRUCTION (GLOBAL) Syntax: GLOBAL <label, declaration beyond the file boundary> Operands: None Action: Up to 1000 local labels are permitted in every file linked with USES. To enable a module that was defined in a file to be called from another file, you must declare the module to be global.
  • Page 468 Input for operand type: M, B, W, D, K Special cases Interface operands PLC-NC or NC-PLC, inputs and outputs, timers and counters, and positive and negative edge markers are always globally effective. 7 – 166 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 469 PLC program ***************************************************************** example Modulname : Hochlauf PLC_Typ : PLC design Basis ***************************************************************** *------------------------------------------------------------------------ globale Deklaration global declaration *------------------------------------------------------------------------ GLOBAL Hochlauf GLOBAL Init_System EXTERN Parameter_CNC_PLC EXTERN Fehler_init EXTERN Dia_init EXTERN eltro_init EXTERN eltro_plausibilitaet *------------------------------------------------------------------------ * lokale Deklaration * local declaration *------------------------------------------------------------------------ #define /s bL_hochlaufstatus...
  • Page 470 *INIT SPINDELDATEN / Init spindle data *------------------------------------------------------------------------ BL_spindel_proj REPEAT NP_Konf_spi BL_spindel_proj BL_spindel_proj K+16 K$FFFF NP_S1_Spidrehz[X] * Init der Drehzahluebergabe / init spindle revolution BL_spindel_proj K+32 PN_S1_Spigetr[X] GET_RUECK01 PN_S1_Spigetr[X] ENDI BL_spindel_proj BL_spindel_proj >= UNTILT 7 – 168 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 471 *------------------------------------------------------------------------ *INIT KANAL / init channel *------------------------------------------------------------------------ BL_kanal_proj REPEAT BL_kanal_proj K+96 WL_index_word BL_kanal_proj K+192 WL_index_byte NP_Konf_kan BL_kanal_proj K$FFFF NP_K1_m_ueb1[X] NP_K1_m_ueb2[X] NP_K1_m_ueb3[X] NP_K1_t_ueb[X] NP_K1_g_ueb[X] WL_index_byte K$FE PN_K1_Zyklusvonplc[X] K$10 PN_K1_Kanalfrei3[X] BL_achse_projektiert REPEAT BL_achse_projektiert < NP_K1_Projachs[X] BL_achse_projektiert WL_index_word K$FFFFFFFF NP_K1_ISTX[X] NP_K1_Wkzlaenx[X] BL_achse_projektiert BL_achse_projektiert BL_endschalter BL_endschalter_plus_eins WL_index_byte...
  • Page 472 BL_achse_projektiert >= UNTILT ENDI BL_kanal_proj BL_kanal_proj >= UNTILT Init_system BL_Hochlaufstatus K+ 1 BL_Hochlaufstatus *------------------------------------------------------------------------ *Parameter im Hochlauf / start up parameter *------------------------------------------------------------------------ LBL hl_parameter Parameter_CNC_PLC NP_K1_Kanalstat1 CNC_BEREIT BL_Hochlaufstatus K+ 1 BL_Hochlaufstatus ENDI 7 – 170 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 473 *------------------------------------------------------------------------ * Initialisierung, nachdem alle Parameter bekannt sind * initializing after all parameters are known *------------------------------------------------------------------------ LBL hl_init_nach_para S"0.000.000 01-Aug-2000" K+ 0 9510 * Versionsinformationen auf die CNC-Schnittstelle legen / software identification number and production date K+ 1 PN_plcstat eltro_init * initialisierung der elromaticmodue / initializing of the eltromatic devices BL_Hochlaufstatus...
  • Page 474 7 – 172 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 475 8 PLC Run-Time System 8.1 Introduction ..................8 – 3 8.2 Operands ..................8 – 4 8.3 Timers ....................8 – 8 Module 9006: Setting and starting PLC timers ......8 – 8 8.4 Counters ..................8 – 10 8.5 Inputs and Outputs of the LE and PL Modules ......8 – 12 Module 9003Reading analog inputs .........
  • Page 476 8.11 Test and Commissioning Support ........... 8 – 171 8.11.1 Integrated Logic Analyzer ............ 8 – 171 8.11.2 Functions of the Diagnosis Mode of Operation ....8 – 174 8.12 PLC parameters................8 – 176 8 – 2 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 477 8 PLC Run-Time System 8.1 Introduction MANUALplus 4110 with PLC run-time system June 2002 Introduction 8 – 3...
  • Page 478 0, 1 BYTE Signed short number –128 to 127 WORD Signed whole number –32 768 to 32 767 DWORD Signed double whole –2 147 483 648 number to 2 147 483 647 8 – 4 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 479 Overview of The following table lists the operand overviews (the process image): operands Address Size Programming Meaning Abs. Rel. Operand type: BWD (= byte, word, double word) 120000 4000 B0 to B3999 NC – PLC interface 4000 3000 B4000 to B6999 RTS firmware data 7000 1000...
  • Page 480 Counter pulse release Operand type: Timer 129144 T0 to T199 Timer start T200 to T399 Timer running Operand type: String 129544 1024 1024 S0 to S7 String register (8 * 128 byte each) 8 – 6 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 481 Operand The memory for operands B (8 bits), W (16 bits), D (32 bits) is only 8 bits wide. addressing (byte, Since the operands can be 8, 16, or 32 bits wide, you must account for word, double word) overlapping in the memory area when addressing: Double word Word Byte...
  • Page 482 Input value: 0 to 199 B/W/D/K <cycle time> Input value: 0 to 1 000 000 [ms] 9006 Error recognition: Word Value Meaning W4024 Timer started Illegal timer number or excessive run time 8 – 8 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 483 Example: Start of timer 1 Run time in D4058 = 9 (PLC cycles) Number of active The PLC run-time system supplies the number of active timers in timers PN_number_of_activ_timers. If significantly fewer or no timers should be used by the PLC project, the corrected number should be entered to improve performance.
  • Page 484 PN_number_of_activ_counters. If significantly fewer or no counters should be used by the PLC project, the corrected number should be entered to improve performance. Brief Description Address Name Meaning W 4048 PN_number_of_activ_counters Number of active counters 8 – 10 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 485 Counter firmware data Counter is Start Firmware data (counter content in counter running counter PLC pulses) Nominal counter Actual counter D5650 D5654 D5658 D5662 D5666 D5670 D5674 D5678 C100 D5682 D5686 C101 D5690 D5694 C102 D5698 D5702 C103 D5706 D5710 C104 D5714 D5718...
  • Page 486 Define the logical sequence with the following entries: 0: First logical PL 1: Second logical PL You must use PLC modules to interrogate and set the inputs and outputs of the PLC input/output. 8 – 12 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 487 Number of PL The digital inputs/outputs of the LE and the input/outputs of the detected PL modules modules are updated by the LZS in synchronism with the PLC cycle. The usage of analog input and output is controlled by PLC modules within the PLC project.
  • Page 488 Outputs of the LE and PL modules in the I/O range O0 to O30 Internal outputs of the LE O32 to O62 External outputs of the first PL module O64 to O94 External outputs of the second PL module 8 – 14 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 489 Configuration Brief Description defaults Address Name Meaning B 4041 PN_io_setup Defaults for the I/O system of the LE and of the PL modules Bit assignment Bit 0 BIT_OUTPUTS_FROM_ Output data from BWD image MEMORY_AREA Bit 1 BIT_INPUTS_WITH_EV Input data are supplied with an edge ALUTION_POS_NEG_E identification in the BWD image Bits 2 to 7 Free...
  • Page 490 No. 0 to 31: Natural number with the unit 0.1 V or 0.5° No. 64 to 69: Natural number with the unit 0.01 V or 0.1° Error code: Word Value Meaning W4024 Input was read Invalid no. of the analog input 8 – 16 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 491 Module 9133 Load analog values of the logic unit Module 9133 ascertains the current internal temperature and various analog values of the logic unit. Call: B/W/D/K <code> 0: Internal temperature of LE 3: Battery voltage 4: 2.5 volts reference voltage 6: Override pot F 7: Override pot S 9133...
  • Page 492 4: Further PLs on this PL? 5: PL is a PL 410 B 9007 B/W/D/K <Diagnostic information> 0/1: Does not exist/Exists or 0...4: Number of PLs Error code: Word Value Meaning W4024 Invalid code Invalid PL module 8 – 18 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 493 June 2002 Inputs and Outputs of the LE and PL Modules 8 – 19...
  • Page 494 Brief Description Address Name Meaning W 4028 NP_error_mod_9xxx_no Module number Value All modules were executed without error in this cycle. <> 0 Module number of the module that reported the error under NP_error_mod_9xxx_cycle. 8 – 20 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 495 8.7 Managing the PLC Project During Run Time Size of the To make it easier to maintain and expand your PLC program, you should give processing stack it a modular structure. Modular means that you write a separate program module for each function. You can then call the individual functions from the main program.
  • Page 496 B 4020 NP_error_division_by_zero Error: Division by 0 B 4021 NP_error_memory_overrun_ Error: Memory overflow during during_multi multiplication B 4022 NP_error_during_modulo_ Error during modulo calculation calculation 0xFF: There is an error in the corresponding data. 8 – 22 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 497 8.8 NC — PLC Interface — Miscellaneous The “NC – PLC interface” is a memory area to which the NC as well as the PLC have access. Since a PLC cycle cannot be interrupted, the interface data are consistent for a complete PLC cycle.
  • Page 498 The remaining area is unaffected. Data that must be retained after an online change must be saved in this area (example: PLC parameters that are supplied only by the NC during the control start-up). 8 – 24 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 499 You can use B4040 to the tell the PLC run-time system if the area of the process image managed by the compiler is to be initialized or not. Brief Description Address Name Meaning B 4040 PN_lzs_setup Defaults for the PLC run-time system Bit assignment Bit 0...
  • Page 500 2: Directory and time of the PLC project file 3: Name of the PLC project file B/W/D/K <String register> String register in which the information is returned CM 9512 <Length of the program> <Check sum of the program> 8 – 26 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 501 PLC version info to During control startup, the PLC must write with Module 9510 the ID number and the creation date of the PLC software in the 22-byte long ASCII-coded string described below. This string can be shown in the diagnostic menu of the Brief Description Address Name Meaning...
  • Page 502 B 0224 NP_configured_channels Configured NC channels Bit assignment Bit 0 CHANNEL_1_IS_CONFIGURE Channel 1 configured Meaning of the bits: Bit 0 CHANNEL_*_IS_CONFIGURED 0: The channel * is not configured. 1: The channel * is configured. 8 – 28 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 503 Configured While the control starts up, the NC transfers the spindles and C axes available spindles, C axes in the system bit-encoded into NP_configured_spindles. The spindles need not be configured with sequential numbering. Brief Description Address Name Meaning B 0228 NP_configured_spindles Configured spindles, C axes Bit assignment Bit 0...
  • Page 504 “1” (spindle selected). Brief Description Address Name Meaning B 0227 NP_spindle_identification Spindle identification Value 1 Spindle/ballscrew 1 selected (spindle) 2 Spindle/ballscrew 2 selected 8 – 30 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 505 Address Name Meaning B 0203 PN_nc_protectionclass Protection class Value No logon with password. Logon as “NC Programmer” Logon as “System Manager” Logon as “OEM Service” Logon as “HEIDENHAIN Service” June 2002 NC — PLC Interface — Miscellaneous 8 – 31...
  • Page 506 NC status data W 0984 NP_Cnc_status_data_3 NC status data W 0986 NP_Cnc_status_data_4 NC status data W 0988 NP_Cnc_status_data_5 NC status data W 0990 NP_Cnc_status_data_6 NC status data W 0992 NP_Cnc_status_data_7 NC status data 8 – 32 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 507 Meaning of NP_Cnc_status_data_* depending on NC_CNC_STAT_ART: NP_Cnc_status_type = 1 Cursor position in the PLC window The NC reacts to the request from the PLC to provide the current cursor position. NP_Cnc_status_data_1 Reserved NP_Cnc_status_data_2 Value: 0: Pixel coordinates 1: Character coordinates NP_Cnc_status_data_3 Cursor position in column (horizontal) NP_Cnc_status_data_4...
  • Page 508 The NC informs the PLC of the selected handwheel function. NP_Cnc_status_data_1 Value: 0: Handwheel is canceled. 1: Handwheel function is feed rate override. 2: Handwheel function is spindle override. 3: Handwheel function is traverse. NP_Cnc_status_data_3 to Free NP_Cnc_status_data_7 8 – 34 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 509 NC triggering Using the data described below, the PLC can trigger various actions by the NC. In PN_cnc_trigger_type, the PLC indicates that a new job is available. PN_cnc_trigger_type is also used by the NC for acknowledgment. Brief Description Address Name Meaning B 0994 PN_cnc_trigger_type NC trigger type...
  • Page 510 The position value that is to become active upon a reference run is defined for each axis in “reference dimension.” (The interpolator also needs the “distance from dog to zero pulse.”) Machine parameter 1116, ... : Reference dimension Distance from dog to zero pulse 8 – 36 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 511 During the reference run, the NC proceeds according to the following algorithm: Reference run of a linear axis IF (axis not yet on the reference dog) THEN ELSE (* Move at high reference run velocity to the reference dog *) (* move away from the reference dog *) (* move at low reference run velocity to the reference dog *) (* After detection of the reference dog edge, continue moving by...
  • Page 512 Reference dimensions (2nd dog) Distance from dog to zero pulse (2nd dog) Reference dimension (3rd dog) Distance from dog to zero pulse (3rd dog) 8 – 38 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 513 Example: A second reference dog (reference dog 2) is used for the Z axis of the first slide. The logical axis number of this Z axis is “2”. The PLC detects that the reference dog 2 is to be used (e.g. through dial selection by the user).
  • Page 514 Bits 2 -3 Free Bits 4 -7 BIT_HANDWHEEL_ Smoothing through averaging: FILTER_BIT_* 0: No averaging 1: Mean of 10 values 2: Mean of 20 values . . . 15: Mean of 150 values 8 – 40 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 515 Handwheel assignment: “PN_handwheel_log_axis_x*” defines which position inputs are connected with a handwheel and to which logical axes the handwheel is assigned. Brief Description Address Name Meaning B 6312 PN_handwheel_log_axis_x1 Handwheel assignment for “handwheel connected at position B 6313 PN_handwheel_log_axis_x2 input X*” B 6314 PN_handwheel_log_axis_x3 B 6315 PN_handwheel_log_axis_x4 B 6316 PN_handwheel_log_axis_x6...
  • Page 516 PLC sets PN_handwheel_line_count_x* (line count of the handwheel) PN_kind_of_handwheel_data PLC sets (type of handwheel data for the PLC sets PN_handwheel_konfiguration to “active” NC receives the handwheel configuration data — handwheel operation is active 8 – 42 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 517 Cyclic handwheel Handwheel resolution: data Brief Description Address Name Meaning D 6364 PN_handwheel_resolution Handwheel resolution by the PLC: Value >0 Value of handwheel resolution [µm] <0 Value of handwheel resolution [nm] Indicator for whether handwheel movement allowed: Brief Description Address Name Meaning B 6368 PN_handwheel_movment_rel Handwheel movement permitted...
  • Page 518 Handwheel data [number of increments] for the PLC for D 6420 PN_MCU_COUNT_REG_X2 “handwheel connected to position D 6424 PN_MCU_COUNT_REG_X3 input X*” D 6428 PN_MCU_COUNT_REG_X4 D 6432 PN_MCU_COUNT_REG_X6 Value > 0 Handwheel data 8 – 44 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 519 8.8.6 Status of the PLC Components (Module Status) The PLC supplies the current status of the components in PN_modulstatus*. Two bytes are assigned to each PLC component (**_L -> LOW byte/ **_H -> HIGH byte): In the high byte (MSBYTE) the status information is as follows: Bits 0 –...
  • Page 520 1: Enabling of automatic mode Bit 6 ERROR_STATUS 0: No error condition 1: Error condition Bit 7 STATUS 0: Component not being controlled by a handling device 1: Component being controlled by a handling device 8 – 46 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 521 Meaning of the bits from “PN_modulstatus**_h” (high byte): Bits 0 -3 STATUS Description of the static conditions Chuck Value: 1: Clamped 2: Opened 4: – 8: Undefined Steady rest/Partition plate Value: 1: Closed 2: Opened 4: – 8: Undefined Sleeve Value: 1: Front 2: Front (end position)
  • Page 522 Hydraulic tailstock: Only the positions “right” and “left” are assumed. However, since the NC reads the coordinates from the parameters for this type of tailstock as well, the parameters must also be at three positions (reference position=initial position). 8 – 48 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 523 8.8.7 Module Diagnosis PLC diagnosis Under the menu item Diagnosis the user requests diagnostic graphics and module diagnoses in the NC. The NC transfers the diagnosis request requested by the user to the PLC via NP_type_of_diagnosis (diagnosis type), and additionally transfers NP_diagnosis_no (the code number) for the “Machine module and diagnosis image”...
  • Page 524 NC and the PLC with a strobe signal. This function allows the PLC to react specifically to special NC errors. The NC transfers the error number to the PLC in NP_Cnc_error_no. Brief Description Address Name Meaning W 0352 NP_Cnc_error_no Error number 8 – 50 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 525 In NP_subsystem_no, the NC transfers the identity of the subsystem that caused the error. The PLC also confirms reception of the error here. Brief Description Address Name Meaning B 0354 NP_subsystem_no Subsystem which caused the error and error acknowledgement Value Initialization value from the NC / Confirmation value from the PLC Sequential control Interpolation...
  • Page 526 Address Name Meaning B 0355 PN_strobe_of_plc_error Strobe of the PLC error Value The NC indicates that it has assumed the PLC error. The PLC indicates that a new error code is in PN_Plc_error_no. 8 – 52 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 527 Job processing: a PLC error message is displayed by the NC PLC transfers errors to the NC IF ( PN_strobe_of_plc_error == 0 ) THEN ELSE PN_Plc_error_no = ‘Error number’ (* Transfer error number to the NC *) (*The NC has not yet picked up the last error*) IF (‘Error with additional error text’) THEN...
  • Page 528 The error in NP_error_no_to_be_deleted cannot be deleted. In NP_error_no_to_be_deleted, the NC transfers the number of the PLC error code to be deleted. Brief Description Address Name Meaning W 0360 NP_error_no_to_be_deleted Number of the error to be deleted 8 – 54 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 529 Job processing: A PLC error message is to be displayed by the NC. NC requests deletion NP_error_no_to_be_deleted = ‘Error number’ (*Transfer error number to the NC*) NP_strobe_for_deleting = 0 (* Request deletion permission from the PLC *) (* Wait 100 ms for an answer *) IF ( NP_strobe_for_deleting >...
  • Page 530 8 – 56 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 531 8.8.9 Parameter Transfers General The NC manages PLC parameters exactly as it does NC parameters. They are Information stored on the control’s hard disk, and are defined with a number an identifier (type of parameter) and the value. When the control is started up, all PLC parameters, including these descriptive data, are serially transferred to the PLC.
  • Page 532 9530 B/W/D/K <NOML mirror parameters> The current counter of the parameters to be mirrored (corresponds to NP_no_of_parameters_to_be_mirrored). The number of actually mirrored parameters is in NP_no_of_mirrored_parameters. 8 – 58 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 533 Transferring In NP_no_of_parameter_to_plc, the NC transfers the parameter number of the parameters to the parameter to be transferred. PLC (direct use of Brief Description the interface data) Address Name Meaning W 0448 NP_no_of_parameter_to_plc Number of the parameter to the In NP_parameter_identification, the NC transfers the parameter identification. Brief Description Address Name Meaning...
  • Page 534 Number of the parameter to the NC Note System warnings which occur from using NC parameters that have not been enabled are only shown if you have logged on as “system manager” (operating mode “Service – Log-on”). 8 – 60 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 535 The PLC transfers the parameter identification to the NC in PN_parameterkennung_cnc. Brief Description Address Name Meaning B 0462 PN_parameterkennung_cnc Identification of the parameter to the NC Bit assignment Bit 0 PARAMETERTYP_CNC1 Parameter type Bit 1 PARAMETERTYP_CNC2 Bit 2 PARAMETERTYP_CNC4 Bit 3 PARAMETERTYP_CNC8 Bits 4 to Free...
  • Page 536 Strobe of the parameter transfer transfer Value The NC indicates that it has assumed the parameter. The PLC indicates that the parameter (NP_no_of_parameter_to_plc, ..._KENN, ..._value) is valid, and should be assumed by the NC. 8 – 62 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 537 Functions for By using NC parameters and various parameter-exchange settings (see parameter transfer Parameter Identification), the PLC has various options for parameter handling. to the NC The configuration tool documentation will include information on the address (i.e., the owner) of a parameter. Seq.
  • Page 538 Font size: 8 * 14 pixels (width * height) Images, dialog fields and texts must not exceed the size of the PLC window, and must be positioned completely within the PLC window. 8 – 64 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 539 Texts Active text sequences: Texts that are to be output in the PLC window are defined as “message texts” with KonfigPilot, and are saved to disk. “Active texts sequences” can be added to the defined texts. These text sequences are transferred from the PLC together with the text reference.
  • Page 540 B/W/D/K <Maximum number of characters> Maximum number of characters per line (0 = no limit) B/W/D/K <Maximum number of lines> Maximum number of lines in the text (0 = no limit) B/W/D/K <String register> (S0..S7) 9502 8 – 66 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 541 Partially formatted Module 9507 Partially formatted text output text output This function is similar to Module 9502. However, fewer formatting instructions are possible. Call: <Text reference> The text reference must be > 255 B/W/D/K <Foreground color> Color code for the foreground B/W/D/K <Background color>...
  • Page 542 You now have access to the bitmap images from the PLC by entering the file number (image type) and the image number (image reference). Displaying ea48_mod.bmp in the PLC window: Image reference= 1 (*see #define for ea48_mod*) Image type (*Use of the files PlcPic01.**) 8 – 68 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 543 Output image Module 9504 Output image The image indicated by the image reference and the file assignment (PlcPic*.ico) is output. Up to 100 images can be placed in the PLC window. The position of the image is defined by entering the coordinate of the upper left corner.
  • Page 544 Parameter 0 = 0: Default background color Parameter 0 = 1: Background color in SATZ_INH_1 Parameter 1: Background color 8 – 70 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 545 Control command = 12: Identify the cursor position. The NC supplies the PLC with the current cursor position via the “NC status.” Parameter 0 = 0 Parameter 1 = 0 Control command = 14: Delete PLC errors. Delete one or more PLC errors in the error window. The NC collects a deletion permission from the PLC for each error (See “Acknowledging PLC errors”...
  • Page 546 (see figure). With an active (open) dialog box, the key inputs go to the dialog box — not to the PLC. The following image shows the “PLC-Default” dialog box within the PLC window. 8 – 72 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 547 Defining a dialog Example: #DIALOG 11 "Parametereinstellung Spindel 3" 391 323 #LINE "Spannart" #LINE "Ueberwachung EIN/AUS" #LINE "Umschaltposition [mm]" 1 000 #LINE "Spannweg [mm]" 1 000 The following image shows the dialog box defined in “DIALOG 11.” June 2002 NC — PLC Interface — Miscellaneous 8 –...
  • Page 548 PLC can deactivate the dialog box with Module 9562. After that, the original contents of the PLC window is displayed. Call: B/W/D/K <Dialog status> 0: Deactivate dialog job and dialog box 9561 8 – 74 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 549 Query dialog status Module 9562 Query dialog status The PLC uses Module 9562 to check whether the dialog has been finished. Call: 9562 B/W/D <Dialog status> 0: No PLC dialog active — no dialog box open 2: The PLC dialog is active — a dialog box is open 3: The PLC dialog was ended with “OK”...
  • Page 550 The key code is supplied cyclically as long as these keys are pressed. Codes for describing the PLC window PLC window is open PLC window is closed The following keys are not supplied to the PLC: Menu key Process key Info key 8 – 76 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 551 Meaning of the key codes (code in hex) Code Meaning Code Meaning Function-key code for the main menu when a PLC window is open: Reserved for error window <–> NC-diagnosis switching Freely definable Freely definable Freely definable Freely definable Function key “PLC I/O diagnosis” Function key “Operating test”...
  • Page 552 Error code: Word Value Meaning W4024 Inadmissible mode Incorrect string number File could not be opened Example: S“\PLC\logdatei.txt“ K + 1 * always 1 K + 0 * string register 0 CM9240 DG_logdatei_handle 8 – 78 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 553 Close file Module 9241 Close a file Use this module to close a file that you opened with Module 9240. Call: <File handle> Number from Module 9240 9241 Error code: Word Value Meaning W4024 File was closed. Incorrect file handle Write to file Module 9244 Write to a file line-by-line With Module 9244 you write line-by-line to an ASCII file.
  • Page 554 1: File correctly opened nBit 2: File incorrectly opened nBit 13: Write error If no bit is set: File handle not occupied. The name of the opened file is returned in the indicated string register. 8 – 80 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 555 8.8.14 Real-Time Coupling Functions The real-time couplings functions (RCO) are general-use functions for the NC. The interpolation can be influenced by them so that various machine functions can easily be applied. Application examples include temperature compensation, a master-slave axis-coupling, or longitudinal turning. The real- time coupling functions are included in or recalculated for every interpolation pulse of the IPO.
  • Page 556 3: K-variable write job 4: K-variable read job After acceptance by the NC, the job is acknowledged with the following values: 254: Acknowledgment: Job ended in error 255: Acknowledgment: Job ended OK 8 – 82 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 557 RCO variable In PN_roc_variable_no_*, the PLC specifies the variable number for which it number has placed a job under PN_rco_job_**. Brief Description Address Name Meaning B 1153 PN_roc_variable_no_01 RCO variable number 1 B 1159 PN_roc_variable_no_02 RCO variable number 2 B 1165 PN_roc_variable_no_03 RCO variable number 3 B 1171 PN_roc_variable_no__04 RCO variable number 4...
  • Page 558 RCO variable value 12 D 1226 PN_rco_variable_value_13 RCO variable value 13 D 1232 PN_rco_variable_value_14 RCO variable value 14 D 1238 PN_rco_variable_value_15 RCO variable value 15 D 1244 PN_rco_variable_value_16 RCO variable value 16 8 – 84 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 559 Job processing “RCO job from the PLC” PLC requests RCO job IF ( ( PN_rco_job__** < 1 ) OR ( PN_rco_job__** > 254) ) THEN ELSE IF ( ‘Read job’ ) (* last RCO job THEN ELSE not finished PN_roc_variable_no_** = PN_roc_variable_no_** = ‘variable no.’...
  • Page 560 The PLC specifies the variable number (PN_roc_variable_no_02 = 43) The PLC writes the variable value (PN_rco_variable_value_02 = 3000) The PLC requests a write-job (PN_rco_job__02= 1) The NC processes the job and confirms it (PN_rco_job__02 = 255) 8 – 86 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 561 June 2002 NC — PLC Interface — Miscellaneous 8 – 87...
  • Page 562 1: The spindle operates at a shaft speed of n > 50 rpm. Reference: With servo-controlled spindles: actual shaft speed With controlled spindles with encoders: actual shaft speed With controlled spindles without encoders: nominal shaft speed 8 – 88 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 563 Bit 2 POSITION_WINDOW_REACHED 0: The spindle is not in position feedback control, or it is in position feedback control and has not yet reached the predefined “target window for position.” 1: The spindle has reached the predefined “target window for position” of the position control.
  • Page 564 The PLC shall regard NP_S1_programmed_position as being valid if the signal “Position window reached” (NP_S*_Status_1) is set. Brief Description Address Name Meaning W 1282 NP_S1_programmed_position Programmed position — Spindle 1 W 1314 NP_S2_programmed_position Programmed position — Spindle 2 8 – 90 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 565 8.9.3 Spindle Speed to the PLC The NC cyclically (100 ms) transfers the current value of the spindle speed in NP_S*_current_spindle_speed. The PLC must use the value 0FFFF hex to confirm the transfer. The data is given in rpm. The PLC must write FFFF hex to the value range NP_S*_current_spindle_speed during the control startup in order to indicate to the NC that this option is supported by the PLC.
  • Page 566 The controller enabling is set only on request by the PLC (see PN_S*_request_for_enabling). Bit 5 C_DRIVE_READY 0: The C-axis drive is not ready for operation. 1: The C-axis drive is ready for operation (is on line power). 8 – 92 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 567 8.9.5 C-Axis Status to the PLC Brief Description Address Name Meaning B 1288 NP_S1_C_status C-axis status — Spindle 1 B 1320 NP_S2_C_status C-axis status — Spindle 2 Bit assignment Bit 0 C_AXIS_IS_ACTIV C axis is active Bit 1 C_AXIS_IS_IN_POSITION C axis is located in the position target window Bit 2 C_AXIS_RAPID_TRAVERSE...
  • Page 568 Meaning of bits 0 – 3: 0: Request for spindle stop 14: Request for reversal during gear shifting 15: Request for jogging during gear shifting 8 – 94 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 569 Example: Gear switch of the main spindle for gear range 2 The NC presents gear range M42 (see M function transfer). PLC deletes data release (see PN_K*_part_1_enabling_signals). The PLC requests a spindle stop (GEAR_RESPONDS_* = 0). The NC stops the spindle. The NC sets the signal SPINDEL_EIN to 0 (see NP_S*_Status_1).
  • Page 570 The spindle does not start rotating until a command is made. If the spindle was in the position loop (Mx19) before withdrawal of the spindle enabling, when spindle enabling is on again the spindle is not moved back to its old position. 8 – 96 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 571 nAutomatic mode If spindle enabling was withdrawn while the spindle is rotating, and if the “cycle start mode” is still active, the spindle restarts immediately after it is enabled. If the spindle was in the position loop before withdrawal of spindle enabling, when the spindle enabling is given again the spindle is moved back to its old position.
  • Page 572 1: The C axis has been enabled. The C axis can be moved if “C-axis controller enabling” (NP_S*_enabling_status) is also on. ENABLE_C_AXIS competes with FREIGABE (spindle enabling) — only one of the signals can be in the state 1. 8 – 98 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 573 8.9.8 Requests for Enabling to the NC Brief Description Address Name Meaning B 1298 PN_S1_request_for_enabling Request for enabling — Spindle 1 B 1330 PN_S2_request_for_enabling Request for enabling — Spindle 2 Bit assignment Bit 0 REQUEST_TO_ENABLE_CON Setting a request to enable the TROLLER controller Bits 1 -3...
  • Page 574 2.1: The PLC requests to rescind controller enabling for the C axis. 2.2: The NC reports that C-axis controller-enabling is now off. 2.3: The PLC requests to set controller enabling for the spindle. 2.4: The NC reports that spindle controller-enabling is on. 8 – 100 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 575 8.9.9 PLC Spindle Operation to the NC Via PLC spindle operation, the PLC can use various spindle functions of the NC. The jobs are transmitted serially, meaning every job must first be acknowledged by the NC before a new job can be started. The individual spindle jobs can be used with options and parameter values effective only for that job.
  • Page 576 12th option declaration Bit 4 SPINDLE_OPTION_13 13th option declaration Bit 5 SPINDLE_OPTION_14 14th option declaration Bit 6 SPINDLE_OPTION_15 15th option declaration Bit 7 SPINDLE_OPTION_16 16th option declaration Meaning of the bits: see “Job descriptions” 8 – 102 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 577 Job parameter A descriptive job parameter can be set in PN_S*_job_parameter for the spindle job. Meaning: see “Job descriptions.” Brief Description Address Name Meaning D 1308 PN_S1_job_parameter Job parameter — Spindle 1 D 1340 PN_S2_job_parameter Job parameter 2 — Spindle 2 Job handling Each job must be given to the NC in the following format: The PLC transmits the job options via PN_S*_job_option_1 (if required for...
  • Page 578 Position control Reference run to trip dog Spindle override Axis compensation for the C axis (in preparation) 254 (FE hex) Acknowledgment: Job ended in error 255 (FF hex) Acknowledgment: Job ended OK 8 – 104 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 579 Job 1: Spindle rotation (M3, M4, G96, G97) This job rotates the spindle in the manner of M3 or M4. The job is confirmed once the spindle reaches the correct speed. Option bits Meaning SPINDLE_OPTION_1 Direction of rotation: 0: No change in the direction of rotation SPINDLE_OPTION_2 1: Rotation clockwise 2: Rotation counterclockwise...
  • Page 580 If the speed limitation is to be valid beyond such a change, the “PLC parameter to the NC” spindle parameters must be changed. Option bits are not used for this job. Job parameter Meaning PN_S*_job_parameter Speed limitation in [0.001 rev/sec] 8 – 106 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 581 Job 4: Position control (M19) This job controls the spindle position in the manner of M19. Option bits Meaning SPINDLE_OPTION_1 Direction of rotation — only valid when the spindle is stopped: SPINDLE_OPTION_2 0: Shortest path 1: Rotation clockwise 2: Rotation counterclockwise SPINDLE_OPTION_3 The position entered in the job parameter is: 0: Absolute 1: Relative...
  • Page 582 Option bits Meaning SPINDLE_OPTION_10 Not used SPINDLE_OPTION_15 SPINDLE_OPTION_16 Job acknowledgment: 0: The job is acknowledged once the spindle has reached the correct position. Job parameter Meaning PN_S*_job_parameter Position in [0.001°] 8 – 108 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 583 Job 16: Reference run to trip dog With this job, the spindle performs a reference run to a hardware trip dog. Option bits Meaning SPINDLE_OPTION_1 Direction of rotation: 1: Rotation clockwise SPINDLE_OPTION_2 2: Rotation counterclockwise SPINDLE_OPTION_3 The position entered in the job parameter is: 0: Absolute 1: Relative SPINDLE_OPTION_4 The position entered in the job parameter is:...
  • Page 584 Acknowledgment by the NC: Job ended in order 255: Depending on the option bit (SPINDLE_OPTION_16), the NC shows the PLC either that the job has been received, or that the job was ended in order. 8 – 110 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 585 8.9.10 Turret Operation Status description Brief Description to the PLC Address Name Meaning B 1287 NP_S1_turret_status Turret status — Spindle 1 B 1319 NP_S2_turret_status Turret status — Spindle 2 Bit assignment Bit 0 REFERENZ_01 Turret reference run Bit 1 REFERENZ_02 Bit 2 TURRET_ROTATION_1 Turret rotation...
  • Page 586 Revolver operation — Spindle SPINDLE_OVERRIDE override Bits 5 -6 Free Bit 7 PLC_SPINDLE_OPERATION See “Spindle operation” on page 101. Bits 0 to 4 are significant only for turrets that are controlled by the NC. 8 – 112 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 587 Meaning of the bits:7 Bit 0 TURRET_OPERATION 0: Turret operation is not active. Neither turret rotation nor a reference run of the turret are possible in this state. When deactivating turret operation, the NC rescinds the “Coupling position reached” status report (NP_S*_turret_status), and activates the spindle machining status valid at the time of turret operation.
  • Page 588 100%. In order to use this function, the PLC must set TURRET_OPERATION_SPINDLE_OVERRIDE before the request for turret rotation (PN_S*_plc_spindle_operation). Note For information on the context and timing behavior of these signals with the signals NP_S*_turret_status, see chapter “Revolver operation.” 8 – 114 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 589 Nominal position to In PN_S*_nominal_turret_position the PLC transfers the number of complete the NC revolutions by the drive necessary for turret rotation. This position entry is assumed by the NC via the request for turret rotation (PN_S*_plc_spindle_operation). Brief Description Address Name Meaning B 1300 PN_S1_nominal_turret_ Nominal turret position —...
  • Page 590 8 – 116 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 591 8.10 NC <–> PLC Interface — Channel Data 8.10.1 M Functions to the PLC M-function transfer The CNC PILOT makes it possible to write up to 3 M functions (auxiliary commands) in one NC block. With the M commands the PLC performs functions on the machine tool.
  • Page 592 Move hydraulic tailstock forward (in position 1) Move hydraulic tailstock backward (in position 1) Open the steady rest 1 Close the steady rest 1 Open the steady rest 2 Close the steady rest 2 8 – 118 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 593 M code Function M post-geometry function Programmed stop Selectable stop Spindle stop for spindle/screw 1 M105 Spindle stop for spindle/screw 2 Position control for spindle/screw 1 M119 Position control for spindle/screw 2 Program end without restart Program end without spindle stop (for retraction program during tool inspection) Program end with restart Special feature:...
  • Page 594 If necessary, the PLC sets “Data not released” (PN_K1_part_1_enabling_signals) to interrupt the block enabling. The PLC writes 0FFFF hex to the T function memory and enables the memory for new T-command transfer. 8 – 120 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 595 8.10.3 Operating Modes to the PLC Operating modes (I) In NP_K*_operating_mode_1, the NC transfers the main operating modes to the PLC. Brief Description Address Name Meaning B 1482 NP_K1_operating_mode_1 Operating mode (I) — Channel 1 Bit assignment Bit 0 REFERENCE_MODE Reference run operating mode Bit 1 Free...
  • Page 596 1: The NC is now in the setup operating mode. Remember that: The maximum feed rate is limited to a parameter value. The maximum spindle speed is limited to a parameter value. 8 – 122 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 597 Operating modes In NP_K*_operating_mode_2, the NC transfers the special operating modes to (II) the PLC. Brief Description Address Name Meaning B 1487 NP_K1_operating_mode_2 Operating mode (II) — Channel 1 Bit assignment Bit 0 GRAFIC_MODE Graphic operating mode Bit 1 EDITOR Editor operating mode Bit 2 REFERENCE_MODE_...
  • Page 598 0: Program run in single cycle mode or in teach-in mode. 1: Continuous program run Bit 6 LEARNING_MODE 0: The teach-in operating mode is not selected. 1: The teach-in operating mode is selected. 8 – 124 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 599 8.10.4 Channel Status to the PLC Channel status (I) Brief Description Address Name Meaning B 1483 NP_K1_channel_status_1 Channel status (I) — Channel 1 Bit assignment Bit 0 CNC_READY NC ready Bit 1 FEEDAXIS_CONTROLLER_R Controller enabling of feed axes ELEASE Bit 2 CYCLE_HAS_STOPPED Cycle stopped Bit 3...
  • Page 600 During the start block search, all auxiliary functions (M and G functions) and tool commands (T functions) are transferred to the PLC. In start block search, the “data release” and “data release at path end” function (PN_K*_part_1_enabling_signals) are not effective. 8 – 126 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 601 Channel status (II) Brief Description Address Name Meaning B 1484 NP_K1_channel_status_2 Channel status (II) — Channel 1 Bit assignment Bits 0 -1 Free Bit 2 RAPID_FEEDRATE Rapid traverse (only in automatic) Bit 3 MINUTE_FEEDRATE Per-minute feed rate Bit 4 REVOLUTION_FEEDRATE Per-revolution feed rate Bit 5 THREAD_FEEDRATE...
  • Page 602 In-process measurement is deactivated. This happens again in manual control through a soft key or in automatic mode through the G function G913. The measuring device is positioned away from the working space. 8 – 128 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 603 Programming example: N100 M** [Position the measuring device to the working space] N101 G911 [Activate in-process measuring for tool measurement with monitoring of the pre- positioning] N102 G0 X10 Z10 [Pre-position the axes] N103 G912 [Activate measured value recording] N104 G1 X30 [Approach with touch probe in X direction] N105 G914 G1 X10 [Retract touch probe in X direction]...
  • Page 604 3: The following error is eliminated. The NC reports “following error eliminated” (NP_K*_channel_status_3). 4: The PLC takes back its “eliminate following error” request. 5: The NC then takes back its “eliminate following error” signal. 8 – 130 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 605 8.10.5 Axis Status to the PLC Brief Description Address Name Meaning B 1553 NP_K1_axis_status_1 Axis status — Channel 1 Bit assignment Bit 0 X_AXIS_IN_MOVMENT X axis in motion Bit 1 Z_AXIS_IN_MOVMENT Z axis in motion Bits 2 -7 Free Meaning of the bits: Bits 0 -1 *_AXIS_IN_MOVMENT 0: The axis * is not in motion.
  • Page 606 X_AXIS_IS_PROJECTED X axis configured Bit 1 Z_AXIS_IS_PROJECTED Z axis configured Bits 2 -7 Free Meaning of the bits: Bits 0 -1 *_AXIS_IS_PROJECTED 0: Axis * does not exist 1: Axis * exists 8 – 132 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 607 8.10.7 Workpiece Counting by the PLC The workpiece counting process must be enabled in the NC over a configuration datum. This frees the NC from the job of counting workpieces, which must be performed by the PLC. Workpieces are then counted with the process described in NP_K*_workpiece_counting_plc.
  • Page 608 Actual values of main axes: Brief Description Address Name Meaning D 1516 NP_K1_actual_value_x X axis actual position — Channel 1 Brief Description Address Name Meaning D 1524 NP_K1_actual_value_z Z axis actual position — Channel 1 8 – 134 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 609 Actual values valid (STROBE signal) An actual value transfer from the NC to the PLC is synchronized with NP_K*_actual_value_valid. Brief Description Address Name Meaning B 1544 NP_K1_actual_value_valid Actual value is valid — Channel 1 Value The PLC indicates that it has read the actual values. The NC indicates that the “actual values”...
  • Page 610 Brief Description Address Name Meaning W 1532 NP_K1_tool_length_x Tool length in X — Channel 1 Brief Description Address Name Meaning W 1540 NP_K1_tool_length_z Tool length in Z — Channel 1 8 – 136 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 611 Tool lengths valid (STROBE signal) A tool length transfer from the NC to the PLC is synchronized with NP_K*_actual_value_valid. Brief Description Address Name Meaning B 1546 NP_K1_tool_length_valid Tool length valid — Channel 1 Value The PLC indicates that it has read the tool lengths. The NC indicates that the “tool lengths”...
  • Page 612 *_AXIS_DRIVE_READY 0: Axis * is not ready 1: Axis * is ready (i.e. drive is on line power). Note For more information on enabling requests and enabling statuses: see chapter “Digital Drives.” 8 – 138 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 613 8.10.11 G Function Transfer to the PLC With the G function block the G functions G600 – G699 (G600 functions) and special G functions are transferred to the PLC. The G600 functions are pre- geometry functions and must not be written with other functions in an NC block.
  • Page 614 G600 to G699). At the same time, this variable serves as validity code for the parameters of the G function (NP_K*_G_parameter_*). Brief Description Address Name Meaning W 1584 NP_K1_G_function G-function memory — Channel 1 8 – 140 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 615 Parameters of the In the variables NP_K*_G_parameter_x/ ...Y/ ...Z/ ...C/ ...F/ ...S/ ...T/ ...H/ ...Q, G-function block to the parameters are transferred to the G function located in NP_K*_G_function. the PLC Brief Description Address Name Meaning D 1586 NP_K1_G_parameter_x X parameter of G function — Channel 1 Brief Description Address Name Meaning...
  • Page 616 This operating mode is required in order to back off one or more axes from a safety limit switch. The retraction direction is inspected for plausibility with the limit-switch information (see PN_K*_part_1_limit_switch/part_2) reported by the PLC. 8 – 142 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 617 Bit 4 SCHLEPP_AUSF 0: No request to eliminate following error. 1: Request to eliminate following error. SCHLEPP_AUSF serves to eliminate a following error in the NC on request by the PLC. It is evaluated only if the “controller enabling” (PN_K*_part_3_enabling_signals) is sent or the “request for controller enabling”...
  • Page 618 Delete reference in Z axis Bits 2 -7 Free Meaning of the bits: Bits 0 -1 AXIS_* 0: Do not delete the reference information of axis *. 1: Delete the reference information of axis *. 8 – 144 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 619 8.10.14 Channel Enabling Signals to the NC Channel enabling Brief Description signals (I) Address Name Meaning B 1617 PN_K1_part_1_enabling_signa Enabling signal (I) — Channel 1 Bit assignment Bit 0 FEED_RATE_ENABLE_X Feed-rate enable X axis Bit 1 FEED_RATE_ENABLE_Z Feed rate enable Z axis Bit 2 DATA_ENABLE Data enable...
  • Page 620 DATA_ENABLE. The post- traverse function is acknowledged by the PLC with 0FFFF hex. 6) The PLC has performed its function and grants DATA_ENABLE. 7) The next NC block is run. 8 – 146 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 621 Bit 4 DATA_ENABLE_END 0: No data release granted at end of traverse or block 1: Data release granted at end of traverse or block With DATA_ENABLE_END the automatic block triggering at the end of the traverse path or at block end is interrupted and resumed by the PLC. This makes it possible to run PLC functions and paths of traverse simultaneously.
  • Page 622 1: Request to reduce rapid traverse to 25%. The rapid traverse movements (G0) of the slide in all directions are reduced to 25% of the predefined value. Feed movements are not reduced. 8 – 148 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 623 Channel enabling Brief Description signals (III) Address Name Meaning B 1623 PN_K1_part_3_enabling_ Enabling signal (III) — Channel 1 signals Bit assignment Bits 0 -3 Free Bit 4 MACHINING_ENABLING_OF Machining enabling of the turret _TURRET Bits 5 -7 Free Meaning of the bits: Bit 4 MACHINING_ENABLING_OF_TURRET 0: The turret has not been enabled for machining.
  • Page 624 Free Meaning of the bits: Bits 0 -5 *_PLUS_LIMIT_SWITCH_INACTIVE / *_MINUS_LIMIT_SWITCH_INACTIVE 0: The safety limit switch *_PLUS_LIMIT_SWITCH_INACTIVE/ *_MINUS_LIMIT_SWITCH_INACTIVE has been traversed. 1: The safety limit switch *_PLUS_LIMIT_SWITCH_INACTIVE/ *_MINUS_LIMIT_SWITCH_INACTIVE has not been traversed. 8 – 150 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 625 8.10.16 External Events to the NC With the aid of external events the PLC can influence the execution of the NC program. There are a total of 16 available branch events. If an NC program contains a jump function with an external event (e.g. IF- THEN-ELSE in the form described below), then during the program run, the NC checks the status of the external event and branches accordingly.
  • Page 626 Branch event E15 Bit 7 BRANCH_EVENT_16 Branch event E16 Meaning of the bits: Bits 0 -7 BRANCH_EVENT_** 0: The branch event * is not active. 1: The branch event * is active. 8 – 152 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 627 8.10.17 Position Compensation to the NC With PN_K*_position_compensation, the PLC influences the NC-internal encoder in X and Z direction. The NC provides the compensation values in the form of NC parameters. A position compensation is always calculated before and after execution of a pre-geometry function (all M and T functions as well as G600 –...
  • Page 628 T command. If this value is present at this time, the tool data of the new tool are not accepted and the old tool continues to be displayed. (see “T-function transfer”) 8 – 154 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 629 8.10.19 Workpiece Counting by the PLC In PN_K*_Plc_workpiece_counting the PLC is enabled to take over the job of counting the machined workpieces. This relieves the NC of the task of counting the workpieces. Brief Description Address Name Meaning W 1626 PN_K1_Plc_workpiece_ Workpiece counting —...
  • Page 630 (e.g. after withdrawal of feed-rate enabling). 1: The PLC places the request to enable the controller for the corresponding drive. Note For more information on enabling requests and enabling statuses: see chapter “Digital Drives.” 8 – 156 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 631 8.10.21 Channel Job to the NC Through PN_K*_channel_job_to_cnc the PLC uses a channel-independent function of the NC. The job is transmitted serially, where every job must first be acknowledged by the NC before a new job can be started. Depending on the job, channel jobs can be used with axis data, option data, and parameter values.
  • Page 632 Bit 5 OPTION_14 Request 14th option data Bit 6 OPTION_15 Request 15th option data Bit 7 OPTION_16 Request 16th option data Note For the meaning of the channel job options, see job descriptions. 8 – 158 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 633 Brief Description Address Name Meaning D 1644 PN_K1_channel_job_1_parameter Channel-job param. — Channel 1 Brief Description Address Name Meaning D 1648 PN_K1_channel_job_2_parameter Channel-job param. — Channel 1 Brief Description Address Name Meaning D 1652 PN_K1_channel_job_3_parameter Channel-job param. — Channel 1 Brief Description Address Name Meaning D 1656 PN_K1_channel_job_4_parameter Channel-job param.
  • Page 634 Feed rate override Axis compensation of the linear axes Display data of linear axes/spindles Spindle selection T default 254 (FE hex) Acknowledgment: Job ended in error 255 (FF hex) Acknowledgment: Job ended OK 8 – 160 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 635 Traverse job Channel job 1: (absolute position This jobs moves the axes to an absolute target position. This also reproduces data) jobs as are needed for traversing by handwheel or joystick. In this case an (unattainable) maximum value is specified as target position. The job is acknowledged after the start.
  • Page 636 Bit assignment of PN_K*_channel_job_1_option Name Meaning Bit 0 Free Bit 1 OPTION_2 Per-minute feed rate Bit 2 OPTION_3 Per-revolution feed rate Bit 3 OPTION_4 Angle feed rate Bits 4 to 7 Free 8 – 162 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 637 Meaning of the bits: Bit 1 Per-minute feed rate 0: No per-minute feed rate 1: Per-minute feed rate Bit 2 Per-revolution feed rate 0: No per-revolution feed rate 1: Per-revolution feed rate Value ranges: Target position: –2147483647 to +2147483646 [1/10 µm] Per-minute feed rate: 0 to +2147483647 [µm/sec]...
  • Page 638 This job sets the feed rate override. The job is acknowledged after the override value is activated. Channel job 51: Feed rate override Job parameter Meaning PN_K*_channel_job_1_parameter Value of the override (range: 0 to 150%) 8 – 164 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 639 Axis compensation Channel job 61: of the linear axes With this job the PLC transfers absolute axis compensation values to the NC. The job is acknowledged after it has been taken over. Channel job 61: Axis compensation of the linear axes Job parameter Meaning PN_K*_channel_job_axis_data...
  • Page 640 With this job a spindle is selected that serves as reference for the per- revolution feed rate from “traverse job (absolute position display)”. Channel job 102: Spindle selection Job parameter Meaning PN_K*_channel_job_1_parameter Spindle number (1 .. 4) 8 – 166 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 641 T default Channel job 103: Job 103 triggers a “T0 setting“ in the NC. The NC calculates the tool lengths from it and switches the display to “T0.” The acknowledgment comes after the job is processed. The NC can process the job only in manual mode. Channel job 254 (FE hex) —...
  • Page 642 PLC to the NC if the desired cycle condition is already available in the channel status (see NP_K*_channel_status_1). Only if this condition is met can the NC react unambiguously to cycle commands. 8 – 168 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 643 Example 1: PLC requests ZYKLUS EIN and the NC confirms it. Cyc. from PLC Cyc. to PLC “Cyc. to PLC”: via variable NP_K*_cycle_on_request_to_plc “Cyc. from PLC”: via variable NP_K*_cycle_on_by_plc 1) ZYKLUS EIN to the NC 2) NC has recognized ZYKLUS EIN from the PLC and returns ZYKLUS EIN. 3) PLC has recognized the acknowledgment by the NC and withdraws the request.
  • Page 644 8 – 170 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 645 The logic analyzer displays the following signals. PLC inputs PLC outputs PLC markers PLC memories Memory bit (only for HEIDENHAIN employees) Displaying/ Meaning of the menu items: recording “Measured values”: Adjust the signals in the “Logic analyzer channel measured values definition”...
  • Page 646 Note: The settings for oscilloscope and logic analyzer are kept in the same directory. Therefore the files with settings for the oscilloscope are displayed in “Settings Organization” for the logic analyzer and vice versa. 8 – 172 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 647 Recording signals U U U U If the settings are already saved, select the corresponding file in “Settings — Settings Organization — Load.” As an alternative, you can adjust the settings as follows. U U U U Select “Measured values” and define the “channels” to be measured. –...
  • Page 648 8.11.2 Functions of the Diagnosis Mode of Operation Functions of the Display menu group: “Display — Memory”: PLC markers “Display — Inputs/Outputs”: “Display — 16 Inputs/Outputs”: “Display — Memory Cyclic”: PLC markers “Display — Inputs/Outputs Cyclic”: 8 – 174 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 649 June 2002 Test and Commissioning Support 8 – 175...
  • Page 650: Plc Parameters

    Chuck swivel speed — PLC number: 50016 0 to 65535 revolutions/min Spindle mounted — PLC number: 50017 0: Not mounted 1: Mounted Spindle clamping mounted — PLC number: 50018 0: Not mounted 1: Mounted 8 – 176 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 651 Release clamping — PLC number: 50019 0 to 255 [1/50 sec clock pulse] Clamp clamping — PLC number: 50020 0 to 255 [1/50 sec clock pulse] Type of C axis — PLC number: 50021 1 to 10 Delay time 1 — PLC number: 50022 0 to 255 [100 ms clock pulse] Gear transmission type —...
  • Page 652 Swivel chuck type — PLC number: 50043 1 to 10 Chuck swivel speed — PLC number: 50044 0 to 65535 revolutions/min Spindle mounted — PLC number: 50045 0: Not mounted 1: Mounted 8 – 178 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 653 Spindle clamping mounted — PLC number: 50046 0: Not mounted 1: Mounted Release clamping — PLC number: 50047 0 to 255 [1/50 sec clock pulse] Clamp clamping — PLC number: 50048 0 to 255 [1/50 sec clock pulse] Type of C axis — PLC number: 50049 1 to 10 Delay time 1 —...
  • Page 654 Steady rest 2 — PLC number: 50134 Steady rest 3 — PLC number: 50135 Steady rest 4 — PLC number: 50136 0 to 10 0: No steady rest mounted 1: Steady rest permanently mounted 2: Steady rest movable 8 – 180 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 655 Temperature PP18: PLC: Temperature control for Industrial, Scientific and Medical control (ISM) equipment Temperature controller mounted — PLC number: 50137 0: Not mounted 1: Mounted Number of values for averaging — PLC number: 50138 0 to 255 Maximum ambient temperature — PLC number: 50139 0 to 255 [°C] Nominal coolant temperature —...
  • Page 656 HH 2: Axis locking for HH in the working space (HH = handling) — PLC number: 50169 0 to 2 000 000 000 Stock feeding type 1 — PLC number: 50170 0 to 10 Stock feeding type 2 — PLC number: 50171 0 to 10 8 – 182 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 657 Protective cover PP21: PLC: Protective covers Protective cover type 1 — PLC number: 50172 0 to 255 Automatically unlock protective cover 1 — PLC number: 50173 0: Do not automatically unlock 1: Automatically unlock Protective cover 1 auto-cycle-start active — PLC number: 50174 0: Auto-cycle-start not active 1: Auto-cycle-start active Time monitoring for protective cover 1 —...
  • Page 658 Chip conveyor 2: Interval ON — PLC number: 50202 0 to 1200 [1 sec clock pulse] Chip conveyor 2: Interval OFF — PLC number: 50203 0 to 1200 [1 sec clock pulse] 8 – 184 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 659 User relays PP26: PLC: Convenient user relays User relays type 1 to 4 — PLC number: 50204 User relays type 5 to 8 — PLC number: 50205 User relays type 9 to 12 — PLC number: 50206 User relays type 13 to 16 — PLC number: 50207 User relays type 17 to 20 —...
  • Page 660 TSF menu or from the cycle run. MANUALplus 4110 The parameters are of the type SGN32. PPx: PLC: Additional parameter for MANUALplus 4110 Jog speed [0.001 rev/sec] — PLC number: 28020 Per-minute feed rate [µm/s] — PLC number: 59000 Per-revolution feed rate [µm/rev] —...
  • Page 661 9 Configuration 9.1 KonfigPilot ..................9 – 3 9.2 Data Structure .................. 9 – 8 9.3 Configuration Documents ............. 9 – 12 9.4 Duplicating the Configuration ............9 – 16 9.5 Support for the PLC Programmer..........9 – 17 9.5.1 Writing the PLC error texts............ 9 – 17 9.5.2 Creating PLC Messages ............
  • Page 662 9 – 2 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 663 9 Configuration 9.1 KonfigPilot Area of application HEIDENHAIN ships the control to the machine tool builder together with a standard set of parameters. The machine tool builder adapts the parameters and the PLC program to the individual machine model. KonfigPilot provides support in the following tasks:...
  • Page 664 9 – 4 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 665 You can start KonfigPilot by calling KONFIG.EXE or clicking the start button. WinZip The program WinZip compresses files and bundles all the files that are to be transferred to the control. HEIDENHAIN supplies a shareware version of WinZip together with KonfigPilot. Installing basic...
  • Page 666 Using WinZip” on page 9–51). U U U U Transfer the update file to the control. U U U U Perform the update on the control. U U U U Test the new control software. 9 – 6 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 667 Basic settings Basic setting/Displays: “Control” menu item: Adjust the control model and release—the current setting is displayed in the start screen and other screens. Menu item “Settings – Basis data“ Language German/English: Set the language of the KonfigPilot user interface Editor: Recommendation: Select “TxEdit.”...
  • Page 668: Data Structure

    PLC dialogs: Definition of PLC dialogs (see “Creating PLC Dialogs” on page 9–27). PLC program: The PLC program is copied to the “\konfig\PLC\...” directory and then prepared with KonfigPilot for the update. 9 – 8 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 669 Data structure of KonfigPilot Machine data (one data record per machine configuration) 4110 – V6.2 Machine configuration 1 Machine configuration 2 Machine configuration n 4110 – Vx.y Machine configuration 1 Machine configuration 2 Machine configuration n 4290 – V6.1 Machine configuration 1 Machine configuration 2 Machine configuration n 4290 –...
  • Page 670 PLCPIC01 to PLCPIC99 4110 – V6.2 Graphic group PLCPIC01 Graphic group PLCPIC02 Graphic group PLCPICxx (to PLCPIC99) 4110 – Vx.y Graphic group PLCPIC01 Graphic group PLCPIC02 Graphic group PLCPICxx (to PLCPIC99) 9 – 10 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 671 Data structure of KonfigPilot 4290 – V6.1 Graphic group PLCPIC01 Graphic group PLCPIC02 Graphic group PLCPICxx (to PLCPIC99) 4290 – Vx.y Graphic group PLCPIC01 Graphic group PLCPIC02 Graphic group PLCPICxx (to PLCPIC99) PLC dialogs—the PLC programmer is responsible for management. Name conventions: any name PLC dialogs “XYZ1”...
  • Page 672 9.3 Configuration Documents Documents KonfigPilot includes the following documents: Config Plan: Not relevant for MANUALplus 4110 Product Plan: includes the components of the update file you assembled in “Transfer” (see “Update—Manual” on page 9–49). Machine Data Document: includes the configuration and parameter settings of the this configuration.
  • Page 673 To open a document, U U U U Press “Document.” U U U U Select the “Product Plan” or “Machine Data Document.” U U U U Press “Open“ and select a document. Note The documents are only for your information. Do not make any changes. U U U U Select the “Product Plan”...
  • Page 674 3. PLC: lists the PLC components you assembled in “Transfer“ Error text: PLC errors and other messages Info text: Not used Picture: PLC images Dialogs: PLC dialogs PLC software: name of PLC program 9 – 14 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 675 Machine data The machine data document comprises the components of the machine document configuration. Excerpt from a machine data document: MACHINE DATA HEIDENHAIN ______________________________________________________________ Arranger : HF/HE1 Date : 08/06/01 File : W:\konfig\maschdat\pcnc62\mplus\doku\BM162400.dok Machine Configuration MM162400 Basic Configuration BM162400 Order no.
  • Page 676 9.4 Duplicating the Configuration Duplicating the HEIDENHAIN recommends that you do not change the supplied basic Configuration configurations. Duplicate the basic configuration. Then change and add to it as required in order to create the machine configuration. To duplicate the configuration, U U U U Press “Machine.“...
  • Page 677 9.5 Support for the PLC Programmer 9.5.1 Writing the PLC error texts. When an error occurs, the PLC software issues an error number. An error text assigned to this number is displayed in the error window (maximum two lines, 58 characters). Note Under “error texts,”...
  • Page 678 Excerpt from a PLC error file: /* PLC error messages */ #N 1 F: No pressure for slide lubrication #N 2 F: Lubrication pressure still on for slide %s . . . 9 – 18 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 679 9.5.2 Creating PLC Messages The PLC can display messages in the PLC window. While doing so, the PLC software transfers control instructions and texts references to the PLC run- time system. The run-time system executes the output. PLC messages must not exceed the size of the PLC window and must be placed completely within the PLC window.
  • Page 680 /* Identifier for PLC message texts */ #N 1015 /* message number */ W: Motor overcurrent auxiliary drives /* Message text */ #N 1016 W: Safety door not locked /* End identifier */ 9 – 20 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 681 9.5.3 Creating PLC Graphics PLC images are created with any program that can save files in .BMP format and stored in the directory of a graphic group (“picture group“). You can also select existing images with KonfigPilot for editing or copying, etc. Then you use KonfigPilot to prepare the images for use in the PLC.
  • Page 682 KonfigPilot asks,“... Do you want to create this group no. ?“ —Confirm with “Yes.” U U U U KonfigPilot creates the new directory and offers a sample file for loading. U U U U Prepare the graphics for this group. 9 – 22 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 683 Resource file In a resource file, a graphic file is assigned a name used by the PLC program to call the respective image. A separate resource file is created for each graphic group. To edit a resource file, U U U U Press “PLC.”...
  • Page 684 9 graphic files. Add further calls, if required. With the “call rs_basis PlcPicxx PlcPic“ control command, the resource compiler is activated for a graphic group. “PlcPic“ is entered as standard output directory. Example of compiler list: 9 – 24 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 685 Compiling PLC Prerequisite: the compiler list has been adapted as required. images During the compilation of the PLC images, they are prepared for use in the control. The image compiler creates the files listed below. They are used in the control or are included in PLC programs.
  • Page 686 Example of “PlcPicxx.def“: 9 – 26 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 687 9.5.4 Creating PLC Dialogs The PLC can display dialog boxes and execute dialogs in the PLC window. Control commands and references are transferred to the PLC run-time system for this purpose. The run-time system executes the displays/the dialog. PLC dialogs must not exceed the size of the PLC window and must be placed completely within the PLC window.
  • Page 688 Other entries in this file are treated as comments. Example: #DIALOG 10 “Parametereinstellung Spindel H“391 323 #LINE “Spannart“ #LINE “Ueberwachung EIN/AUS“ B #LINE “Umschaltposition [mm]“ 100000 #LINE “Spannweg [mm]“ 100000 #DEF_ESC 9 – 28 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 689 The result of “DIALOG 10” is the dialog box “Parametereinstellung Spindel H”: Further examples of dialog box definitions: #DIALOG “#Dialog 1“ #LINE “Bin 1“ B 1 #LINE “Bin 2“ B 10 #LINE “ASCII“ A 20 #LINE “Bin 3“ B 100 1000 #LINE “Comment”...
  • Page 690 The PLC parameter definitions and PLC parameter texts in the standard languages are included with KonfigPilot. If you wish to change parameter structures or texts, HEIDENHAIN recommends leaving the provided files unchanged. After adapting them to your requirements, save the parameter definitions and texts under a new name—but according to the following name...
  • Page 691 U U U U Make changes and additions and save. U U U U The PLC parameters are compiled together with the other machine data (see “Compiling Machine Data” on page 9–36). Press “compile” if you would now like to compile the machine data. Syntax of Parameter numbers begin with 1 (gaps are permitted, but they should not be too large).
  • Page 692 MINULONG MAXULONG Protection class Meaning P_NIX Not protected P_PRG “NC programmer” protection class P_SRV “System manager” protection class P_SYS “Service” protection class ..._N_A Parameter changes not allowed in the automatic operating mode. 9 – 32 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 693 Syntax of the Maximum length for parameter texts: 48 characters parameter texts Maximum length for subparameter texts: 32 characters The extension of the text definition file indicates the language. Example of a parameter and subparameter text definition (file: “Sp_Std.eng”): . . . /* Texts for headings of PLC parameters (max.
  • Page 694 Prerequisite: The parameters have a “K number“ (code “K_N=...“ in the parameter definition). HEIDENHAIN recommends using the parameter file of the machine configuration for adding the respective parameters. This makes orientation easier and reduces the effort required for editing parameters at a later date.
  • Page 695 9.5.7 Saving Parameter Changes (Rec_Para list) The Rec_Para list shows the parameters that are written back to the hard disk after editing. Note The Rec-Para list of the machine configuration includes parameters that are to be written to the hard disk. Add the respective PLC parameters to the existing Rec_Para lists.
  • Page 696 PLC parameters (parameter definitions and parameter texts) NC parameters to the PLC Rec_Para list M function list User cycles Non-configurable with KonfigPilot Parameters—except PLC parameters (parameter definitions and parameter texts) Description of G functions Etc. 9 – 36 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 697 U U U U KonfigPilot compiles all parameter files and the selected “Rec_Para list” of the selected machine configuration. Compiling Machine Data To compile machine data, U U U U Press “Machine.” U U U U „Press “Compile machine configuration.“ U U U U Select the machine configuration.
  • Page 698 Use “Search” to select the machine configuration. If required, define a new directory in “Mark.” U U U U Press “Start”—KonfigPilot generates the ASCII format. U U U U Press “Load”—select the parameter file “Info_xxx.yyy” (“xxx”: language identifier; “yyy”: parameter group). 9 – 38 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 699 Conversion of ASCII If parameters are in ASCII format without text (without parameter to binary designations), add the parameter designations with the following trick: U U U U Convert the parameters to binary format with “ASCII to binary.” U U U U Convert the parameters to ASCII format with “binary to ASCII—extended ASCII format—text only.”...
  • Page 700 Subparameter is visible (is shown in the dialog box) no: Subparameter is not visible PROTECTION: Access permission (protection class) no: No restrictions—access without previous logon NCP: NC programmer KSV: System manager GSV: OEM service SVR: HEIDENHAIN service 9 – 40 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 701 K_TYP: File type in the run-time systems (K level) k_bool: Boolean value k_char: Character (1 byte) k_short: Short integer (2 bytes) k_long: Long integer (4 bytes) k_uchar: Unsigned character (1 byte) k_ushort: Unsigned short integer (2 bytes) k_ulong: Unsigned long integer (4 bytes) k_float: Float k_double: K_N:...
  • Page 702 KonfigPilot compares the parameters in binary format. If the parameters of the configurations to be compared exist only in ASCII format, you can run an ASCII-binary conversion beforehand see “Conversion of ASCII to binary” on page 9–39). 9 – 42 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 703 Change of releases KonfigPilot supports changes of NC software releases with its “Integrate config data into new machine configuration” function. In this function, KonfigPilot takes the following data of the previous machine configuration into the configuration of the new release: All parameters All parameter texts Rec_Para list...
  • Page 704 U U U U Select the previous configuration in “Source.” U U U U Select the new configuration in “Target.” U U U U Press “Start”—KonfigPilot integrates the source configuration into the target configuration. 9 – 44 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 705 9.8 Preparing an Update (Transfer) Sequence of a U U U U Collect the files in “Transfer.” KonfigPilot creates a directory structure identical with that of the control and copies the files into this structure. software update U U U U Use WinZip to generate the update file.
  • Page 706 Press “Start.“ KonfigPilot assembles the update on the target drive— “MP96“ directory. U U U U Using WinZip, generate the update file. see “Generating an Update File by Using WinZip” on page 9–51 9 – 46 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 707 Update of PLC With “PLC“, you assemble the files for the partial update. components Preprocess the update file—Assemble the PLC components as required: U U U U Press “Transfer.“ U U U U Select the “PLC“ menu item. U U U U Select the proper drives for “Source”...
  • Page 708 Please note that the “Standard“ file name is defined in all languages. 9 – 48 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 709 Update—Manual With “Update—Manual,” you can assemble a complete update or a product plan of all components (machine configuration, PLC program and PLC components). To preprocess the update file, U U U U Press “Transfer.” U U U U Press “Update—Manual.” U U U U Select the proper drives for “Source”...
  • Page 710 – “PLC“ directory: PLC program only – “MP96“ directory: Machine configuration and PLC components U U U U Using WinZip, generate the update file. see “Generating an Update File by Using WinZip” on page 9–51 9 – 50 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 711 9.9 Generating an Update File by Using WinZip The update has been preprocessed with the transfer functions and gathered together in the following directories: “PLC“: PLC program “MP96”: Machine configuration and PLC components Using WinZip, you generate the actual update file. Note Be sure to consider all subdirectories when generating the update file.
  • Page 712 – Select “Save extra folder info.” – Enter “*.*” in the “File name” box (this ensures that all files of all folders are considered). U U U U Press “Add with Wildcards.” WinZip creates a zip file. 9 – 52 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 713 U U U U Select “Actions—Make .EXE File.” U U U U Settings: – Press “Browse“ to select the ZIP file you just created. – “C:“ Enter it in the “Default ‘Unzip to’ Directory” box. – Select “32-bit Windows ..” U U U U Press “Make .EXE.”...
  • Page 714 9 – 54 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 715 10 Data Interfaces 10.1 Interfaces and Data Transfer Methods......... 10–3 10.2 Serial Interface ................10–5 10.2.1 Hardware ................. 10–5 10.2.2 Configuration “Without Data Transfer Protocol” ....10–8 10.2.3 Configuration of “Direct Cable Connection” ......10–12 10.3 Ethernet Interface ................ 10–14 10.4 File Types and Directories ............
  • Page 716 10 – 2 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 717 Operating notes: see the User’s Manual. DataPilot As a supplement to the CNC PILOT machine control, HEIDENHAIN offers DataPilot, a PC program. DataPilot has the same programming and test functions as the CNC PILOT. This means that you can create and test NC programs with DataPilot, and then transfer them to your machine control.
  • Page 718 Data backup HEIDENHAIN recommends regular backing-up of the NC programs and operating resource data created on the CNC PILOT. You should also save the parameters. Since parameters are not changed as often, backing them up is only occasionally necessary. After you have configured your machine and set the control parameters, etc., you should definitely make a back-up copy of the...
  • Page 719: Serial Interface

    10.2 Serial Interface 10.2.1 Hardware RS-232-C/V.24 and RS-422-C/V.11 are the designations for the serial interfaces. Data transfer is executed asynchronously, with one start bit before each character, and one or two stop bits after each character. Transmission distance: up to 30 m The physical connection between two interfaces is an asymmetrical line, i.e.
  • Page 720 For all signals: The voltage range from –3 V to +3 V cannot be evaluated. Data signals Control and verification U [V] signal + 15 "0" HIGH SPACE – "1" MARK – 15 10 – 6 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 721 Signal designations One must differentiate between the following types of lines and their signals: Data lines: Transmitted data Received data Control and signal lines: DCD (Data Carrier Detect) – Received signal level: The receiver reports that the data it has received are within a defined level. The DCD signal (pin 8) is not used by the LE.
  • Page 722 Characters per second --------------------------------------- - 1920 1 + 7 + 2 Word length Determine whether a character is transmitted with seven or eight data bits. Standard setting: “Code 1” — 7 bit 10 – 8 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 723 Parity Transmission errors are recognized from the parity bit. The parity bit can take three different forms. No parity: Error recognition is not activated. Even parity: The sender counts bits with a value of one. If the number is odd, the parity bit is set to one, otherwise it is cleared to zero.
  • Page 724 The LE detects that the peripheral device’s receiving buffer is full at the CTS input: Data input from EXT to LE When the receiving buffer is full, the LE removes the RTS signal. This is detected by the peripheral device at its CTS input: 10 – 10 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 725 Software Data transfer is checked through control characters transmitted via the data handshake line. Example: XON/XOFF method with the RS-232-C/V.24 interface The meaning XON is assigned to a control character DC1 and the meaning XOFF to control character DC3. Before transmitting a character, the computer checks whether the receiving unit is transmitting the XOFF character.
  • Page 726 Select Program Files — Accessories — Direct Cable Connection. U U U U Select COM1 or COM2. U U U U Enter the PC as guest computer (the CNC PILOT is entered as host computer). 10 – 12 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 727 Setting the baud rate: U U U U Select “Settings — System — Control Panel.” U U U U Click “Device Manager.” U U U U Under “Modem,” click serial cable/null modem cable on COMx. U U U U Select “modem.” U U U U In “Select maximum speed,”...
  • Page 728: Ethernet Interface

    INS key: Changes the entry in the “Save this password in your password list” text box. RETURN key: Closes the dialog box, saving the changes. ESC key: Closes the dialog without saving any entries or changes. 10 – 14 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 729 “Enter Network Password” dialog box appears after the first access each time the CNC PILOT is started. Note HEIDENHAIN recommends: Letting only authorized personnel configure the Windows networks, and using the automatic log-on feature.
  • Page 730 The passwords are valid for all shared directories. If you do not require a password (blank entry), then all communication partners can access the files. 10 – 16 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 731 Note Define the “Transfer directory” without entering a subdirectory (“Settings …” dialog box). The CNC PILOT adds the last step of the transfer directory, depending on which file type you entered in the mask. If the requested directory does not exist at the communication partner, the CNC PILOT will create the directory.
  • Page 732: Data Formats

    The character “EOT” (hexadecimal 04) marks the end of transfer. Received files are saved under the (transferred) file name. During data reception, the CNC PILOT evaluates the extension, and saves the file to the corresponding directory. 10 – 18 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 733 10.5.2 Structure of NC Part Programs Notes on the structure of NC part programs: Character set, special characters, structure of NC blocks The ASCII character set is used, which means that no umlauts (äöüß) or other special characters (with codes > 127) are permitted. The end of a line is marked with “CR”...
  • Page 734 The subparameter value is followed by a blank space. All of a parameter’s subparameters are output. Only subparameters that are to be changed need to be transferred during input. 10 – 20 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 735 10.5.4 Structure of Operating Resource Files Operating resource data include: Tool data Tool texts Notes on the “external format”: A file consists of n lines. The first line begins with a % character, followed by the file name. The extension identifies the operating resource group (see table). Name of the operating resource group (defined terms): „Werkzeugdaten“...
  • Page 736 If the ID number already exists when inputting the data, the following subparameters overwrite the existing values. If the operating resource is new to the system, a new operating resource data set is created. The subparameters can be transferred in any order. 10 – 22 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 737 Setup of a file with tool data: %filename.extension “Tool data” !Comments . . . /ID number :subparameternumber subparametervalue :subparameternumber subparametervalue . . . /ID number :subparameternumber subparametervalue :subparameternumber subparametervalue . . . End-of-file characters End-of-transfer characters Number Abbrev. Meaning Tool data Tool ID number (“W”...
  • Page 738 “Milling tools” variant Milling cutter diameter Number of teeth It is essential that numbers 0 and 2 (the subparameters “ID number, tool type” be occupied. Other subparameters that are read have an “internal meaning.” 10 – 24 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 739 Example of tool Excerpt from a file with tool data: data %bspwkz.wkz File beginning + file name “Werkzeugdaten” !" BM161410.H " !" 29/01/01 " !" Modular /Rel." !" BM161410.H " /"W1" :0 "W1" :1 "011" :2 1 :10 65.0 :12 48.0 :16 195.0 :17 0.40 :29 0.0...
  • Page 740 10 – 26 HEIDENHAIN Technical Manual MANUALplus 4110...
  • Page 741 11 Index Access authorization (operational authorization) ........6 – 7 Accessories..................... 3 – 63 ADD STRING (+) ................... 7 – 146 Analog Inputs ..................3 – 42 Analog speed command interface ............2 – 4 AND (A) ....................7 – 93 AND NOT (AN) ..................
  • Page 742 EQUAL TO (==) ..................7 – 111 EQUAL TO STRING (==)............... 7 – 149 Error causes, compiler ................7 – 66 Error causes, debug functions ..............7 – 70 Error causes, installation ................. 7 – 65 11 – 2 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 743 Error, instruction ..................7 – 46 Exact stop, block enabling ..............6 – 75 EXCLUSIVE OR (XO) ................7 – 101 EXCLUSIVE OR NOT (XON) ..............7 – 103 Expansion code for spindles ..............6 – 41 Expansion stage code of C axis .............. 6 – 24 Expansion stage code of linear axis ............
  • Page 744 MULTIPLICATION (X) ................7 – 107 Networks Data transfer methods..............6 – 7 NOT EQUAL ()..................7 – 116 NOT EQUAL TO STRING () ..............7 – 150 Number conversion................7 – 152 11 – 4 HEIDENHAIN Technical Manual for MANUALplus 4110...
  • Page 745 Operand arithmetic ................. 7 – 35 Operand assignment, address range ............7 – 40 Operand comments, compiler option ............. 7 – 30 Operators, logical ..................7 – 44 OR (O) ..................... 7 – 97 OR NOT (ON) ..................7 – 99 Oscilloscope................
  • Page 746 Units of measure .................. 6 – 122 User interface ..................7 – 11 User-defined functions................7 – 62 USES instruction ................... 7 – 163 WHILE...ENDW..................7 – 161 Window settings..................7 – 16 11 – 6 HEIDENHAIN Technical Manual for MANUALplus 4110...