hit counter script
Siemens sinumerik 840d Programming Manual

Siemens sinumerik 840d Programming Manual

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

SINUMERIK 840D/840Di/810D/FM-NC
Programming Guide
04.2000 Edition
Advanced
Manual Number: M-409
Part Number: M -0009500-0409

Advertisement

Table of Contents
loading

Summary of Contents for Siemens sinumerik 840d

  • Page 1 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide 04.2000 Edition Advanced Manual Number: M-409 Part Number: M -0009500-0409...
  • Page 2: Sinumerik 840Di

    Overview of SINUMERIK 840D/840Di/810D/FM-NC Documentation (04.00) General Documentation User Documentation SINUMERIK SIROTEC SINUMERIK SINUMERIK SINUMERIK SINUMERIK SINUMERIK SINUMERIK SIMODRIVE 840D/810D/ 840D/840Di/ Accessories 840D/810D/ 840D/810D 840D/840Di/ 840D/810D/ FM-NC 810D/ FM-NC 810D/ FM-NC FM-NC/611 FM-NC Brochure Catalog Catalog AutoTurn Operator’s Guide Operator’s Guide...
  • Page 3 Transformations Tool Offsets Path Traversing Behavior Motion-Synchronous Action Oscillation Valid for Control Software Version SINUMERIK 840D Punching and Nibbling SINUMERIK 840Di SINUMERIK 840DE (export version) SINUMERIK 810D SINUMERIK 810DE (export version) Additional Functions SINUMERIK FM-NC User Stock Removal Programs Tables 04.2000 Edition...
  • Page 4 All rights, including rights created by patent grant or registration of a utility model or design, are reserved. Subject to change without prior notice. © Siemens AG 1996–2000. All rights reserved Order No. 6FC5298-5AB10-0BP2 Siemens Aktiengesellschaft Printed in the Federal Republic of Germany...
  • Page 5: Table Of Contents

    1.20 ISFILE: File available in user memory NCK (as from SW 5.2) ........1-87 1.21 CHECKSUM: Creation of a checksum over an array (> SW 5.2)........1-88  Siemens AG 2000. All rights reserved SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 6 Approaching coded positions, CAC, CIC, CDC, CACP, CACN ........5-150 Spline interpolation....................... 5-151 Compressor COMPON/COMPCURV ................5-160 Polynomial interpolation, POLY..................5-163 Settable path reference, SPATH, UPATH (SW 4.3 and higher) ........5-169  Siemens AG 2000. All rights reserved SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 7 Inclined axis: TRAANG ....................7-247 Supplementary conditions when selecting a transformation........7-251 Deactivate transformation: TRAFOOF................. 7-253 Chained transformations....................7-254 Switchable geometry axes, GEOAX ................7-257  Siemens AG 2000. All rights reserved SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 8 10.3 Special real-time variables for synchronized actions ..........10-353 10.3.1 Flags/counters $AC_MARKER[n] ................. 10-353 10.3.2 Timer variable $AC_TIMER[n], as from SW 4 ............10-353 10.3.3 Synchronized action parameters $AC_PARAM[n]..........10-354  Siemens AG 2000. All rights reserved SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 9 11.1 Asynchronous oscillation.................... 11-396 11.2 Oscillation controlled via synchronized actions............11-403 Punching and Nibbling 12-415 12.1 Activation, deactivation ....................12-416 12.1.1 Language commands ................... 12-416  Siemens AG 2000. All rights reserved SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 10 14.2 Contour preparation: CONTPRON................14-465 14.3 Contour decoding: CONTDCON (as of SW 5.2)............14-472 14.4 Intersection of two contour elements: INTERSEC ............. 14-476  Siemens AG 2000. All rights reserved 0-10 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 11 15.2.32 Path movement..................... 15-553 15.2.33 Velocities....................... 15-554 15.2.34 Spindles ........................ 15-555 15.2.35 Polynomial values for synchronized actions ............15-557 15.2.36 Channel statuses ....................15-558  Siemens AG 2000. All rights reserved 0-11 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 12 15.2.53 Axis container......................15-571 15.2.54 Electronic gear 2 ....................15-571 15.2.55 Safety Integrated 2 ....................15-572 Appendix A-575 Index ........................A-577 Commands, Identifiers ....................A-591  Siemens AG 2000. All rights reserved 0-12 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 13: Preface

    This does not, however, represent as obligation to supply such functions with a new control or when servicing.  Siemens AG 2000. All rights reserved 0-13 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 14: Sinumerik 840De (Export Version)

    Continuous dressing − − − Use of the compile cycles (OEM) − Multidimensional sag compensation − Function not possible 1) Limited functional scope  Siemens AG 2000. All rights reserved 0-14 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 15 • Retraction to retraction plane with G0 the workshop.  Siemens AG 1997 All rights reserved. 2-36 SINUMERIK 840D/810D/FM-NC Programming Guide, Cycles (PGZ) - 08.97 Edition.  Siemens AG 2000. All rights reserved 0-15 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 16 SINUMERIK control.  Siemens AG 1997 All rights reserved. 2-37 SINUMERIK 840D/810D/FM-NC Programming Guide, Cycles (PGZ) - 08.97 Edition. 3. From theory to practice Drilling cycles and drilling patterns 08.97 03.96...
  • Page 17 Explanation of the symbols Sequence of operations Explanation Function Parameters Programming example Programming Additional notes Cross-references to other documentation and sections Important information and safety notices  Siemens AG 2000. All rights reserved 0-17 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 18 (faults and damages visible from outside, as well as changes in operation behavior) of the control.  Siemens AG 2000. All rights reserved 0-18 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 19 Unforeseen dangers can result in: • personal injury or death, • damage to the control, machine and other possessions of the plant and user.  Siemens AG 2000. All rights reserved 0-19 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 20 Preface 04.00 Structure of the manual Notes  Siemens AG 2000. All rights reserved 0-20 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 21: Flexible Nc Programming

    1.20 ISFILE: File available in user memory NCK (as from SW 5.2) ........1-87 1.21 CHECKSUM: Creation of a checksum over an array (< SW 5.2)........1-88  Siemens AG 2000. All rights reserved 1-21 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 22 System variables provide access to zero offsets, tool offsets, actual values, measured values on the axes, control states, etc. (See Appendix for the meaning of the system variables)  Siemens AG 2000. All rights reserved 1-22 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 23: Variables And Arithmetic Parameters

    System variables return machine and control states. Some of the system variables cannot be assigned values.  Siemens AG 2000. All rights reserved 1-23 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 24 Programmed values Current values Service data 2nd letter Meaning NCK-global Channel-specific Axis-specific Example: $AA_IM Meaning: Current axis-specific value in the machine coordinate system.  Siemens AG 2000. All rights reserved 1-24 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 25: Variable Definition

    DEF INT VAR2 ;LUD DEFINITION IF (VAR1==1) ;read PUD VAR1=VAR1+1 ;read and write ;PUD VAR2=1 ;write LUD ENDIF SUB3 ;subprogram call PROC SUB3 ;subprogram SUB3  Siemens AG 2000. All rights reserved 1-25 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 26 DEF CHAR name or DEF CHAR name[array index]=("A","B",...) DEF STRING[string length] name DEF AXIS name or DEF AXIS name[array index] DEF FRAME name  Siemens AG 2000. All rights reserved 1-26 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 27 A variable of type REAL is created with the name DEPTH. The initial value is 6.25. DEF REAL DEPTH=3.1,LENGTH=2,QUANTITY It is also possible to define several variables in a single line.  Siemens AG 2000. All rights reserved 1-27 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 28 – here X1 (axis names with extended addresses are enclosed in parentheses). Variable type FRAME DEF FRAME INCLINE_1 The variables of type FRAME are called INCLINE_1.  Siemens AG 2000. All rights reserved 1-28 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 29 ;1st geometry axis IF ISAXIS(1)==FALSE GOTOF CONTINUE ABSCISSA = $P_AXN1 … CONTINUE: Indirect spindle programming DEF AXIS SPINDLE SPINDLE=(S1) OVRA[SPINDLE]=80 ;Spindle override= 80% SPINDLE=(S3) …  Siemens AG 2000. All rights reserved 1-29 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 30: Array Definition

    It should not be set higher than actually required. Standard: 812 bytes If no large arrays are defined, please select: 256 bytes.  Siemens AG 2000. All rights reserved 1-30 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 31 [2,3]....n-1,0 n-1,1 n-1,2 ,m-1  Siemens AG 2000. All rights reserved 1-31 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 32 Example: DEF REAL ARRAY[2,3]=(10, 20, 30, 40) You can specify SET optionally when defining arrays.  Siemens AG 2000. All rights reserved 1-32 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 33 The axis index is not processed for axis variables. Example: Initialization on one line $MA_AX_VELO_LIMIT[1, AX1] = SET(1.1, 2.2, 3.3) Corresponds to: $MA_AX_VELO_LIMIT[1,AX1] = 1.1 $MA_AX_VELO_LIMIT[2,AX1] = 2.2 $MA_AX_VELO_LIMIT[3,AX1] = 3.3  Siemens AG 2000. All rights reserved 1-33 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 34 Variables of the FRAME type are permitted and can be initialized very simply using this method. Example: Initialization of all elements with one value DEF FRAME FRM[10] FRM[5] = REP(CTRANS (X,5))  Siemens AG 2000. All rights reserved 1-34 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 35 [9,2] have been initialized with the default value (0.0). with the default value (0.0). The array elements [6,0] to [8,0] have not been changed.  Siemens AG 2000. All rights reserved 1-35 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 36: Indirect Programming

    Direct programming Indirect programming: DEF AXIS AXVAR3=X Measured value in machine coordinates for $AA_MM[AXVAR3] axis whose name is stored in the variable AXVAR3.  Siemens AG 2000. All rights reserved 1-36 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 37 Call the program with the number contained in R10 Additional notes R parameters can also be interpreted as single- dimensional arrays with abbreviated notation (R10 corresponds to R[10]).  Siemens AG 2000. All rights reserved 1-37 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 38: Assignments

    'Viene lavorata l'ultima figura' on the screen. Non-displayable characters can be stored in the string as binary or hexadecimal constants.  Siemens AG 2000. All rights reserved 1-38 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 39: Arithmetic Operations/Functions

    TRUNC() Truncate to integer ROUND() Round to integer LN() Natural logarithm EXP() Exponential function CTRANS() Translation CROT() Rotation CSCALE() Scale change CMIRROR() Mirroring  Siemens AG 2000. All rights reserved 1-39 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 40 +180°). The angular reference is always based on Angle=20.8455° the 2nd value in the positive direction. 2nd vector 80.1 R3=ATAN2(30,-80) Angle=159.444° 2nd vector  Siemens AG 2000. All rights reserved 1-40 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 41: Comparison And Logic Operators

    Chaining of strings Programming example IF R10>=100 GOTOF DEST R11=R10>=100 IF R11 GOTOF DEST The result of the comparison R10>=100 is first buffered in R11.  Siemens AG 2000. All rights reserved 1-41 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 42 Programming example IF (R10<50) AND ($AA_IM[X]>=17.5) GOTOF DEST IF NOT R10 GOTOB START NOT refers only to an operand.  Siemens AG 2000. All rights reserved 1-42 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 43 Bit exclusive OR The operator B_NOT refers only to an operand; this follows the operator. Programming example IF $MC_RESET_MODE_MASK B_AND 'B10000' GOTOF ACT_PLANE  Siemens AG 2000. All rights reserved 1-43 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 44: Priority Of Operators

    The chain operator ":" for frames may not appear with other operators in an expression. A priority level is thus not required for this operator.  Siemens AG 2000. All rights reserved 1-44 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 45: Possible Type Conversions

    If a value is greater than the target range on conversion, an error message is generated. Additional notes If mixed types occur in an expression, a type conversion is performed automatically.  Siemens AG 2000. All rights reserved 1-45 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 46: String Operations

    CHAR_ERG = STRINGVAR [IDX] Result type: CHAR CHAR_ERG = STRINGFIELD [IDX_FIELD, IDX_CHAR] Result type: CHAR "bel._Typ" stands for variable types INT, REAL, CHAR, STRING and BOOL.  Siemens AG 2000. All rights reserved 1-46 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 47: Type Conversion

    Variables of the AXIS type can be converted to STRING by means of the AXSTRING function. FRAME variables cannot be converted. Example: MSG("Position:"<<$AA_IM[X])  Siemens AG 2000. All rights reserved 1-47 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 48 ;now: BOOL_ERG == FALSE REAL_ERG = NUMBER ("1234.9876Ex-7") ;now: REAL_ERG == 1234.9876Ex-7 STRING_ERG = AXSTRING(X) ;now: STRING_ERG == "X" AXIS_ERG = AXNAME("X") ;now: AXIS_ERG == X  Siemens AG 2000. All rights reserved 1-48 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 49: Chaining Of Strings

    For example, this function can be used to compile a message or a command from text lists and to insert parameters (such as module name): MSG(STRG_TAB[LOAD_IDX]<<MODULE_NAME)  Siemens AG 2000. All rights reserved 1-49 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 50: Conversion To Lower/Upper Case

    (i.e. upper case or lower case): DEF STRING [29] STRG … IF "LEARN.CNC" == TOUPPER (STRG) GOTOF LOAD_LEARN  Siemens AG 2000. All rights reserved 1-50 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 51: Length Of String

    (first parameter) where the search has been successful. If the character/string cannot be found, the value "−1" is returned. In this case, the first character is in position 0.  Siemens AG 2000. All rights reserved 1-51 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 52 "Path" and "Module": VARIABLE = SUBSTR (INPUT, PATHIDX, Then supplies "_N_MPF_DIR" PROGIDX-PATHIDX-1) VARIABLE = SUBSTR (INPUT, PROGIDX) Then supplies "_N_EXECUTE_MPF"  Siemens AG 2000. All rights reserved 1-52 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 53: Selection Of A Substring

    If the start position or the length is negative, then an alarm is output. Example: DEF STRING [29] ERG ERG = SUBSTR ("ACKNOWLEDGMENT: 10 to 99", ; ERG therefore == "10" 10, 2)  Siemens AG 2000. All rights reserved 1-53 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 54: Selecting A Single Character

    DEF STRING [50] MESSAGE = "Axis n has reached position" MESSAGE [6] = "X" MSG (MESSAGE) ;Returns the message "Axis X has reached position"  Siemens AG 2000. All rights reserved 1-54 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 55 DEF STRING [50] STRG DEF CHAR CHR1 EXTERN UP_CALL (VAR CHAR1) ;Call-by-reference parameter! … CHR = STRG [5] UP_CALL (CHR1) ;Call-by-reference STRG [5] = CHR1  Siemens AG 2000. All rights reserved 1-55 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 56: Case Instruction

    The program jumps to the point specified by the jump destination, depending on the value of the constant evaluated in the CASE statement.  Siemens AG 2000. All rights reserved 1-56 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 57 CASE(VAR1+VAR2-VAR3) OF 7 GOTOF LABEL1 9 GOTOF LABEL2 DEFAULT GOTOF LABEL3 LABEL1: G0 X1 Y1 LABEL2: G0 X2 Y2 LABEL3: G0 X3 Y3  Siemens AG 2000. All rights reserved 1-57 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 58: Control Structures

    If the condition is not fulfilled, then the ELSE program branch is executed. The ELSE branch can be omitted.  Siemens AG 2000. All rights reserved 1-58 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 59 4. Program loop with condition at start of the loop WHILE The WHILE program loop is executed for as long as the condition is fulfilled. WHILE expression NC blocks ENDWHILE  Siemens AG 2000. All rights reserved 1-59 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 60 There is no difference between program branches and check structures in precompiled cycles.  Siemens AG 2000. All rights reserved 1-60 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 61 It is not permissible to superimpose macros on vocabulary words for check structures or on branch destinations. No such check is made when the macro is defined.  Siemens AG 2000. All rights reserved 1-61 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 62 G4 F2 ENDLOOP 2. Production of a fixed quantity of parts %_N_WKPCCOUNT_MPF DEF INT WKPCCOUNT FOR WKPCCOUNT = 0 TO 100 G01 … ENDFOR  Siemens AG 2000. All rights reserved 1-62 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 63: Program Coordination

    Special instructions (commands) are available for program coordination. Each instruction is programmed separately in a block.  Siemens AG 2000. All rights reserved 1-63 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 64 "Marker no." in the specified channels "n" (current channel does not have to be specified). Marker is deleted after synchronization. 10 markers can be set per channel simultaneously.  Siemens AG 2000. All rights reserved 1-64 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 65 Channel names must be converted to numbers via variables (see Section 10 "Variables and Arithmetic Parameters"). Protect the number assignments so that they are not changed unintentionally.  Siemens AG 2000. All rights reserved 1-65 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 66 Wait for WAIT mark 2 in channel 1 and in channel 2 and execution continued in channel 2 N400 M30 End of program in channel 2  Siemens AG 2000. All rights reserved 1-66 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 67 START command or else a program end will be detected before the program is started. Remedy: Programming a dwell time. Example: N30 START (2) N31 G4 F0.01 N40 WAITE(2)  Siemens AG 2000. All rights reserved 1-67 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 68: Interrupt Routine

    – depending on the REPOS command. For further information on REPOS, see Chapter 9, Path Traversing Behavior, Repositioning.  Siemens AG 2000. All rights reserved 1-68 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 69 15 (feed type) is changed, e.g. from G94 to G95, the appropriate F value is also reestablished. Machining can thus be resumed later at the point of interruption.  Siemens AG 2000. All rights reserved 1-69 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 70 First SETINT(3), then SETINT(2). If new signals are received while interrupt routines are being executed, the current interrupt routines are interrupted by routines with higher priority.  Siemens AG 2000. All rights reserved 1-70 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 71 Assignments can be cleared with CLRINT(n). Example: N20 SETINT(3) PRIO=2 LIFT_Z N50 CLRINT(3) The assignment between input 3 and the routine LIFT_Z is cleared.  Siemens AG 2000. All rights reserved 1-71 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 72 The tool moves – with G41 activated (direction of machining to the left of the contour) – away from the contour perpendicularly as seen from above.  Siemens AG 2000. All rights reserved 1-72 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 73 Codes 2, 3, 4 with G41 Codes 6, 7, 8 with G42. In these cases, the tool would approach the contour and collide with the workpiece.  Siemens AG 2000. All rights reserved 1-73 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 74 ALF=1 retraction in Z direction ALF=3 retraction in X direction • G19: Y/Z plane ALF=1 retraction in Y direction ALF=3 retraction in Z direction  Siemens AG 2000. All rights reserved 1-74 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 75 If you do not program any of the REPOS commands in the subprogram, the axis is moved to the end of the block that follows the interrupted block.  Siemens AG 2000. All rights reserved 1-75 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 76: Axis Transfer, Spindle Transfer

    3. A concurrent positioning axis must not be transferred. 4. All the following axes of a gantry master axis are transferred with the master.  Siemens AG 2000. All rights reserved 1-76 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 77 If an axis is in principle available in a channel but is not currently defined as a "channel axis", GET is executed automatically. If the axis/axes is/are already synchronized no preprocess stop is generated.  Siemens AG 2000. All rights reserved 1-77 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 78 RELEASE has to be programmed in another channel for this GETD. It also means that other channel communication has to be established (e.g. wait markers).  Siemens AG 2000. All rights reserved 1-78 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 79 Wait for wait marker in channel 1 and 2 for synchronizing both channels N150 GET (AX2) Accept axis AX2 N… Rest of program after axis transfer N…M30  Siemens AG 2000. All rights reserved 1-79 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 80: Newconf: Setting Machine Data Active (As From Sw 4.3)

    Programming example Milling operation: Machining drilling position with different technologies N10 $MA_CONTOUR_TOL[AX]=1.0 ; Change machine data N20 NEWCONF ; Set machine data active  Siemens AG 2000. All rights reserved 1-80 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 81: Write: Write File (As From Sw 4.3)

    _N_PROTFILE _N_PROTFILE_MPF /_N_MPF_DIR_/_N_PROTFILE_MPF/ string Text to be written. Internally LF is then added; this means that the text is lengthened by one character.  Siemens AG 2000. All rights reserved 1-81 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 82 • If no such file exists in the NC, it is newly created and can be written to by means of the WRITE command.  Siemens AG 2000. All rights reserved 1-82 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 83: Delete: Delete File (As From Sw 4.3)

    (= directory of selected program). The file name length can be up to 32 bytes, the path length up to 128 bytes. Example: PROTFILE _N_PROTFILE _N_PROTFILE_MPF /_N_MPF_DIR_/_N_PROTFILE_MPF/  Siemens AG 2000. All rights reserved 1-83 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 84: Read: Read Lines In File (As From Sw 5.2)

    The READ command reads one or several lines in the file specified and stores the information read in an array of type STRING. In this array, each read line occupies an array element.  Siemens AG 2000. All rights reserved 1-84 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 85 One or several lines can be read from a file with the READ command. The lines read are stored in one array element of an array. The information is available as STRING.  Siemens AG 2000. All rights reserved 1-85 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 86 ; file name with domain and file identifier and path specification _MPF", 1, 5 RESULT) ^... N40 IF ERROR <>0 ; error evaluation MSG("ERROR"<<ERROR<<" WITH READ COMMAND") N70 ENDIF  Siemens AG 2000. All rights reserved 1-86 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 87: Isfile: File Available In User Memory Nck (As From Sw 5.2)

    N10 DEF BOOL RESULT N20 RESULT=ISFILE("TESTFILE") N30 IF(RESULT==FALSE) MSG("FILE DOES NOT EXIST") N60 ENDIF N30 IF(NOT ISFILE("TESTFILE")) MSG("FILE DOES NOT EXIST") N60 ENDIF  Siemens AG 2000. All rights reserved 1-87 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 88: Checksum: Creation Of A Checksum Over An Array (> Sw 5.2)

    Column number of end column (optional) Function With CHECKSUM you form a checksum over an array. Stock removal application: Check to see whether the initial contour has changed.  Siemens AG 2000. All rights reserved 1-88 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 89 N10 DEF INT ERROR N20 DEF STRING[16] MY_CHECKSUM N30 DEF INT MY_VAR[4,4] N40 MY_VAR=... N50 ERROR=CHECKSUM (CHECKSUM;"MY_VAR", 0, 2) returns in MY_CHECKSUM the value "A6FC3404E534047C"  Siemens AG 2000. All rights reserved 1-89 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 90 1.21 CHECKSUM: Creation of a checksum over an array (> SW 5.2) 840D 840D 810D 840Di NCU 571 NCU 572 NCU 573 Notes  Siemens AG 2000. All rights reserved 1-90 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 91 2.10 Single block suppression, SBLOF, SBLON (SW 4.3 and higher)........ 2-108 2.11 Executing an external subprogram (SW 4.2 and higher)..........2-111 2.12 Cycles: Setting parameters for user cycles..............2-113 2.13 Macros ......................... 2-118  Siemens AG 2000. All rights reserved 2-91 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 92: Using Subprograms

    The structure of a subprogram is identical to that of the main program. In a subprogram it is also possible to program a program header with parameter definitions.  Siemens AG 2000. All rights reserved 2-92 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 93 If you call a cycle from a subprogram you must do this no deeper than level 5 (if four levels are reserved for interrupt routines).  Siemens AG 2000. All rights reserved 2-93 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 94: Subprogram With Save Mechanism

    After returning to the main program, absolute dimension applies again because the modal functions of the main program were stored with SAVE.  Siemens AG 2000. All rights reserved 2-94 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 95: Subprograms With Parameter Transfer

     Siemens AG 2000. All rights reserved 2-95 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 96 Any change to the parameters in the subprogram LENGTH, WIDTH New values also causes the parameter to change in the main apply program (see Fig.).  Siemens AG 2000. All rights reserved 2-96 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 97 The definition statement with PROC must be programmed in a separate NC block. A maximum of 127 parameters can be declared for parameter transfer.  Siemens AG 2000. All rights reserved 2-97 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 98 -> INT NUMBER) DEF INT COUNT STEP: G1 X=ARRAY[COUNT,0]-> Machining sequence -> Y=ARRAY[COUNT,1] F100 Z=IC(-5) Z=IC(5) COUNT=COUNT+1 IF COUNT<NUMBER GOTOB STEP End of subprogram  Siemens AG 2000. All rights reserved 2-98 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 99: Calling Subprograms

    EXTERN NAME(VAR TYP1, VAR TYP2, …) Example: N10 EXTERN BORDER(REAL, REAL, REAL) … N40 BORDER(15.3,20.2,5) N10 Declaration of the subprogram, N40 Subprogram call with parameter transfer.  Siemens AG 2000. All rights reserved 2-99 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 100 Example: Definition in the subprogram: PROC BORDER(REAL LENGTH, REAL WIDTH, REAL DEPTH) Call in the main program: N30 BORDER(LENGTH, WIDTH, DEPTH)  Siemens AG 2000. All rights reserved 2-100 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 101 • FALSE, if no value was set as transfer parameter. If an impermissible parameter number was specified, part program processing is aborted with alarm output.  Siemens AG 2000. All rights reserved 2-101 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 102 Program the call by specifying the program name. N10... Example: N50 M30 N10 MPF739 or N10 SHAFT3 A subprogram can also be started as a main program.  Siemens AG 2000. All rights reserved 2-102 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 103: Subprogram With Program Repetition

    The parameters remain unchanged for the repetitions. If you want to change the parameters in the program repetitions you must define declarations in the subprograms.  Siemens AG 2000. All rights reserved 2-103 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 104: Modal Subprogram, Mcall

    Deactivating the modal subprogram call With MCALL without a subprogram call or by programming a new modal subprogram call for a new subprogram.  Siemens AG 2000. All rights reserved 2-104 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 105: Calling The Subprogram Indirectly

    PROGNAME="/_N_WCS_DIR/_N_SUBPROG_WPD/_N_PART1_SPF" CALL PROGNAME The subprogram PART1 is assigned the variable PROGNAME. With CALL and the path name you can call the subprogram indirectly.  Siemens AG 2000. All rights reserved 2-105 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 106: Calling Subprogram With Path Specification And Parameters, Pcall

    _N_ and the extension as Extern. Parameters 1 to n Current parameters in accordance with the PROC statement of the subprogram Example: PCALL/_N_WCS_DIR/_N_SHAFT_WPD/SHAFT(parameter1, parameter2, ...>)  Siemens AG 2000. All rights reserved 2-106 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 107: Suppressing Current Block Display, Displof

    ;e.g.: CYCLE(X, 100.0) DEF REAL DIFF ;Cycle contents G01 … … ;Subprogram return, the following block of the calling program is displayed again  Siemens AG 2000. All rights reserved 2-107 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 108: Single Block Suppression, Sblof, Sblon (Sw 4.3 And Higher)

    N10 G1 X100 F1000 N20 SBLOF Deactivate single block N30 Y20 N40 M100 N50 R10=90 N60 SBLON Reactivate single block N70 M110 N80 ...  Siemens AG 2000. All rights reserved 2-108 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 109 SBLOF. • For testing purposes it is possible to suppress the effectiveness of SBLOF via OPI variable (see OEM documentation).  Siemens AG 2000. All rights reserved 2-109 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 110 N140 _G54: G55 D=$P_TOOL T=$P_TOOLNO N150 RET N160 _G56: G56 D=$P_TOOL T=$P_TOOLNO N170 RET N180 _G57: G57 D=$P_TOOL T=$P_TOOLNO N190 RET N200 END: D=$P_TOOL T=$P_TOOLNO N210 RET  Siemens AG 2000. All rights reserved 2-110 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 111: Executing An External Subprogram (Sw 4.2 And Higher)

    SD 42700 contains a path definition that builds the absolute path name of the program to be called in conjunction with the programmed subprogram identifier.  Siemens AG 2000. All rights reserved 2-111 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 112 The main program _N_MAIN_MPF is in user memory and is selected. %_N_MACHINE1_MPF N10 PROC MAIN N20 ... N30 EXTCALL ROUGHING_SPF ; Call of external subprogram ROUGHING_SPF N40 ... N50 M30  Siemens AG 2000. All rights reserved 2-112 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 113: Cycles: Setting Parameters For User Cycles

    Both files are to be loaded in the passive file system in the "User cycles" directory (or must be given the appropriate path specification in the program: ;$PATH=/_N_CST_DIR).  Siemens AG 2000. All rights reserved 2-113 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 114 Cycle name: The program name of the cycle to be included Comment text: Optionally a comment text for the cycle Example: C25 (MY_CYCLE_1) usercycle_1 C26 (SPECIALCYCLE)  Siemens AG 2000. All rights reserved 2-114 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 115 ;The cycle has the following transfer parameters: ;VALUE1: Real value without value range limitation and default ;VALUE2: Integer value without value range limitation and default  Siemens AG 2000. All rights reserved 2-115 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 116 Header line for each cycle: as in the cov.com file preceded by "//" //C<Number> (<Cycle name>) comment text Example: //C25(MY_CYCLE_1) usercycle_  Siemens AG 2000. All rights reserved 2-116 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 117 Text of up to 50 characters which is displayed in front of the parameter input field in the call screen for the cycle.  Siemens AG 2000. All rights reserved 2-117 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 118: Macros

    The macro can then be called in any main program or subprogram and executed.  Siemens AG 2000. All rights reserved 2-118 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 119 N20 DEFINE M100 AS M6 N80 DEFINE M999 AS M6 Additional notes Nesting of macros is not possible. Two-digit H and L functions can be programmed.  Siemens AG 2000. All rights reserved 2-119 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 120 • With macros you can define any identifiers, G, M, H functions and L program names. • Macro identifiers with 1 letter and 1 digit are permissible (FM-NC only).  Siemens AG 2000. All rights reserved 2-120 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 121: File And Program Management

    Defining user data......................3-131 Defining protection levels for user data (GUD) ............. 3-135 Automatic activation of GUDs and MACs (SW 4.4 and higher)........3-137 Siemens AG 2000. All rights reserved 3-121 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 122: Overview

    The files and programs are stored in the program memory and are thus permanently stored (passive file system). Example: Main programs and subprograms, macro definitions. Siemens AG 2000. All rights reserved 3-122 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 123: Program Memory

    _N_SHAFT_MPF _N_MPF123_MPF _N_PART2_MPF _N_L1_SPF _N_..._... _N_PART1_SPF _N_PART2_SPF _N_SHAFT_INI _N_SHAFT_SEA _N_PART2_INI Names in bold: Permanent _N_PART2_UFR _N_PART2_COM Names not in bold: Assigned by user _N_SHAFT Siemens AG 2000. All rights reserved 3-123 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 124: Program Memory

    Tool offsets name_UFR Zero offsets/frames name_INI Initialization file name_GUD Global user data name_RPA R parameters name_COM Comments name_DEF Definitions for global user data and macros Siemens AG 2000. All rights reserved 3-124 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 125 General initialization program for the data for the Part 2 program _N_PART2_UFR Initialization program for the frame data for the Part 2 program _N_SHAFT_COM Comment file Siemens AG 2000. All rights reserved 3-125 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 126 /_N_MPF_DIR. Example with path for the previous example SHAFT: %_N_SHAFT_MPF ;$PATH=/_N_WCS_DIR/_N_SHAFT_WPD N10 G0 X… Z… • • • %_N_SHAFT_SPF Siemens AG 2000. All rights reserved 3-126 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 127 2. Current directory / name_SPF 3. Current directory / name_MPF 4. /_N_SPF_DIR / name_SPF Global subprograms 5. /_N_CUS_DIR / name_SPF User cycles 6. /_N_CST_DIR / name_SPF Standard cycles Siemens AG 2000. All rights reserved 3-127 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 128: User Memory

    CH<n> Channel-specific data (n specifies the channel number) AX<n> Axis-specific data (n specifies the number of the machine axis) Tool data COMPLETE All data Siemens AG 2000. All rights reserved 3-128 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 129 It is thus also possible to initialize program- controlled data. Information on file types is given in the Operator's Guide. Siemens AG 2000. All rights reserved 3-129 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 130 Program processing is aborted if an error occurs. Note INI files in job lists do not contain any CHANDATA instructions. Siemens AG 2000. All rights reserved 3-130 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 131: Defining User Data

    Contains definitions for measuring cycles (Siemens, protection level 0) _N_GUD7_DEF Contains definitions for standard cycles (Siemens, protection level 0) or freely definable without standard cycles _N_GUD8_DEF Freely definable _N_GUD9_DEF Freely definable Siemens AG 2000. All rights reserved 3-131 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 132 Note If you erroneously enter in the GUD definition file a higher access level than your authorization allows, the archive file must be reimported. Siemens AG 2000. All rights reserved 3-132 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 133 V.24 interface. Example of a definition file, global data (Siemens): %_N_SGUD_DEF ;$PATH=/_N_DEF_DIR DEF NCK REAL RTP ;Retraction plane DEF CHAN INT SDIS ;Safety clearance Siemens AG 2000. All rights reserved 3-133 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 134 ;Access from all channels DEF CHAN INT TOOLTABLE[100] ;Tool table for channel-spec. image ;of the tool number at magazine locations ;Separate table created for each channel Siemens AG 2000. All rights reserved 3-134 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 135: Defining Protection Levels For User Data (Gud)

    The access protection applies to all variables defined in this module. When an attempt is made to access protected data, the control outputs an appropriate alarm. Siemens AG 2000. All rights reserved 3-135 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 136 2 ;Write with protection level OEM_LOW ;Caution! This entry can alter the access rights of the file itself (see above) DEF CHAN REAL_CORRVAL … Siemens AG 2000. All rights reserved 3-136 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 137: Automatic Activation Of Guds And Macs (Sw 4.4 And Higher)

    Unload If a definition file is unloaded, the associated data block is deleted after a query is displayed. Siemens AG 2000. All rights reserved 3-137 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 138 NC to the MMC and back into the NC again to activate it. Siemens AG 2000. All rights reserved 3-138 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 139: Protection Zones

    08.97 Protection Zones Protection Zones Defining the protection zones CPROTDEF, NPROTDEF..........4-140 Activating/deactivating protection zones: CPROT, NPROT.......... 4-144  Siemens AG 2000. All rights reserved 4-139 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 140: Defining The Protection Zones Cprotdef, Nprotdef

    Value of the limit in the negative direction in the 3rd dimension NOT_USED Error variable has no effect in protection zones with EXECUTE  Siemens AG 2000. All rights reserved 4-140 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 141 You can specify a relative offset for the reference point of the protection zone when the protection zone is activated in the NC part program.  Siemens AG 2000. All rights reserved 4-141 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 142 With the 810D, a maximum of 4 contour elements are available for defining one protection zone (max. 4 channel-specific and 4 NCK-specific protection zones).  Siemens AG 2000. All rights reserved 4-142 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 143 Concave protection zones (not permitted) • Transformation, • Frame. Nor must reference point approach (G74), fixed point approach (G75), block search stop or program end be programmed.  Siemens AG 2000. All rights reserved 4-143 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 144: Activating/Deactivating Protection Zones: Cprot, Nprot

    If no tool-oriented protection zone is active, the tool path is checked against the workpiece-oriented protection zones. If no workpiece-oriented protection zone is active, protection zone monitoring does not take place.  Siemens AG 2000. All rights reserved 4-144 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 145 $SN_PA_ACTIV_IMMED [n] or $SN_PA_ACTIV_IMMED[n] = TRUE must be set for this. They are always activated with Status = 2 and have no offset.  Siemens AG 2000. All rights reserved 4-145 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 146 The position of the reference point of the measuring probe on activation of the function must be X = –120, Y = 60 and Z = 80.  Siemens AG 2000. All rights reserved 4-146 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 147 Activate protection zone n–SB2 with offset CPROT(1,2,0,0,0) Activate protection zone c–SB1 with offset CPROT(2,2,0,0,0) Activate protection zone c–SB2 with offset CPROT(3,2,0,0,0) Activate protection zone c–SB3 with offset  Siemens AG 2000. All rights reserved 4-147 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 148 Protection Zones 08.97 4.2 Activating/deactivating protection zones: CPROT, NPROT 840D 840D FM-NC 810D 840Di NCU 571 NCU 572 NCU 573 Notes  Siemens AG 2000. All rights reserved 4-148 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 149: Special Motion Commands

    Special functions for OEM users .................. 5-187 Programmable motion end criterion (SW 5.1 and higher) ..........5-188 5.10 Programmable servo parameter block (SW 5.1 and higher) ........5-189  Siemens AG 2000. All rights reserved 5-149 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 150: Approaching Coded Positions, Cac, Cic, Cdc, Cacp, Cacn

    Feed for positioning axis B N20 POS[B]= CAC (10) Approach coded position 10 (absolutely) N30 POS[B]= CIC (-4) Travel 4 spaces back from the current position  Siemens AG 2000. All rights reserved 5-150 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 151: Spline Interpolation

    You can select one of three spline types: − A spline (akima spline) − B spline (non-uniform, rational basis spline, NURBS) − C spline (cubic spline)  Siemens AG 2000. All rights reserved 5-151 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 152 Supplementary conditions can be programmed for akima splines (see below for more information). A 3rd-degree polynomial is used for interpolation.  Siemens AG 2000. All rights reserved 5-152 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 153 Spline degree: A 3rd-degree polygon is used as standard, but a 2nd- degree polygon is also possible. Programming: SD = 2  Siemens AG 2000. All rights reserved 5-153 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 154 The spline is not local, i.e. changes to an interpolation point can influence a large number of blocks (with gradually decreasing effect). P1 to P7: Predefined coordinates  Siemens AG 2000. All rights reserved 5-154 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 155 Zero curvature ETAN Tangential transition to next block (initial setting) BAUTO EAUTO No command input BNAT ENAT Zero curvature Transition tangential BTAN ETAN  Siemens AG 2000. All rights reserved 5-155 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 156 N60 X50 Y15 N70 X55 Y7 N80 X60 Y20 N90 X65 Y20 N100 X70 Y0 N110 X80 Y10 N120 X90 Y0 N130 M30  Siemens AG 2000. All rights reserved 5-156 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 157 The instruction is programmed in a separate block. If SPLINEPATH is not explicitly programmed, then the first three axes in the channel are traversed as the spline grouping.  Siemens AG 2000. All rights reserved 5-157 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 158 N13 CSPLINE BAUTO EAUTO X20 Y30 Z40 A50 B60 C spline N14 X30 Y40 Z50 A60 B70 Interpolation points … N100 G1 X… Y… Deselection of spline interpolation  Siemens AG 2000. All rights reserved 5-158 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 159 An alarm is output if the tolerated value is exceeded and likewise when one of the axes involved in the spline is programmed as a positioning axis.  Siemens AG 2000. All rights reserved 5-159 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 160: Compressor Compon/Compcurv

    Blocks to be compressed may contain only block number, G1, axis addresses, feed and comment. This sequence is mandatory. Variables may not be used.  Siemens AG 2000. All rights reserved 5-160 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 161 • $MC_COMPRESS_VELO_TOL The maximum permissible path feed deviation with active compressor can be preset in conjunction with FLIN and FCUB.  Siemens AG 2000. All rights reserved 5-161 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 162 N20 X0.102 Y-0.018 N21 X0.097 Y-0.036 N22 X0.089 Y-0.052 N23 X0.078 Y-0.067 Not compressed are e.g. extended addresses such as C=100 or A=ACNC.  Siemens AG 2000. All rights reserved 5-162 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 163: Polynomial Interpolation, Poly

    It can be applied optimally in cases where the coefficients are supplied directly by a CAD system or postprocessor.  Siemens AG 2000. All rights reserved 5-163 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 164 Several values, separated by commas, are specified according to the degree of the polynomial. Different polynomial degrees can be programmed for different axes within one block.  Siemens AG 2000. All rights reserved 5-164 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 165 N25 X70 PO[Y]=(9.3,1,7.67) PL=5 Mixed settings for axes N27 PO[X]=(10.2.5) PO[Y]=(2.3) No PL value programmed; PL=1 applies N30 G1 X… Y… Z. Polynomial interpolation OFF …  Siemens AG 2000. All rights reserved 5-165 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 166 N10 POLY PO[Y]= (2) PO[X] (4.0.25) PL=4 (PL) N9 X0 Y0 G90 F100 N10 POLY PO[Y]=(2) PO[X]=(4,0.25) PL=4 Result in XY plane (PL)  Siemens AG 2000. All rights reserved 5-166 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 167 As a result of the programmed start points, end points, coefficient a and PL=1, the intermediate values are as follows: Numerator (X)=10+0*p–10p Numerator (Y)=0+20*p+0*p Denominator = 1+2*p+1*p  Siemens AG 2000. All rights reserved 5-167 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 168 Tool radius compensation can be activated with G41, G42 in conjunction with polynomial interpolation and can be applied in the same way as in linear or circular interpolation modes.  Siemens AG 2000. All rights reserved 5-168 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 169: Settable Path Reference, Spath, Upath (Sw 4.3 And Higher)

    S of these axes usually means a non constant change of curve parameter U.  Siemens AG 2000. All rights reserved 5-169 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 170 Disadvantage: Only one ADIS value is available for all axes. See also: References /PG/, Programming Guide Fundamentals, Chapter 5, Path Action  Siemens AG 2000. All rights reserved 5-170 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 171 If SPATH is active, the axes are traversed synchronized with the path; if UPATH is active, traversal is synchronized with the curve parameter.  Siemens AG 2000. All rights reserved 5-171 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 172 (45th G code group). The basic setting value for the type of rounding is set in MD 20150: GCODE_RESET_VALUES [9] (10th G code group).  Siemens AG 2000. All rights reserved 5-172 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 173 Axial machine data MD 33100: COMPRESS_POS_TOL has been expanded in SW 4.3 and higher: It contains the tolerances for the compressor function and for rounding with G642.  Siemens AG 2000. All rights reserved 5-173 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 174: Measurements With Touch Trigger Probe, Meas, Meaw

    A preprocessing stop must be programmed with STOPRE at the appropriate position in the program. The system will otherwise read false values.  Siemens AG 2000. All rights reserved 5-174 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 175 N10 MEAS=1 G1 F1000 X100 Y730 Z40 Measurement block with probe at first measuring input and linear interpolation. A preprocessing stop is automatically generated.  Siemens AG 2000. All rights reserved 5-175 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 176 Additional notes The MEAS and MEAW functions are active non- modally.  Siemens AG 2000. All rights reserved 5-176 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 177: Extended Measuring Function Measa, Meawa, Meac (Sw 4 And Higher, Option)

    Rising edge, probe 1 –1 Falling edge, probe 1 Rising edge, probe 2 –2 Falling edge, probe 2 Measurement Number of FIFO (circulating storage) memory  Siemens AG 2000. All rights reserved 5-177 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 178 • In the case of continuous measurement with MEAC, the ratio between the interpolation cycle and position control cycle must not exceed 8:1.  Siemens AG 2000. All rights reserved 5-178 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 179 1 at START. Additional notes No more than 2 trigger events can be programmed if 2 measuring systems are in use.  Siemens AG 2000. All rights reserved 5-179 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 180 $AA_WM1[axis] Measured value of programmed measuring system on trigger event 1 … $AA_WM4[axis] Measured value of programmed measuring system on trigger event 4  Siemens AG 2000. All rights reserved 5-180 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 181 Measured value of measuring system 2 on trigger event Measuring probe status can be read via $A_PROBE[n] n=Probe 1==Probe deflected 0==Probe not deflected  Siemens AG 2000. All rights reserved 5-181 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 182 In this case, data must be read out at the same frequency as new measured values are read in.  Siemens AG 2000. All rights reserved 5-182 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 183 Store measured value of measuring system 1 on falling edge N260 R13 = $AA_MM4[X] Store measured value of measuring system 2 on falling edge N270 END:  Siemens AG 2000. All rights reserved 5-183 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 184 (rising edge probe 2) N180 R13 = $AA_MM4[X] Store measured value acquired on fourth programmed trigger event (rising edge probe 2) N190 END:  Siemens AG 2000. All rights reserved 5-184 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 185 Measurement with delete distance-to-go after 10 measured values Delete distance-to-go N20 MEAC[x]=(1,1,1,-1) G01 X100 F500 N30 MEAC[X]=(0) N40 R1 = $AC_FIFO1[4] Number of measured values  Siemens AG 2000. All rights reserved 5-185 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 186 N01 MEASA[X]=(1,1) MEASA[Y]=(1,1) G01 X50 Y50 Z50 F100 GEO axis X/Y/Z • Inconsistent measuring job with GEO axes Example: N01 MEASA[X]=(1,1) MEASA[Y]=(1,1) MEASA[Z]=(1,1,2) G01 X50 Y50 Z50 F100  Siemens AG 2000. All rights reserved 5-186 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 187: Special Functions For Oem Users

    OEM user to be accessed for external applications. Functions and subprograms OEM users can also set up predefined functions and subprograms with parameter transfer.  Siemens AG 2000. All rights reserved 5-187 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 188: Programmable Motion End Criterion (Sw 5.1 And Higher)

    $AA_MOTENDA[<axis>] = 2 • End of motion with "IPO-Stop". $AA_MOTENDA[<axis>] = 3 Additional notes The last programmed value is retained after RESET. References: /FB1/V1 feedrates  Siemens AG 2000. All rights reserved 5-188 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 189: Programmable Servo Parameter Block (Sw 5.1 And Higher)

    To prevent conflicts between the PLC-user request and NC-user request, a further bit is defined on the PLC–>NCK interface: DB3n DBB9 Bit3 "Parameter block definition locked through SCPARA".  Siemens AG 2000. All rights reserved 5-189 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 190 PLC, the PLC-application program mst be extended. • References: /FB1/V1 feedrates Programming example N110 SCPARA[X]= 3 The 3rd parameter block is selected for axis X  Siemens AG 2000. All rights reserved 5-190 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 191: Frames

    Frame calculation from three measuring points in the area, MEAFRAME ....6-209 NCU-global frames (SW 5 and higher) ................ 6-212 6.9.1 Channel-specific frames.................... 6-213 6.9.2 Frames active in the channel ..................6-215  Siemens AG 2000. All rights reserved 6-191 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 192: Coordinate Transformation Via Frame Variables

    NC program. Possible frame variable: • Base frame (basic offset) • Settable frames • Programmable frame  Siemens AG 2000. All rights reserved 6-192 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 193 $P_BFRAME, $P_UBFR • you have to program a G500, G54...G599, or • you have to describe $P_BFRAME with $P_UBFR.  Siemens AG 2000. All rights reserved 6-193 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 194 $P_PFRAME. $P_ACTFRAME describes the currently valid workpiece zero. If $P_IFRAME, $P_BFRAME or $P_PFRAME are changed, $P_ACTFRAME is recalculated. $P_ACTFRAME corresponds to $P_BFRAME:$P_IFRAME:$P_PFRAME  Siemens AG 2000. All rights reserved 6-194 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 195 $P_UIFR[0]...$P_UIFR[4] or 5 G commands with the same meaning – G500 and G54 to G57 – at whose addresses values can be stored.  Siemens AG 2000. All rights reserved 6-195 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 196 Frame variables must be programmed in a separate NC block in the NC program. Exception: programming of a settable frame with G54, G55, ...  Siemens AG 2000. All rights reserved 6-196 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 197: Frame Variables/Assigning Values To Frames

    (…):(…). This causes the commands firstly to be linked and secondly to be executed additively in the programmed sequence.  Siemens AG 2000. All rights reserved 6-197 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 198 C TR A N S C R O T C M IR R O R N10 $P_PFRAME=CTRANS(X,10,Y,20,Z,5):CROT(Z,45):CMIRROR(Y)  Siemens AG 2000. All rights reserved 6-198 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 199 Specify the component to be read or modified: TR translation, FI translation fine, RT rotation, SC scale change, MI mirroring. The corresponding axis is also specified (see examples).  Siemens AG 2000. All rights reserved 6-199 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 200 The axis name and the frame component of the value you want to access or modify are written in square brackets, e.g. [X, RT] or [Z, MI].  Siemens AG 2000. All rights reserved 6-200 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 201 $P_UIFR[16], e.g. data for rotations, are subsequently processed additively. The settable frame 3 is created by $P_UIFR[3]=$P_UIFR[4]:$P_UIFR[5] chaining the settable frames 4 and 5.  Siemens AG 2000. All rights reserved 6-201 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 202 These are chained to generate various workpiece zeroes. Please note that the frames must be linked to one another by the colon chain operator :.  Siemens AG 2000. All rights reserved 6-202 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 203 CSCALE and CMIRROR to assign values to your frames in the NC program. You will find more information on this subject on the previous pages.  Siemens AG 2000. All rights reserved 6-203 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 204: Coarse/Fine Offset

    G500, G54...G599. An activated fine offset of a frame is active for as long as the frame is active.  Siemens AG 2000. All rights reserved 6-204 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 205: Drf Offset

    Clear DRF offset, DRFOF DRFOF clears the handwheel offset for all axes assigned to the channel. DRFOF is programmed in a separate NC block.  Siemens AG 2000. All rights reserved 6-205 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 206: External Zero Offset

    The value entered in the part program only becomes active when the corresponding signal is enabled at the VDI interface (NCU-PLC interface).  Siemens AG 2000. All rights reserved 6-206 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 207: Programming Preset Offset, Preseton

    If the original system is to be restored, the reference point must be approached with G74 – see Section 3.1.  Siemens AG 2000. All rights reserved 6-207 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 208: Deactivating Frames

    The programmable frames are cleared by assigning a "zero frame" (without axis specification) to the programmable frame. Example: $P_PFRAME=TRANS( ) $P_PFRAME=ROT( ) $P_PFRAME=SCALE( ) $P_PFRAME=MIRROR( )  Siemens AG 2000. All rights reserved 6-208 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 209: Frame Calculation From Three Measuring Points In The Area, Meaframe

    Since the effective distortion can be used to judge the quality of the measurement, MEAFRAME returns it as an additional variable.  Siemens AG 2000. All rights reserved 6-209 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 210 DEF REAL SHOW_MCS_POS1[3] DEF REAL SHOW_MCS_POS2[3] DEF REAL SHOW_MCS_POS3[3] ; ======================================================= N100 G01 G90 F5000 N110 X0 Y0 Z0 N200 CORR_FRAME=MEAFRAME(IDEAL_POINT,MEAS_POINT,FIT_QUALITY)  Siemens AG 2000. All rights reserved 6-210 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 211 N600 X=IDEAL_POINT[2,0] Y=IDEAL_POINT[2,1] Z=IDEAL_POINT[2,2] N610 SHOW_MCS_POS3[0]=$AA_IM[X] N620 SHOW_MCS_POS3[1]=$AA_IM[Y] N630 SHOW_MCS_POS3[2]=$AA_IM[Z] N700 G500; Deactivate settable frame, as preset with zero frame (no value set) NO_FRAME:  Siemens AG 2000. All rights reserved 6-211 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 212: Ncu-Global Frames (Sw 5 And Higher)

    The number of global base frames is configured via machine data. (See/FB/ K2, Axes, Coordinate Systems, Frames) Channel-specific base frames can be present at the same time.  Siemens AG 2000. All rights reserved 6-212 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 213: Channel-Specific Frames

    Fine offset is also possible for global frames. Suppression of global frames also takes place, as is the case with channel-specific frames, via G53, G153, SUPA and G500.  Siemens AG 2000. All rights reserved 6-213 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 214 If there is no channel-specific base frame, an alarm is issued at read/write: "Frame: instruction not permissible".  Siemens AG 2000. All rights reserved 6-214 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 215: Frames Active In The Channel

    If there is no channel-specific base frame, an alarm is issued at read/write: "Frame: instruction not permissible".  Siemens AG 2000. All rights reserved 6-215 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 216 MCS = Machine coordinate system BCS = Basic coordinate system WCS = Workpiece coordinate system BOS = Basic origin system SZS = Settable zero system  Siemens AG 2000. All rights reserved 6-216 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 217 NCU, both $P_UIFR[n] and $P_IFRAME have to be programmed. The other channels must then still activate the respective frame with, for example, G54.  Siemens AG 2000. All rights reserved 6-217 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 218 $P_ACTBFRAME : $P_IFRAME : $P_PFRAME Entered via program, e.g. Entered via program, e.g. $P_ACTBFRAME=$P_NCBFRAME[1] $P_PFRAME=CTRANS(X,10) or TRANS X10 Entered via program, e.g. $P_IFRAME=CTRANS(X,10)  Siemens AG 2000. All rights reserved 6-218 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 219: Transformations

    Inclined axis: TRAANG ....................7-247 Supplementary conditions when selecting a transformation......... 7-251 Deactivate transformation: TRAFOOF................7-253 Chained transformations....................7-254 Switchable geometry axes, GEOAX ................7-257  Siemens AG 2000. All rights reserved 7-219 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 220: Three, Four And Five-Axes Transformation: Traori

    In the examples on the right, the arrangements are illustrated by machine kinematics CA! Universal milling head, version 1  Siemens AG 2000. All rights reserved 7-220 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 221 A A B B C C 2nd rotary axis B C A C A B Linear swivel axis Z Y Z X Y X  Siemens AG 2000. All rights reserved 7-221 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 222  Siemens AG 2000. All rights reserved 7-222 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 223: Programming The Tool Orientation

    Without 5-axis transformation With 5-axis transformation Advantage: These programs can be transferred to any machine kinematics.  Siemens AG 2000. All rights reserved 7-223 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 224 In this case, the value of C2 (rotation around new Z axis) is irrelevant and does not need to be With B2 = 45° rotating around programmed. rotating X axis  Siemens AG 2000. All rights reserved 7-224 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 225 Direction vector Unprogrammed vector components are set to zero. C3 =... B3 =... A3 =...  Siemens AG 2000. All rights reserved 7-225 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 226 When ORIWCS is active (see following pages), the normal surface vectors refer to the active frame and are rotated at the same time as the frame.  Siemens AG 2000. All rights reserved 7-226 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 227: Tool Offsets

    Behavior at inside corners (with 3D tool offset) If the block is shortened at an inside corner, the resulting tool orientation is also achieved at the block end.  Siemens AG 2000. All rights reserved 7-227 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 228: Orientation Axes Reference, Oriwks, Orimks

    Vector at beginning of block Vector at end of block  Siemens AG 2000. All rights reserved 7-228 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 229: Singular Positions And How They Are Handled

    Notes on SW 5.2: From SW 5.2 and higher, singular positions are treated only with MD $MC_TRAFO5_POLE_LIMIT (see Description of Functions, Part 3, Section 2.8.4).  Siemens AG 2000. All rights reserved 7-229 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 230: Orientation Axes (Sw 5.2 And Higher)

    This provides a third degree of freedom that describes the rotation around itself, which is necessary for six-axes transformations.  Siemens AG 2000. All rights reserved 7-230 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 231 A separate velocity can be specified with the following machine data: $MC_JOG_VELO_RAPID_GEO $MC_JOG_VELO_GEO $MC_JOG_VELO_RAPID_ORI $MC_JOG_VELO_ORI  Siemens AG 2000. All rights reserved 7-231 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 232 [degrees/min]. If geometry axes and orientation axes are traversing a path together, the traversing movement is determined from the smallest feedrate.  Siemens AG 2000. All rights reserved 7-232 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 233: Cartesian Ptp Travel (Sw 5.2 And Higher)

    PTP and CP. The commands are modal. CP is set by default.  Siemens AG 2000. All rights reserved 7-233 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 234 The axes traverse along the shortest path: • if TU was not programmed with a position • with axes that have a traversing range > ±360 degrees  Siemens AG 2000. All rights reserved 7-234 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 235 For PTP blocks, the corresponding axes of the machine coordinate system are used for the calculation.  Siemens AG 2000. All rights reserved 7-235 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 236 Cartesian PTP motion. Overrides must not exist in the BCS on a change from PTP to CP motion.  Siemens AG 2000. All rights reserved 7-236 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 237 X1000 Y0 Z400 A0 X1000 Z500 A0 STAT=´B10´ TU=´B100´ PTP Reorientation without transformation → Elbow down X1200 Z400 CP Transformation active again X1000 Z500 A20  Siemens AG 2000. All rights reserved 7-237 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 238: Milling Machining On Turned Parts: Transmit

    • Tool center offset relative to the turning center is permitted. • The speed control provides defined limits for the rotary movements.  Siemens AG 2000. All rights reserved 7-238 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 239 The setting is carried out in MD 24911 and 24951. References /FB/ M1 Kinematic Transformations  Siemens AG 2000. All rights reserved 7-239 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 240 N170 X10 N180 Y–10 N190 Z20 G40 Deselect frame N200 TRANS N210 TRAFOOF N220 G0 X20 Z10 SPOS=45 Approach reference point N230 M30  Siemens AG 2000. All rights reserved 7-240 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 241: Cylinder Surface Transformation: Tracyl

    • Any other groove shapes on cylindrical bodies. The shape of the grooves is programmed with reference to the processed level cylinder surface area. Workpiece coordinate system  Siemens AG 2000. All rights reserved 7-241 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 242 Z or ZM The linear axes are positioned perpendicular to each other. The speed control provides defined limits for the rotary movements. Machine coordinate system  Siemens AG 2000. All rights reserved 7-242 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 243 9. Deselect TRC 10. Retract block (exit TRC and retract from side of groove) 11. Positioning 12. TRAFOOF 13. Select original coordinate offset (FRAME) again  Siemens AG 2000. All rights reserved 7-243 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 244 TRACYL minimizes errors. In order to prevent inaccuracies from occuring, the tool radius should only be slightly smaller than half of the groove width.  Siemens AG 2000. All rights reserved 7-244 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 245 • The geometry axis in the circumferential direction of the cylinder surface curve (Y axis) • The additional linear axis used in groove side compensation (Z axis)  Siemens AG 2000. All rights reserved 7-245 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 246 Retract from the side of the groove N150 G1 X25 Retract N160 TRAFOOF N170 G0 X25 Y0 Z105 CC=200 Approach reference point N180 M30  Siemens AG 2000. All rights reserved 7-246 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 247: Inclined Axis: Traang

    An active TRAANG transformation is also deactivated if one of the other transformations (e.g. TRACYL, TRANSMIT, TRAORI) is activated on the same channel.  Siemens AG 2000. All rights reserved 7-247 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 248 The following machining operations are possible: 1. Longitudinal grinding 2. Transverse grinding 3. Grinding of a specific contour 4. Inclined recess grinding  Siemens AG 2000. All rights reserved 7-248 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 249 • Assignment of machine axis names The procedure is the same as for the normal axis configuration with the exception of "Inclined axis active".  Siemens AG 2000. All rights reserved 7-249 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 250 Enable oscillation axes as positioning axes N100 TRAFOOF Switch off transformation N110 G0 Z10 MU=10 Retract N120 M30 -> program in one block  Siemens AG 2000. All rights reserved 7-250 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 251: Supplementary Conditions When Selecting A Transformation

    A change in the tool length compensation and selection/deselection of tool radius compensation must not be programmed in the same block.  Siemens AG 2000. All rights reserved 7-251 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 252 Axes involved in transformation cannot be used • as a preset axis (alarm) • for approaching the fixed point (alarm) • for referencing (alarm)  Siemens AG 2000. All rights reserved 7-252 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 253: Deactivate Transformation: Trafoof

    The same restrictions apply for deselection of a transformation as for its activation (see preceding Section "Supplementary conditions for selection of a transformation")  Siemens AG 2000. All rights reserved 7-253 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 254: Chained Transformations

    The supplementary conditions and special cases specified in the individual descriptions for the transformations also apply to a chained transformation.  Siemens AG 2000. All rights reserved 7-254 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 255 2 for the second chained transformation. (With values unequal to 0 – 2, an alarm is issued).  Siemens AG 2000. All rights reserved 7-255 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 256 Deactivation Programming TRAFOOF Function The command deactivates the (chained) transformation that was last activated.  Siemens AG 2000. All rights reserved 7-256 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 257: Switchable Geometry Axes, Geoax

    N100 GEOAX (3,Z2) Channel axis Z2 operates as the Z axis. N110 G1 ..N120 GEOAX (3,Z1) Channel axis Z1 operates as the Z axis.  Siemens AG 2000. All rights reserved 7-257 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 258 Channel axis U is the first geometry axis, N... GEOAX (1, U, 2, V, 3, W) V the second and W the third.  Siemens AG 2000. All rights reserved 7-258 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 259  Siemens AG 2000. All rights reserved 7-259 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 260 RESET is to reestablish the basic configuration of the geometry axes. In this case the geometry axis configuration defined with the transformation is maintained.  Siemens AG 2000. All rights reserved 7-260 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 261 V becomes the third geometry axis (Z), W is overwritten and therefore removed from the geometry axes group. The second geometry axis (Y) is still unassigned.  Siemens AG 2000. All rights reserved 7-261 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 262 Transformations 08.97 7.8 Switchable geometry axes, GEOAX 840 D 810D 840Di NCU 572 NCU 573 Notes  Siemens AG 2000. All rights reserved 7-262 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 263: Tool Offsets

    8.7.2 Renaming D numbers (GETDNO, SETDNO) ............8-293 8.7.3 T numbers for the specified D number (GETACTTD)..........8-294 8.7.4 Set final D numbers to invalid..................8-295 Toolholder kinematics ....................8-296  Siemens AG 2000. All rights reserved 8-263 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 264: Offset Memory

    The individual values of the offset memories P1 to P25 can be read from and written to the program via system variable.  Siemens AG 2000. All rights reserved 8-264 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 265: Tool Parameters

    Clearance angle For turning tools Additional notes All other parameters are reserved. Machine manufacturer User cutting edge data can be configured via MD.  Siemens AG 2000. All rights reserved 8-265 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 266: Language Commands For Tool Management

    T_NO. DELT function The DELT function can be used to delete a tool without referring to the T number. DELT("WZ",DUPLO_NO)  Siemens AG 2000. All rights reserved 8-266 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 267 SETPIECE for the stated spindle number. SETPIECE(x,y) Number of completed workpieces y spindle number, 0 stands for master spindle (default setting)  Siemens AG 2000. All rights reserved 8-267 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 268 Machining with drill A complete list of all variables required for tool management is given in the list of system variables in the Appendix.  Siemens AG 2000. All rights reserved 8-268 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 269: Online Tool Offset Putftocf, Putftoc, Ftocon, Ftocof

    LLimit Lower limit ULimit Upper limit Coefficients of polynomial function Value Value added in the wear parameter  Siemens AG 2000. All rights reserved 8-269 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 270 GWPSON or TMON as long as it is not the active grinding wheel (see Programming Guide "Fundamentals").  Siemens AG 2000. All rights reserved 8-270 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 271 The offset, e.g. changing actual value, is derived from the "Reference value“ variable. If not spindle number is programmed, the offset applies to the active tool.  Siemens AG 2000. All rights reserved 8-271 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 272 • The online tool offset can also be selected modally with FTOC. Please refer to Section "Motion-synchronized actions" for more information.  Siemens AG 2000. All rights reserved 8-272 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 273 1. N60 V–0.05 G1 F0.01 G91 Infeed movement for dressing, PUTFTOCF is only effective in this block … N… M30  Siemens AG 2000. All rights reserved 8-273 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 274 1 as the offset value. WAITM(1,1,2) Synchronization with machining channel G1 V-0.05 F0.01, G91 Infeed movement for dressing G1 V-0.05 F0.02 CANCEL(1) Deselect online offset  Siemens AG 2000. All rights reserved 8-274 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 275: Maintain Tool Radius Compensation At Constant Level, Cutconon (Sw 4 And Higher)

    The offset point at the end of block position is approached in the last motion block before CUTCONON. All following blocks in which the compensation suppression is active are executed without compensation.  Siemens AG 2000. All rights reserved 8-275 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 276 Insert bypass circle if necessary on deactivation of contour suppression N120 X-10 CUTCONOF N130 Y20 NORM No bypass circle on deactivation of TRC N140 X0 Y0 G40 N150 M30  Siemens AG 2000. All rights reserved 8-276 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 277 Further information: /FB/, W1 Tool Offset  Siemens AG 2000. All rights reserved 8-277 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 278: Activate 3D Tool Tool Offsets

    2D tool radius compensation. With G41/G42, the left/right-hand compensation is specified in the direction of movement. The approach method is always NORM.  Siemens AG 2000. All rights reserved 8-278 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 279 3D tool radius compensation is only active when five-axis transformation is selected. A circle block is always inserted at outside corners. G450/G451 have no effect. The DISC command is ignored.  Siemens AG 2000. All rights reserved 8-279 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 280 The only deciding factor is the radius at the tool insertion point. The 3D TRC function is limited to cylindrical tools.  Siemens AG 2000. All rights reserved 8-280 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 281 In this case, the workpiece could also be machined with a mill diameter of 9.9 mm, although this would result in a different surface profile.  Siemens AG 2000. All rights reserved 8-281 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 282 Truncated cone mill >0 >0 X=is not evaluated Tool length compensation The tool tip is the reference point for length compensation (intersection longitudinal axis/surface).  Siemens AG 2000. All rights reserved 8-282 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 283 The system outputs an alarm if the limit values stored in the machine data are violated.  Siemens AG 2000. All rights reserved 8-283 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 284 When changes occur in the orientation at a corner, the corner type can change during machining. If this happens, machining stops and an error message is generated. Direction of machining  Siemens AG 2000. All rights reserved 8-284 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 285 For more information about intersection procedure, see /FB/ W5, 3D Tool Radius Compensation  Siemens AG 2000. All rights reserved 8-285 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 286: Tool Orientation

    Orientation smoothing at beginning and end of block ORIS Speed of orientation change with active orientation smoothing in degrees per mm; valid for OSS and OSSE  Siemens AG 2000. All rights reserved 8-286 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 287 ORIC is selected, the circular movement is divided among the individual inserted blocks according to the values of the orientation changes.  Siemens AG 2000. All rights reserved 8-287 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 288 The circular movement and the orientation change are executed in parallel. N20 X =…Y=… Z=… G1 F200  Siemens AG 2000. All rights reserved 8-288 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 289 N20 X… Y… Z… The program command which is active in the first traversing block of an external corner determines the type of orientation change.  Siemens AG 2000. All rights reserved 8-289 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 290 Change the orientation at an internal corner ORIC N10 X …Y… Z… G1 F500 N12 X …Y… Z… A2=… B2=…, C2=… N15 X Y Z A2 B2 C2  Siemens AG 2000. All rights reserved 8-290 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 291: Free Assignment Of D Numbers, Cutting Edge Number Ce (As Of Sw 5)

    Besides the relative D number, you can also assign D-numbers al 'flat' or 'absolute' D-numbers (1–32000) without assigning a reference to a T-number (inside the function flat D number structure).  Siemens AG 2000. All rights reserved 8-291 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 292: Check D Numbers (Chkdno)

    The D numbers of all tools defined in a TO unit must only be present once. Replacement tools are not considered.  Siemens AG 2000. All rights reserved 8-292 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 293: Renaming D Numbers (Getdno, Setdno)

    $TC_DP3[1,2] = 5.5 $TC_DPCE[1,2] = 3; cutting edge number CE N10 def int DNoOld, DNoNew = 17 N20 DNoOld = GETDNO(1,3) N30 SETDNO(1,3,DNoNew)  Siemens AG 2000. All rights reserved 8-293 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 294: T Numbers For The Specified D Number (Getacttd)

    If 'flat' D numbers are used, it does not make sense to use the command because the value 1 is always returned (no T number in database).  Siemens AG 2000. All rights reserved 8-294 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 295: Set Final D Numbers To Invalid

    Offset block marked in this way are no longer checked by the language command CHKDNO. To regain access, you must set the D number to SETDNO again  Siemens AG 2000. All rights reserved 8-295 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 296: Toolholder Kinematics

    • Type of kinematics T: Only tool can rotate. • Type of kinematics P: Only part can rotate. • Type of kinematics M: Tool and part can rotate  Siemens AG 2000. All rights reserved 8-296 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 297 (G17 to G19).  Siemens AG 2000. All rights reserved 8-297 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 298 The following also applies to machine where both axes must rotate the table so that – the tool orientation is perpendicular to the first rotary axis.  Siemens AG 2000. All rights reserved 8-298 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 299 1, tool 1 N80 X40 Execute machining under a 37° rotation N90 Y40 N100 X0 N110 Y0 N120 M30  Siemens AG 2000. All rights reserved 8-299 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 300 Tool Offsets 04.00 8.8 Toolholder kinematics 840D 840Di NCU 572 NCU 573 Notes  Siemens AG 2000. All rights reserved 8-300 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition...
  • Page 301: Path Traversing Behavior

    Feed characteristic, FNORM, FLIN, FCUB, FPO ............9-325 Program run with preprocessing memory, STARTFIFO, STOPFIFO, STOPRE..9-330 Repositioning on contour, REPOSA, REPOSL, REPOSQ, REPOSH ......9-332  Siemens AG 2000. All rights reserved 9-301 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 302: Tangential Control Tang, Tangon, Tangof

    Identifier for coordinate system "B" = basic coordinate system; "W" = workpiece coordinate system Parameter optional; default "B" Angle Offset angle of following axis  Siemens AG 2000. All rights reserved 9-302 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 303 The follow-up can be performed in the basic coordinate system "B" (default) or the workpiece coordinate system "W". Example: TANG(C,X,Y,1,"B") Meaning: Rotary axis C follows geometry axes X and Y.  Siemens AG 2000. All rights reserved 9-303 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 304 If the offset angle lies outside the working area limit, an attempt is made to return to the permissible working area with the negative offset angle.  Siemens AG 2000. All rights reserved 9-304 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 305 TANG(...) without inserting TLIFT(...) afterwards. The angular change limit at which an intermediate block is automatically inserted is defined via machine data $MA_EPS_TLIFT_TANG_STEP.  Siemens AG 2000. All rights reserved 9-305 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 306 You can query the status of the coupling in the NC program with the following system variable: $AA_COUP_ACT[Axis] No coupling active 1,2,3 Tangential follow-up active  Siemens AG 2000. All rights reserved 9-306 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 307: Coupled Motion Trailon, Trailof

    • Two-sided machining with 2 combined axis pairs: 1st leading axis Y, trailing axis V Axis 2nd leading axis Z, trailing axis W  Siemens AG 2000. All rights reserved 9-307 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 308 A trailing axis can also act as a leading axis for other trailing axes. Various combinations of coupled axes can be set up in this way.  Siemens AG 2000. All rights reserved 9-308 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 309 You can query the status of the coupling in the NC program with the following system variable: $AA_COUP_ACT[axis] No coupling active Coupled motion active  Siemens AG 2000. All rights reserved 9-309 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 310 N200 G1 Y22 V25 F200 Superimpose dependent and independent movement of trailing axis "V" … TRAILOF(V,Y) Deactivate 1st coupled axis TRAILOF(W,Z) Deactivate 2nd coupled axis  Siemens AG 2000. All rights reserved 9-310 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 311: Curve Tables, Ctabdef, Ctabend, Ctab, Ctabinv

    Approximation solution for leading value if no specific leading value can be determined for a following value. FAxis,LAxis Optional specification of the following and/or leading axis  Siemens AG 2000. All rights reserved 9-311 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 312 Within the definition of the curve table, you have use of the entire NC language.  Siemens AG 2000. All rights reserved 9-312 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 313 The curve table created can be applied to any axis combinations of leading and following axes whatever axes were used to create the curve table.  Siemens AG 2000. All rights reserved 9-313 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 314 If the leading value is outside the definition range, the leading value is evaluated modulo of the definition range and the corresponding following value is output. Leading value Definition range  Siemens AG 2000. All rights reserved 9-314 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 315 A curve table is overwritten as soon as is number is used in another table definition. Active tables cannot be overwritten. Additional notes No warning is output when you overwrite curve tables!  Siemens AG 2000. All rights reserved 9-315 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 316 If the target block is within the definition of a curve table, an alarm is output when CTABEND is reached.  Siemens AG 2000. All rights reserved 9-316 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 317 (circle, linear, spline interpolation); The part program state before the beginning of the definition is restored.  Siemens AG 2000. All rights reserved 9-317 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 318 N180 G0 X75 Y=DEPPOS After activating the coupling no synchronization of the following axis is required: N190 LEADON(Y,X,2) N200 G1 X110 F1000 N210 LEADOF(Y,X) N220 M30  Siemens AG 2000. All rights reserved 9-318 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 319: Axial Leading Value Coupling, Leadon, Leadof

    For information about creating curve table, see Chapter "Curve tables" in this chapter. For information about leading value coupling, see /FB/, M3, Coupled Motion and Leading Value Coupling.  Siemens AG 2000. All rights reserved 9-319 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 320 • Actual values of the leading axis position: Actual value coupling • Setpoints of the leading axis position: Setpoint coupling  Siemens AG 2000. All rights reserved 9-320 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 321  Siemens AG 2000. All rights reserved 9-321 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 322 Axial leading value coupling and different operating states Depending on the setting in the machine data, the leading value couplings are deactivated with RESET.  Siemens AG 2000. All rights reserved 9-322 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 323 In the following example, line change, indentation and bold type are used for the sole purpose of improving readability of the program. To the controller, everything that follows a line number constitutes a single line.  Siemens AG 2000. All rights reserved 9-323 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 324 ; **** E2 0=>1 Coupling OFF IDS=3 EVERY ($A_IN[2]==1) LEADOF(X,LW) LEADOF(YL,LW) LEADOF(ZL,LW) LEADOF(U,LW) LEADOF(V,LW) LEADOF(W,LW) $AC_MARKER[0]=0 $AC_MARKER[1]=0 $AC_MARKER[3]=0 $AC_MARKER[4]=0 $AC_MARKER[5]=0 $AC_MARKER[6]=0 $AC_MARKER[7]=0 ..N110 G04 F01 N120 M30  Siemens AG 2000. All rights reserved 9-324 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 325: Feed Characteristic, Fnorm, Flin, Fcub, Fpo

    These additional characteristics make it possible to program continuously smooth velocity characteristics depending on the curvature of the workpiece to be machined.  Siemens AG 2000. All rights reserved 9-325 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 326 The feed characteristic is approached linearly from the current feed value to the programmed F value until the end of the block. Example: N30 F1400 FLIN X50 Path  Siemens AG 2000. All rights reserved 9-326 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 327 FPO at the block beginning and block end. Supplementary conditions The functions for programming the path traversing characteristics apply regardless of the programmed feed characteristic.  Siemens AG 2000. All rights reserved 9-327 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 328 CFC, thereby allowing a jerk-free setpoint feed profile to be generated. This enables creation of a continuous acceleration setpoint feed profile.  Siemens AG 2000. All rights reserved 9-328 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 329 N10 F2200 X6 N11 F3900 X7 N12 F4600 X7 N13 F4900 X5 Deactivate spline profile N14 FNORM X5 N15 X20  Siemens AG 2000. All rights reserved 9-329 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 330: Program Run With Preprocessing Memory, Startfifo, Stopfifo, Stopre

    N10 STOPFIFO N20… N100 N110 STARTFIFO Execution of these blocks does not begin until the preprocessing memory is full or command STARTFIFO is detected.  Siemens AG 2000. All rights reserved 9-330 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 331 When a tool offset or spline interpolations are active, you should not program the STOPRE command as this will lead to interruption in contiguous block sequences.  Siemens AG 2000. All rights reserved 9-331 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 332: Repositioning On Contour, Reposa, Reposl, Reposq, Reposh

    Approach block end point at distance DISPR in front of end point A0 B0 C0 Axes in which approach is to be made  Siemens AG 2000. All rights reserved 9-332 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 333 (with RMI) or the block end point (with RME). SW 5.2 and higher: The sign before DISPR is evaluated. In the case of a plus sign, the behavior is as previously.  Siemens AG 2000. All rights reserved 9-333 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 334 When commands REPOSL, REPOSQ and REPOSH are programmed, all geometry axes are traversed automatically, i.e. they need not be named in the command.  Siemens AG 2000. All rights reserved 9-334 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 335 R E PO S Q Repositioning Example: point REPOSQ RMI DISR=10 F400 Start point  Siemens AG 2000. All rights reserved 9-335 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 336 • No defined approach direction is available (program interruption in a block without travel information). • With an approach direction that is perpendicular to the current working plane.  Siemens AG 2000. All rights reserved 9-336 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 337: Motion-Synchronous Action

    10.4.22 Coupled-axis motion: TRAILON, TRAILOF............10-381 10.4.23 Leading value coupling LEADON, LEADOF............10-382 10.4.24 Measurement....................... 10-384 10.4.25 Wait markers set/clear: SETM, CLEARM ............10-384  Siemens AG 2000. All rights reserved 10-337 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 338 10.5 Technology cycles....................... 10-386 10.5.1 Lock, unlock, reset: LOCK, UNLOCK, RESET ............ 10-388 10.6 Cancel synchronized action: CANCEL................ 10-390 10.7 Supplementary conditions ................... 10-391  Siemens AG 2000. All rights reserved 10-338 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 339: Structure, Basic Information

    Vocabulary word No vocabulary word Execution of the action is not subject to any condition. The action is executed cyclically in any interpolation cycles.  Siemens AG 2000. All rights reserved 10-339 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 340 The real-time variables used are evaluated in interpolation cycles. Advantages with synchronized actions: Preprocessing is not stopped.  Siemens AG 2000. All rights reserved 10-340 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 341: Programming And Command Elements

    T e c h n o lo g y c y c le Example: ID=1 WHENEVER $A_IN[1]==1 $A_OUT[1]=1 Synchronized action no. 1: whenever input 1 is set then set output 1  Siemens AG 2000. All rights reserved 10-341 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 342: Validity Range: Identification Number Id

    (ASUP) started by the PLC. In this way, actions can be activated that are executed regardless of the mode selected in the NC.  Siemens AG 2000. All rights reserved 10-342 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 343: Vocabulary Word

    • WHENEVER The condition is scanned in each interpolation cycle. The action is executed in each interpolation cycle while the condition is fulfilled.  Siemens AG 2000. All rights reserved 10-343 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 344 Defining the measurement systems for condition assessment and action via G codes G70, G71, G700, G710. In SW 5 only these G codes are allowed.  Siemens AG 2000. All rights reserved 10-344 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 345 • Time/distance from beginning of block • Distance from block end • Measured values, measured results • Servo values • Velocities, axis status  Siemens AG 2000. All rights reserved 10-345 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 346: Actions

    • Feedrate overrides • Start/position/stop positioning axes (POS) and spindles (SPOS) • PRESETON: Set actual value • Activate or deactivate coupled-axis motion/leading value coupling  Siemens AG 2000. All rights reserved 10-346 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 347 Actions can be executed whatever mode is selected. The following actions are only active in automatic mode when the program is active • STOPREOF, • DELDTG.  Siemens AG 2000. All rights reserved 10-347 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 348: Overview Of Synchronized Actions

    • Start positioning axis motion and spindles from synchronized actions (command axes) • Preset from synchronized actions  Siemens AG 2000. All rights reserved 10-348 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 349 • Synchronized actions that can be influenced from the PLC • Protected synchronized actions • Expansion for overlaid motion / clearance control  Siemens AG 2000. All rights reserved 10-349 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 350: Basic Modules For Conditions And Actions

    (==, <>, <, >, <=, >=). • Boolean operators Variables, constants and comparisons can be gated using the usual Boolean operators (NOT, AND, OR, XOR)  Siemens AG 2000. All rights reserved 10-350 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 351 REAL (SIN, COS, TAN, ASIN, ACOS, ABS, TRUNC, ROUND, LN, EXP, ATAN2, ATAN, POT, SQRT, CTAB, CTABINV). Example: DO $AC_PARAM[3] = COS($AC_PARAM[1])  Siemens AG 2000. All rights reserved 10-351 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 352 DO $AA_OVR[S1]=80 ID=67 DO $A_OUT[1]=$A_IN[2] XOR $AN_MARKER[1] Evaluate 2 boolean signals ID=89 DO $A_OUT[4]=$A_IN[1] OR ($AA_IM[Y]>10) Output of the result of a comparison  Siemens AG 2000. All rights reserved 10-352 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 353: Special Real-Time Variables For Synchronized Actions

    Data type: REAL Units: s n: Number of the timer variable • Set timer A timer variable is incremented via value assignment $AC_TIMER[n]=value  Siemens AG 2000. All rights reserved 10-353 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 354: Synchronized Action Parameters $Ac_Param[N]

    MD 28254: MM_NUM_AC_PARAM. The parameters are available once per channel under the same name. The $AC_PARAM flags are stored in the dynamic memory.  Siemens AG 2000. All rights reserved 10-354 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 355: Access To R Parameters $Rxx

    WHEN $AA_IM[X]>=40.5 DO $R10=$AA_MM[Y] Use of R10 in synchronized actions G01 X500 Y70 F1000 STOPRE Preprocessing stop IF R10>20 Evaluation of the arithmetic variable  Siemens AG 2000. All rights reserved 10-355 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 356: Oscillation

    ;Changing the switching position of SW cams. Note: The switching positions must be changed two to three interpolation cycles before they reach their position.  Siemens AG 2000. All rights reserved 10-356 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 357: Fifo Variable $Ac_Fifo1[N]

    FIFO variable: $AC_FIFO1[4]=0 n=5: Current write index relative to start of FIFO n=6 to 6+n Access to nth FIFO element  Siemens AG 2000. All rights reserved 10-357 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 358 FIFO.  Siemens AG 2000. All rights reserved 10-358 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 359: Actions Within Synchronized Actions

    WHEN $AA_IW[Q1]>5 DO M172 H510 If the actual value of axis Q1 exceeds 5 mm, auxiliary functions M172 and H510 are output to the PLC.  Siemens AG 2000. All rights reserved 10-359 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 360: Read-In Disable Set Rdisable

    (1000= 1V). N10 G1 X10 ;When the condition is fulfilled, the read-in disable is active at the end of N10 N20 G1 X10 Y20  Siemens AG 2000. All rights reserved 10-360 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 361: Preprocessing Stop Cancel Stopreof

    ;The preprocessing stop is cancelled after execution of the linear interpolation. IF $A_INA[7]>500 GOTOF MARKER1=X100 ;If the voltage 5 V is exceeded at input 7, jump to label 1.  Siemens AG 2000. All rights reserved 10-361 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 362: Delete Distance-To-Go

    The distance-to-go can be retrieved with the system variable $AC_DELT or $AC_DELT[axis].  Siemens AG 2000. All rights reserved 10-362 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 363 • cannot be used with active tool radius correction. • the action must only be programmed in non modal synchronized actions (without ID number).  Siemens AG 2000. All rights reserved 10-363 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 364: Polynomial Definition, Fctdef, Block-Synchronized

    FCTDEF or via system variables: $AC_FCTLL[n] Lower limit for function value $AC_FCTUL[n] Upper limit for function value $AC_FCT0[n] $AC_FCT1[n] $AC_FCT2[n] $AC_FCT3[n] Number of the polynomial  Siemens AG 2000. All rights reserved 10-364 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 365 With upper limit 1000, lower limit –1000, ordinate section a =$AA_IM[X] and linear gradient 1 the f (X) polynomial is: Upper limit 1000 Lower limit -1000 FCTDEF(1, -1000,1000,$AA_IM[X],1)  Siemens AG 2000. All rights reserved 10-365 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 366: Laser Power Control

    ;in dependence on the path velocity (stored in $AC_VACTW) the laser output control is controlled via analog output 1 Note The polynomial defined above is used with SYNFCT.  Siemens AG 2000. All rights reserved 10-366 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 367: Evaluation Function Synfct

    • as position offset. Application The evaluation function is used • in AC control (Adaptive Control) • in laser output control • with position feedforward  Siemens AG 2000. All rights reserved 10-367 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 368: Adaptive Control (Additive)

    ;Read the current axis load (% of the max. drive current ) via $AA_LOAD[x], calculate the path feedrate override with the polynomial defined above.  Siemens AG 2000. All rights reserved 10-368 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 369: Adaptive Control (Multiplicative)

    ;Read the current axis load (% of the max. drive current ) via $AA_LOAD[x], calculate the feedrate override with the polynomial defined above.  Siemens AG 2000. All rights reserved 10-369 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 370: Clearance Control With Limited Compensation

    Subroutine: Clearance control OFF %_N_AOFF_SPF PROC AOFF Subroutine for clearance control OFF CANCEL(1) Cancel clearance control synchronized action CANCEL(2) Cancel off limits check ENDPROC  Siemens AG 2000. All rights reserved 10-370 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 371 Offset value not within limits Limit of offset value reached in the positive direction –1 Limit of the offset value reached in the negative direction  Siemens AG 2000. All rights reserved 10-371 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 372: Online Tool Offset Ftoc

    FTOC in the same way that they apply to tool offsets using PUTFTOCF. For further information, please refer to Chapter 5 "Tool Offsets".  Siemens AG 2000. All rights reserved 10-372 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 373 1 as the offset value. WAITM(1,1,2) Synchronization with machining channel G1 V-0.05 F0.01 G91 Infeed movement for dressing G1 V-0.05 F0.02 CANCEL(1) Deselect online offset  Siemens AG 2000. All rights reserved 10-373 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 374: Positioning Movements

    N150 G71 Z10 F10 Z=10 mm X=10 mm N160 G70 Z10 F10 Z=254 mm X=254 mm N170 G71 Z10 F10 Z=10 mm X=10 mm N180 M30  Siemens AG 2000. All rights reserved 10-374 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 375 WHENEVER $A_IN[1]==0 DO $AA_OVR[W]=0 G01 X10 Y25 F750 POS[W]=1500 FA=1000 ;The positioning axis is halted until digital input 1 =0  Siemens AG 2000. All rights reserved 10-375 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 376: Position Axis Pos

    The data type for the value is INTEGER. Value>0 (usually +1): Positive direction (usually –1): Negative direction Value <0 Value ==0: Stop axis movement  Siemens AG 2000. All rights reserved 10-376 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 377: Axial Feed: Fa

    Switching the working area limitation on and off with G functions WALIMON/WALIMOF in the part program has no effect on the command axes.  Siemens AG 2000. All rights reserved 10-377 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 378: Axis Coordination

    Axis follows, 2nd input is set, i.e. end position and feed for axis V are continuously followed during a movement when two synchronized actions are simultaneously active.  Siemens AG 2000. All rights reserved 10-378 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 379: Set Actual Value

    If the same axis is used alternately, transfer between the two axis movements is coordinated. Part program execution must be interrupted for that.  Siemens AG 2000. All rights reserved 10-379 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 380: Spindle Motions

    Specify new direction and new speed of rotation ID=3 EVERY $A_IN[3]==1 DO S1000 Specify new speed ID=4 EVERY ($A_IN[4]==1) AND Position spindle ($A_IN[1]==0) DO SPOS=0  Siemens AG 2000. All rights reserved 10-380 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 381: Coupled-Axis Motion: Trailon, Trailof

    G1 Y22 V25 Superimpose dependent and independent movement of coupled-motion axis "V" TRAILOF(Y,V) Deactivate 1st coupled axis TRAILOF(Z,W) Deactivate 2nd coupled axis  Siemens AG 2000. All rights reserved 10-381 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 382: Leading Value Coupling Leadon, Leadof

    PLC interface can be evaluated for the purpose of determining the degree of synchronism between the continuous material and the parting tool. Actions Activate coupling, LEADON Deactivate coupling, LEADOF Set actual value, PRESETON  Siemens AG 2000. All rights reserved 10-382 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 383 ; > 30 before traversed parting distance, deactivate coupling N2000 WAITP(X) N2100 ID=7 WHEN $R1==1 DO MOV[X]=1 ;Place material axis in continuous motion FA[X]=$R4 N2200 M30  Siemens AG 2000. All rights reserved 10-383 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 384: Measurement

    It resets the flag MarkerNumber for the channel in which the command executes.  Siemens AG 2000. All rights reserved 10-384 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 385: Error Responses

    ;If the safety distance between axes X1 and X2 is to small, stop axis X2. ID=67 WHENEVER ($AA_IM[X1]-$AA_IM[X2])<4.567 DO SETAL(61000) ;If the safety distance between axes X1 and X2 is to small, set an alarm.  Siemens AG 2000. All rights reserved 10-385 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 386: Technology Cycles

    The part program is now only used for the management of synchronized actions in extreme cases.  Siemens AG 2000. All rights reserved 10-386 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 387 If input 4 is at 1, axis program Z starts Technology cycle AXIS_X: $AA_OVR[Y]=0 M100 POS[X]=100 FA[X]=300 Technology cycle AXIS_Y: POS[Y]=10 FA[Y]=200 POS[Y]=-10 Technology cycle AXIS_Z: $AA_OVR[X]=0 POS[Z]=90 FA[Z]=250 POS[Z]=-90  Siemens AG 2000. All rights reserved 10-387 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 388: Lock, Unlock, Reset: Lock, Unlock, Reset

    Technology cycles can be locked using LOCK from another synchronized action or from a technology cycle. Example: N100 ID=1 WHENEVER $A_IN[1]==1 DO M130 N200 ID=2 WHENEVER $A_IN[2]==1 DO LOCK(1)  Siemens AG 2000. All rights reserved 10-388 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 389 It should not be possible for end overwriting/locking by a machine data setting. customers to modify synchronized actions defined by the machine manufacturer.  Siemens AG 2000. All rights reserved 10-389 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 390: Cancel Synchronized Action: Cancel

    N100 ID=2 WHENEVER $A_IN[1]==1 DO M130 N200 CANCEL(2) Cancel synchronized action No. 2 Notes Incomplete movements originating from a cancelled synchronized action are completed as programmed.  Siemens AG 2000. All rights reserved 10-390 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 391: Supplementary Conditions

    Synchronized actions of the WHEN type that have already been executed are not executed again following RESET.  Siemens AG 2000. All rights reserved 10-391 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 392 Synchronized actions active in the M30 block remain active. If you do not want this, cancel with CANCEL before the end of the program (see previous subsection).  Siemens AG 2000. All rights reserved 10-392 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 393 • Program interruption by asynchronized subroutine ASUP start: Modal and static motion-synchronized actions remain active and are also active in the asynchronized subroutine.  Siemens AG 2000. All rights reserved 10-393 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 394 CANCEL command with axial deletion of distance-to-go: Example: ID=17 EVERY $A_IN[3]==1 DO POS[X]=15 FA[X]=1500 ;Start positioning axis movement WHEN ... DO DELDTG(X) ;End positioning axis movement CANCEL(1)  Siemens AG 2000. All rights reserved 10-394 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 395: Oscillation

    08.97 Oscillation Oscillation 11.1 Asynchronous oscillation..................... 11-396 11.2 Oscillation controlled via synchronized actions............11-403  Siemens AG 2000. All rights reserved 11-395 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 396: Asynchronous Oscillation

    A path movement or a positioning axis can be used to achieve a constant infeed, however, there is no relationship between the oscillating movement and the infeed movement.  Siemens AG 2000. All rights reserved 11-396 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 397 • Relative specification OSP1[Z]=IC(value) Position of reversal point = reversal point 1 + programmed value Example: N10 OSP1[Z]=100 OSP2[Z]=110 N40 OSP1[Z]=IC(3)  Siemens AG 2000. All rights reserved 11-397 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 398 ;If the actual value of the oscillation axis ;has exceeded the reversal point, ;the infeed axis is stopped. OS[Z]=1 FA[X]=1000 POS[X]=40 ;Switch on oscillation OS[Z]=0 ;Switch off oscillation  Siemens AG 2000. All rights reserved 11-398 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 399 During checking, the deactivation function is defined according to the control setting for the "OSCTRL" sequence of motions.  Siemens AG 2000. All rights reserved 11-399 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 400 Set options These options are switched over. When OSE (end position) is programmed, option 4 is implicitly activated.  Siemens AG 2000. All rights reserved 11-400 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 401 For rotary axis DC (shortest path) 0=The sparking out stroke is a dual stroke.(default) 1=single stroke. Several options are appended with plus characters. Example: OSCTRL[Z] = (1+4,16+32+64)  Siemens AG 2000. All rights reserved 11-401 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 402 -> DO DELDTG(X) N80 POS[X]=15 Starting position X axis N90 POS[X]=50 N100 OS[Z]=0 Stop oscillation -> can be programmed in a single block.  Siemens AG 2000. All rights reserved 11-402 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 403: Oscillation Controlled Via Synchronized Actions

    1 = All partial infeeds of equal size Motion-synchronized actions WHEN… … DO when ... , do WHENEVER … DO whenever ... , do  Siemens AG 2000. All rights reserved 11-403 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 404 • Restart oscillation movement on completion of partial infeed. • Define start of next partial infeed. 3. Assign oscillating and infeed axes as well as partial and complete infeed.  Siemens AG 2000. All rights reserved 11-404 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 405 2 equal steps (default setting). Mode = 1 All partial infeeds are of equal size. They are calculated from the complete infeed.  Siemens AG 2000. All rights reserved 11-405 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 406 • Reversal point 1 < reversal point 2 • Z = oscillating axis • X = infeed axis You will find more information on synchronized motion actions in Section 11.3.  Siemens AG 2000. All rights reserved 11-406 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 407 MCS is less than the start of reversal area 2 then set the axial override of the infeed axis to 0%.  Siemens AG 2000. All rights reserved 11-407 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 408 2 then set the axial override of infeed axis X to 0% set the axial override of oscillating axis Z to 100%.  Siemens AG 2000. All rights reserved 11-408 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 409 2 then set the axial override of the oscillating axis to 0% set the axial override of the infeed axis to 100%.  Siemens AG 2000. All rights reserved 11-409 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 410 X in the WCS equal to zero then set the axial override of the oscillating axis to 100%.  Siemens AG 2000. All rights reserved 11-410 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 411 3. Inhibit infeed WHENEVER $AC_MARKER[1]==1 DO $AA_OVR[X]=0 Whenever marker 1 is equal to then set the axial override of the infeed axis to 0%.  Siemens AG 2000. All rights reserved 11-411 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 412 DTG approach reversal position OSNC[Z]=3 3 spark-out strokes OSE[Z]=70 End position = 70 ii2=2 Set reversal area WAITP(Z) Enable oscillation for Z axis  Siemens AG 2000. All rights reserved 11-412 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 413 Assign axis X as the infeed axis for oscillating axis Z. Axis X is to travel to end position 5 in steps of 1. End of program  Siemens AG 2000. All rights reserved 11-413 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 414 Oscillation 08.97 11.2 Oscillation controlled via synchronized actions 840D 840D FM-NC 810D 840Di NCU 571 NCU 572 NCU 573 Notes  Siemens AG 2000. All rights reserved 11-414 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 415: Punching And Nibbling

    12.2 Automatic path segmentation ..................12-420 12.2.1 Path segmentation for path axes................. 12-421 12.2.2 Path segmentation for single axes ..............12-422 12.2.3 Programming examples..................12-424  Siemens AG 2000. All rights reserved 12-415 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 416: Activation, Deactivation

    Modal commands PON and SON are mutually exclusive, i.e. PON deactivates SON and vice versa.  Siemens AG 2000. All rights reserved 12-416 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 417 The command is modal and has a preparatory function. It is thus generally programmed before PON. Punching continues normally after PDELAYOF.  Siemens AG 2000. All rights reserved 12-417 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 418 Machining with rotatable tools Use the tangential control function if you wish to position rotatable tools at a tangent to the programmed path.  Siemens AG 2000. All rights reserved 12-418 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 419: Use Of M Commands

    Punching with leader on DEFINE M26 AS PDELAYON Punching on with delay DEFINE M20 AS SPOF Punching, nibbling off DEFINE M23 AS SPOF Punching, nibbling off  Siemens AG 2000. All rights reserved 12-419 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 420: Automatic Path Segmentation

    Number of strokes = number of path segments + 1 Auxiliary functions Auxiliary functions are executed in the first of the generated blocks.  Siemens AG 2000. All rights reserved 12-420 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 421: Path Segmentation For Path Axes

    In this case, the SPP value is reduced down to the next possible integer quotient. The result in this example would be a path segment length of 3 mm.  Siemens AG 2000. All rights reserved 12-421 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 422: Path Segmentation For Single Axes

    For this reason, the SPP value is ignored in blocks which contain a single axis motion and an SPP value, but not a programmed path axis.  Siemens AG 2000. All rights reserved 12-422 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 423 Precondition: The single axis is defined as a punching/nibbling axis.  Siemens AG 2000. All rights reserved 12-423 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 424: Programming Examples

    N170 G02 X-62.5 Y62.5 I J62.5 SPP=3 Nibbling on, maximum path segment length for automatic path segmentation: 3 mm N180 G00 G90 Y300 SPOF Nibbling off  Siemens AG 2000. All rights reserved 12-424 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 425 37.79 mm is used instead of the 40 mm programmed as the path segment length. N160 G00 Y300 SPOF Punching off, position  Siemens AG 2000. All rights reserved 12-425 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 426 Punching and Nibbling 08.97 12.2 Automatic path segmentation 840 D 840Di NCU 572 NCU 573 Notes  Siemens AG 2000. All rights reserved 12-426 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 427: Additional Functions

    13.7 Axis container (SW 5.2 and higher) ................13-457 13.8 Program execution time/Workpiece counter (as from SW 5.2) ........13-459 13.8.1 Program runtime....................13-459 13.8.2 Workpiece counter ....................13-460  Siemens AG 2000. All rights reserved 13-427 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 428: Axis Functions Axname, Spi, Isaxis

    Final position for transverse axis OVRA[SPI(1)]=70 Override for spindle 1 IF ISAXIS(1) == FALSE GOTOF CONTINUE Does abscissa exist? AX[$P_AXN1]=100 Move abscissa CONTINUE:  Siemens AG 2000. All rights reserved 13-428 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 429: Learn Compensation Characteristics: Qeclrnon, Qeclrnof

    PLC program are used to teach the movements and assign the QEC system variables in the initial learning phase during startup of the control:  Siemens AG 2000. All rights reserved 13-429 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 430 Deactivate learning process: QECLRNOF When the learning movements for the desired axes are complete, the learning process is deactivated simultaneously for all axes with QECLRNOF.  Siemens AG 2000. All rights reserved 13-430 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 431: Synchronized Spindle

    Setpoint coupling (default) • "AV" Actual-value coupling Angle offset between leading and following spindles , POS Deactivation positions of following and leading spindles  Siemens AG 2000. All rights reserved 13-431 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 432 CNC part program. Up to two synchronized spindle pairs can be operated simultaneously on each NC channel.  Siemens AG 2000. All rights reserved 13-432 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 433 (modal scope). Example: N… COUPDEF(S2,S1,Ü ,Ü Meaning: S2 = following spindle, S1 = leading spindle  Siemens AG 2000. All rights reserved 13-433 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 434 If no synchronism conditions are specified, then the block change behavior programmed/configured for the relevant coupling applies.  Siemens AG 2000. All rights reserved 13-434 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 435 "1" is taken as the default. • The speed ratio can also be changed on-the-fly, when the coupling is active.  Siemens AG 2000. All rights reserved 13-435 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 436 Actual-value coupling between FS "AV" and LS The coupling type is modal. Caution The coupling type may only be changed when the coupling is deactivated!  Siemens AG 2000. All rights reserved 13-436 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 437 POS and, where appropriate, POS have been crossed. Value range 0° ... 359.999°: COUPOF (S2,S1,150) COUPOF (S2,S1,150,30)  Siemens AG 2000. All rights reserved 13-437 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 438 The parameters programmed with COUPDEF (including the transformation ratio) are subsequently deleted. N … COUPRES (S2,S1) S2 = following spindle, S1 = leading spindle  Siemens AG 2000. All rights reserved 13-438 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 439 In this case, the new position offset can be read and, if necessary, corrected in the NC part program.  Siemens AG 2000. All rights reserved 13-439 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 440 ;Stop slave spindle at zero degrees N360 G0 X0 Y0 N365 WAITS(2) ;Wait for spindle 2 N370 M5 ;Stop slave spindle N375 M30  Siemens AG 2000. All rights reserved 13-440 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 441: Eg: Electronic Gear (Sw 5 And Higher)

    1, leading axis 2, coupling type 2, ...) Explanation Following axis Axis that is influenced by the leading axes Leading axis1, ... leading axis5 Axes that influence the following axis  Siemens AG 2000. All rights reserved 13-441 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 442 An axis coupling may not yet be defined for the following axis (if necessary, any existing one must first be deleted with EGDEL). Note EGDEF triggers preprocessing stop.  Siemens AG 2000. All rights reserved 13-442 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 443: Activate Electronic Gear

    $AA_EG_SYN. • Variant 2: The EG axis grouping is activated selectively with synchronization with: EGONSYN(FA, "Block change mode", SynPosFA,[, LAi, SynPosLAi, Zi, Ni])  Siemens AG 2000. All rights reserved 13-443 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 444 If it is not issued, the program stops at the EGONSYN block and self- clearing alarm 16771 is output until the above mentioned signal is set.  Siemens AG 2000. All rights reserved 13-444 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 445: Deactivate Electronic Gear

    The call triggers preprocessing stop. Note This functions is only allowed for spindles.  Siemens AG 2000. All rights reserved 13-445 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 446: Delete Definition Of An Electronic Gear

    • Speed parts of linear or non-modulo leading axes and overlaid movement of the following axis are not taken into account.  Siemens AG 2000. All rights reserved 13-446 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 447: Response Of Eg At Power On, Reset, Mode Change, Block Search

    "Generator operation" (independent of drive) For the cases in which the energy of the DC link is not sufficient for a safe retraction, generator operation is possible.  Siemens AG 2000. All rights reserved 13-447 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 448: Drive-Independent Reactions

    Drive-independent stop is • Configured: via MD as well as time specification via MD; • Enabled ($AA_ESR_ENABLE) and • Triggered: system variable $AN_ESR_TRIGGER.  Siemens AG 2000. All rights reserved 13-448 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 449: Possible Trigger Sources

    $VA_EG_SYNCDIFF[following axis]) • Drive: DC link warning threshold (pending undervoltage), $AA_ESR_STAT[axis] • Drive: Generator minimum velocity threshold (no more regenerative rotation energy available), $AA_ESR_STAT[axis].  Siemens AG 2000. All rights reserved 13-449 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 450: Logic Gating Functions: Source/Reaction Operation

    DC link undervoltage is detected in the drive (providing it is configured and enabled).  Siemens AG 2000. All rights reserved 13-450 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 451: Generator Operation/Dc Link Backup

    Drive-independent stop is configured and enabled via MD (delay time T1 in MD) and is enabled by system variable $AA_ESR_ENABLE and started with $AN_ESR_TRIGGER.  Siemens AG 2000. All rights reserved 13-451 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 452: Drive-Independent Retract

    For more information see /FB/ M 3, Coupled Motion and Leading Value Coupling  Siemens AG 2000. All rights reserved 13-452 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 453: Example: Using The Drive-Independent Reaction

    • dependent on intervention of the generator axis: IDS=01 WHENEVER $AA_ESR_STAT[A]>0 DO $AN_ESR_TRIGGER=1 • and/or dependent on alarms that trigger follow-up mode (bit13=2000H): IDS=02 WHENEVER ($AC_ALARM_STAT B_AND 'H2000')>0 DO $AN_ESR_TRIGGER=1  Siemens AG 2000. All rights reserved 13-453 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 454: Link Communication (Sw 5.2 And Higher)

    As a rule, the machine manufacturer defines and documents the meaning of these variables. • Applications for link variables: – Global machine states – Workpiece clamping open/closed – Etc.  Siemens AG 2000. All rights reserved 13-454 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 455 Index i defines the start of the respective variable in relation to the start of the configured link memory. The index is counted from 0 up.  Siemens AG 2000. All rights reserved 13-455 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 456 For more information, please refer to the Description of Functions B3 (SW 5) Programming example $A_DLB[5]=21 The 5th byte in the shared link memory is assigned value 21.  Siemens AG 2000. All rights reserved 13-456 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 457: Axis Container (Sw 5.2 And Higher)

    Programming AXCTSWE (CT1, CT 2, ...) AXIS CONTAINER SWITCH ENABLE AXCTSWED(CT1, CT 2, ...) AXIS CONTAINER SWITCH ENABLE DIRECT  Siemens AG 2000. All rights reserved 13-457 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 458 Under the sole effect of the active channel, the axis container rotates around the increment stored in the SD.  Siemens AG 2000. All rights reserved 13-458 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 459: Program Execution Time/Workpiece Counter (As From Sw 5.2)

    MMC in read mode. Explanation The following two timers are defined as NCK- specific system variables and always active.  Siemens AG 2000. All rights reserved 13-459 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 460: Workpiece Counter

    These counters exist as channel-specific system variables with read and write access within a value range from 0 to 999 999 999.  Siemens AG 2000. All rights reserved 13-460 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 461 Programming example 1. Activate workpiece counter $AC_REQUIRED_PARTS: $MC_PART_COUNTER='H3' $AC_REQUIRED_PARTS is active, display alarm on $AC_REQUIRED_PARTS == $AC_SPECIAL_PARTS  Siemens AG 2000. All rights reserved 13-461 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 462 $AC_ACTUAL_PARTS is active, the counter is incremented by 1 on each M17 $AC_SPECIAL_PARTS is active, the counter is incremented by 1 on each M77  Siemens AG 2000. All rights reserved 13-462 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 463: User Stock Removal Programs

    14.4 Intersection of two contour elements: INTERSEC............14-476 14.5 Traversing a contour element from the table: EXECTAB ........... 14-478 14.6 Calculate circle data: CALCDAT................. 14-479  Siemens AG 2000. All rights reserved 14-463 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 464: Supporting Functions For Stock Removal

    (Only for tables created by CONTPRON). CALCDAT Calculate radii and center points You can use these functions universally, not just for stock removal.  Siemens AG 2000. All rights reserved 14-464 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 465: Contour Preparation: Contpron

    EXECUTE deactivates the contour preparation and switches back to the normal execution mode. Example: N30 CONTPRON(…) N40 G1 X… Z… N50… N100 EXECUTE(…)  Siemens AG 2000. All rights reserved 14-465 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 466 In SW 4.4 and higher, contour preparation has been expanded. Now when CONTPRON is called, the contour table is available irrespective of the programmed direction.  Siemens AG 2000. All rights reserved 14-466 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 467 N100 X40 Z85 N110 X30 Z90 N120 X0 N130 EXECUTE(ERROR) Terminate filling of contour table, switch to normal program execution N140 … Continue processing table  Siemens AG 2000. All rights reserved 14-467 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 468 The angle depends on the type of machining programmed. (9), (10) Center point coordinates of contour element, if it is a circle block. (9) = abscissa, (10) = ordinate  Siemens AG 2000. All rights reserved 14-468 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 469 N140 G2 Z-15 X30 K=AC(-15) I=AC(45) N150 G1 Z-30 N160 X80 N170 Z-40 N180 EXECUTE(ERR) Terminate filling of contour table, switch to normal program execution  Siemens AG 2000. All rights reserved 14-469 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 470 Maximum value between contour element and abscissa (for longitudinal machining) or ordinate (for transverse machining) The angle depends on the type of machining programmed.  Siemens AG 2000. All rights reserved 14-470 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 471 Always in last line of table: 9) Previous: Line n is the contour table start (backwards) 10) Following: Line n contains the contour start (backwards)  Siemens AG 2000. All rights reserved 14-471 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 472: Contour Decoding: Contdcon (As Of Sw 5.2)

    EXECUTE deactivates the contour preparation and switches back to the normal execution mode. Example: N30 CONTDCON(…) N40 G1 X… Z… N50… N100 EXECUTE(…)  Siemens AG 2000. All rights reserved 14-472 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 473 EXECUTE. The same applies to a change between G70 and G71/ G700 and G710. Changing the geometry axes with GEOAX while preparing the contour table produced an alarm.  Siemens AG 2000. All rights reserved 14-473 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 474 • name KTAB, • contour elements (circles, straight lines), • mode: Turning (100.100) • preparation forward (-30.80) (-40.80) (20.45) (0.45) (-30.30) (-15.30) (20.20)  Siemens AG 2000. All rights reserved 14-474 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 475 End point Center point Center point Feed mode abscissa ordinate abscissa ordinate 11031 111031 11031 11032 –15 –15 11031 –30 11031 –30 11031 –40  Siemens AG 2000. All rights reserved 14-475 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 476: Intersection Of Two Contour Elements: Intersec

    Table name for the intersection coordinates in the active plane G17 – G19 Function INTERSEC calculates the intersection of two normalized contour elements from the contour table generated with CONTPRON.  Siemens AG 2000. All rights reserved 14-476 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 477 DEF BOOL ISPOINT Variable for status … N10 ISPOINT=INTERSEC (KTAB1[3],KTAB2[7],CUT) Call intersection of contour elements N20 IF ISPOINT==FALSE GOTOF NOCUT Jump to NOCUT …  Siemens AG 2000. All rights reserved 14-477 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 478: Traversing A Contour Element From The Table: Exectab

    Traverse element 0 of table KTAB N20 EXECTAB (KTAB[1]) Traverse element 1 of table KTAB N30 EXECTAB (KTAB[2]) Traverse element 2 of table KTAB  Siemens AG 2000. All rights reserved 14-478 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 479: Calculate Circle Data: Calcdat

    Where 4 points do not lie directly on the circle an average value is taken for the circle center point and the radius.  Siemens AG 2000. All rights reserved 14-479 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 480 N30 DEF BOOL STATUS Variable for status N40 STATUS = CALCDAT(PT,3,RES) Call calculated circle data N50 IF STATUS == FALSE GOTOF ERROR Jump to error  Siemens AG 2000. All rights reserved 14-480 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 481: Tables

    15.2.35 Polynomial values for synchronized actions ............15-557 15.2.36 Channel statuses ....................15-558 15.2.37 Positions ......................15-558 15.2.38 Indexing axes....................... 15-559 15.2.39 Encoder limit frequency ..................15-559  Siemens AG 2000. All rights reserved 15-481 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 482 15.2.51 Safety Integrated 1....................15-569 15.2.52 Extended stop and retract..................15-570 15.2.53 Axis container ...................... 15-571 15.2.54 Electronic gear 2 ....................15-571 15.2.55 Safety Integrated 2....................15-572  Siemens AG 2000. All rights reserved 15-482 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 483: List Of Instructions

    0, ..., X=AC(100) 359.9999° Axial acceleration Real, without sign Absolute dimension setting for rotary axes, A=ACN(...) B=ACN(...) approach position in negative direction C=ACN(...)  Siemens AG 2000. All rights reserved 15-483 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 484 ; separate block Integer without sign Real AXCSWAP(CTn,CTn+1,...) AXCSWAP Switch container axis AXIS Data type: Axis name Name of file can be added  Siemens AG 2000. All rights reserved 15-484 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 485 Tool orientation for block end; Real Normal vector component Absolute approach of position Coded value is (coded position: absolute coordinate) table index; table value is approached  Siemens AG 2000. All rights reserved 15-485 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 486 D number check Incremental approach of position See CAC (coded position: incremental coordinate) Circular interpolation through intermediate points CIP X... Y... Z... I1=... J1=... K1=...  Siemens AG 2000. All rights reserved 15-486 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 487 Path movement (continuous path) CPRECOF Programmable contour precision OFF Programmable contour precision ON CPRECON CPROT Channel-specific protection zone ON/OFF CPROTDEF Channel specific protection area definition  Siemens AG 2000. All rights reserved 15-487 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 488 1, ... 32 000 Absolute dimension setting for rotary axes, A=DC(...) B=DC(...) approach position directly C=DC(...) SPOS=DC(...)  Siemens AG 2000. All rights reserved 15-488 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 489 (Electronic gear define) with up to 5 leading axes EGDEL Delete coupling definition for the following axis Triggers (Electronic gear delete) preprocessing stop  Siemens AG 2000. All rights reserved 15-489 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 490 (dwell time is also programmed under F in 99 999.999 path velocity; conjunction with G4) Dimension in mm/min or mm/revolution as a function of G94 or  Siemens AG 2000. All rights reserved 15-490 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 491 Feed for the overlaid rotation around the swiveled orientation vector Fixed point: numb. of fixed points to be Integer, G75 FP=1 approached without sign  Siemens AG 2000. All rights reserved 15-491 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 492 Torque limit for travel to fixed stop Optional setting (fixed stop torque) FXSW Monitoring window for travel to fixed stop mm, inch or Optional setting (fixed stop window) degree  Siemens AG 2000. All rights reserved 15-492 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 493 Lower working area limitation Value assignment G25 X.. Y.. Z.. ; separate block Upper working area limitation channel axes G26 X.. Y.. Z..; separate block  Siemens AG 2000. All rights reserved 15-493 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 494 Linear feed F in mm/min or inch/min and °/min Revolutional feedrate F in mm/rev or inch/rev Constant cutting speed ON G96 S... LIMS=... F...  Siemens AG 2000. All rights reserved 15-494 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 495 Block change in response to IPO end of block G9 with programmable transition G641 Exact stop – contouring mode rounding G641 ADIS=... G642 Rounding with axial precision  Siemens AG 2000. All rights reserved 15-495 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 496 String: Parameter 1, character: Parameter 2 INIT Select block for execution in a channel Data type: Integer with leading sign – (2 -1), ...,  Siemens AG 2000. All rights reserved 15-496 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 497 Structure: LOOP – ENDLOOP M... Switching operations 0, ..., Max. of 5 free 9999 9999 special functions to be defined by machine manufacturer Programmed stop  Siemens AG 2000. All rights reserved 15-497 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 498 Can be used to E.g. N20 9999 9999 identify blocks with integer a number; position values only, at beginning of no sign block  Siemens AG 2000. All rights reserved 15-498 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 499 (orientation smoothing factor) ORIVIRT1 Orientation angles using virtual orientation axes (definition 1) ORIVIRT2 Orientation angles using virtual orientation axes (definition 1) ORIVIRTAX Large-circle interpolation  Siemens AG 2000. All rights reserved 15-499 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 500 Punching ON (punch ON) PONS Punching ON in IPO cycle (punch ON slow) Position axis POS[X]=20 POSA Position axis across block boundaries POSA[Y]=20  Siemens AG 2000. All rights reserved 15-500 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 501 X=R10 ;Axis value 9999 9999 with numerical extension R[R10]=6 ;indirect programming RDISABLE Read-in disable READAL Read alarrm Alarms are searched according to ascending numbers  Siemens AG 2000. All rights reserved 15-501 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 502 Reposition at beginning of block (Repos mode begin of block) Reposition at end of block (Repos mode end of block) Reposition at interruption point (Repos mode interrupt)  Siemens AG 2000. All rights reserved 15-502 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 503 ; separate block Spline degree Integer, without sign Vocabulary word for initialization of all elements of an array with listed values SETAL Set alarm  Siemens AG 2000. All rights reserved 15-503 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 504 (stroke/punch path) SPOS Spindle position SPOS=10 or SPOS[n]=10 SPOSA Spindle position across block boundaries SPOSA=5 or SPOSA[n]=5 SQRT Square root; arithmetic function Real  Siemens AG 2000. All rights reserved 15-504 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 505 Call via T No.: E.g. T3 or T=3 (change only if so defined in machine or via tool name: data; otherwise M6 command required) E.g. T="DRILL"  Siemens AG 2000. All rights reserved 15-505 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 506 TRAFOOF Switch off transformation TRAFOOF( ) TRAILOF Synchronous coupled motion of axes OFF (trailing OFF) TRAILON Synchronous coupled motion of axes ON (trailing ON)  Siemens AG 2000. All rights reserved 15-506 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 507 WHILE Start of WHILE program loop End: ENDWHILE WRITE Write block in file system Axis Real Logical exclusive OR Axis Real Axis Real  Siemens AG 2000. All rights reserved 15-507 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 508 The OEM user can incorporate two extra interpolation types and modify their names. Vocabulary word applies only to SINUMERIK FM-NC The extended address block format may not be used for these functions.  Siemens AG 2000. All rights reserved 15-508 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 509: List Of System Variables

    NCU base frames, can be activated via G500, G54 .. G599. 0 to 8 NCU base frames can be configured via MD $MN_MM_NUM_GLOBAL_BASE_FRAMES.  Siemens AG 2000. All rights reserved 15-509 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 510: Toolholder Data

    The max. number of toolholders can be set via machine data. Default setting is = 0; i.e. NCI has no such data.  Siemens AG 2000. All rights reserved 15-510 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 511 The max. number of toolholders can be set via machine data. Default setting is = 0; i.e. NCI has no such data.  Siemens AG 2000. All rights reserved 15-511 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 512 T:only the tool can rotate (default) P:only the part can rotate M: tool and part can rotate (mixed mode) Uppercase and lowercase are permissible.  Siemens AG 2000. All rights reserved 15-512 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 513: Channel-Specific Protection Zones

    Number of protection zone 0 – (maximum value settable via MD) $SC_PA_CONT_ $SC_PA_CONT_NUM[n] Number of valid contour elements n: Number of protection zone 0 – (maximum value settable via MD)  Siemens AG 2000. All rights reserved 15-513 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 514: Tool Parameters

    With active 'Flat D number management' function, the syntax is as follows: $TC_DP3[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-514 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 515 With active 'Flat D number management' function, the syntax is as follows: $TC_DP9[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-515 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 516 With active 'Flat D number management' function, the syntax is as follows: $TC_DP16[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-516 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 517 With active 'Flat D number management' function, the syntax is as follows: $TC_DP22[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-517 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 518 With active 'Flat D number management' function, the syntax is as follows: $TC_DPH[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-518 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 519 With active 'Flat D number management' function, the syntax is as follows: $TC_DPCS2[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-519 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 520 With active 'Flat D number management' function, the syntax is as follows: $TC_SCP24[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-520 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 521 With active 'Flat D number management' function, the syntax is as follows: $TC_SCP51[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-521 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 522 With active 'Flat D number management' function, the syntax is as follows: $TC_SCP71[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-522 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 523 With active 'Flat D number management' function, the syntax is as follows: $TC_ECP31[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-523 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 524 With active 'Flat D number management' function, the syntax is as follows: $TC_ECP53[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-524 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 525 With active 'Flat D number management' function, the syntax is as follows: $TC_ECP71[d] t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-525 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 526: Monitoring Data For Tool Management

    T number 1–32000 d: Cutting edge number/D number 1–32000 $TC_MOP15 REAL $TC_MOP15[t,d] Wear setpoint t: T number 1–32000 d: Cutting edge number/D number 1–32000  Siemens AG 2000. All rights reserved 15-526 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 527: Monitoring Data For Oem Users

    Duplo number t: T number 1–32000 STRIN $TC_TP2[t] $TC_TP2 Tool name t: T number 1–32000 $TC_TP3[t] $TC_TP3 Size to left t: T number 1–32000  Siemens AG 2000. All rights reserved 15-527 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 528 T number 1–32000 REAL The type can be defined in the machine data. The default is INT $TC_TPCS1 $TC_TPCS1[t] t: T number 1–32000  Siemens AG 2000. All rights reserved 15-528 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 529: Tool-Related Grinding Data

    $TC_TPG8[t] $TC_TPG8 Inclination angle for oblique grinding wheel t: T number 1–32000 $TC_TPG9 $TC_TPG9[t] Parameter number for radius calculation t: T number 1–32000  Siemens AG 2000. All rights reserved 15-529 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 530: Magazine Location Data

    Physical Magazine number m: Physical location number $TC_MPP7 $TC_MPP7[n,m] Adapter number of tool adapter at this location n: Physical Magazine number m: Physical location number  Siemens AG 2000. All rights reserved 15-530 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 531: Magazine Location Data For Oem Users

    $TC_MPPCS10 The type can be defined in the machine data. The default is INT $TC_MPPCS10[n,m] n: Physical Magazine number m: Physical location number  Siemens AG 2000. All rights reserved 15-531 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 532: Magazine Description Data For Tool Management

    $TC_MAP3[n] $TC_MAP3 State of magazine n: Magazine number 1 to ... $TC_MAP4 $TC_MAP4[n] Chaining with following magazine n: Magazine number 1 to ...  Siemens AG 2000. All rights reserved 15-532 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 533: Tool Management Magazine Description Data For Oem Users

    Magazine number 1 to ... The type can be defined in the machine data. The default is INT $TC_MAPCS10 $TC_MAPCS10[n] n: Magazine number 1 to ...  Siemens AG 2000. All rights reserved 15-533 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 534: Magazine Module Parameter

    Encoder no. 0–1 Axes: Machine axis $AA_ENC_COMP REAL $AA_ENC_COMP_MAX[n,a] Compensation end position _MAX a: Machine axis n: Encoder no. 0–1 Axes: Machine axis  Siemens AG 2000. All rights reserved 15-534 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 535: Quadrant Error Compensation

    Measuring time for range $AA_QEC_ACCEL_1 _TIME_1 a: Machine axis n: 0 REAL $AA_QEC_MEAS_TIME_2[n,a] $AA_QEC_MEAS Measuring time for range $AA_QEC_ACCEL_2 _TIME_2 a: Machine axis n: 0  Siemens AG 2000. All rights reserved 15-535 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 536: Interpolatory Compensation

    No. of compensation table 0 – (maximum value settable via MD) REAL $AN_CEC_STEP[n] $AN_CEC_STEP Distance between compensation values n: No. of compensation table 0 – (maximum value settable via MD)  Siemens AG 2000. All rights reserved 15-536 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 537: Nck-Specific Protection Zones

    1: Polygon in plane from 3rd and 1st geo axis 2: Polygon in plane from 2nd and 3rd geo axis n: Number of protection zone 0 – (maximum value settable via MD)  Siemens AG 2000. All rights reserved 15-537 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 538: System Data

    Time since last power up of control with default values (in minutes) $AN_POWERON_ REAL IF $AN_POWERON_TIME == 480 GOTOF MARK02 Time since last standard power-on of control TIME (in minutes)  Siemens AG 2000. All rights reserved 15-538 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 539: Frames 2

    Active tool cutting edge D0 – D'max.'; 'max'= value of $MN_MM_MAX_CUTTING_EDGE_NO $P_TOOLNO $P_TOOLNO Active tool number T0 – T32000; T can be 8-digit if the 'flat D number' is active  Siemens AG 2000. All rights reserved 15-539 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 540 Index 1 – 9 for table location in D number table $P_ATPG REAL $P_ATPG[n] Current tool-related grinding data n: Parameter number 1 – 9  Siemens AG 2000. All rights reserved 15-540 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 541: Programmed Values

    1 : Block search without calculation 2 : Block search with calculation on contour 3 : Reserved 4 : Block search with calculation at end of block position  Siemens AG 2000. All rights reserved 15-541 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 542 Returns the program level in which a part program is active. progLevel = $P_STACK , writes the number of the current program level into the integer variable  Siemens AG 2000. All rights reserved 15-542 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 543: Channel Statuses

    The status is read from the part program without feedforward stop while interpreting the block $AC_IW_STAT $AC_IW_STAT Position information of the articulated joints (transformation-specific) for PTP travel  Siemens AG 2000. All rights reserved 15-543 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 544 The program evaluating the variable (if one exists) is set back to the basic setting ($AC_LIFTFAST=0) in order to be able to detect a subsequent list fast.  Siemens AG 2000. All rights reserved 15-544 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 545 BIT12: Activation due to: Alarm with reaction of compensation block with Repos (COMPBLOCKWITHREORG) Activation by: Internal Continuation by: using system ASUP REPOS BIT13: Activation due to: Retraction movement on G33 and Stop  Siemens AG 2000. All rights reserved 15-545 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 546: Synchronized Actions

    The dimension is defined in MD $MC_MM_NUM_AC_MARKER. $AC_PARAM REAL $AC_PARAM[n] R W + Arithmetic variable for motion-synchronized actions The dimension is defined in MD $MC_MM_NUM_AC_PARAM.  Siemens AG 2000. All rights reserved 15-546 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 547 Read access to current number of FIFO elements n=5–m: Read access to individual FIFO elements 5 is the oldest element 6 is the second-oldest, etc.  Siemens AG 2000. All rights reserved 15-547 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 548: I/Os

    The max. input number is determined by MD $MN_FASTIO_ANA_NUM_OUTPUTS $A_INCO BOOL $A_INCO[n] Comparator input n: Number of output 1 – ... The max. input number is determined by MD  Siemens AG 2000. All rights reserved 15-548 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 549: Reading And Writing Plc Variables

    $A_LINK_TRANS_RATE $A_LINK_TRANS Number of bytes that can still be transferred via the NCU link _RATE communication in the current IPO cylce.  Siemens AG 2000. All rights reserved 15-549 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 550: Direct Plc I/O

    Write Real data (32 bits) directly to PLC I/O n: Byte offset within the PLC output area 0 – ... synchronized with main run  Siemens AG 2000. All rights reserved 15-550 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 551: Tool Management

    0: There is no old tool. $AC_TC_LTO $AC_TC_LTO Target location number of old tool (to be changed). 0: There is no old tool.  Siemens AG 2000. All rights reserved 15-551 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 552: Timers

    Set (initialize) the accumulated program runtime (auxiliary time) REAL $AC_PRTIME_M_INC "ProgramRunTIME-Main-INCrement" $AC_PRTIME_M_ Increment the accumulated program runtime (main time) REAL $AC_PRTIME_A_INC "ProgramRunTIME-Auxiliary-INCrement" $AC_PRTIME_A_I Increment the accumulated program runtime (auxiliary time)  Siemens AG 2000. All rights reserved 15-552 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 553: Path Movement

    Returns True if the positional values which can be read with $P_APR[X] or $P_AEP[X] (the start point or contour point for soft approach and retraction) are valid.  Siemens AG 2000. All rights reserved 15-553 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 554: Velocities

    This variable can only be accessed from synchronized actions $AC_VACTW REAL $AC_VACTW Path velocity in workpiece coordinate system This variable can only be accessed from synchronized actions  Siemens AG 2000. All rights reserved 15-554 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 555: Spindles

    44: M44 as predefined gear stage in part program 45: M45 as predefined gear stage in part program n: Spindle number, 0 – max. spindle number  Siemens AG 2000. All rights reserved 15-555 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 556 0: No spindle exists 1: Speed control mode 2: Positioning mode 3: synchronized mode 4: Axis mode n: Spindle number, 0 – max. spindle number  Siemens AG 2000. All rights reserved 15-556 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 557: Polynomial Values For Synchronized Actions

    Number of polynomial, limited by machine data REAL $AC_FCT3[n] R W + $AC_FCT3 a3 coefficient of polynomial for synchronized actions (SYNFCT) n: Number of polynomial, limited by machine data  Siemens AG 2000. All rights reserved 15-557 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 558: Channel Statuses

    Approach point: first contour point in the workpiece coordinate system for soft approach to contour Axes: Channel axis REAL $AA_IW[X] $AA_IW Actual value in workpiece coordinate system (WCS) Axes: Channel axis  Siemens AG 2000. All rights reserved 15-558 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 559: Indexing Axes

    Axes: Geometry axis, channel axis, machine axis $AA_ENC2_ACTI BOOL $AA_ENC2_ACTIVE[X] Encoder 2 is operating below encoder limit frequency Axes: Geometry axis, channel axis, machine axis  Siemens AG 2000. All rights reserved 15-559 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 560: Encoder Values

    Trigger event 3 in WCS Axes: Channel axis REAL $AA_MW4[X] $AA_MW4 Measurement result of axial measurement Trigger event 4 in WCS Axes: Channel axis  Siemens AG 2000. All rights reserved 15-560 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 561: Axial Measurement

    0: Limit value not reached 1: Limit value reached in positive axis direction –1: Limit value reached in negative axis direction Axes: Channel axis  Siemens AG 2000. All rights reserved 15-561 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 562: Axial Distances

    This variable can only be accessed from synchronized actions Axes: Channel axis  Siemens AG 2000. All rights reserved 15-562 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 563: Oscillation

    Axes: Geometry axis, channel axis, machine axis $P_FA REAL $P_FA[X] Axis feed last programmed Axes: Channel axis  Siemens AG 2000. All rights reserved 15-563 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 564: Axial Velocities

    Axes: Channel axis $AA_VACTB REAL $AA_VACTB[X] Axis velocity in the base coordinate system This variable can only be accessed from synchronized actions Axes: Channel axis  Siemens AG 2000. All rights reserved 15-564 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 565: Drive Data

    Actual current value of axis or spindle in A (for 611D only) Axes: Channel axis REAL $VA_VALVELIFT[X] $VA_VALVELIFT Actual valve stroke in mm (for 611D hydraulics only) Axes: Channel axis  Siemens AG 2000. All rights reserved 15-565 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 566: Axis Statuses

    6: Lead. value coupled follow. ax. 7: Coupled motion follow. axis 8: Command axis 9: Compile cycle axis Axes: Geometry axis, channel axis  Siemens AG 2000. All rights reserved 15-566 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 567: Electronic Gear 1

    Number of leading axes specified with EGDEF Axes: Geometry axis, channel axis $VA_EG_SYNCDI REAL $VA_EG_SYNCDIFF[a] a: Following axis Synchronization difference Axes: Geometry axis, channel axis, machine axis  Siemens AG 2000. All rights reserved 15-567 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 568: Leading Value Coupling

    1 => Synchronization coarse (myVdiOut->getSynchCoarse() == TRUE) 2 => Synchronization fine (myVdiOut->getSynchFine() == TRUE) 3 => Coarse and fine Axes: Geometry axis, channel axis, machine axis  Siemens AG 2000. All rights reserved 15-568 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 569: Synchronized Spindle

    Status of power enable of a machine axis Axes: Machine axis $AA_ACC REAL $AA_ACC Current acceleration value of axis with 1-axis interpolation. $AA_ACC = $MA_MAX_AX_ACCEL * progr. acceleration offset  Siemens AG 2000. All rights reserved 15-569 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 570: Extended Stop And Retract

    Axes: Geometry axis, channel axis, machine axis BOOL $AA_ESR_ENABLE[X] = 1 $AA_ESR_ENAB Enable "Extended stop and retract" Axes: Geometry axis, channel axis, machine axis  Siemens AG 2000. All rights reserved 15-570 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 571: Axis Container

    $AA_EG_DENOM[a,b] $AA_EG_DENOM a: Following axis b: Leading axis Denominator of coupling factor for leading axis b Axes: Geometry axis, channel axis, machine axis  Siemens AG 2000. All rights reserved 15-571 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 572: Safety Integrated 2

    Number of input 1 – ... $A_INSID $A_INSID[n] Image of the safety input signals (int. NCI interface) n: Number of input word 1 – ...  Siemens AG 2000. All rights reserved 15-572 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 573 When the timer is stopped by assigning the value –1, the most up-to- date timer value is retained and can be read. n: Number of timer 1 – ...  Siemens AG 2000. All rights reserved 15-573 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 574 Number of control signal for cross-checking NCK – PLC $A_LEVELSID $A_LEVELSID Safety: Display of signal change monitoring level. Indicates the current number of signals marked for data cross-checking.  Siemens AG 2000. All rights reserved 15-574 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 575: Appendix

    04.00 Appendix Appendix A Index ........................... A-577 B Commands, Identifiers......................A-591  Siemens AG 2000. All rights reserved A-575 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 576 Anhang 04.00  Siemens AG 2000. All rights reserved A-576 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 577 $A_MONIFACT 15-540 $AA_DTEW 15-562 $A_MONTH 15-552 $AA_EG_ACTIVE 15-572 $A_MSECOND 15-552 $AA_EG_AX 15-568 $A_OUT 15-548 $AA_EG_DENOM 15-571 $A_OUTA 15-548 $AA_EG_NUM_LA 15-567 $A_OUTSE 15-572 $AA_EG_NUMERA 15-571  Siemens AG 2000. All rights reserved A-577 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 578 $AA_MW4 15-560 $AC_DTEB 15-553 $AA_OFF 15-561 $AC_DTEW 15-553 $AC_FCT0 15-557 $AA_OFF_LIMIT 15-561 $AA_OSCILL_REVERSE_POS1 15-563 $AC_FCT1 15-557 $AA_OSCILL_REVERSE_POS2 15-563 $AC_FCT1C 15-557 $AA_OVR 15-564 $AC_FCT1LL 15-557  Siemens AG 2000. All rights reserved A-578 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 579 $AC_SMODE 15-556 $P_AEP 15-558 $AC_SPECIAL_PARTS 15-558 $P_APDV 15-553 $P_APR 15-558 $AC_STAT 15-543 $AC_SYNA_MEM 15-543 $P_ATPG 15-540 $AC_TC_FCT 15-551 $P_AXN1 15-541 $AC_TC_LFN 15-551 $P_AXN2 15-541  Siemens AG 2000. All rights reserved A-579 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 580 $P_SEARCH_SGEAR 15-555 $SN_PA_PLUS_LIM 15-538 $P_SEARCH1 15-541 $SN_PA_T_W 15-537 $TC_ADPT1 15-534 $P_SEARCH2 15-541 $P_SEARCHL 15-541 $TC_ADPT2 15-534 $P_SGEAR 15-556 $TC_ADPT3 15-534 $P_SIM 15-542 $TC_ADPTT 15-534  Siemens AG 2000. All rights reserved A-580 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 581 $TC_DP3 15-514 $TC_MAP7 15-533 $TC_DP4 15-515 $TC_MAP8 15-533 $TC_MAP9 15-533 $TC_DP5 15-515 $TC_DP6 15-515 $TC_MAPC1 15-533 $TC_DP7 15-515 $TC_MAPC10 15-533 $TC_DP8 15-515 $TC_MAPC2 15-533  Siemens AG 2000. All rights reserved A-581 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 582 $TC_SCP23 15-520 $VA_EG_SYNCDIFF 15-567 $TC_SCP24 15-520 $VA_IM 15-560 $VA_IM1 15-560 $TC_SCP31 15-521 $TC_SCP33 15-521 $VA_IM2 15-560 $TC_SCP34 15-521 $VA_IS 15-569 $TC_SCP41 15-521 $VA_LOAD 15-565  Siemens AG 2000. All rights reserved A-582 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 583 Coupled-axis motion 10-381 Get axis 1-77 Coupling 9-302, 9-307,13-431 RELEASE 1-76 Cov.com, user cycles 2-114 Create interrupt routine as subprogram 1-69 CS 9-302 CTAB 9-315  Siemens AG 2000. All rights reserved A-583 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 584 Frame chaining 6-201 Denominator polynomial 5-167 Frame variable DRF offset 6-205 Coordinate transformation call 6-192 Drive-independent reactions 13-448 Frame variables 6-192 Drive-independent retract 13-452  Siemens AG 2000. All rights reserved A-584 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 585 Measured value recording 5-176 compensation 8-285 Measurement 10-384 IPO cycle 11-410 Measurement results 5-180 ISD (Insertion Depth) 8-278 Measurements with touch trigger probe ISFILE 1-87  Siemens AG 2000. All rights reserved A-585 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 586 Control via synchronized action 11-404 Selecting workpiece 3-127 Defining the sequence of motions 11-400 Workpiece directories 3-125 Synchronized oscillation 11-403 Program repetition 2-103  Siemens AG 2000. All rights reserved A-586 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 587 Status of coupling 9-322 Resolved kinematics 8-296 Stock removal 14-464 Reversal Stopping and retract Area 11-404 Extended 13-447 Point 11-404 String length 1-51  Siemens AG 2000. All rights reserved A-587 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 588 Toolholder 8-297 Synchronized spindle 13-431 Clear/edit/read data 8-298 Activate synchronized mode 13-437 Kinematics 8-296 Block change behavior 13-436 Torsion 13-429 Coupling type 13-436  Siemens AG 2000. All rights reserved A-588 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 589 Initialization programs 3-128 Reserved block names 3-131 Zero frame 6-208 Zero offset Deactivating transformations 6-208 External zero offset 6-206 Offset using handwheel 6-205 PRESETON 6-207  Siemens AG 2000. All rights reserved A-589 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 590: Index

    Appendix 04.00 Index  Siemens AG 2000. All rights reserved A-590 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 591: B Commands, Identifiers

    BFRAME 6-193 BNAT 5-155 BOOL 1-27 BRISK 11-397 A 7-247 BSPLINE 5-151 A1, A2 8-296 BTAN 5-155 A2 7-224 A3 7-224 A4 7-224  Siemens AG 2000. All rights reserved A-591 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 592 CP 7-233 CPROT 4-144 Endpos 11-403 CPROTDEF 4-140, 4-142 ENDPROC 10-370 CROT 6-197 ENDWHILE 1-58 ERG 14-479 CSCALE 6-197 ERROR 14-465, 14-472 CSPLINE 5-151  Siemens AG 2000. All rights reserved A-592 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 593 G4 11-399 LOOP 1-58 G642 5-171 LOOP-ENDLOOP 1-59 GEOAX 7-257 LS 13-431 GET 1-76 LW 9-311 GETACTTD 8-294 GETD 1-76 GETDNO 8-293 GETSELT 8-266  Siemens AG 2000. All rights reserved A-593 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 594 QEC 13-429 ORIS 8-286 QECDAT.MPF 13-430 ORIWCS 7-228, 7-230, 8-286 QECLRN.SPF 13-430 OS 11-396, 11-399 QECLRNOF 13-429 OSC 8-286 QECLRNON 13-429 OSCILL 11-403, 11-405  Siemens AG 2000. All rights reserved A-594 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 595 SOFT 11-397 TOLOWER 1-50 SON 12-416, 12-421, 12-422 Toolholder 8-297 SONS 12-416 TOUPPER 1-50 SPI 13-428, 13-434 TR 6-199 SPIF1 15-504 TRAANG 7-241, 7-247  Siemens AG 2000. All rights reserved A-595 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 596 WAITP 11-399 WALIMON 9-304 WCS 11-410 WHEN 10-340 WHEN-DO 11-403 WHENEVER 10-340 WHENEVER-DO 11-403, 11-406 WHILE 1-58 WZ 8-266 x 8-266 XOR 1-42  Siemens AG 2000. All rights reserved A-596 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) – 04.00 Edition...
  • Page 597 Suggestions SIEMENS AG Corrections for Publication/Manual: A&D MC IS P.O. Box 3180 SINUMERIK 840D/840Di/810D/FM-NC Programming Guide D-91050 Erlangen Advanced Germany User Documentation (Tel. 0180/525–8008/5009 [Hotline]) Fax +49(0)9131/98–1145 email: motioncontrol.docu@.siemens.de) From 6FC5298-5AB10-0BP2 Name Order No.: 04.00 Edition: Company/Department Should you come across any printing errors when Address: reading this publication, please notify us on this sheet.
  • Page 598 Siemens AG Siemens quality for software and training to Automation Group DIN ISO 9000, Reg. No. 2160-01. Automation Systems This edition was printed on bleached paper using an for Machine Tools, Robots environmentally-friendly chlorine-free method. Progress and Special-Purpose Machines Copyright Siemens AG 2000. All rights reserved in Automation.

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents

Save PDF