Navigation

  • Page 1

    Programming Guide 11/2002 EditionAdvancedSINUMERIK 840D/840Di/810D

  • Page 2

  • Page 3

    SINUMERIK 840D/840Di/810D11.02 EditionProgramming GuideFlexible NCProgramming1Subprograms, Macros2File and ProgramManagement3Protection Zones4Special MotionCommands5Frames6Transformations7Tool Offsets8Path TraversingBehavior9Motion-SynchronousAction10Oscillation11Punching and Nibbling12Additional...

  • Page 4

    SINUMERIK® DocumentationPrinting historyBrief details of this edition and previous editions are listed below.The status of each edition is shown by the code in the "Remarks" column.Status code in the "Remarks" column:A ....New documentation.B ....Unrevised reprint with new Or...

  • Page 5

    © Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0-50 11.02Contents0ContentsPreface0-14Flexible NC Programming1-251.1Variable and arithmetic parameters .................................................................................

  • Page 6

    © Siemens AG, 2002. All rights reserved0-6SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0 Contents11.020Subprograms, Macros2-1012.1Using subprograms .......................................................................................................2-1022.2Subpro...

  • Page 7

    © Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0-70 11.02Contents0Protection Zones4-1754.1Defining the protection zones CPROTDEF, NPROTDEF ............................................ 4-1764.2Activating/deactivating protection z...

  • Page 8

    © Siemens AG, 2002. All rights reserved0-8SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0 Contents11.0207.1.5Cartesian PTP travel (from SW 5.2) ......................................................................7-2797.1.6Online tool length compensation (SW 6.4 an...

  • Page 9

    © Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0-90 11.02Contents0Motion-Synchronous Action10-39310.1 Structure, basic information ....................................................................................... 10-39510....

  • Page 10

    © Siemens AG, 2002. All rights reserved0-10SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0 Contents11.02010.5 Technology cycles ......................................................................................................10-44510.5.1Lock, unlock, reset: LOC...

  • Page 11

    © Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0-110 11.02Contents013.6.8Drive-independent retract .................................................................................... 13-52113.6.9Example: Using the drive-indepen...

  • Page 12

    © Siemens AG, 2002. All rights reserved0-12SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0 Contents11.02015.2.14 Magazine description data for tool management .................................................15-62415.2.15 Tool management magazine description data fo...

  • Page 13

    © Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0-130 11.02Contents015.2.58 Synchronized spindle ........................................................................................... 15-69315.2.59 Safety Integrated............

  • Page 14

    © Siemens AG, 2002. All rights reserved0-14SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0 Preface11.02Structure of documentation0PrefaceOverview of documentationThe SINUMERIK documentation is organized in threeparts:• General Documentation• User Documentation...

  • Page 15

    © Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0-150 11.02PrefaceStructure of documentation0ValidityThis Programming Guide is valid for the followingcontrols:SINUMERIK 840DSW6SINUMERIK 840DE (export version)SW6SINUMERIK 840DiSW2...

  • Page 16

    © Siemens AG, 2002. All rights reserved0-16SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0 Preface11.02Structure of documentation0HotlineShould you have any questions, please consult the following Hotline:A&D Technical Support Tel.: ++49-(0)180-5050-222Fax: ++49...

  • Page 17

    © Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0-170 11.02PrefaceStructure of documentation0Structure of the descriptionsAll cycles and programming options have beendescribed – where appropriate and possible – accordingto th...

  • Page 18

    © Siemens AG, 2002. All rights reserved0-18SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0 Preface11.02Structure of documentation02. Detailed explanationsThe theory part contains detailed information on thefollowing:What is the purpose of the command?What is the eff...

  • Page 19

    © Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0-190 11.02PrefaceStructure of documentation0Explanation of the symbolsSequence of operationsExplanationFunctionParametersProgramming exampleProgrammingAdditional notesCross-referen...

  • Page 20

    © Siemens AG, 2002. All rights reserved0-20SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0 Preface11.02Structure of documentation0For your informationYour SINUMERIK 840D/840Di/810D is state of the artand is manufactured in accordance with recognizedsafety regulation...

  • Page 21

    © Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0-210 11.02PrefaceStructure of documentation0ServiceOnly qualified personnel specifically trained for thispurpose should be allowed to perform repairs, and onlyin accordance with th...

  • Page 22

    © Siemens AG, 2002. All rights reserved0-22SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0 Preface11.02Structure of documentation0The following notes used in the documentation have aspecial significance:NotesThis symbol always appears in the documentation ifsecondar...

  • Page 23

    © Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0-230 11.02PrefaceStructure of documentation0NoticeUsed without the safety alert symbol indicates apotential situation which, if not avoided, may result in anundesirable result or s...

  • Page 24

    © Siemens AG, 2002. All rights reserved0-24SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition0 Preface11.02Structure of documentation0

  • Page 25

    1 11.02Flexible NC Programming1 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-25Flexible NC Programming1.1Variable and arithmetic parameters ................................................................................ 1-2...

  • Page 26

    1 Flexible NC Programming11.021.1Variable and arithmetic parameters1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-26SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1.1Variable and arithmetic parametersFunctionUsing variables in place ...

  • Page 27

    1 11.02Flexible NC Programming1.1Variable and arithmetic parameters1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-27Variable typesTypeMeaningValue rangeINTIntegers with sign±(231 - 1)RE...

  • Page 28

    1 Flexible NC Programming11.021.1Variable and arithmetic parameters1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-28SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionSpecial identifiers of system variables always beginwith a "$&quo...

  • Page 29

    1 11.02Flexible NC Programming1.2Variable definition1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-291.2Variable definitionUser-defined variablesThe programmer can define and assign valu...

  • Page 30

    1 Flexible NC Programming11.021.2Variable definition1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-30SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition...IF (VAR1==1);Read PUD VAR1=VAR1+1;Read & write PUD VAR2=1;Error: LUD from ...

  • Page 31

    1 11.02Flexible NC Programming1.2Variable definition1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-31If a variable is not assigned a value on definition, thesystem sets zero as the defau...

  • Page 32

    1 Flexible NC Programming11.021.2Variable definition1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-32SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionVariable type BOOLDEF BOOL IF_TOO_MUCHThis creates a variable of type BOOL withthe na...

  • Page 33

    1 11.02Flexible NC Programming1.2Variable definition1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-33Additional notesA variable of type AXIS can contain an axis identifierand a spindle i...

  • Page 34

    1 Flexible NC Programming11.021.3Array definition1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-34SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1.3Array definitionProgrammingDEF CHAR NAME[n,m]DEF INT NAME[n,m]DEF REAL NAME[n,m]DEF A...

  • Page 35

    1 11.02Flexible NC Programming1.3Array definition1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-35SW 4 and higher:An array can be larger than a memory block. TheMD value for block size s...

  • Page 36

    1 Flexible NC Programming11.021.3Array definition1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-36SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIn the above example, the values have beeninitialized to double as the index of the arra...

  • Page 37

    1 11.02Flexible NC Programming1.3Array definition1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-372. Initializing during the program runARRAY[n,m]= SET(value, value, value,…)ARRAY[n,m...

  • Page 38

    1 Flexible NC Programming11.021.3Array definition1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-38SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionInitialization with the same values, REP1. Initializing in the array definitionDEF Type...

  • Page 39

    1 11.02Flexible NC Programming1.3Array definition1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-39 Programming example Initialization of complete variable arrays. The current assignme...

  • Page 40

    1 Flexible NC Programming11.021.4Indirect programming1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-40SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 1.4Indirect programming Indirect programming permits general-purpose useof progra...

  • Page 41

    1 11.02Flexible NC Programming1.4Indirect programming1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-41Array elementDEF INT FELD1[4,5]Direct programmingDEFINE DIM1 AS 4DEFINE DIM2 AS 5DEF...

  • Page 42

    1 Flexible NC Programming11.021.4Indirect programming1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-42SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Indirect G code programming from SW 5 G[<Group index>] = <integer/real v...

  • Page 43

    1 11.02Flexible NC Programming1.4Indirect programming1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-43Programming exampleIndirect G code programming; Settable zero offset G code group 8N...

  • Page 44

    1 Flexible NC Programming11.021.4Indirect programming1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-44SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Run string as parts program line EXECSTRING (<string variable>) Command ...

  • Page 45

    1 11.02Flexible NC Programming1.5Assignments1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-451.5AssignmentsValues of a suitable type can be assigned to thevariables/arithmetic parameters...

  • Page 46

    1 Flexible NC Programming11.021.6Arithmetic operations and functions1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-46SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1.6Arithmetic operations and functionsThe arithmetic functions are pr...

  • Page 47

    1 11.02Flexible NC Programming1.6Arithmetic operations and functions1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-47CSCALE()ScalingCMIRROR()MirroringProgramming examplesR1=R1+1New R1 = ...

  • Page 48

    1 Flexible NC Programming11.021.7Comparison and logic operators1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-48SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1.7Comparison and logic operatorsComparison operatorsThe comparison operat...

  • Page 49

    1 11.02Flexible NC Programming1.7Comparison and logic operators1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-49 Precision correction on comparison errors TRUNC (R1*1000) The TRUNC ...

  • Page 50

    1 Flexible NC Programming11.021.7Comparison and logic operators1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-50SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionSynchronized actionsThe response described for the comparisoncommands also...

  • Page 51

    1 11.02Flexible NC Programming1.7Comparison and logic operators1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-51Logic operatorsLogic operators are used to link truth values.AND, OR, NOT,...

  • Page 52

    1 Flexible NC Programming11.021.7Comparison and logic operators1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-52SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionBit logic operatorsLogic operations can also be applied to single bits oft...

  • Page 53

    1 11.02Flexible NC Programming1.8Priority of operators1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-531.8Priority of operatorsPriority of the operatorsEach operator is assigned a priori...

  • Page 54

    1 Flexible NC Programming11.021.9Possible type conversions1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-54SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1.9Possible type conversionsType conversion on assignmentThe constant numeric v...

  • Page 55

    1 11.02Flexible NC Programming1.10 String operations1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-551.10String operationsOverviewFurther string manipulations are provided in addition to...

  • Page 56

    1 Flexible NC Programming11.021.10 String operations1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-56SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionSpecial meaning of the 0 charThe 0 char is interpreted internally end-of-string.Repla...

  • Page 57

    1 11.02Flexible NC Programming1.10 String operations1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-57Conversion from STRINGThe NUMBER function converts from STRING toREAL.If ISNUMBER ret...

  • Page 58

    1 Flexible NC Programming11.021.10 String operations1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-58SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1.10.2 Concatenation of stringsThis functionality puts a string together out ofsepara...

  • Page 59

    1 11.02Flexible NC Programming1.10 String operations1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-59The intermediate results of string concatenationmust not exceed the maximum string le...

  • Page 60

    1 Flexible NC Programming11.021.10 String operations1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-60SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1.10.4 Length of the stringThis functionality sets the length of a string.Syntax:INT_...

  • Page 61

    1 11.02Flexible NC Programming1.10 String operations1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-61INDEXsearches for the character specified as the second parameter in the string speci...

  • Page 62

    1 Flexible NC Programming11.021.10 String operations1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-62SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1.10.6 Selection of a substringThis functionality extracts a substring from a string....

  • Page 63

    1 11.02Flexible NC Programming1.10 String operations1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-631.10.7 Selection of a single characterThis functionality selects a single character f...

  • Page 64

    1 Flexible NC Programming11.021.10 String operations1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-64SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionSingle character access is possible only to user-defined variables (LUD, GUD, and PUD...

  • Page 65

    1 11.02Flexible NC Programming1.11 CASE instruction1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-65 1.11 CASE instructionProgrammingCASE (expression) OF constant1 GOTOF LABEL1 … DEFAU...

  • Page 66

    1 Flexible NC Programming11.021.11 CASE instruction1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-66SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIn cases where the constant matches none of thepredefined values, the DEFAULT instruct...

  • Page 67

    1 11.02Flexible NC Programming1.12 Control structures1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-671.12Control structuresExplanationIF–ELSE–ENDIFSelection between 2 alternativesLO...

  • Page 68

    1 Flexible NC Programming11.021.12 Control structures1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-68SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2. Endless program loop LOOPEndless loops are used in endless programs. At theend o...

  • Page 69

    1 11.02Flexible NC Programming1.12 Control structures1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-695. Program loop with condition at end of loopREPEATThe REPEAT loop is executed once...

  • Page 70

    1 Flexible NC Programming11.021.12 Control structures1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-70SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionSupplementary conditionsBlocks with check structure elements cannot besuppressed. La...

  • Page 71

    1 11.02Flexible NC Programming1.12 Control structures1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-71ENDWHILEZ10ELSE;Block searchMSG("No drilling during block search")ENDIF$A_...

  • Page 72

    1 Flexible NC Programming11.021.13 Program coordination1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-72SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1.13Program coordinationChannelsA channel can process its own programindependently...

  • Page 73

    1 11.02Flexible NC Programming1.13 Program coordination1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-73Instructions for program coordination• Specification with absolute path INIT (...

  • Page 74

    1 Flexible NC Programming11.021.13 Program coordination1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-74SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition WAITMC(Marker No., n, n, …) Sets the marker "Marker No." in the sa...

  • Page 75

    1 11.02Flexible NC Programming1.13 Program coordination1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-75 Example: Channel called "MACHINE" is to containchannel number 1, Chan...

  • Page 76

    1 Flexible NC Programming11.021.13 Program coordination1840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved1-76SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition N10N10N11........................START(2)START(2)M1M2N80WAITM(1,1,2)N180WAITM(...

  • Page 77

    1 11.02Flexible NC Programming1.14 Interrupt routine 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-77 1.14Interrupt routine Programming SETINT(3) PRIO=1 ...

  • Page 78

    1 Flexible NC Programming11.02 1.14 Interrupt routine 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-78SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Sequence Create interrupt routine The interrupt r...

  • Page 79

    1 11.02Flexible NC Programming1.14 Interrupt routine 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-79 Assign and start interrupt routine The control has ...

  • Page 80

    1 Flexible NC Programming11.02 1.14 Interrupt routine 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-80SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition The input/routine assignment is retained withDISAB...

  • Page 81

    1 11.02Flexible NC Programming1.14 Interrupt routine 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-81 • The asynchronized subprogram "LIFT-Z" ...

  • Page 82

    1 Flexible NC Programming11.02 1.14 Interrupt routine 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-82SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Reference plane for describing the traversing dire...

  • Page 83

    1 11.02Flexible NC Programming1.14 Interrupt routine 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-83 Retraction movement in SW 4.3 and higher The direct...

  • Page 84

    1 Flexible NC Programming11.02 1.14 Interrupt routine 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-84SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgramming exampleIn this example, a broken tool is ...

  • Page 85

    1 11.02Flexible NC Programming1.15 Axis transfer, spindle transfer 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-851.15Axis transfer, spindle transferExpla...

  • Page 86

    1 Flexible NC Programming11.02 1.15 Axis transfer, spindle transfer 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-86SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionRelease axis: RELEASEWhen enabling the ...

  • Page 87

    1 11.02Flexible NC Programming1.15 Axis transfer, spindle transfer 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-87 Axis transfer without synchronization...

  • Page 88

    1 Flexible NC Programming11.02 1.15 Axis transfer, spindle transfer 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-88SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming example Of the 6 axes...

  • Page 89

    1 11.02Flexible NC Programming1.15 Axis transfer, spindle transfer 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-89 Set up variable axis transfer respons...

  • Page 90

    1 Flexible NC Programming11.02 1.16 NEWCONF: Setting machine data active (SW 4.3 and higher) 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-90SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 1.16NEWCONF: ...

  • Page 91

    1 11.02Flexible NC Programming1.17 WRITE: Write file (SW 4.3 and higher) 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-91 1.17WRITE: Write file (SW 4.3 and...

  • Page 92

    1 Flexible NC Programming11.02 1.17 WRITE: Write file (SW 4.3 and higher) 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-92SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Function Using the WRITE comma...

  • Page 93

    1 11.02Flexible NC Programming1.18 DELETE: Delete file (SW 4.3 and higher) 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-93 • If a file with the same na...

  • Page 94

    1 Flexible NC Programming11.02 1.19 READ: Read lines in file (SW 5.2 and higher) 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-94SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionExample:PROTFILE_N_PROTFIL...

  • Page 95

    1 11.02Flexible NC Programming 1.19 READ: Read lines in file (SW 5.2 and higher) 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-95Explanation of the paramet...

  • Page 96

    1 Flexible NC Programming11.02 1.19 READ: Read lines in file (SW 5.2 and higher) 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-96SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionFunctionOne or several lin...

  • Page 97

    1 11.02Flexible NC Programming 1.20 ISFILE: File available in user memory NCK (SW 5.2 and higher) 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-97...N30 RE...

  • Page 98

    1 Flexible NC Programming11.02 1.21 CHECKSUM: Creation of a checksum over an array 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-98SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgramming exampleN10 D...

  • Page 99

    1 11.02Flexible NC Programming 1.21 CHECKSUM: Creation of a checksum over an array 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition1-99arrayNumber of the array...

  • Page 100

    1 Flexible NC Programming11.02 1.21 CHECKSUM: Creation of a checksum over an array 1 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved1-100SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition

  • Page 101

    2 11.02Subprograms, Macros2 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-101Subprograms, Macros2.1Using subprograms ...................................................................................................... 2-102...

  • Page 102

    2 Subprograms, Macros11.022.1 Using subprograms2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-102SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2.1Using subprogramsWhat is a subprogram?In principle, a subprogram has the same structur...

  • Page 103

    2 11.02Subprograms, Macros2.1 Using subprograms2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-103Nesting depthNesting of subprogramsA subprogram can itself contain subprogram calls.The s...

  • Page 104

    2 Subprograms, Macros11.022.2 Subprogram with SAVE mechanism2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-104SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2.2Subprogram with SAVE mechanismFunctionFor this, specify the additional co...

  • Page 105

    2 11.02Subprograms, Macros2.3 Subprograms with parameter transfer2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-1052.3Subprograms with parameter transferProgram start, PROCA subprogram t...

  • Page 106

    2 Subprograms, Macros11.022.3 Subprograms with parameter transfer2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-106SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionExample:N10 DEF REAL LENGTH,WIDTHN20 LENGTH=12 WIDTH=10N30 BORDER(LENGT...

  • Page 107

    2 11.02Subprograms, Macros2.3 Subprograms with parameter transfer2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-107ProgrammingThe parameters relevant for parameter transfer must belisted...

  • Page 108

    2 Subprograms, Macros11.022.3 Subprograms with parameter transfer2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-108SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionArray definitionThe following applies to the definition of the formalpa...

  • Page 109

    2 11.02Subprograms, Macros2.4 Calling subprograms: L or EXTERN2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-1092.4Calling subprograms: L or EXTERNSubprogram callwithout parameter transf...

  • Page 110

    2 Subprograms, Macros11.022.4 Calling subprograms: L or EXTERN2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-110SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionSubprogram call with parameter transferIn the main program you call the su...

  • Page 111

    2 11.02Subprograms, Macros2.4 Calling subprograms: L or EXTERN2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-111Incomplete parameter transferIn a subprogram call only mandatory values an...

  • Page 112

    2 Subprograms, Macros11.022.4 Calling subprograms: L or EXTERN2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-112SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Example: Subprogram PROC SUB1 (INT VAR1, DOUBLE VAR2) IF $P_SUBPAR[1]=...

  • Page 113

    2 11.02Subprograms, Macros2.5 Parameterizable subprogram return (SW 6.4 and higher)2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-1132.5Parameterizable subprogram return (SW 6.4 and high...

  • Page 114

    2 Subprograms, Macros11.022.5 Parameterizable subprogram return (SW 6.4 and higher)2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-114SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionFunctionUsually, a RET or M17 end of subprogram retur...

  • Page 115

    2 11.02Subprograms, Macros2.5 Parameterizable subprogram return (SW 6.4 and higher)2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-115 2. <block after block with block number/label>...

  • Page 116

    2 Subprograms, Macros11.022.5 Parameterizable subprogram return (SW 6.4 and higher)2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-116SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionImpermissible return levelsProgramming a number of re...

  • Page 117

    2 11.02Subprograms, Macros2.6 Subprogram with program repetition: P2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-117 2.6Subprogram with program repetition: P Program repetition, P If ...

  • Page 118

    2 Subprograms, Macros11.022.7 Modal subprogram: MCALL2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-118SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 2.7Modal subprogram: MCALL Modal subprogram call, MCALL With this function the s...

  • Page 119

    2 11.02Subprograms, Macros2.8 Calling the subprogram indirectly: CALL2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-119 2.8Calling the subprogram indirectly: CALLProgramming CALL <p...

  • Page 120

    2 Subprograms, Macros11.022.9 Repeating program sections with indirect programming2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-120SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 2.9Repeating program sections with indirect programmi...

  • Page 121

    2 11.02Subprograms, Macros2.10 Calling up a program in ISO language indirectly: ISOCALL2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-121 2.10Calling up a program in ISO language indirec...

  • Page 122

    2 Subprograms, Macros11.022.11 Calling subprogram with path specification and param. PCALL2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-122SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 2.11 Calling subprogram with path specificati...

  • Page 123

    2 11.02Subprograms, Macros2.12 Extending a search path for subprogram calls with CALLPATH2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-123 2.12Extending a search path for subprogram cal...

  • Page 124

    2 Subprograms, Macros11.022.12 Extending a search path for subprogram calls with CALLPATH2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-124SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Example: CALLPATH ("/_N_WKS_DIR/_N_MYWP...

  • Page 125

    2 11.02Subprograms, Macros2.13 Suppress current block display: DISPLOF2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-125 2.13Suppress current block display: DISPLOF Programming PROC ...

  • Page 126

    2 Subprograms, Macros11.02 2.14 Single block suppression: SBLOF, SBLON (SW 4.3 and higher) 2 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved2-126SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 2.14Single blo...

  • Page 127

    2 11.02Subprograms, Macros 2.14 Single block suppression: SBLOF, SBLON (SW 4.3 and higher) 2 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-127 Single block...

  • Page 128

    2 Subprograms, Macros11.02 2.14 Single block suppression: SBLOF, SBLON (SW 4.3 and higher) 2 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved2-128SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Supplementar...

  • Page 129

    2 11.02Subprograms, Macros 2.14 Single block suppression: SBLOF, SBLON (SW 4.3 and higher) 2 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-129 Programming ...

  • Page 130

    2 Subprograms, Macros11.02 2.14 Single block suppression: SBLOF, SBLON (SW 4.3 and higher) 2 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved2-130SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming ...

  • Page 131

    2 11.02Subprograms, Macros 2.14 Single block suppression: SBLOF, SBLON (SW 4.3 and higher) 2 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-131 Programming ...

  • Page 132

    2 Subprograms, Macros11.022.15 Executing external subprogram: EXTCALL (SW 4.2 and higher)2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-132SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2.15Executing external subprogram: EXTCALL (SW ...

  • Page 133

    2 11.02Subprograms, Macros2.15 Executing external subprogram: EXTCALL (SW 4.2 and higher)2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-133 result in the program path for the externalsu...

  • Page 134

    2 Subprograms, Macros11.022.15 Executing external subprogram: EXTCALL (SW 4.2 and higher)2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-134SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgramming examples1. The program to be reload...

  • Page 135

    2 11.02Subprograms, Macros2.15 Executing external subprogram: EXTCALL (SW 4.2 and higher)2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-135Additional notesExternal subprograms are not pe...

  • Page 136

    2 Subprograms, Macros11.022.16 Subprogram call with M/T function2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-136SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2.16Subprogram call with M/T functionFunctionThe T/M function can be rep...

  • Page 137

    2 11.02Subprograms, Macros2.16 Subprogram call with M/T function2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-137Associated subprogram TC_UP_T:N310 PROC TC_UP_T...N330 IF $C_T_PROG == 1...

  • Page 138

    2 Subprograms, Macros11.022.17 Cycles: Setting parameters for user cycles2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-138SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2.17Cycles: Setting parameters for user cyclesFiles and pathsEx...

  • Page 139

    2 11.02Subprograms, Macros2.17 Cycles: Setting parameters for user cycles2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-139For each newly added cycle a line must be addedwith the followi...

  • Page 140

    2 Subprograms, Macros11.022.17 Cycles: Setting parameters for user cycles2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-140SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionAssociated file uc.com%_N_UC_COM;$PATH=/_N_CUS_DIR//C25(MY_CYCL...

  • Page 141

    2 11.02Subprograms, Macros2.17 Cycles: Setting parameters for user cycles2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-141Line for description for each parameter:(<data type identifi...

  • Page 142

    2 Subprograms, Macros11.022.18 Macros. DEFINE...AS2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-142SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionDisplay example for both cyclesDisplay screen for cycle MY_CYCLE_1Parameter 2 of the c...

  • Page 143

    2 11.02Subprograms, Macros2.18 Macros. DEFINE...AS2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition2-143 Programming Macros are identified with the vocabulary wordDEFINE...AS. The macro de...

  • Page 144

    2 Subprograms, Macros11.022.18 Macros. DEFINE...AS2840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved2-144SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming example Example of macro definitions. DEFINE M6 AS L6 A subroutine i...

  • Page 145

    3 11.02File and Program Management3© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-145File and Program Management3.1Overview .........................................................................................................

  • Page 146

    3 File and Program Management11.023.1 Overview3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-146SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3.1OverviewMemory structureThe memory structure available to the user isorganized in two ar...

  • Page 147

    3 11.02File and Program Management3.2 Program memory3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-1473.2Program memoryOverviewMain programs and subprograms are stored in themain memory. ...

  • Page 148

    3 File and Program Management11.023.2 Program memory3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-148SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionDirectoriesThe following directories exist by default:1. _N_DEF_DIRData modules and m...

  • Page 149

    3 11.02File and Program Management3.2 Program memory3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-149Workpiece directory, _N_WCS_DIRThe workpiece directory exists in the standard setupof...

  • Page 150

    3 File and Program Management11.023.2 Program memory3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-150SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionCreating workpiece directories on an external PCThe steps described below are perform...

  • Page 151

    3 11.02File and Program Management3.2 Program memory3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-151Select workpiece for machiningA workpiece directory can be selected for executionin a...

  • Page 152

    3 File and Program Management11.023.2 Program memory3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-152SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgramming search paths for subprogram call(as from SW 6.4)CALLPATH commandThe searc...

  • Page 153

    3 11.02File and Program Management3.3 User memory3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-1533.3User memoryInitialization programsThese are programs with which the working memorydat...

  • Page 154

    3 File and Program Management11.023.3 User memory3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-154SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionGenerating an initialization program on anexternal PCThe data area identifier and the da...

  • Page 155

    3 11.02File and Program Management3.3 User memory3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-155Procedure for multi-channel controlsCHANDATA (channel number) for several channelsis onl...

  • Page 156

    3 File and Program Management11.023.4 Defining user data3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-156SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3.4Defining user dataFunctionDefinition of user data (GUD) implemented duringstar...

  • Page 157

    3 11.02File and Program Management3.4 Defining user data3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-157Defining user data (GUD)1. Save module _N_INITIAL_INI.2. Creating a definition ...

  • Page 158

    3 File and Program Management11.023.4 Defining user data3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-158SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionNameVariable name[.., ...]Optional run limits for array variablesValueOptional pr...

  • Page 159

    3 11.02File and Program Management3.4 Defining user data3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-1594. Activating definition files• SW 4 and lowerBefore read-in of the _N_INITIAL_...

  • Page 160

    3 File and Program Management11.023.5 Defining protection levels for user data (GUD)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-160SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3.5Defining protection levels for user data (GUD)Prog...

  • Page 161

    3 11.02File and Program Management3.5 Defining protection levels for user data (GUD)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-161FunctionAccess criteria can be defined for GUD module...

  • Page 162

    3 File and Program Management11.023.6 Automatic activation of GUDs and MACs (SW 4.4 and higher)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-162SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionSequenceThe access protection level is pro...

  • Page 163

    3 11.02File and Program Management3.6 Automatic activation of GUDs and MACs (SW 4.4 and higher)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-163Example:"Do you want to activate the ...

  • Page 164

    3 File and Program Management11.023.7 Data-specific protection level change for machine and setting data3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-164SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionAdditional notes (MMC 103)If ther...

  • Page 165

    3 11.02File and Program Management3.8 Changing attributes of NC language elements (SW 6.4 and higher)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-165Programming exampleChanging rights i...

  • Page 166

    3 File and Program Management11.023.8 Changing attributes of NC language elements (SW 6.4 and higher)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-166SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgrammingREDEF NC language element...

  • Page 167

    3 11.02File and Program Management3.8 Changing attributes of NC language elements (SW 6.4 and higher)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-167ValueOptional parameters for attribu...

  • Page 168

    3 File and Program Management11.023.8 Changing attributes of NC language elements (SW 6.4 and higher)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-168SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionMeanings of the attributesINIPOINIt ...

  • Page 169

    3 11.02File and Program Management3.8 Changing attributes of NC language elements (SW 6.4 and higher)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-169PRLOCOnly program-local changeIf the...

  • Page 170

    3 File and Program Management11.023.8 Changing attributes of NC language elements (SW 6.4 and higher)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-170SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionDEF NCK INT _MYGUS[10,10]REDEF _MYGU...

  • Page 171

    3 11.02File and Program Management3.8 Changing attributes of NC languageelements (SW 6.4 and higher)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-171Programming example 1Reset behavior w...

  • Page 172

    3 File and Program Management11.023.8 Changing attributes of NC language elements (SW 6.4 and higher)3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-172SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgrammable setting dataThe followi...

  • Page 173

    3 11.02File and Program Management3.9 Structuring instruction SEFORM in the Step editor3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-1733.9Structuring instruction SEFORM in the Step edit...

  • Page 174

    3 File and Program Management11.023.9 Structuring instruction SEFORM in the Step editor3840DNCU 571840DNCU 572NCU 573810D840Di© Siemens AG, 2002. All rights reserved3-174SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Additional notes• The SEFORM instructions are ...

  • Page 175

    4 11.02Protection Zones4 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition4-175Protection Zones4.1Defining the protection zones CPROTDEF, NPROTDEF ............................................. 4-1764.2Activating/deactivating prote...

  • Page 176

    4 Protection Zones11.024.1 Defining the protection zones CPROTDEF, NPROTDEF4840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved4-176SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition4.1Defining the protection zones CPROTDEF, NPROTDEFProgrammin...

  • Page 177

    4 11.02Protection Zones4.1 Defining the protection zones CPROTDEF, NPROTDEF4840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition4-177FunctionYou can use protection zones to protect variouselemen...

  • Page 178

    4 Protection Zones11.024.1 Defining the protection zones CPROTDEF, NPROTDEF4840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved4-178SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Reference point for contour description The workpiece-ori...

  • Page 179

    4 11.02Protection Zones4.1 Defining the protection zones CPROTDEF, NPROTDEF4840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition4-179 If a full circle describes the protection zone, it mustbe ...

  • Page 180

    4 Protection Zones11.024.2 Activating/deactivating protection zones: CPROT, NPROT4840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved4-180SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 4.2Activating/deactivating protection zones: CPROT, NP...

  • Page 181

    4 11.02Protection Zones4.2 Activating/deactivating protection zones: CPROT, NPROT4840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition4-181 Sequence Activation status A protection zone is gen...

  • Page 182

    4 Protection Zones11.024.2 Activating/deactivating protection zones: CPROT, NPROT4840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved4-182SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Multiple activation of protection zones A protectio...

  • Page 183

    4 11.02Protection Zones4.2 Activating/deactivating protection zones: CPROT, NPROT4840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition4-183DEF INT PROTECTBDefinition of an auxiliary variableDefi...

  • Page 184

    4 Protection Zones11.024.2 Activating/deactivating protection zones: CPROT, NPROT4840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved4-184SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionNotes

  • Page 185

    5 11.02Special Motion Commands5 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-185Special Motion Commands5.1Approaching coded positions, CAC, CIC, CDC, CACP, CACN ................................... 5-1865.2Spline interpolatio...

  • Page 186

    5 Special Motion Commands11.025.1 Approaching coded positions, CAC, CIC, CDC, CACP, CACN5840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved5-186SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5.1Approaching coded positions, CAC, CIC, CDC, C...

  • Page 187

    5 11.02Special Motion Commands5.2 Spline interpolation5840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-1875.2Spline interpolationIntroductionThe spline interpolation function can be used t...

  • Page 188

    5 Special Motion Commands11.02 5.2 Spline interpolation 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-188SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Additional notes A, B and C splines are modally...

  • Page 189

    5 11.02Special Motion Commands5.2 Spline interpolation 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-189 B SPLINE With a B spline, the programmed posit...

  • Page 190

    5 Special Motion Commands11.02 5.2 Spline interpolation 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-190SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Distance between nodes: Node distances are app...

  • Page 191

    5 11.02Special Motion Commands5.2 Spline interpolation 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-191 Supplementary conditions The following supple...

  • Page 192

    5 Special Motion Commands11.02 5.2 Spline interpolation 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-192SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Example C spline, zero curvature at start and ...

  • Page 193

    5 11.02Special Motion Commands5.2 Spline interpolation 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-193 What does which spline do? Comparison of thr...

  • Page 194

    5 Special Motion Commands11.02 5.2 Spline interpolation 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-194SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming SPLINEPATH(n,X,Y,Z,…) Expla...

  • Page 195

    5 11.02Special Motion Commands5.2 Spline interpolation 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-195 Settings for splines The G codes ASPLINE, BSPL...

  • Page 196

    5 Special Motion Commands11.02 5.3 Compressor COMPON/COMPCURV/COMPCAD (SW 6.2) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-196SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 5.3Compressor COMPON/COMPC...

  • Page 197

    5 11.02Special Motion Commands 5.3 Compressor COMPON/COMPCURV/COMPCAD (SW 6.2) 5 840 DNCU 571 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-197 • The number of bloc...

  • Page 198

    5 Special Motion Commands11.02 5.3 Compressor COMPON/COMPCURV/COMPCAD (SW 6.2) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-198SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA large circle interpolatio...

  • Page 199

    5 11.02Special Motion Commands 5.3 Compressor COMPON/COMPCURV/COMPCAD (SW 6.2) 5 840 DNCU 571 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-199AccuracyYou can compress...

  • Page 200

    5 Special Motion Commands11.02 5.3 Compressor COMPON/COMPCURV/COMPCAD (SW 6.2) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-200SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionActivationYou can activate ...

  • Page 201

    5 11.02Special Motion Commands 5.3 Compressor COMPON/COMPCURV/COMPCAD (SW 6.2) 5 840 DNCU 571 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-201 As a rule, CAD/CAM sy...

  • Page 202

    5 Special Motion Commands11.02 5.3 Compressor COMPON/COMPCURV/COMPCAD (SW 6.2) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-202SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Example COMPON N10 CO...

  • Page 203

    5 11.02Special Motion Commands 5.3 Compressor COMPON/COMPCURV/COMPCAD (SW 6.2) 5 840 DNCU 571 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-203 Example "Compress...

  • Page 204

    5 Special Motion Commands11.02 5.4 Polynomial interpolation – POLY, POLYPATH (SW 5 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-204SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 5.4Polyn...

  • Page 205

    5 11.02Special Motion Commands 5.4 Polynomial interpolation – POLY, POLYPATH (SW 5 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-205 Poly...

  • Page 206

    5 Special Motion Commands11.02 5.4 Polynomial interpolation – POLY, POLYPATH (SW 5 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-206SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Supple...

  • Page 207

    5 11.02Special Motion Commands 5.4 Polynomial interpolation – POLY, POLYPATH (SW 5 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-207 Pro...

  • Page 208

    5 Special Motion Commands11.02 5.4 Polynomial interpolation – POLY, POLYPATH (SW 5 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-208SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Examp...

  • Page 209

    5 11.02Special Motion Commands 5.4 Polynomial interpolation – POLY, POLYPATH (SW 5 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-209 Spe...

  • Page 210

    5 Special Motion Commands11.02 5.4 Polynomial interpolation – POLY, POLYPATH (SW 5 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-210SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition An al...

  • Page 211

    5 11.02Special Motion Commands 5.5 Settable path reference, SPATH, UPATH (SW 4.3 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-211 5.5Settabl...

  • Page 212

    5 Special Motion Commands11.02 5.5 Settable path reference, SPATH, UPATH (SW 4.3 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-212SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionTherefore, fo...

  • Page 213

    5 11.02Special Motion Commands 5.5 Settable path reference, SPATH, UPATH (SW 4.3 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-213ActivationT...

  • Page 214

    5 Special Motion Commands11.02 5.5 Settable path reference, SPATH, UPATH (SW 4.3 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved5-214SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionControl respo...

  • Page 215

    5 11.02Special Motion Commands 5.6 Measurements with touch trigger probe, MEAS, MEAW 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-215 5.6Measuremen...

  • Page 216

    5 Special Motion Commands11.02 5.6 Measurements with touch trigger probe, MEAS, MEAW 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved5-216SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Measuring jo...

  • Page 217

    5 11.02Special Motion Commands 5.6 Measurements with touch trigger probe, MEAS, MEAW 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-217 Measured v...

  • Page 218

    5 Special Motion Commands11.02 5.7 Extended measuring function MEASA, MEAWA, MEAC 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved5-218SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 5.7Extended measu...

  • Page 219

    5 11.02Special Motion Commands5.7 Extended measuring function MEASA, MEAWA, MEAC 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-219 Function A...

  • Page 220

    5 Special Motion Commands11.02 5.7 Extended measuring function MEASA, MEAWA, MEAC 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved5-220SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Trigger events A...

  • Page 221

    5 11.02Special Motion Commands5.7 Extended measuring function MEASA, MEAWA, MEAC 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-221 Measurement wi...

  • Page 222

    5 Special Motion Commands11.02 5.7 Extended measuring function MEASA, MEAWA, MEAC 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved5-222SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Additional notes...

  • Page 223

    5 11.02Special Motion Commands5.7 Extended measuring function MEASA, MEAWA, MEAC 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-223 Measuring job ...

  • Page 224

    5 Special Motion Commands11.02 5.7 Extended measuring function MEASA, MEAWA, MEAC 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved5-224SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming exam...

  • Page 225

    5 11.02Special Motion Commands5.7 Extended measuring function MEASA, MEAWA, MEAC 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-225 N260 R13 = $AA_...

  • Page 226

    5 Special Motion Commands11.02 5.7 Extended measuring function MEASA, MEAWA, MEAC 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved5-226SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming exam...

  • Page 227

    5 11.02Special Motion Commands5.7 Extended measuring function MEASA, MEAWA, MEAC 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-227 The following p...

  • Page 228

    5 Special Motion Commands11.02 5.8 Special functions for OEM users 5 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved5-228SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 5.8Special functions for OEM users OEM addresses The ...

  • Page 229

    5 11.02Special Motion Commands 5.9 Programmable motion end criterion (SW 5.1 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-229 5.9Progra...

  • Page 230

    5 Special Motion Commands11.02 5.9 Programmable motion end criterion (SW 5.1 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved5-230SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition System var...

  • Page 231

    5 11.02Special Motion Commands 5.9 Programmable motion end criterion (SW 5.1 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-231 Program...

  • Page 232

    5 Special Motion Commands11.02 5.10 Programmable servo parameter block (SW 5.1 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved5-232SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 5.10Progr...

  • Page 233

    5 11.02Special Motion Commands 5.10 Programmable servo parameter block (SW 5.1 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition5-233 Addit...

  • Page 234

    5 Special Motion Commands11.02 5.10 Programmable servo parameter block (SW 5.1 and higher) 5 840DNCU 571 840DNCU 572NCU 573 810DCCU 2 840Di  Siemens AG, 2002. All rights reserved5-234SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition

  • Page 235

    6 11.02Frames6 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-235Frames6.1Coordinate transformation via frame variables ............................................................. 6-2366.2Frame variables/assigning values to ...

  • Page 236

    6 Frames11.026.1 Coordinate transformation via frame variables6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-236SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6.1Coordinate transformation via frame variablesDefinition of coordinate t...

  • Page 237

    6 11.02Frames6.1 Coordinate transformation via frame variables6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-237 Frame variable/frame relationship A coordinate transformation can be ac...

  • Page 238

    6 Frames11.026.1 Coordinate transformation via frame variables6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-238SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition $P_IFRAME Current, settable frame variable that establishes thereferenc...

  • Page 239

    6 11.02Frames6.1 Coordinate transformation via frame variables6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-239 $P_IFRAME :$P_BFRAME :$P_ACTFRAME$P_UBFR$P_UIFR[n]$P_PFRAME=Activated...

  • Page 240

    6 Frames11.026.1 Coordinate transformation via frame variables6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-240SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition $P_IFRAME=$P_UIFR[0] corresponds to G500 $P_IFRAME=$P_UIFR[1] correspon...

  • Page 241

    6 11.02Frames 6.2 Frame variables/assigning values to frames 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-241 6.2Frame variables/assigning values to fram...

  • Page 242

    6 Frames11.026.2 Frame variables/assigning values to frames6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-242SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Additional notes The values programmed with the above commandsare assigned...

  • Page 243

    6 11.02Frames 6.2 Frame variables/assigning values to frames 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-243 Reading and changing frame components ...

  • Page 244

    6 Frames11.026.2 Frame variables/assigning values to frames6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-244SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Function This feature allows you to access individual data ofa frame, e.g...

  • Page 245

    6 11.02Frames 6.2 Frame variables/assigning values to frames 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-245 Linking complete frames A complete frame ...

  • Page 246

    6 Frames11.026.2 Frame variables/assigning values to frames6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-246SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Function Frame chaining is suitable for the description ofsevera...

  • Page 247

    6 11.02Frames 6.2 Frame variables/assigning values to frames 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-247 Definition of new frames Programming ...

  • Page 248

    6 Frames11.026.3 Coarse/fine offset6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-248SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 6.3Coarse/fine offset Function Fine offset A fine offset of the base frames and of all othersettab...

  • Page 249

    6 11.02Frames 6.4 DRF offset 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-249 The programmable frame has no fine offset. If theprogrammable frame is as...

  • Page 250

    6 Frames11.026.5 External zero offset6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-250SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 6.5External zero offset External zero offset This is another way of moving the zero pointbetween...

  • Page 251

    6 11.02Frames6.6 Programming PRESET offset, PRESETON 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-251 6.6Programming PRESET offset, PRESETON Programmin...

  • Page 252

    6 Frames11.026.7 Deactivating frames6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-252SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 6.7Deactivating frames Explanation of the commands DRFOF Deactivate (clear) the handwheel offs...

  • Page 253

    6 11.02Frames 6.8 Frame calculation from 3 measuring points in the area: MEAFRAME 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-253 6.8 Frame calculation ...

  • Page 254

    6 Frames11.026.8 Frame calculation from 3 measuring points in the area: MEAFRAME6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-254SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming MEAFRAME(IDEAL_POINT,MEAS_POINT,FIT_QU...

  • Page 255

    6 11.02Frames 6.8 Frame calculation from 3 measuring points in the area: MEAFRAME 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-255 N100 G01 G90 F5000 N11...

  • Page 256

    6 Frames11.026.9 NCU-global frames (SW 5 and higher)6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-256SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition N700 G500;Deactivate settable frame, as preset with zero frame (no value set) ; NO_...

  • Page 257

    6 11.02Frames6.9 NCU-global frames (SW 5 and higher) 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-257 Machine manufacturer The number of global base fr...

  • Page 258

    6 Frames11.026.9 NCU-global frames (SW 5 and higher)6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-258SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Settable frames/base frames can be written and readfrom the control and the PLC...

  • Page 259

    6 11.02Frames6.9 NCU-global frames (SW 5 and higher) 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-2596.9.2 Frames active in the channelFunctionSW 6.1 and...

  • Page 260

    6 Frames11.026.9 NCU-global frames (SW 5 and higher)6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-260SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition$P_BFRAMECurrent first basic frame in the channelYou can read and write the current ...

  • Page 261

    6 11.02Frames6.9 NCU-global frames (SW 5 and higher) 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-261You can specify with $P_CHBFRMASK which channel-spec...

  • Page 262

    6 Frames11.026.9 NCU-global frames (SW 5 and higher)6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-262SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition$P_PFRAMECurrent programmable frame$P_PFRAME is the programmable frame which results...

  • Page 263

    6 11.02Frames6.9 NCU-global frames (SW 5 and higher) 6 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition6-263$P_ACTFRAME$P_UIFR[n]=Activated via G500, G54...G599...

  • Page 264

    6 Frames11.026.9 NCU-global frames (SW 5 and higher)6840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved6-264SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition

  • Page 265

    7 11.02Transformations7 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-265Transformations7.1Three, four and five axis transformation: TRAORI........................................................ 7-2667.1.1Programming tool o...

  • Page 266

    7 Transformations11.027.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved7-266SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7.1Three, four and five axis transformation: TRAORITo obtain optimum cutting ...

  • Page 267

    7 11.02Transformations7.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-267There are the following possible relationships:A' is below angle ϕ to the X ...

  • Page 268

    7 Transformations11.027.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved7-268SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3-axis and 4-axis transformations3-axis and 4-axis transformations are specia...

  • Page 269

    7 11.02Transformations7.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-2697.1.1 Programming tool orientation5-axis programs are usually generated by C...

  • Page 270

    7 Transformations11.027.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved7-270SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgrammingG1 X Y Z A B CProgramming the motion of the rotary axes.G1 X Y Z ...

  • Page 271

    7 11.02Transformations7.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-271Programming in RPY anglesThe values programmed during orientationprogramming ...

  • Page 272

    7 Transformations11.027.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved7-272SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionFace millingFace milling is used to machine curved surfaces ofany kind.For th...

  • Page 273

    7 11.02Transformations7.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-273With active ORIWCS (see following pages), thesurface normal vectors relate to...

  • Page 274

    7 Transformations11.027.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved7-274SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7.1.2 Orientation axes reference – ORIWCS, ORIMCSProgrammingN.. ORIMCSorN.....

  • Page 275

    7 11.02Transformations7.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-275Additional notesORIWCS is the basic setting. If it is not immediatelyobvious ...

  • Page 276

    7 Transformations11.027.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved7-276SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7.1.4 Orientation axes (SW 5.2 and higher)ProgrammingN.. ORIEULER or ORIRPYor...

  • Page 277

    7 11.02Transformations7.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-277MD $MC_ORI_DEF_WITH_G_CODE specifies how theprogrammed angles A2, B2, C2 are ...

  • Page 278

    7 Transformations11.027.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved7-278SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionFeed programmingFORI1Feed for swiveling the orientation vector on the large c...

  • Page 279

    7 11.02Transformations7.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-2797.1.5 Cartesian PTP travel (from SW 5.2)ProgrammingN.. TRAORIN.. STAT=`B10` T...

  • Page 280

    7 Transformations11.027.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved7-280SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgramming the position (STAT=)A machine position is not uniquely determined...

  • Page 281

    7 11.02Transformations7.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-281 Example: The target position shown in the diagram can beapproached in the...

  • Page 282

    7 Transformations11.027.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved7-282SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Additional notes Mode change The "Cartesian PTP travel" function...

  • Page 283

    7 11.02Transformations7.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-283 Programming example Z1A1Y1X1Elbow upElbow down N10 G0 X0 Y-30 Z60 A-30 F...

  • Page 284

    7 Transformations11.027.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved7-284SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 7.1.6Online tool length compensation (SW 6.4 and higher)ProgrammingN.. TRAOR...

  • Page 285

    7 11.02Transformations7.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-285 Additional notes Block preparation During block preparation in preprocessi...

  • Page 286

    7 Transformations11.027.1 Three, four and five axis transformation: TRAORI7840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved7-286SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming example Tool length compensation selection MD 21190: TOF...

  • Page 287

    7 11.02Transformations7.2 Milling turned parts: TRANSMIT 7 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-287 7.2Milling turned parts: TRANSMIT Programming...

  • Page 288

    7 Transformations11.02 7.2 Milling turned parts: TRANSMIT 7 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-288SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionRotary axisThe rotary axis cannot be programmed...

  • Page 289

    7 11.02Transformations7.2 Milling turned parts: TRANSMIT 7 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-289Programming exampleYZXN10 T1 D1 G54 G17 G90 F500...

  • Page 290

    7 Transformations11.02 7.3 Cylinder surface transformation: TRACYL 7 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-290SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7.3Cylinder surface transformation: TR...

  • Page 291

    7 11.02Transformations7.3 Cylinder surface transformation: TRACYL 7 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-291 There are two instances of cylinder...

  • Page 292

    7 Transformations11.02 7.3 Cylinder surface transformation: TRACYL 7 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-292SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Groove cross section In axis config...

  • Page 293

    7 11.02Transformations7.3 Cylinder surface transformation: TRACYL 7 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-293Special features:• TRC selection:TRC ...

  • Page 294

    7 Transformations11.02 7.3 Cylinder surface transformation: TRACYL 7 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-294SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition For cylinder peripheral curve trans...

  • Page 295

    7 11.02Transformations7.3 Cylinder surface transformation: TRACYL 7 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-295 Programming example XYZ N10 T...

  • Page 296

    7 Transformations11.02 7.4 Inclined axis: TRAANG 7 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-296SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 7.4Inclined axis: TRAANG Programming TRAANG(α) or TRAANG(α,n) T...

  • Page 297

    7 11.02Transformations7.4 Inclined axis: TRAANG 7 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-297 (response from SW < 6.4) If α (angle) is omitted (e.g. TRAANG...

  • Page 298

    7 Transformations11.02 7.4 Inclined axis: TRAANG 7 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-298SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionThe following settings are defined in machine data:• the angle bet...

  • Page 299

    7 11.02Transformations7.4 Inclined axis: TRAANG 7 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-299 Programming example MUαASMZCZXWorkpieceGrindingwheel N10...

  • Page 300

    7 Transformations11.02 7.4 Inclined axis: TRAANG 7 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-300SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7.4.1 Inclined axis programming: G05, G07 (SW 5.3 and higher) Prog...

  • Page 301

    7 11.02Transformations7.4 Inclined axis: TRAANG 7 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-301 Programming example UαASCZXWorkpieceGrindingwheelN60N50 N....

  • Page 302

    7 Transformations11.02 7.5 Constraints when selecting a transformation 7 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-302SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 7.5Constraints when selecting a transformatio...

  • Page 303

    7 11.02Transformations 7.5 Constraints when selecting a transformation 7 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-303 Frame change All instructions that only re...

  • Page 304

    7 Transformations11.02 7.6 Deselect transformation: TRAFOOF 7 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-304SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 7.6Deselect transformation: TRAFOOF Programming TRAFOO...

  • Page 305

    7 11.02Transformations7.7 Chained transformations 7 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-305 7.7Chained transformations As from SW 5, two transformations c...

  • Page 306

    7 Transformations11.02 7.7 Chained transformations 7 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-306SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionAdditional notesInformation on configuring the machine data of the...

  • Page 307

    7 11.02Transformations7.7 Chained transformations 7 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-307parone or more parameters separated by acomma for the transformati...

  • Page 308

    7 Transformations11.02 7.8 Switchable geometry axes, GEOAX 7 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-308SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7.8Switchable geometry axes, GEOAXProgrammingGEOAX(n,chann...

  • Page 309

    7 11.02Transformations7.8 Switchable geometry axes, GEOAX 7 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-309SequenceGeometry axis numberIn the command GEOAX(n,channel...

  • Page 310

    7 Transformations11.02 7.8 Switchable geometry axes, GEOAX 7 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-310SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionPrerequisites and restrictions1. It is not possible to swi...

  • Page 311

    7 11.02Transformations7.8 Switchable geometry axes, GEOAX 7 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition7-311Geometry axes that retain their position in the axisgroupi...

  • Page 312

    7 Transformations11.02 7.8 Switchable geometry axes, GEOAX 7 840 DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved7-312SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgramming exampleA machine has six channel axes called X...

  • Page 313

    8 11.02Tool Offsets8 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-313Tool Offsets8.1Offset memory............................................................................................................... 8-3148.2Languag...

  • Page 314

    8 Tool Offsets11.028.1 Offset memory8840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved8-314SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8.1Offset memoryStructure of the offset memoryEvery data field can be invoked with a T and Dnumber (...

  • Page 315

    8 11.02Tool Offsets8.1 Offset memory8840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-315Tool parametersNumber (DP)MeaningComment$TC_DP 1Tool typeFor overview see list$TC_DP 2Tool point dir...

  • Page 316

    8 Tool Offsets11.028.2 Language commands for tool management8840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved8-316SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8.2Language commands for tool managementExplanation of the commandsT="W...

  • Page 317

    8 11.02Tool Offsets8.2 Language commands for tool management8840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-317GETT functionThe GETT function returns the T number required toset the tool ...

  • Page 318

    8 Tool Offsets11.028.2 Language commands for tool management8840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved8-318SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionGETSELT functionThis function returns the T number of the toolpreselected fo...

  • Page 319

    8 11.02Tool Offsets8.3 Online tool offset PUTFTOCF, PUTFTOC, FTOCON, FTOCOF8840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-3198.3Online tool offset PUTFTOCF, PUTFTOC, FTOCON, FTOCOFProgramming:FCTDEF(Po...

  • Page 320

    8 Tool Offsets11.028.3 Online tool offset PUTFTOCF, PUTFTOC, FTOCON, FTOCOF8840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved8-320SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionFunctionThe function makes immediate allowance for tooloffsets resulting fro...

  • Page 321

    8 11.02Tool Offsets8.3 Online tool offset PUTFTOCF, PUTFTOC, FTOCON, FTOCOF8840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-321 An offset is always applied for the wear parametersfor the current tool s...

  • Page 322

    8 Tool Offsets11.028.3 Online tool offset PUTFTOCF, PUTFTOC, FTOCON, FTOCOF8840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved8-322SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Set parameters for FCTDEF function The parameters are defined in a separa...

  • Page 323

    8 11.02Tool Offsets8.3 Online tool offset PUTFTOCF, PUTFTOC, FTOCON, FTOCOF8840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-323 Programming example Task On a surface grinding machine with the following...

  • Page 324

    8 Tool Offsets11.028.3 Online tool offset PUTFTOCF, PUTFTOC, FTOCON, FTOCOF8840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved8-324SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Dressing program, modal: %_N_DRESS_MPF FCTDEF(1,-1000,1000,-$AA_IW[...

  • Page 325

    8 11.02Tool Offsets 8.4 Maintain tool radius compensation at constant level, CUTCONON 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-3258.4Maintain tool radius compensation ...

  • Page 326

    8 Tool Offsets11.02 8.4 Maintain tool radius compensation at constant level, CUTCONON 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-326SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionThey are displaced, however, by the v...

  • Page 327

    8 11.02Tool Offsets 8.4 Maintain tool radius compensation at constant level, CUTCONON 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-327 N70N80N90N100N110N120N130N140XY50...

  • Page 328

    8 Tool Offsets11.02 8.5 Activate 3D tool offsets 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-328SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 8.5Activate 3D tool offsets Explanation CUT3DC Activation of 3D radi...

  • Page 329

    8 11.02Tool Offsets8.5 Activate 3D tool offsets 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-329 Example N10 A0 B0 X0 Y0 Z0 F5000 N20 T1 D1 Tool call, call tool of...

  • Page 330

    8 Tool Offsets11.02 8.5 Activate 3D tool offsets 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-330SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Difference between 2 ½ D and 3D tool radiuscompensation In 3D...

  • Page 331

    8 11.02Tool Offsets8.5 Activate 3D tool offsets 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-331 Face milling For this type of 3D milling, you require lin...

  • Page 332

    8 Tool Offsets11.02 8.5 Activate 3D tool offsets 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-332SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Mill shapes, tool data The table below gives an overview of the t...

  • Page 333

    8 11.02Tool Offsets8.5 Activate 3D tool offsets 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-333 3D tool offset, tool change A new tool with changed dimensions (R, r, ...

  • Page 334

    8 Tool Offsets11.02 8.5 Activate 3D tool offsets 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-334SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Path curvature Path curvature is not monitored. In such cases, it isal...

  • Page 335

    8 11.02Tool Offsets8.5 Activate 3D tool offsets 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-335 Intersection procedure for 3D compensation(SW 5 and higher) With 3D c...

  • Page 336

    8 Tool Offsets11.02 8.6 Tool orientation 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-336SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 8.6Tool orientation Tool orientation is the term given to the geometricalalignm...

  • Page 337

    8 11.02Tool Offsets8.6 Tool orientation 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-337 Behavior at outside corners A circle block with the radius of the cutter is alw...

  • Page 338

    8 Tool Offsets11.02 8.6 Tool orientation 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-338SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming example for ORIC If two or more blocks with orientation changes (e....

  • Page 339

    8 11.02Tool Offsets8.6 Tool orientation 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-339 Programming example for ORID If ORID is active, all the blocks between the twot...

  • Page 340

    8 Tool Offsets11.02 8.6 Tool orientation 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-340SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Without orientation change If the orientation is not changed at the blockbounda...

  • Page 341

    8 11.02Tool Offsets 8.7 Free assignment of D numbers, cutting edge number CE 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-341 8.7Free assignment of D numbers, cutting edge...

  • Page 342

    8 Tool Offsets11.02 8.7 Free assignment of D numbers, cutting edge number CE 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-342SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 8.7.1 Check D numbers (CHKDNO) Programming:...

  • Page 343

    8 11.02Tool Offsets 8.7 Free assignment of D numbers, cutting edge number CE 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-343 8.7.2 Renaming D numbers (GETDNO, SETDNO) P...

  • Page 344

    8 Tool Offsets11.02 8.7 Free assignment of D numbers, cutting edge number CE 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-344SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition This assigns cutting edge CE=3 the new D va...

  • Page 345

    8 11.02Tool Offsets 8.7 Free assignment of D numbers, cutting edge number CE 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-345 8.7.4 Set final D numbers to invalid Progra...

  • Page 346

    8 Tool Offsets11.02 8.8 Toolholder kinematics 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-346SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 8.8Toolholder kinematics The toolholder kinematics with up to two rotary ...

  • Page 347

    8 11.02Tool Offsets8.8 Toolholder kinematics 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-347Function of the system parameter for orientable toolholdersDesignationx compon...

  • Page 348

    8 Tool Offsets11.02 8.8 Toolholder kinematics 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-348SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionParameters of the rotary axes from SW 6.1The system variables are extended by...

  • Page 349

    8 11.02Tool Offsets8.8 Toolholder kinematics 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition8-349Clearing the toolholder dataThe data of all toolholder data sets is cleared vi...

  • Page 350

    8 Tool Offsets11.02 8.8 Toolholder kinematics 8 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved8-350SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgramming exampleThe toolholder used in the following example can befully d...

  • Page 351

    9 11.02Path Traversing Behavior9 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-351Path Traversing Behavior9.1Tangential control TANG, TANGON, TANGOF, TANGDEL......................................... 9-3529.2Coupled motion TRA...

  • Page 352

    9 Path Traversing Behavior11.029.1 Tangential control TANG, TANGON, TANGOF, TANGDEL9840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved9-352SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9.1Tangential control TANG, TANGON, TANGOF, TANGDELProgrammingTA...

  • Page 353

    9 11.02Path Traversing Behavior9.1 Tangential control TANG, TANGON, TANGOF, TANGDEL9840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-353FunctionA rotary axis (= following axis) follows theprogrammed p...

  • Page 354

    9 Path Traversing Behavior11.029.1 Tangential control TANG, TANGON, TANGOF, TANGDEL9840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved9-354SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Activating/deactivating tangential control: TANGON, TANGOF T...

  • Page 355

    9 11.02Path Traversing Behavior9.1 Tangential control TANG, TANGON, TANGOF, TANGDEL9840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-355 Insert intermediate block at contour corners,TLIFT At one co...

  • Page 356

    9 Path Traversing Behavior11.029.1 Tangential control TANG, TANGON, TANGOF, TANGDEL9840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved9-356SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition TANGDEL (FAxis) Delete tangential follow-upDeletion is only po...

  • Page 357

    9 11.02Path Traversing Behavior9.1 Tangential control TANG, TANGON, TANGOF, TANGDEL9840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-357 Additional notes Influence on transformations The position o...

  • Page 358

    9 Path Traversing Behavior11.02 9.2 Coupled motion TRAILON, TRAILOF 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved9-358SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9.2Coupled motion TRAILON, TRAILOF P...

  • Page 359

    9 11.02Path Traversing Behavior9.2 Coupled motion TRAILON, TRAILOF 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-359SequenceDefining coupled-axis combinati...

  • Page 360

    9 Path Traversing Behavior11.02 9.2 Coupled motion TRAILON, TRAILOF 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved9-360SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionCoupling factorThe coupling factor spe...

  • Page 361

    9 11.02Path Traversing Behavior9.2 Coupled motion TRAILON, TRAILOF 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-361Additional notesAcceleration and veloci...

  • Page 362

    9 Path Traversing Behavior11.029.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved9-362SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9.3Curve tables, CTABDEF, CTABEND, CTABDEL, CT...

  • Page 363

    9 11.02Path Traversing Behavior9.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-363General form:CTABUNLOCK(n, m, memType)Cancel a...

  • Page 364

    9 Path Traversing Behavior11.029.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved9-364SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionFor further information about leading and foll...

  • Page 365

    9 11.02Path Traversing Behavior9.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-365FunctionYou can use curve tables to program po...

  • Page 366

    9 Path Traversing Behavior11.029.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved9-366SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Starting and end value of the curve table:Th...

  • Page 367

    9 11.02Path Traversing Behavior9.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-367 Example:...R10=5 R11=20...CTABDEFG1 X=10 Y=...

  • Page 368

    9 Path Traversing Behavior11.029.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved9-368SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Behavior at the edges of the curve table ...

  • Page 369

    9 11.02Path Traversing Behavior9.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-369 Reading table positions, CTAB, CTABINV With...

  • Page 370

    9 Path Traversing Behavior11.029.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved9-370SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming example Use of CTABSSV and C...

  • Page 371

    9 11.02Path Traversing Behavior9.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-371 Overwriting curve tables A curve table is o...

  • Page 372

    9 Path Traversing Behavior11.029.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved9-372SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Curve tables and various operating states ...

  • Page 373

    9 11.02Path Traversing Behavior9.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-373The calculation of the curve definitiondepends...

  • Page 374

    9 Path Traversing Behavior11.029.3 Curve tables, CTABDEF, CTABEND, CTABDEL, CTAB, CTABINV,9840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved9-374SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition After activating the coupling no synchroniz...

  • Page 375

    9 11.02Path Traversing Behavior 9.4 Axial leading value coupling, LEADON, LEADOF 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-3759.4Axial leading value co...

  • Page 376

    9 Path Traversing Behavior11.02 9.4 Axial leading value coupling, LEADON, LEADOF 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved9-376SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Sequence Leading va...

  • Page 377

    9 11.02Path Traversing Behavior 9.4 Axial leading value coupling, LEADON, LEADOF 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-377 Additional notes Se...

  • Page 378

    9 Path Traversing Behavior11.02 9.4 Axial leading value coupling, LEADON, LEADOF 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved9-378SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Leading value simulati...

  • Page 379

    9 11.02Path Traversing Behavior 9.4 Axial leading value coupling, LEADON, LEADOF 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-379 Programming example ...

  • Page 380

    9 Path Traversing Behavior11.02 9.4 Axial leading value coupling, LEADON, LEADOF 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved9-380SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Comment ; Defines al...

  • Page 381

    9 11.02Path Traversing Behavior 9.5 Feed characteristic, FNORM, FLIN, FCUB, FPO 9 840DNCU 571 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-3819.5Feed characteristic, FNORM, ...

  • Page 382

    9 Path Traversing Behavior11.02 9.5 Feed characteristic, FNORM, FLIN, FCUB, FPO 9 840DNCU 571 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved9-382SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Sequence FNORM The feed ...

  • Page 383

    9 11.02Path Traversing Behavior 9.5 Feed characteristic, FNORM, FLIN, FCUB, FPO 9 840DNCU 571 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-383 FCUB The feed is approached...

  • Page 384

    9 Path Traversing Behavior11.02 9.5 Feed characteristic, FNORM, FLIN, FCUB, FPO 9 840DNCU 571 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved9-384SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition The programmed feed characteri...

  • Page 385

    9 11.02Path Traversing Behavior 9.5 Feed characteristic, FNORM, FLIN, FCUB, FPO 9 840DNCU 571 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-385 Programming example This...

  • Page 386

    9 Path Traversing Behavior11.02 9.6 Program run with preprocessing memory, STARTFIFO, STOPFIFO, 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved9-386SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9.6Program...

  • Page 387

    9 11.02Path Traversing Behavior 9.6 Program run with preprocessing memory, STARTFIFO, STOPFIFO, 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-387 Restri...

  • Page 388

    9 Path Traversing Behavior11.02 9.7 Repositioning on contour, REPOSA, REPOSL, REPOSQ, REPOSH 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved9-388SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9.7Repositio...

  • Page 389

    9 11.02Path Traversing Behavior 9.7 Repositioning on contour, REPOSA, REPOSL, REPOSQ, REPOSH 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-389 ...

  • Page 390

    9 Path Traversing Behavior11.02 9.7 Repositioning on contour, REPOSA, REPOSL, REPOSQ, REPOSH 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved9-390SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition In the case...

  • Page 391

    9 11.02Path Traversing Behavior 9.7 Repositioning on contour, REPOSA, REPOSL, REPOSQ, REPOSH 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition9-391 When comm...

  • Page 392

    9 Path Traversing Behavior11.02 9.7 Repositioning on contour, REPOSA, REPOSL, REPOSQ, REPOSH 9 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved9-392SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Approach...

  • Page 393

    10 11.02Motion-Synchronous Action10 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-393 Motion-Synchronous Action10.1 Structure, basic information ..................................................................................

  • Page 394

    10 Motion-Synchronous Action11.0210 Siemens AG, 2002. All rights reserved10-394SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10.4.25 Error responses....................................................................................................10-44210.4.26 Tr...

  • Page 395

    10 11.02Motion-Synchronous Action10.1 Structure, basic information 10 840DNCU 571840DNCU 572NCU 573810DCCU2840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-39510.1Structure, basic informationFunctionSynchronized actio...

  • Page 396

    10 Motion-Synchronous Action11.02 10.1 Structure, basic information 10 840 DNCU 571840 DNCU 572NCU 573810 D840Di  Siemens AG, 2002. All rights reserved10-396SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionWHENThe condition is tested until it is fulfilled once, th...

  • Page 397

    10 11.02Motion-Synchronous Action10.1 Structure, basic information 10 840DNCU 571840DNCU 572NCU 573810DCCU2840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-397Possible applications:• Optimization of runtime-critical...

  • Page 398

    10 Motion-Synchronous Action11.02 10.1 Structure, basic information 10 840 DNCU 571840 DNCU 572NCU 573810 D840Di  Siemens AG, 2002. All rights reserved10-398SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.1.2 Validity range: Identification number ID Functi...

  • Page 399

    10 11.02Motion-Synchronous Action10.1 Structure, basic information 10 840DNCU 571840DNCU 572NCU 573810DCCU2840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-399 Application:• AC loops in JOG mode• Logic operation...

  • Page 400

    10 Motion-Synchronous Action11.02 10.1 Structure, basic information 10 840 DNCU 571840 DNCU 572NCU 573810 D840Di  Siemens AG, 2002. All rights reserved10-400SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition • FROMThe condition is tested in each interpolation cy...

  • Page 401

    10 11.02Motion-Synchronous Action10.1 Structure, basic information 10 840DNCU 571840DNCU 572NCU 573810DCCU2840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-401 In SW 5 only these G codes are allowed. A specified G c...

  • Page 402

    10 Motion-Synchronous Action11.02 10.1 Structure, basic information 10 840 DNCU 571840 DNCU 572NCU 573810 D840Di  Siemens AG, 2002. All rights reserved10-402SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10.1.4 Actions Function In each synchronized action,...

  • Page 403

    10 11.02Motion-Synchronous Action10.1 Structure, basic information 10 840DNCU 571840DNCU 572NCU 573810DCCU2840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-403 • Activate or deactivate coupled-axismotion/leading va...

  • Page 404

    10 Motion-Synchronous Action11.02 10.1 Structure, basic information 10 840 DNCU 571840 DNCU 572NCU 573810 D840Di  Siemens AG, 2002. All rights reserved10-404SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.1.5 Overview of synchronized actions SW 3.x and low...

  • Page 405

    10 11.02Motion-Synchronous Action10.1 Structure, basic information 10 840DNCU 571840DNCU 572NCU 573810DCCU2840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-405 • Delete distance-to-go without stoppingpreprocessing ...

  • Page 406

    10 Motion-Synchronous Action11.02 10.2 Basic modules for conditions and actions 10 840 DNCU 571840 DNCU 572NCU 573810 D840Di  Siemens AG, 2002. All rights reserved10-406SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.2Basic modules for conditions and actions ...

  • Page 407

    10 11.02Motion-Synchronous Action10.2 Basic modules for conditions and actions 10 840DNCU 571840DNCU 572NCU 573810DCCU2840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-407 • Bit operatorsThe bit operators B_NOT, B_...

  • Page 408

    10 Motion-Synchronous Action11.02 10.2 Basic modules for conditions and actions 10 840 DNCU 571840 DNCU 572NCU 573810 D840Di  Siemens AG, 2002. All rights reserved10-408SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Notes Only variables of the same data type ...

  • Page 409

    10 11.02Motion-Synchronous Action 10.3 Special real-time variables for synchronized actions 10 840DNCU 571840DNCU 572NCU 573810DCCU2840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-40910.3Special real-time variables f...

  • Page 410

    10 Motion-Synchronous Action11.02 10.3 Special real-time variables for synchronized actions 10 840 DNCU 572NCU 573 810 DCCU2 840Di  Siemens AG, 2002. All rights reserved10-410SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition n:Number of the...

  • Page 411

    10 11.02Motion-Synchronous Action 10.3 Special real-time variables for synchronized actions 10 840DNCU 572NCU 573 810DCCU2 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-411 10.3.4 Access to R...

  • Page 412

    10 Motion-Synchronous Action11.02 10.3 Special real-time variable for synchronized actions 10 840 DNCU 572NCU 573 810 DCCU2 840Di  Siemens AG, 2002. All rights reserved10-412SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.3.5 Machine an...

  • Page 413

    10 11.02Motion-Synchronous Action 10.3 Special real-time variables for synchronized actions 10 840DNCU 572NCU 573 810DCCU2 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-413 10.3.6 FIFO variab...

  • Page 414

    10 Motion-Synchronous Action11.02 10.3 Special real-time variable for synchronized actions 10 840 DNCU 572NCU 573 810 DCCU2 840Di  Siemens AG, 2002. All rights reserved10-414SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming exa...

  • Page 415

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840 DNCU 571 840DNCU 572NCU 573 810DCCU2 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-41510.4Actions within sync...

  • Page 416

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840 DNCU 571 840 DNCU 572NCU 573 810 DCCU2 840Di  Siemens AG, 2002. All rights reserved10-416SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.2 Set read-in ...

  • Page 417

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840 DNCU 571 840DNCU 572NCU 573 810DCCU2 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-41710.4.3 Cancel preproces...

  • Page 418

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840 DNCU 571 840 DNCU 572NCU 573 810 DCCU2 840Di  Siemens AG, 2002. All rights reserved10-418SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.4 Deletion of ...

  • Page 419

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840 DNCU 571 840DNCU 572NCU 573 810DCCU2 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-419 Programming exampleR...

  • Page 420

    10 Motion-Synchronous Action11.0210.4 Actions within synchronized actions10840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved10-420SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10.4.6 Polynomial definition, FCTDEF, block-synchronizedProgr...

  • Page 421

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions10840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-421Notes• The system variables can be written from the partspr...

  • Page 422

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved10-422SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.7 Laser power control Programming e...

  • Page 423

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-423 10.4.8 Evaluation function SYNFCT Program...

  • Page 424

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reserved10-424SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.9 Adaptive control (additive) Progr...

  • Page 425

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840DNCU 572NCU 573 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-425 10.4.10 Adaptive control (multiplicative) ...

  • Page 426

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-426SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.11 Clearance control with limited ...

  • Page 427

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-427 Main program: %_N_MAIN_MPF AON C...

  • Page 428

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-428SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.12 Online tool offset...

  • Page 429

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-429 Programming example I...

  • Page 430

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-430SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.13 Positioning moveme...

  • Page 431

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-431 Example 2 G71 in the acti...

  • Page 432

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-432SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.14 Position axis POS ...

  • Page 433

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-433 Function With MOV[axis...

  • Page 434

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-434SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.17 SW limit switch ...

  • Page 435

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-435 Programming exampleMove t...

  • Page 436

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 572NCU 573 810D CCU2 840Di  Siemens AG, 2002. All rights reserved10-436SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.19 Set actual value Functi...

  • Page 437

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840DNCU 572NCU 573 810D CCU2 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-437 10.4.20Spindle motions Function...

  • Page 438

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 572NCU 573 810D CCU2 840Di  Siemens AG, 2002. All rights reserved10-438SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.21 Coupled-axis motion TRAIL...

  • Page 439

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-439 10.4.22 Leading value coupl...

  • Page 440

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-440SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition %_N_SHEARS1_MPF;$PATH=/_...

  • Page 441

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-441 10.4.23 Measurement Comp...

  • Page 442

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-442SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.4.25 Error responses ...

  • Page 443

    10 11.02Motion-Synchronous Action10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-443 Function The commands for...

  • Page 444

    10 Motion-Synchronous Action11.02 10.4 Actions within synchronized actions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-444SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming example Trav...

  • Page 445

    10 11.02Motion-Synchronous Action10.5 Technology cycles 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-445 10.5Technology cycles Function As an action...

  • Page 446

    10 Motion-Synchronous Action11.02 10.5 Technology cycles 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-446SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Programming example Axis programs are s...

  • Page 447

    10 11.02Motion-Synchronous Action10.5 Technology cycles 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-447 Technology cycles are started as soon as the...

  • Page 448

    10 Motion-Synchronous Action11.02 10.5 Technology cycles 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-448SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Unlock technology cycle, UNLOCK Locked ...

  • Page 449

    10 11.02Motion-Synchronous Action10.6 Cancel synchronized action: CANCEL 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-449 10.6Cancel synchronized actio...

  • Page 450

    10 Motion-Synchronous Action11.02 10.7 Supplementary conditions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-450SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition 10.7Supplementary conditions • Po...

  • Page 451

    10 11.02Motion-Synchronous Action10.7 Supplementary conditions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-451 Response following RESET Synchroniz...

  • Page 452

    10 Motion-Synchronous Action11.02 10.7 Supplementary conditions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-452SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Response following end of program ...

  • Page 453

    10 11.02Motion-Synchronous Action10.7 Supplementary conditions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition10-453 • RepositioningOn repositioning REPO...

  • Page 454

    10 Motion-Synchronous Action11.02 10.7 Supplementary conditions 10 840DNCU 571 840DNCU 572NCU 573 810D 840Di  Siemens AG, 2002. All rights reserved10-454SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition

  • Page 455

    11 11.02Oscillation11 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition11-455Oscillation11.1 Asynchronous oscillation............................................................................................. 11-45611.2 Oscillat...

  • Page 456

    11 Oscillation11.0211.1 Asynchronous oscillation11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved11-456SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition11.1Asynchronous oscillationExplanation of the commandsOSP1[axis]=OSP2[axis]=Position ...

  • Page 457

    11 11.02Oscillation11.1 Asynchronous oscillation11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition11-457The oscillating axisFor the oscillating axis, the following applies:• Any axis can b...

  • Page 458

    11 Oscillation11.0211.1 Asynchronous oscillation11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved11-458SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Properties of asynchronized oscillation• Asynchronized oscillation is active beyo...

  • Page 459

    11 11.02Oscillation11.1 Asynchronous oscillation11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition11-459 Notes on individual functions The following addresses allow asynchronizedoscillatio...

  • Page 460

    11 Oscillation11.0211.1 Asynchronous oscillation11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved11-460SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionThis timing is affected by the feedrate override.Under certain circumstances, an oscil...

  • Page 461

    11 11.02Oscillation11.1 Asynchronous oscillation11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition11-461Option valueMeaning0When the oscillation is deactivated, stop at the next reversal poi...

  • Page 462

    11 Oscillation11.0211.1 Asynchronous oscillation11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved11-462SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgramming exampleOscillating axis Z is to oscillate between 10 and 100.Approach reve...

  • Page 463

    11 11.02Oscillation11.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition11-46311.2Oscillation controlled via synchronous actionsProgramming:1....

  • Page 464

    11 Oscillation11.0211.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved11-464SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionControl oscillation via synchronized actionsWith this mode of os...

  • Page 465

    11 11.02Oscillation11.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition11-465Assignment of oscillating and infeed axesOSCILLOSCILL[oscillatin...

  • Page 466

    11 Oscillation11.0211.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved11-466SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionThe synchronized actionsThe synchronized motion actions listed b...

  • Page 467

    11 11.02Oscillation11.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition11-467Infeed in reversal areaThe infeed motion must start within a rev...

  • Page 468

    11 Oscillation11.0211.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved11-468SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionInfeed at reversal pointAs long as the oscillating axis has not ...

  • Page 469

    11 11.02Oscillation11.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition11-469Stop oscillation motion at reversal pointThe oscillation axis is...

  • Page 470

    11 Oscillation11.0211.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved11-470SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionOnline evaluation of reversal pointIf there is a main run variab...

  • Page 471

    11 11.02Oscillation11.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition11-471Next partial infeedWhen infeed is complete, a premature start of...

  • Page 472

    11 Oscillation11.0211.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved11-472SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgramming exampleNo infeed is to take place at reversal point ...

  • Page 473

    11 11.02Oscillation11.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition11-4732. Motion-synchronized actionsWHENEVER $AA_IM[Z]<$SA_OSCILL_R...

  • Page 474

    11 Oscillation11.0211.2 Oscillation controlled via synchronous actions11840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved11-474SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionNotes

  • Page 475

    12 11.02Punching and Nibbling12 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition12-475Punching and Nibbling12.1 Activation, deactivation................................................................................................

  • Page 476

    12 Punching and Nibbling11.0212.1 Activation, deactivation12840 DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved12-476SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition12.1Activation, deactivation12.1.1 Language commandsProgrammingPDELAYONPON G... X... Y... ...

  • Page 477

    12 11.02Punching and Nibbling12.1 Activation, deactivation12840 DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition12-477Punching and nibbling with leader, PONS/SONSThe SONS and PONS commands also activate thepu...

  • Page 478

    12 Punching and Nibbling11.0212.1 Activation, deactivation12840 DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved12-478SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionInitiation of strokeInitiation of the first strokeThe instant at which the first stroke is...

  • Page 479

    12 11.02Punching and Nibbling12.1 Activation, deactivation12840 DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition12-47912.1.2 Use of M commandsBy using macro technology, you can also use Mcommands instead of l...

  • Page 480

    12 Punching and Nibbling11.0212.2 Automatic path segmentation12840 DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved12-480SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition12.2Automatic path segmentationProgrammingSPP=SPN=ExplanationSPPSize of path section (m...

  • Page 481

    12 11.02Punching and Nibbling12.2 Automatic path segmentation12840 DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition12-48112.2.1 Path segmentation for path axesSequenceLength of SPP path segmentWith the SPP co...

  • Page 482

    12 Punching and Nibbling11.0212.2 Automatic path segmentation12840 DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved12-482SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionNumber of SPN path segmentsSPN defines the number of path segments to begenerated from ...

  • Page 483

    12 11.02Punching and Nibbling12.2 Automatic path segmentation12840 DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition12-483If both a single axis and a path axis are programmedin the block, then the single axis ...

  • Page 484

    12 Punching and Nibbling11.0212.2 Automatic path segmentation12840 DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved12-484SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition12.2.3 Programming examplesProgramming example 1The programmed nibbling paths must be d...

  • Page 485

    12 11.02Punching and Nibbling12.2 Automatic path segmentation12840 DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition12-485Programming example 2Automatic path segmentation is to be used tocreate the individual ...

  • Page 486

    12 Punching and Nibbling11.0212.2 Automatic path segmentation12840 DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved12-486SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionNotes

  • Page 487

    13 11.02Additional Functions13 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-487Additional Functions13.1Axis functions AXNAME, SPI, ISAXIS, AXSTRING (SW 6 and higher) ............... 13-48913.2Function call ISVAR ( ) (SW 6.3...

  • Page 488

    13 Additional Functions11.0213 Siemens AG, 2002. All rights reserved13-488SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition

  • Page 489

    13 11.02Additional Functions13.1 Axis functions AXNAME, SPI, ISAXIS, AXSTRING13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-48913.1Axis functions AXNAME, SPI, ISAXIS, AXSTRING(SW 6 and...

  • Page 490

    13 Additional Functions11.0213.1 Axis functions AXNAME, SPI, ISAXIS, AXSTRING13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-490SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionAdditional programming of the axis position viaaddress AX...

  • Page 491

    13 11.02Additional Functions13.2 Function call ISVAR ( ) (SW 6.3 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-49113.2Function call ISVAR ( ) (SW 6.3 and higher)Programming...

  • Page 492

    13 Additional Functions11.0213.2 Function call ISVAR ( ) (SW 6.3 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-492SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition Checks The following checks are make in accordance withth...

  • Page 493

    13 11.02Additional Functions13.3 Learn compensation characteristics: QECLRNON, QECLRNOF13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-49313.3Learn compensation characteristics: QECLRNO...

  • Page 494

    13 Additional Functions11.0213.3 Learn compensation characteristics: QECLRNON, QECLRNOF13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-494SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionQECLRN.SPFLearning cycleQECDAT.MPFSample NC pro...

  • Page 495

    13 11.02Additional Functions13.4 Synchronized spindle13840DNCU 571840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-49513.4Synchronized spindleProgrammingCOUPDEF (FS,LS,SRFS,SRLS, block changebeh., coupli...

  • Page 496

    13 Additional Functions11.0213.4 Synchronized spindle13840DNCU 571840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved13-496SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionFunctionIn synchronized mode, there is a leading spindle(LS) and a following spindle ...

  • Page 497

    13 11.02Additional Functions13.4 Synchronized spindle13840DNCU 571840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-497SequenceDefine synchronized spindle pair OptionsFixed definition of coupling:The lead...

  • Page 498

    13 Additional Functions11.0213.4 Synchronized spindle13840DNCU 571840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved13-498SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionPositioning the following spindle: OptionsWhen the synchronized spindle coupling is a...

  • Page 499

    13 11.02Additional Functions13.4 Synchronized spindle13840DNCU 571840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-499Examples:N200 WAITCWait for synchronism conditions for all active slavespindles witho...

  • Page 500

    13 Additional Functions11.0213.4 Synchronized spindle13840DNCU 571840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved13-500SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionBlock change behaviorThe following options can be selected duringdefinition of the co...

  • Page 501

    13 11.02Additional Functions13.4 Synchronized spindle13840DNCU 571840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-501Activate synchronized mode• Fastest possible activation of coupling with anyangle r...

  • Page 502

    13 Additional Functions11.0213.4 Synchronized spindle13840DNCU 571840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved13-502SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionDelete couplings, COUPDELAn existing user-defined synchronized spindlecoupling must b...

  • Page 503

    13 11.02Additional Functions13.4 Synchronized spindle13840DNCU 571840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-503System variablesCurrent coupling status following spindleThe current coupling status ...

  • Page 504

    13 Additional Functions11.0213.4 Synchronized spindle13840DNCU 571840DNCU 572NCU 573840Di Siemens AG, 2002. All rights reserved13-504SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgramming exampleWorking with master and slave spindles.;Leading spindle = master s...

  • Page 505

    13 11.02Additional Functions13.5 EG: Electronic gear (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-50513.5EG: Electronic gear (SW 5 and higher)IntroductionThe "E...

  • Page 506

    13 Additional Functions11.0213.5 EG: Electronic gear (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-506SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionExplanationFollowing axisAxis that is influenced by the leadinga...

  • Page 507

    13 11.02Additional Functions13.5 EG: Electronic gear (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-507ExplanationFAFollowing axisBlock change modeThe following modes ...

  • Page 508

    13 Additional Functions11.0213.5 EG: Electronic gear (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-508SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition[, LAi, SynPosLAi, Zi, Ni](do not write the square brackets)min....

  • Page 509

    13 11.02Additional Functions13.5 EG: Electronic gear (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-509Variation 3 only effects modulo following axescoupled to modulo ...

  • Page 510

    13 Additional Functions11.0213.5 EG: Electronic gear (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-510SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionVia the programmed "synchronized positions" for thefol...

  • Page 511

    13 11.02Additional Functions13.5 EG: Electronic gear (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-511Variant 3:EGOFC(following spindle)The electronic gear is deactiv...

  • Page 512

    13 Additional Functions11.0213.5 EG: Electronic gear (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-512SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13.5.6 Response of EG at Power ON, RESET, mode change, block sea...

  • Page 513

    13 11.02Additional Functions13.6 Extended stopping and retract (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-51313.6Extended stopping and retract (SW 5 and higher)Fun...

  • Page 514

    13 Additional Functions11.0213.6 Extended stopping and retract (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-514SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13.6.1 Drive-independent reactionsFunctionDrive-indepe...

  • Page 515

    13 11.02Additional Functions13.6 Extended stopping and retract (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-51513.6.2 NC-controlled reactionsFunctionRetractPrecondit...

  • Page 516

    13 Additional Functions11.0213.6 Extended stopping and retract (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-516SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionAfter this time has lapsed, rapid deceleration isiniti...

  • Page 517

    13 11.02Additional Functions13.6 Extended stopping and retract (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-517There are no machine data with default settings for PO...

  • Page 518

    13 Additional Functions11.0213.6 Extended stopping and retract (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-518SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13.6.3 Possible trigger sourcesFunctionThe following e...

  • Page 519

    13 11.02Additional Functions13.6 Extended stopping and retract (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-519For a more detailed description on how to usesynchroni...

  • Page 520

    13 Additional Functions11.0213.6 Extended stopping and retract (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-520SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionWhen the value falls below the DC link voltage lowerli...

  • Page 521

    13 11.02Additional Functions13.6 Extended stopping and retract (SW 5 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-52113.6.8 Drive-independent retractFunctionAxes with digi...

  • Page 522

    13 Additional Functions11.0213.7 Link communication (SW 5.2 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-522SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition3. Drive configuration:MD 1639 RETRACT_SPEED[X]=400000H in pos....

  • Page 523

    13 11.02Additional Functions13.7 Link communication (SW 5.2 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-523Several networked NCUs connected by means of anNCU link module ...

  • Page 524

    13 Additional Functions11.0213.7 Link communication (SW 5.2 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-524SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionLink variables are global system data that can beaddressed by t...

  • Page 525

    13 11.02Additional Functions13.7 Link communication (SW 5.2 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-525WarningA link variable write process is only then completedwhen...

  • Page 526

    13 Additional Functions11.0213.8 Axis container (SW 5.2 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-526SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13.8Axis container (SW 5.2 and higher)FunctionWith revolving machin...

  • Page 527

    13 11.02Additional Functions13.8 Axis container (SW 5.2 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-527ExplanationCTi or e.g. A_CONT1Number of the axis container whose co...

  • Page 528

    13 Additional Functions11.0213.9 Program execution time/Workpiece counter (SW 5.2 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-528SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionThis call may only be used if the other c...

  • Page 529

    13 11.02Additional Functions13.9 Program execution time/Workpiece counter (SW 5.2 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-529$AN_POWERON_TIMETime in minutes since the...

  • Page 530

    13 Additional Functions11.0213.9 Program execution time/Workpiece counter (SW 5.2 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-530SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13.9.2 Workpiece counterFunctionThe "...

  • Page 531

    13 11.02Additional Functions13.9 Program execution time/Workpiece counter (SW 5.2 and higher)13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-531Programming example1. Activate workpiece ...

  • Page 532

    13 Additional Functions11.0213.10 Interactive window call from parts program, command MMC13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-532SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13.10 Interactive window call from parts prog...

  • Page 533

    13 11.02Additional Functions13.10 Interactive window call from parts program, command MMC13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-533Please see the detailed notes on how to progr...

  • Page 534

    13 Additional Functions11.0213.11 Influencing the motion control13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-534SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13.11 Influencing the motion control13.11.1 Percentage jerk correction...

  • Page 535

    13 11.02Additional Functions13.11 Influencing the motion control13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-535Additional notesA further example will follow at the end of the nextsu...

  • Page 536

    13 Additional Functions11.0213.12 Master/slave grouping13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-536SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionValue range: 1 ... 100100 corresponds to: no effect on velocity.100 is applied ...

  • Page 537

    13 11.02Additional Functions13.12 Master/slave grouping13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-537FunctionThe master/slave coupling in SW 6.4 and lowerpermitted coupling of the ...

  • Page 538

    13 Additional Functions11.0213.12 Master/slave grouping13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-538SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionMASLOFS (SW 6.4 and higher)The MASLOFS instruction can be usedto decelerate sla...

  • Page 539

    13 11.02Additional Functions13.12 Master/slave grouping13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition13-539To enable coupling with another spindle aftercontainer rotation, the previous c...

  • Page 540

    13 Additional Functions11.0213.12 Master/slave grouping13840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved13-540SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition

  • Page 541

    14 11.02User Stock Removal Programs14 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14-541User Stock Removal Programs14.1 Supporting functions for stock removal......................................................................

  • Page 542

    14 User Stock Removal Programs11.0214.1 Supporting functions for stock removal14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved14-542SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14.1Supporting functions for stock removalUser stock rem...

  • Page 543

    14 11.02User Stock Removal Programs14.2 Contour preparation: CONTPRON14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14-54314.2Contour preparation: CONTPRONProgrammingCONTPRON (TABNAME, MA...

  • Page 544

    14 User Stock Removal Programs11.0214.2 Contour preparation: CONTPRON14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved14-544SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionAdditional notesPreconditions for the callBefore CONTPRON is call...

  • Page 545

    14 11.02User Stock Removal Programs14.2 Contour preparation: CONTPRON14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14-545Programming example 1Create a contour table with• name KTAB,•...

  • Page 546

    14 User Stock Removal Programs11.0214.2 Contour preparation: CONTPRON14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved14-546SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionTable KTAB(0)(1)(2)(3)(4)(5)(6)(7)(8)(9)(10)77110020150082.405356...

  • Page 547

    14 11.02User Stock Removal Programs14.2 Contour preparation: CONTPRON14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14-547Programming example 2Create a contour table with• name KTAB,•...

  • Page 548

    14 User Stock Removal Programs11.0214.2 Contour preparation: CONTPRON14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved14-548SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionTable KTABAfter contour preparation is finished, the contour isav...

  • Page 549

    14 11.02User Stock Removal Programs14.2 Contour preparation: CONTPRON14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14-549(9), (10) Center point coordinates of contour element, if it is a...

  • Page 550

    14 User Stock Removal Programs11.0214.3 Contour decoding: CONTDCON (SW 5.2 and higher)14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved14-550SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14.3Contour decoding: CONTDCON (SW 5.2 and highe...

  • Page 551

    14 11.02User Stock Removal Programs14.3 Contour decoding: CONTDCON (SW 5.2 and higher)14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14-551Additional notesPreconditions for the callBefore...

  • Page 552

    14 User Stock Removal Programs11.0214.3 Contour decoding: CONTDCON (SW 5.2 and higher)14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved14-552SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionTerminate contour preparationWhen you call the p...

  • Page 553

    14 11.02User Stock Removal Programs14.3 Contour decoding: CONTDCON (SW 5.2 and higher)14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14-553NC parts programN10 DEF REAL KTAB[9,6]Contour ta...

  • Page 554

    14 User Stock Removal Programs11.0214.4 Intersection of two contour elements: INTERSEC14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved14-554SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionExplanation of column contentsLine 0:Coding for ...

  • Page 555

    14 11.02User Stock Removal Programs14.4 Intersection of two contour elements: INTERSEC14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14-555FunctionINTERSEC calculates the intersection of ...

  • Page 556

    14 User Stock Removal Programs11.0214.5 Traversing a contour element from the table: EXECTAB14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved14-556SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14.5Traversing a contour element from the ...

  • Page 557

    14 11.02User Stock Removal Programs14.6 Calculate circle data: CALCDAT14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition14-55714.6Calculate circle data: CALCDATProgrammingVARIB = CALCDAT(PT[...

  • Page 558

    14 User Stock Removal Programs11.0214.6 Calculate circle data: CALCDAT14840DNCU 571840DNCU 572NCU 573810D840Di Siemens AG, 2002. All rights reserved14-558SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionProgramming exampleThe program determines whether the three poin...

  • Page 559

    15 11.02Tables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-559Tables15.1 List of instructions ....................................................................................................... 15-56115.2 List of sys...

  • Page 560

    15 Tables11.0215 Siemens AG, 2002. All rights reserved15-560SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.40 Spindles................................................................................................................15-66715.2.41 Polynomial value...

  • Page 561

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-56115.1List of instructionsLegend:1 Default setting at start of program (in delivery state of control system provided that another setti...

  • Page 562

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-562SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionACPAbsolute dimension setting for rotary axes,approach position in positive directionA=ACP(...) B=ACP(...)C=ACP(...)sACOSArc cosine (...

  • Page 563

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-563AXCSWAP Switch container axisAXCSWAP(CTn,CTn+1,...)25AXISData type: Axis nameName of file can beaddedAXNAMEConverts the input string ...

  • Page 564

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-564SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionC5 5Tool orientation for block end;Normal vector componentRealsCACAbsolute approach of position(coded position: absolute coordinate)C...

  • Page 565

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-565CHANDATASet channel number for channel dataaccessINTOnly permissible inthe initializationmoduleCHARData type: ASCII character0, ..., ...

  • Page 566

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-566SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionCOUPRESReset ELG group(couple reset)Programmedvalues invalid;machine datavalues validCPPath movement (continuous path)m49CPRECOF1,6Pr...

  • Page 567

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-567CUT3DCCD5Cutter compensation type 3-dimensional circumferencemilling with limit surfaces with differential toolm22CUT3DF 53D tool off...

  • Page 568

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-568SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionDISCTransition circle overshoot in tool radiuscompensation0, ..., 100mDISPLOFSuppress current block display(display OFF)DISPRDistance...

  • Page 569

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-569ENDPROC End line of program with start line PROCENDWHILEEnd line of WHILE loopETANTangential curve transition to next traversing bloc...

  • Page 570

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-570SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionFCTDEFDefine polynomial functionIs evaluated inSYFCT orPUTFTOCF.FCUB 6Feed variable according to cubic spline(feed cubic)m37FDPath fe...

  • Page 571

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-571FRAMEData type to define the coordinate systemContains for eachgeometry axis:Offset, rotation,angle of shear,scaling, mirroring;For e...

  • Page 572

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-572SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionG functionsGG function (preparatory function)G functions are divided into G groups.Only one of the G functions in a groupmay be progr...

  • Page 573

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-573G33Thread interpolation with constant pitch0.001, ...,2000.00mm/revMotion commandG33 Z... K... SF=... ; cylinder threadG33 X... I... ...

  • Page 574

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-574SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionG93Inverse-time feedrate rpmExecution of ablock: TimeG93 G01 X... F...m15G94 1Linear feed F in mm/min or inch/min and °/minm15G95Rev...

  • Page 575

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-575G601 1Block change in response to exact stop finem12G602Block change in response to exact stop coarsem12G603Block change in response ...

  • Page 576

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-576SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionGOTOJump instruction first forward then backward (directioninitially to end of program and then to start of programGOTOCAlarm 14080 ...

  • Page 577

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-577KONTTraverse around contour for tool compensationm17LSubprogram numberInteger, upto 7 placesL10sLEAD 5Lead angleRealmLEADOFLeading va...

  • Page 578

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-578SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionMASLOFS Deactivate a temporary coupling with automatic slaveaxis stopMASLONEnable a temporary couplingMCALLModal subprogram callWitho...

  • Page 579

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-579NPROTDEFMachine-specific protection area definition(NCK-specific protection area definition)NUMBERConvert input string to numberRealO...

  • Page 580

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-580SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionORIVIRT1 Orientation angles using virtual orientation axes (def. 1)m50ORIVIRT2 Orientation angles using virtual orientation axes(defi...

  • Page 581

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-581POPolynomialReal,without signsPOLFPosition LIFTFASTReal,without signPOLF[Y]=10mPOLY 5Polynomial interpolationm1POLYPATH5Polynomial in...

  • Page 582

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-582SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionR...Arithmetic parametersSW 5 and higher:also as settable address identifier andwith numerical extension±0.0000001,...,9999 9999R pa...

  • Page 583

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-583RINDEXDefine index of character in input string0, ...,INTString: Parameter1, character:Parameter 2RMBReposition at beginning of block...

  • Page 584

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-584SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionSBLOFSuppress single block(single block OFF)The following blocksare executed insingle block like ablock.SBLONClear single block suppr...

  • Page 585

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-585SPIF1 1,6High-speed NCK inputs/outputs for punching/nibblingbyte 1 (stroke/punch interface 1)see /FB/, N4:Punching andNibblingm38SPIF...

  • Page 586

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-586SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionSUPASuppression of current zero offsetincl. programm.offsets, handwheeloffsets (DRF),external zerooffsets andPRESET offsets9SYNFCTEva...

  • Page 587

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-587TMONSelect tool monitoring functionT No. = 0:Deactivatemonitoring functionfor all toolsTMON (T No.)TODefines the end value in a FOR c...

  • Page 588

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-588SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionTRAFOOF Switch off transformationTRAFOOF( )TRAILOFSynchronous coupled motion of axes OFF(trailing OFF)TRAILONSynchronous coupled moti...

  • Page 589

    15 11.02Tables15.1 List of instructions15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-589Legend:1 Default setting at start of program (in delivery state of control system provided that another setting is not programmed).2 ...

  • Page 590

    15 Tables11.0215.1 List of instructions15 Siemens AG, 2002. All rights reserved15-590SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition

  • Page 591

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-59115.2List of system variablesLegend:Parts pr.Parts programSynSynchronized actionOThe index can be calculated online insynchronized...

  • Page 592

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-592SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AC_SYSTEM_MARKERINT$AC_SYSTEM_MARKER[n]Marker variabl...

  • Page 593

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-593IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_TRAFRFRAME$P_TRAFRAxes: (geometry axis, channel axi...

  • Page 594

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-594SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_CARR3REAL$TC_CARR3[n]z component of offset vector ...

  • Page 595

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-595IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_CARR12REAL$TC_CARR12[n]z component of axis of rota...

  • Page 596

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-596SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_CARR21AXIS$TC_CARR21[n]Axis identifier for the 1st...

  • Page 597

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-597IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_CARR27REAL$TC_CARR27[n]Indicates the offset of the...

  • Page 598

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-598SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_CARR29REAL$TC_CARR29[n]Specifies the size of the m...

  • Page 599

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-599IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_CARR32REAL$TC_CARR32[n]Indicates the maximum posit...

  • Page 600

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-600SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_CARR34STRING$TC_CARR34[n]Contains a user-definable...

  • Page 601

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-601IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_CARR37INT$TC_CARR37[n]Contains an integer to ident...

  • Page 602

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-602SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$SC_PA_ORIINT$SC_PA_ORI[n]Orientation of protection zo...

  • Page 603

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-603IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$SC_PA_CONT_ABSREAL$SC_PA_CONT_ABS[n,m]End point of co...

  • Page 604

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-604SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_DP4REAL$TC_DP4[t,d]Geometry - Length 2With active ...

  • Page 605

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-605IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_DP11REAL$TC_DP11[t,d]Angle between tool longitudin...

  • Page 606

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-606SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_DP17REAL$TC_DP17[t,d]Slotting saw: Wear - Length -...

  • Page 607

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-607IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_DP23REAL$TC_DP23[t,d]Base - Length 3With active 'F...

  • Page 608

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-608SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_DPV3REAL$TC_DPV3[t,d] = X-component of tool cuttin...

  • Page 609

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-60915.2.7 Cutting edge data OEM userIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_DPC1REALThe type ...

  • Page 610

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-610SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_DPCS1REALThe type can be defined in the machine da...

  • Page 611

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-611IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_SCP13REALOffset for $TC_DP3: $TC_SCP13[t,d] analog...

  • Page 612

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-612SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_SCP33REALOffset for $TC_DP3: $TC_SCP33[t,d] analog...

  • Page 613

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-613IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_SCP53REALOffset for $TC_DP3: $TC_SCP53[t,d] analog...

  • Page 614

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-614SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_ECP13REALOffset for $TC_DP3: $TC_ECP13[t,d] analog...

  • Page 615

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-615IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_ECP33REALOffset for $TC_DP3: $TC_ECP33[t,d] analog...

  • Page 616

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-616SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_ECP53REALOffset for $TC_DP3: $TC_ECP53[t,d] analog...

  • Page 617

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-61715.2.8 Monitoring data for tool managementIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_MOP1REAL...

  • Page 618

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-618SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.9 Monitoring data for OEM usersIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_MOPC1INTThe ty...

  • Page 619

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-61915.2.10Tool-related dataIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_TP1INT$TC_TP1[t]Duplo numb...

  • Page 620

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-620SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_TPC2REALThe type can be defined in the machine dat...

  • Page 621

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-62115.2.11Tool-related grinding dataIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_TPG1INT$TC_TPG1[t...

  • Page 622

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-622SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.12Magazine location dataIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_MPP1INT$TC_MPP1[n,m]L...

  • Page 623

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-62315.2.13Magazine location data for OEM usersIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_MPPC1IN...

  • Page 624

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-624SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_MLSRINT$TC_MLSR[n,m]=0Assignment between buffer lo...

  • Page 625

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-625IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_MAP7INT$TC_MAP7[n]Number of columnsn: Magazine num...

  • Page 626

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-626SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.16Magazine module parameterIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$TC_MAMP1STRING$TC_MAM...

  • Page 627

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-627IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AA_ENC_COMP_MINREAL$AA_ENC_COMP_MIN[n,a]Compensation ...

  • Page 628

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-628SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AA_QEC_ACCEL_2REAL$AA_QEC_ACCEL_2[n,a]Acceleration in...

  • Page 629

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-62915.2.20Interpolatory compensationIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AN_CECREAL$AN_CEC[n,...

  • Page 630

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-630SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.21NCK-specific protection zonesIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$SN_PA_ACTIV_IMMED...

  • Page 631

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-631IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$SN_PA_CONT_TYPINT$SN_PA_CONT_TYP[n,m]Contour element ...

  • Page 632

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-632SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$C_IREAL$C_I[]Value of programmed address I in Fanuc m...

  • Page 633

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-633IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$C_A_PROGINT$C_A_PROGAddress A is programmed to a bloc...

  • Page 634

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-634SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$C_TS_PROGINTQueries whether, in the case of a subrout...

  • Page 635

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-635IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$C_I_ORDERINT$C_I_ORDER[]Number of the IJK block, in w...

  • Page 636

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-636SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.23System dataIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AN_SETUP_TIMEREALIF $AN_SETUP_TIME ...

  • Page 637

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-637IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_CHBFRAMEFRAME$P_CHBFRAME[n]Current base frames in t...

  • Page 638

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-638SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.25Tool dataIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_ADREAL$P_AD[n]Active tool offsetsn:...

  • Page 639

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-639IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_TOOLNOINT$P_TOOLNOActive tool number T0 - T32000; w...

  • Page 640

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-640SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$VC_TOOLO_DIFFREAL$VC_TOOLO_DIFFAngle between setpoint...

  • Page 641

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-641IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_TOOLNDINT$P_TOOLND[t]Number of cutting edges of too...

  • Page 642

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-642SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_TOOLNGINT$P_TOOLNGNumber of defined tool groups ass...

  • Page 643

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-64315.2.26MagazinesIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_MAGNINT$P_MAGNNumber of defined mag...

  • Page 644

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-644SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_MAGDISLINTP_MAGDISL[ l, i ]Number of the i-th magaz...

  • Page 645

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-645IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_MAGNHINT$P_MAGNHNumber of defined magazine location...

  • Page 646

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-646SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AC_MONMINREAL$AC_MONMINRatio between tool monitoring ...

  • Page 647

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-647IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_AXN3AXIS$P_AXN3Current address of the geometry axis...

  • Page 648

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-648SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_SEARCHLINTR1 = $P_SEARCHLReturns the last selected ...

  • Page 649

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-649IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_DRYRUNBOOL$P_DRYRUNDry run on if TRUE, else FALSER2...

  • Page 650

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-650SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_PATHSTRINGApplication Reading the path name of the...

  • Page 651

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-65115.2.30Channel statesIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AC_STATINT$AC_STAT-1: Invalid0: ...

  • Page 652

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-652SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AC_JOG_COORDINT$AC_JOG_COORDSetting the coordinate sy...

  • Page 653

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-653IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$P_LIFTFASTINT$P_LIFTFASTInformation about execution o...

  • Page 654

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-654SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AC_ASUB(continuation)INTBIT5:Activation due to: Cance...

  • Page 655

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-655IdentifierTypeDescription: System variable/value range/indexParts pr.SynO SASUB(continuation)BIT16:Activation due to: Activation ...

  • Page 656

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-656SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.31Synchronized actionsIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AC_FIFO1REAL$AC_FIFO1[n]FI...

  • Page 657

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-65715.2.32I/OsIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$A_INBOOL$A_IN[n]Digital input NCn: Number ...

  • Page 658

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-658SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.34NCU linkIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$A_DLBINT$A_DLB[n]Read/write data byte ...

  • Page 659

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-659IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$A_PBB_OUTINT$A_PBB_OUT[n]Write data byte (8 bits) dir...

  • Page 660

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-660SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AC_TC_CMDCINT$AC_TC_CMDCCounter variable: $AC_TC_CMDC...

  • Page 661

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-661IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AC_TC_MTNINT$AC_TC_MTNTarget magazine number of new t...

  • Page 662

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-662SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.37TimersIdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$A_YEARINT$A_YEARSystem time, yearRSR3$A_...

  • Page 663

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-663IdentifierTypeDescription: System variable/value range/indexParts pr.SynO S$AC_PRTIME_MREAL$AC_PRTIME_M "ProgramRunTIME...

  • Page 664

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-664SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_REPOS_PATH_MODEINT$AC_REPOS_PATH_MODEREPOS mode ty...

  • Page 665

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-665IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_DELTREAL$AC_DELTStored distance-to-go path in the ...

  • Page 666

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-666SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_VCREAL$AC_VCAdditive path feed compensation for sy...

  • Page 667

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-66715.2.40SpindlesIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$P_SREAL$P_S[n]Last programmed spindle ...

  • Page 668

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-668SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$P_SMODEINT$P_SMODE[n]Last programmed spindle mode:0: ...

  • Page 669

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-669IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$P_SEARCH_SGEARINT$P_SEARCH_SGEAR[n]The last programme...

  • Page 670

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-670SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_MTHNUMINT$AC_MTHNUM - only useful with active maga...

  • Page 671

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-671IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_FCT0REAL$AC_FCT0[n]a0 coefficient of polynomial fo...

  • Page 672

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-672SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.42Channel statesIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_ALARM_STATINT$AC_ALARM_STAT(S...

  • Page 673

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-673IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_G0MODEINT$AC_G0MODE0: G0 not active1: G0 and linea...

  • Page 674

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-674SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_MEAS_WP_SETANGLEREAL$AC_MEAS_WP_SETANGLE = 0.0Setp...

  • Page 675

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-675IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_MEAS_PFRAMEINT$AC_MEAS_PFRAME = 1Programmable fram...

  • Page 676

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-676SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_MEAS_VALIDINT$AC_MEAS_VALID = 0Validity bits of th...

  • Page 677

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-677IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_MEAS_RESULTSREALR0 = $AC_MEAS_RESULTS[0]Measured r...

  • Page 678

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-678SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$P_EPMREAL$P_EPM[X]Current MCS position in the interpr...

  • Page 679

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-67915.2.45Indexing axesIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_ACT_INDEX_AX_POS_NOINT$AA_ACT_...

  • Page 680

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-680SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$VA_IM1REAL$VA_IM1[X]Actual value in the machine coord...

  • Page 681

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-681IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_MM4REAL$AA_MM4[X]Measurement result of axial measu...

  • Page 682

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-682SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_MEAS_POINT3REAL$AA_MEAS_POINT3[x] = $AA_IW[x]$AA_M...

  • Page 683

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-683IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AC_RETPOINTREAL$AC_RETPOINT[X]$AC_RETPOINT[] returns ...

  • Page 684

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-684SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15.2.49Axial pathsIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_DTBWREAL$AA_DTBW[X]axial path fr...

  • Page 685

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-68515.2.50OscillationIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_DTEPWREAL$AA_DTEPW[X]Axial dista...

  • Page 686

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-686SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_OVRREAL$AA_OVR[X]Axial override for motion-synchro...

  • Page 687

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-687IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_VACTMREAL$AA_VACTM[X]Axis velocity, setpoint-relat...

  • Page 688

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-688SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$VA_CURRREAL$VA_CURR[X]Actual current value of axis or...

  • Page 689

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-689IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_SNGLAX_STATINT$AA_SNGLAX_STAT[X]Axis status:0: Axi...

  • Page 690

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-690SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$P_SEARCH_MASLDREAL$P_SEARCH_MASLD[axis identifier]In ...

  • Page 691

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-691IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_FOCINT$AA_FOC[X]Setpoint status state "ForceC...

  • Page 692

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-692SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$VA_EG_SYNCDIFF_SREAL$VA_EG_SYNCDIFF_S[a]a: Following ...

  • Page 693

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-693IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_LEAD_VREAL$AA_LEAD_V[LW]Current master value - vel...

  • Page 694

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-694SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$PA_ACCLIMAINT$PA_ACCLIMAAcceleration override set in ...

  • Page 695

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-695IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_ESR_TRIGGERBOOL$AA_ESR_TRIGGER = 1Trigger "NC...

  • Page 696

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-696SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$AA_EG_DENOM REAL$AA_EG_DENOM[a,b]a: Following axisb: ...

  • Page 697

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-697IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$A_OUTSEPDINT$A_OUTSEPD[n]Image of Safety output signa...

  • Page 698

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-698SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionIdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$A_TIMERSIREAL$A_TIMERSI[n]Safety timer - unit in seco...

  • Page 699

    15 11.02Tables15.2 List of system variables15 Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition15-699IdentifierTypeDescription: System variable/value range/indexParts pr.SyncOS$VA_ISREAL$VA_IS[X]Reliable actual position (SISITEC)A...

  • Page 700

    15 Tables11.0215.2 List of system variables15 Siemens AG, 2002. All rights reserved15-700SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition

  • Page 701

    A 11.02AppendixA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-701AppendixA Index ..............................................................................................................................A-702B Commands, ...

  • Page 702

    A Appendix11.02IndexA Siemens AG, 2002. All rights reservedA-702SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionAIndex$$A_CMDSI 15-698$A_DAY 15-662$A_DBB 15-657$A_DBD 15-657$A_DBR 15-657$A_DBW 15-657$A_DLB 15-658$A_DLD 15-658$A_DLR 15-658$A_DLW 15-658$A_DN...

  • Page 703

    A 11.02AppendixIndexA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-703$AA_DTEB 15-684$AA_DTEPB 15-685$AA_DTEPW 15-685$AA_DTEW 15-684$AA_EG_ACTIVE 15-696$AA_EG_AX 15-692$AA_EG_DENOM 15-696$AA_EG_NUM_LA 15-691$AA_EG_NU...

  • Page 704

    A Appendix11.02IndexA Siemens AG, 2002. All rights reservedA-704SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition$AA_S 15-667$AA_SCPAR 5-232, 15-694$AA_SCTRACE 15-693$AA_SNGLAX_STAT 15-689$AA_SOFTENDN 15-683$AA_SOFTENDP 15-683$AA_STAT 15-688$AA_SYNC 15-693$AA...

  • Page 705

    A 11.02AppendixIndexA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-705$AC_MEAS_VALID 15-676$AC_MEAS_WP_ANGLE 15-676$AC_MEAS_WP_SETANGLE 15-674$AC_MONMIN 15-646$AC_MSNUM 15-669$AC_MTHNUM 15-670$AC_OPERATING_TIME 15-672...

  • Page 706

    A Appendix11.02IndexA Siemens AG, 2002. All rights reservedA-706SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition$C_DL 15-632$C_DL_PROG 15-633$C_H 15-631$C_I 15-632$C_I_NUM 15-634$C_I_ORDER 15-635$C_IN 15-659$C_INC_PROG 15-634$C_J 15-632$C_J_NUM 15-634$C_J_...

  • Page 707

    A 11.02AppendixIndexA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-707$P_NCBFRMASK 15-637$P_NUM_SPINDLES 15-669$P_OFFN 15-649$P_PARTFR 15-592$P_PARTFRAME 15-636$P_PFRAME 15-637$P_POLF 15-678$P_POLF_VALID 15-678$P_PRO...

  • Page 708

    A Appendix11.02IndexA Siemens AG, 2002. All rights reservedA-708SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition$SN_PA_CONT_ORD 15-631$SN_PA_CONT_TYP 15-631$SN_PA_LIM_3DIM 15-630$SN_PA_MINUS_LIM 15-630$SN_PA_ORI 15-630$SN_PA_PLUS_LIM 15-630$SN_PA_T_W 15-630$T...

  • Page 709

    A 11.02AppendixIndexA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-709$TC_DPH 15-607$TC_DPV 15-607$TC_DPV3 15-608$TC_DPV4 15-608$TC_DPV5 15-608$TC_ECP13 15-614$TC_ECP14 15-614$TC_ECP21 15-614$TC_ECP23 15-614$TC_ECP2...

  • Page 710

    A Appendix11.02IndexA Siemens AG, 2002. All rights reservedA-710SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 Edition$TC_SCP54 15-613$TC_SCP61 15-613$TC_SCP63 15-613$TC_SCP64 15-613$TC_SCP71 15-613$TC_TP1 15-619$TC_TP10 15-619$TC_TP11 15-619$TC_TP2 15-619$TC_TP3...

  • Page 711

    A 11.02AppendixIndexA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-711AActual value and setpoint coupling 9-376Actual-value coupling 13-495Adaptive control, additive 10-424Adaptive control, multiplicative 10-425Angle of ...

  • Page 712

    A Appendix11.02IndexA Siemens AG, 2002. All rights reservedA-712SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionCoupled-axis motion 10-438Coupling 9-352, 9-358Coupling 13-495Cov.com, user cycles 2-138Create interrupt routine as subprogram 1-78CS 9-352CTAB 9-3...

  • Page 713

    A 11.02AppendixIndexA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-713FF word polynomial 5-212Face milling 7-272Face turningExternal machining 14-543Internal machining 14-543FAxis 9-352, 9-358, 9-364, 9-375FeedAxial 10...

  • Page 714

    A Appendix11.02IndexA Siemens AG, 2002. All rights reservedA-714SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionLearn compensation characteristics 13-493Linear interpolation 5-211, 5-212Link axis 13-526Link communication 13-522Link module 13-523Link variableGlo...

  • Page 715

    A 11.02AppendixIndexA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-715PParameterizable subprogram return 2-113Parameters of the rotary axes 8-348Parts program 13-523, 13-526Partial infeed 11-464Partial length 11-463Path...

  • Page 716

    A Appendix11.02IndexA Siemens AG, 2002. All rights reservedA-716SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionApproach along semi-circle 9-392Approach with new tool 9-390Repositioning point 9-389Reset 10-450Resolved kinematics 8-346ReversalArea 11-464Point ...

  • Page 717

    A 11.02AppendixIndexA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-717Synchronized spindle 13-495Activate synchronized mode 13-501Block change behavior 13-500Coupling type 13-500Deactivate synchronized mode 13-501Define...

  • Page 718

    A Appendix11.02IndexA Siemens AG, 2002. All rights reservedA-718SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionVVariable 1-26Arithmetic variable 1-27Array definition 1-34Assignments 1-45Indirect programming 1-40System variable 1-27Type conversion 1-54User-de...

  • Page 719

    A 11.02AppendixCommands, IdentifiersA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-719BCommands, Identifiers-- 1-41** 1-41// 1-41:: 1-41++ 1-41<< 1-43<< 1-43<= 1-43<> 1-43=== 1-43>> 1-43...

  • Page 720

    A Appendix11.02Commands, IdentifiersA Siemens AG, 2002. All rights reservedA-720SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionCC2 7-236C3 7-236C4 7-236C5 7-236CAC 5-154CACN 5-154CACP 5-154CALCDAT 14-490, 14-505CALL 2-107CANCEL 10-354CASE 1-58CDC 5-154C...

  • Page 721

    A 11.02AppendixCommands, IdentifiersA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-721EXECTAB 14-504EXECUTE 4-144, 4-146, 14-491, 14-498EXP 1-41EXTCALL 2-113EXTERN 2-101FFA 11-418, 13-453FALSE 1-25FCTDEF 8-283FCUB 9...

  • Page 722

    A Appendix11.02Commands, IdentifiersA Siemens AG, 2002. All rights reservedA-722SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionMCALL 2-106MEAC 5-186, 5-194MEAFRAME 6-220MEAS 5-183MEASA 5-186MEAW 5-183MEAWA 5-186MI 6-209MIRROR 6-204MMC 13-486MOD 1-41MOV ...

  • Page 723

    A 11.02AppendixCommands, IdentifiersA Siemens AG, 2002. All rights reservedSINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionA-723QECLRNOF 13-448QECLRNON 13-448QECTEST.MPF 13-449RRDISABLE 10-374REAL 1-29RELEASE 1-78REP 1-36REPEAT 1-60REPOS 1-70, 1-77REPOSA 9...

  • Page 724

    A Appendix11.02Commands, IdentifiersA Siemens AG, 2002. All rights reservedA-724SINUMERIK 840D/840Di/810D Programming Guide Advanced (PGA) – 11.02 EditionTOLOWER 1-52TOUPPER 1-52TR 6-209TRAANG 7-253, 7-259TRACYL 7-250, 7-253TRAFOOF 7-232, 7-250, 7-253, 7-259, 7-267TRAILOF 9-321TRAILON...

  • Page 725

    ToSIEMENS AGSuggestionsCorrectionsA&D MC BMSP.O. Box 3180D-91050 Erlangen, GermanyPhone: ++49-(0)180-5050-222 [Hotline]Fax: ++49-(0)9131-98-2176 [Documentation]Email: motioncontrol.docu@erlf.siemens.deFor publication/manual:SINUMERIK 840D/840Di/810DProgramming GuideAdvancedUser Documentatio...

  • Page 726

  • Page 727

    User DocumentationSINUMERIK840D/810DSINUMERIKOverview of SINUMERIK 840D/840Di/810D Documentation (11.2002)BrochureCatalog Ordering Info.NC 60 *)Description of Functions Drive Functions *)Description of Functions– Basic Machine *) – Extended Functions– Special Functions611D840D/810DSINUMERIK...

  • Page 728

  • Page 729

    © Siemens AG, 2002Subject to change without prior notice Order No.: 6FC5298-6AB10-0BP2Printed in GermanySiemens AGAutomation & DrivesMotion Control SystemsP.O. Box 3180, D-91050 ErlangenGermanywww.ad.siemens.de

x