Download  Print this page
   
1
2
3
4
5
6
Table of Contents
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795

Advertisement

 
SINUMERIK
SINUMERIK 840D sl
Special Functions
Function Manual
Valid for
Control
SINUMERIK 840D sl / 840DE sl 
Software
CNC software
09/2011
6FC5397-2BP40-2BA0
Version 
4.4
Preface
F2: Multi-axis transformations
G1: Gantry axes
G3: Cycle times
K6: Contour tunnel monitoring
M3: Coupled axes
R3: Extended stop and retract
S9: Setpoint switchover
T3: Tangential control
TE01: Installation and activation
of loadable compile cycles
TE02: Simulation of compile
cycles
TE1: Clearance control
TE3: Speed/torque coupling,
master-slave
TE4: Transformation package
handling
TE6: MCS coupling
TE7: Continue machining -
retrace support
TE8: Cycle-independent path-
synchronous switching signal output
TE9: Axis pair collision
protection
V2: Preprocessing
W5: 3D tool radius
compensation
W6: Path length evaluation
Z3: NC/PLC interface signals
Appendix
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 
20 
21 

Advertisement

   Summary of Contents for Siemens SINUMERIK 840D sl

  • Page 1   2  G1: Gantry axes 3  G3: Cycle times SINUMERIK 4  K6: Contour tunnel monitoring 5  SINUMERIK 840D sl M3: Coupled axes Special Functions 6  R3: Extended stop and retract 7  S9: Setpoint switchover 8  Function Manual T3: Tangential control TE01: Installation and activation 9 ...
  • Page 2 Note the following: WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical documentation. If products and components from other manufacturers are used, these must be recommended or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and maintenance are required to ensure that the products operate safely and without any problems.
  • Page 3: Preface

    Training For information about the range of training courses, refer under: • www.siemens.com/sitrain SITRAIN - Siemens training for products, systems and solutions in automation technology • www.siemens.com/sinutrain SinuTrain - training software for SINUMERIK FAQs You can find Frequently Asked Questions in the Service&Support pages under Product Support.
  • Page 4 Preface SINUMERIK You can find information on SINUMERIK under the following link: www.siemens.com/sinumerik Target group This publication is intended for: • Project engineers • Technologists (from machine manufacturers) • System startup engineers (Systems/Machines) • Programmers Benefits The function manual describes the functions so that the target group knows them and can select them.
  • Page 5 Preface • Appendix with: List of abbreviations Overview • Index of terms Note For detailed descriptions of data and alarm see: • machine and setting data: Detailed description of machine data (only electronically on DOConCD or DOConWEB) • NC/PLC interface signals: Function Manual Basic Functions;...
  • Page 6 Preface Data types The following elementary data types are used in the control system: Type Meaning Range of values Signed integers -2147483648 ... +2147483647 REAL Figures with decimal point acc. to IEEE -308 +308 ±(2,2*10 … 1,8*10 BOOL Truth values TRUE (1) and FALSE (0) 1, 0 CHAR ASCII characters...
  • Page 7: Table Of Contents

    Table of contents Preface.................................3 F2: Multi-axis transformations ........................23 Brief description......................... 23 1.1.1 5-axis Transformation ........................ 23 1.1.2 3-axis and 4-axis transformation ....................25 1.1.3 Orientation transformation with a swivelling linear axis............. 26 1.1.4 Universal milling head ....................... 28 1.1.5 Orientation axes ........................
  • Page 8 Table of contents 1.9.5 Orientation relative to the path ....................92 1.9.6 Programming of orientation polynominals ................. 96 1.9.7 Tool orientation with 3-/4-/5-axis transformations ..............99 1.9.8 orientation vectors with 6-axis transformation ................99 1.10 Orientation axes........................101 1.10.1 JOG mode ..........................102 1.10.2 Programming for orientation transformation ................
  • Page 9 Table of contents PLC interface signals for gantry axes..................167 Miscellaneous points regarding gantry axes ................169 Examples..........................172 2.7.1 Creating a gantry grouping ...................... 172 2.7.2 Setting of NCK PLC interface ....................173 2.7.3 Commencing start-up ......................174 2.7.4 Setting warning and trip limits ....................
  • Page 10 Table of contents 5.1.1 Product brief ..........................203 5.1.1.1 Function ........................... 203 5.1.1.2 Preconditions ........................... 203 5.1.2 General functionality ........................ 204 5.1.3 Programming ........................... 208 5.1.3.1 Definition and switch on of a coupled axis grouping (TRAILON) ..........208 5.1.3.2 Switch off (TRAILOF) ....................... 209 5.1.4 Effectiveness of PLC interface signals ..................
  • Page 11 Table of contents 5.5.1.1 Function ........................... 268 5.5.1.2 Preconditions ........................... 268 5.5.2 Basics ............................272 5.5.2.1 Coupling module ........................272 5.5.2.2 Keywords and coupling characteristics ................... 273 5.5.2.3 System variables ........................276 5.5.3 Creating/deleting coupling modules ..................276 5.5.3.1 Creating a coupling module (CPDEF) ..................276 5.5.3.2 Delete coupling module (CPDEL) ....................
  • Page 12 Table of contents 5.5.12.7 Limitations and constraints ...................... 333 Dynamic response of following axis..................335 5.6.1 Parameterized dynamic limits ....................335 5.6.2 Programmed dynamic limits ....................335 5.6.2.1 Programming (VELOLIMA, ACCLIMA) ..................335 5.6.2.2 Examples ..........................337 5.6.2.3 System variables ........................338 Boundary conditions ........................
  • Page 13 Table of contents 6.2.10.6 Block search, REPOS ......................382 ESR executed autonomously in the drive................383 6.3.1 Fundamentals .......................... 383 6.3.2 Configuring stopping in the drive ..................... 384 6.3.3 Configuring retraction in the drive .................... 385 6.3.4 Configuring generator operation in the drive ................387 6.3.5 ESR is enabled via system variable ..................
  • Page 14 Table of contents Using tangential follow-up control.................... 421 8.3.1 Assignment between leading axes and following axis ............. 422 8.3.2 Activation of follow-up control ....................422 8.3.3 Switching on corner response ....................423 8.3.4 Termination of follow-up control ....................424 8.3.5 Switching off intermediate block generation ................
  • Page 15 Table of contents 11.2.1 Control dynamics ........................458 11.2.2 Velocity feedforward control ....................460 11.2.3 Control loop structure ......................462 11.2.4 Compensation vector ....................... 463 11.3 Technological features of clearance control ................467 11.4 Sensor collision monitoring...................... 469 11.5 Startup ............................. 470 11.5.1 Activating the technological function ..................
  • Page 16 Table of contents 12.4 Torque compensatory controller ....................512 12.5 Tension torque......................... 515 12.6 Activating a coupling........................ 519 12.7 Response on activation/deactivation ..................521 12.8 Constraints..........................524 12.8.1 Speed/torque coupling (SW 6 and higher) ................524 12.8.2 Axial NC/PLC interface signals ....................525 12.8.3 Interaction with other functions ....................
  • Page 17 Table of contents 13.11 Cartesian PTP travel with handling transformation package........... 588 13.12 Function-specific alarm texts ....................589 13.13 Boundary conditions ........................ 590 13.13.1 Function-specific boundary conditions ..................590 13.13.2 Interaction with other functions ....................591 13.14 Examples..........................592 13.14.1 General information about start-up ..................592 13.14.2 Starting up a kinematic transformation ..................
  • Page 18 Table of contents 15.3.5 RESU main program memory area ..................622 15.3.6 Storage of the RESU subroutines .................... 623 15.3.7 ASUB enable ........................... 624 15.3.8 PLC user program ........................624 15.4 Programming ........................... 626 15.4.1 RESU Start/Stop/Reset (CC_PREPRE) .................. 626 15.5 RESU-specific part programs ....................
  • Page 19 Table of contents 16.2.2.2 Path length-related switching signal output ................651 16.2.3 Calculating the switching instants .................... 652 16.2.4 Switching frequency and switching position distance .............. 652 16.2.5 Approaching switching position ....................653 16.2.6 Programmed switching position offset ..................654 16.2.7 Response to part program interruption ..................
  • Page 20 Table of contents 17.5 Examples ..........................677 17.5.1 Collision protection ........................677 17.5.2 Collision protection and distance limiter .................. 678 17.6 Data lists ..........................680 17.6.1 Option data ..........................680 17.6.2 Machine data ........................... 680 17.6.2.1 NC-specific machine data ......................680 17.6.2.2 Axis/Spindle-specific machine data ..................
  • Page 21 Table of contents 19.7.1 General machine data ......................723 19.7.2 Channel­specific machine data ....................723 W6: Path length evaluation ........................725 20.1 Brief description........................725 20.2 Data ............................726 20.3 Parameterization ........................727 20.3.1 General activation ........................727 20.3.2 Data groups ..........................727 20.4 Examples..........................
  • Page 22 21.11.2 Signals from channel ....................... 750 Appendix ..............................753 List of abbreviations......................... 753 Overview..........................761 Glossary ..............................763 Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 23: F2: Multi-axis Transformations

    F2: Multi-axis transformations Brief description Note The transformations described below require that individual names are assigned to machine axes, channels and geometry axes when the transformation is active. Compare macchine data: MD10000 $MN_AXCONF_MACHAX_NAME_TAB (machine axis name) MD20080 $MC_AXCONF_CHANAX_NAME_TAB (name of the channel axis in the channel) MD20060 $MC_AXCONF_GEOAX_NAME_TAB (name of the geometry axis in the channel) Besides this no unambiguous assignments are present.
  • Page 24 F2: Multi-axis transformations 1.1 Brief description Tool orientation Tool orientation can be specified in two ways: • Machine-related orientation The machine-related orientation is dependent on the machine kinematics. • Workpiece-related orientation The workpiece-related orientation is not dependent on the machine kinematics. It is programmed by means of: Euler angles RPY angles...
  • Page 25: 3-axis And 4-axis Transformation

    F2: Multi-axis transformations 1.1 Brief description 1.1.2 3-axis and 4-axis transformation Function The 3- and 4-Axis transformations are distinguished by the following characteristics: Transformation Features 3-axis Transformation 2 linear axes 1 rotary axis 4-Axis transformation 3 linear axes 1 rotary axis Both types of transformation belong to the orientation transformations.
  • Page 26: Orientation Transformation With A Swivelling Linear Axis

    F2: Multi-axis transformations 1.1 Brief description Figure 1-2 Schematic diagram of a 4-axis transformation with moveable workpiece 1.1.3 Orientation transformation with a swivelling linear axis. Function The orientation transformation with swivelling linear axis is similar to the 5-axis transformation of Machine Type 3, though the 3rd linear axis is not always perpendicular to the plane defined by the other two linear axes.
  • Page 27 F2: Multi-axis transformations 1.1 Brief description Figure 1-3 Schematic diagram of a machine with swivelling linear axis Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 28: Universal Milling Head

    F2: Multi-axis transformations 1.1 Brief description 1.1.4 Universal milling head Function A machine tool with a universal milling head has got at least 5 axes: • 3 linear axes for linear movement [X, Y, Z] move the machining point to any random position in the working area •...
  • Page 29: Orientation Axes

    F2: Multi-axis transformations 1.1 Brief description 1.1.5 Orientation axes Model for describing change in orientation There is no such simple correlation between axis motion and change in orientation in case of robots, hexapodes or nutator kinamatics, as in the case of conventional 5-axes machines. For this reason, the change in orientation is defined by a model that is created independently of the actual machine.
  • Page 30: Cartesian Manual Travel

    F2: Multi-axis transformations 1.1 Brief description 1.1.6 Cartesian manual travel Function The "Cartesian Manual Operation" function can be used to set one of the following coordinate systems as reference system for JOG motion to be selected separately for translation and orientation as: •...
  • Page 31: Online Tool Length Offset

    F2: Multi-axis transformations 1.1 Brief description 1.1.9 Online tool length offset Function The system variable $AA_TOFF[ ] can be used to overlay the effective tool lengths in 3-D in runtime. For an active orientation transformation (TRAORI) or for an active tool carrier that can be oriented, these offsets are effective in the particular tool axes.
  • Page 32: 5-axis Transformation

    F2: Multi-axis transformations 1.2 5-axis transformation 5-axis transformation 1.2.1 Kinematic transformation Task of orientation transformation The task of orientation transformation is to compensate movements of the tool nose, which result from changes in orientation, by means of appropriate compensating movements of the geometry axes.
  • Page 33 F2: Multi-axis transformations 1.2 5-axis transformation 4. Rotary axes turn Tool with two-axis swivel head (machine type 1) Workpiece with two-axis rotary table (machine type 2) Tool and workpiece with single-axis rotary table and swivel head (machine type 3) 5. The following applies to machine types 1 and 2: Rotary axis 1 is treated as the 4th machine axis of the transformation.
  • Page 34: Configuration Of A Machine For 5-axis Transformation

    F2: Multi-axis transformations 1.2 5-axis transformation 1.2.3 Configuration of a machine for 5-axis transformation To ensure that the 5-axis transformation can convert the programmed values to axis motions, certain information about the mechanical design of the machine is required; this information is stored in machine data: •...
  • Page 35 F2: Multi-axis transformations 1.2 5-axis transformation Axis assignment The axis assignment at the start of the 5-axis transformation defines the axis that will be mapped by the transformation internally onto a channel axis. Thus, the following is defined in the machine data below: MD24110 $MC_TRAFO_AXES_IN_1 (Axis assignment for transformation 1) MD24482 $MC_TRAFO_AXES_IN_10 (Axis assignment for transformation 10) Geometry information...
  • Page 36 F2: Multi-axis transformations 1.2 5-axis transformation Position vector in MCS $MC_TRAFO5_PART_OFFSET_n[0 ..2] Vector of programmed position in BCS Tool correction vector $MC_TRAFO5_BASE_TOOL_n[0 .. 2] $MC_TRAFO5_JOINT_OFFSET_n[0 .. 2] Figure 1-7 Schematic diagram of CA kinematics, moved tool Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 37 F2: Multi-axis transformations 1.2 5-axis transformation Figure 1-8 Schematic diagram of CB kinematics, moved workpiece Figure 1-9 Schematic diagram of AC kinematics, moved tool, moved workpiece Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 38: Tool Orientation

    F2: Multi-axis transformations 1.2 5-axis transformation Assignment of direction of rotation The sign interpretation setting for a rotary axis is stored in the sign machine data for 5-axis transformation. MD24520 $MC_TRAFO5_ROT_SIGN_IS_PLUS_1[n] (sign of rotary axis 1/2/3 for 5-axis transformation 1) MD24620 $MC_TRAFO5_ROT_SIGN_IS_PLUS_2[n] (sign of rotary axis 1/2/3 for 5-axis transformation 2) Transformation types...
  • Page 39 F2: Multi-axis transformations 1.2 5-axis transformation Programming The orientation of the tool can be programmed in a block directly by specifying the rotary axes or indirectly by specifying the Euler angle, RPY angle and direction vector. The following options are available: •...
  • Page 40 F2: Multi-axis transformations 1.2 5-axis transformation The orientation is selected via NC language commands ORIWCS and ORIMCS. Figure 1-11 Change in cutter orientation while machining inclined edges Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 41 F2: Multi-axis transformations 1.2 5-axis transformation Figure 1-12 Change in orientation while machining inclined edges ORIMCS cosntitutes the basic setting The basic setting can be changed via the following machine data: MD20150 MC_GCODE_RESET_VALUES (RESET position of G groups) MD20150 $MC_GCODE_RESET_VALUES [24] = 1 ⇒ ORIWCS is basic setting MD20150 $MC_GCODE_RESET_VALUES [24] = 2 ⇒...
  • Page 42 F2: Multi-axis transformations 1.2 5-axis transformation Alarm 17630 or 17620 is output for G74 and G75 if a transformation is active and the axes are involved in the transformation. This applies irrespective of orientation programming. If the start and end vectors are inverse parallel when ORIWKS is active, then no unique plane is defined for the orientation programming, resulting in the output of alarm 14120.
  • Page 43: Singular Positions And Handling

    F2: Multi-axis transformations 1.2 5-axis transformation 1.2.5 Singular positions and handling Extreme velocity increase If the path runs in close vicinity to a pole (singularity), one or several axes may traverse at a very high velocity. Alarm 10910 "Irregular velocity run in a path axis" is then triggered. The programmed velocity is then reduced to a value, which does not exceed the maximum axis velocity.
  • Page 44 F2: Multi-axis transformations 1.2 5-axis transformation $MC_TRAFO5_POLE_LIMIT This machine data identifies a limit angle for the 5th axis of the first MD24540 $MC_TRAFO5_NON_POLE_LIMIT_1 or the second MD24640 $MC_TRAFO5_NON_POLE_LIMIT_2 5-axis transformation with the following properties: With interpolation through the pole point, only the fifth axis moves; the fourth axis remains in its start position.
  • Page 45 F2: Multi-axis transformations 1.2 5-axis transformation MD21108 $MC_POLE_ORI_MODE The following machine data can be used to set the response for large circle interpolation in pole position as follows: MD21108 $MC_POLE_ORI_MODE (behavior during large circle interpolation at pole position) Does not define the treatment of changes in orientation during large circle interpolation unless the starting orientation is equal to the pole orientation or approximates to it and the end orientation of the block is outside the tolerance circle defined in the following machine data.
  • Page 46: 3-axis And 4-axis Transformations

    F2: Multi-axis transformations 1.3 3-axis and 4-axis transformations 3-axis and 4-axis transformations Introduction 3-axis and 4-axis transformations are special types of the 5-axis transformation initially described. Orientation of the tool is possible only in the plane perpendicular to the rotary axis. The transformation supports machine types with movable tool and movable workpiece.
  • Page 47 F2: Multi-axis transformations 1.3 3-axis and 4-axis transformations Axis assignments The three translatory axes included in the transformation are assigned to any channel axes via machine data $MC_TRAFO_GEOAX_ASSIGN_TAB_n[0..2] and $MC_TRAFO_AXES_IN_n[0..2]. The following must apply for the assignment of channel axes to geometry axes for the transformation: $MC_TRAFO_GEOAX_ASSIGN_TAB_n[0] = $MC_TRAFO_AXES_IN_n[0] $MC_TRAFO_GEOAX_ASSIGN_TAB_n[1] = $MC_TRAFO_AXES_IN_n[1]...
  • Page 48: Transformation With Swivelled Linear Axis

    F2: Multi-axis transformations 1.4 Transformation with swivelled linear axis Transformation with swivelled linear axis Applications Transformation with a swiveling linear axis can be used if the application is characterized by the kinematics described in Chapter "Orientation Transformation with Linear Swivel Axis" and only a small swivel range (<<± 90 degrees) is crossed by the first rotary axis.
  • Page 49 F2: Multi-axis transformations 1.4 Transformation with swivelled linear axis Definition of required values As an aid for defining the values for the above-mentioned machine data, the following two sketches show the basic interrelations between the vectors. Figure 1-14 Projections of the vectors to be set in machine data Meanings of vector designations: •...
  • Page 50 F2: Multi-axis transformations 1.4 Transformation with swivelled linear axis The Figure "Example of Vector Designation for MD-settings" shows vector components for the machine shown in Figure "Machine with linear swivel axis in Zero Position" (Chapter "Orientation Transformation with Linear Swivel Axis") and they are named accordingly. Note A physically identical point on the 1st rotary axis (e.g.
  • Page 51 F2: Multi-axis transformations 1.4 Transformation with swivelled linear axis Figure 1-15 Machine with swivelling linear axis in position zero The following conversion of geometry into machine data to be specified, is based on the example in Figure . Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 52 F2: Multi-axis transformations 1.4 Transformation with swivelled linear axis Figure 1-16 Example of vector designation for MD-settings in Figure "Machine with Swivelling Linear Axis in Zero Position" Procedure for setting machine data Perform the following operation: • Calculate the x- and y-components for vector jo, listed in the figure below, "Example of Vector Designation for MD-settings"...
  • Page 53 F2: Multi-axis transformations 1.4 Transformation with swivelled linear axis This procedure can be used for all kinematics specified under "Kinematics Variants". Observe the tips given in Figure "Projections of Vectors to be set in Machine Data". Zero components With certain geometries or machine zero positions, individual components or complete vectors can become zero.
  • Page 54: Universal Milling Head

    F2: Multi-axis transformations 1.5 Universal milling head Universal milling head 1.5.1 Fundamentals of universal milling head Note The following description of the universal milling head transformation has been formulated on the assumption that the reader has already read and understood the general 5-axis transformation described in Chapter "5-axis Transformation".
  • Page 55 F2: Multi-axis transformations 1.5 Universal milling head Configuring the nutator angle φ The angle of the inclined axis can be configured in a machine data: $MC_TRAFO5_NUTATOR_AX_ANGLE_1: for the first orientation transformation $MC_TRAFO5_NUTATOR_AX_ANGLE_2: for the second orientation transformation The angle must lie within the range of 0 degrees to +89 degrees. Tool orientation Tool orientation at zero position can be specified as follows: •...
  • Page 56: Parameterization

    F2: Multi-axis transformations 1.5 Universal milling head Angle definition Figure 1-18 Position of axis A' Axis A' is positioned in the plane spanned by the rectangular axes of the designated axis sequence. If, for example, the axis sequence is CA', then axis A' is positioned in plane Z-X. The angle φ...
  • Page 57 F2: Multi-axis transformations 1.5 Universal milling head Table 1-1 MD $MC_TRAFO_TYPE_n Decimal Description Direction of orientation of tool in position zero 00: X direction 01: Y direction 10: Z direction Axis sequence 000: AB' 001: AC' 010: BA' 011: BC' 100: CA' 101: CB' Among the full range of options specified in the general concept above, the settings...
  • Page 58: Traverse Of Universal Milling Head In Jog Mode

    F2: Multi-axis transformations 1.5 Universal milling head Example of transformation type $MC_TRAFO_TYPE = 148 for example, means: The first rotary axis is parallel to the Z axis, the second rotary axis is an inclined X axis and tool orientation in zero position points in the Z direction.
  • Page 59: Activation And Application Of 3-axis To 5-axis Transformation

    F2: Multi-axis transformations 1.6 Activation and application of 3-axis to 5-axis transformation Activation and application of 3-axis to 5-axis transformation Switch on 3-axis to 5-axis transformations (including the transformations for swiveled linear axis and universal milling head) are activated with the TRAORI(n) command, where n represents the number of the transformation (n = 1 or 2).
  • Page 60 F2: Multi-axis transformations 1.6 Activation and application of 3-axis to 5-axis transformation Option The "5-axis transformation" function and its special types described in this Function Manual are only available as an option. f this option is not implemented in the control system and a transformation is called with the TRAORI command, error message 14780 "Block uses a function that has not been enabled"...
  • Page 61: Generic 5-axis Transformation And Variants

    F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Generic 5-axis transformation and variants 1.7.1 Functionality Scope of functions The scope of functions of generic 5-axis transformation covers implemented 5-axis transformations (see Chapter "5-axis Transformation") for perpendicular rotary axes as well as transformations for the universal milling head (one rotary axis parallel to a linear axis, the second rotary axis at any angle to it, see Chapter "Universal Milling Head").
  • Page 62: Description Of Machine Kinematics

    F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants 1.7.2 Description of machine kinematics Machine types Like the existing 5-axis transformations, there are three different variants of generic 5-axis transformation: 1. Machine type: Rotatable tool Both rotary axes change the orientation of the tool. The orientation of the workpiece is fixed.
  • Page 63: Generic Orientation Transformation Variants

    F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants 2. B-axis is the rotary axis (parallel to the y direction): MD24572 $MC_TRAFO5_AXIS2_1[0] = 0.0 (direction 2nd rotary axis) MD24572 $MC_TRAFO5_AXIS2_1[1] = 1.0 MD24572 $MC_TRAFO5_AXIS2_1[2] = 0,0 1.7.3 Generic orientation transformation variants Expansion Generic orientation transformation for 5-axis transformation has been extended with the following variants for 3-and 4-axis transformation:...
  • Page 64 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Effects on orientations Generic 3-axis or 4-axis transformation has the following effect on the various orientations: The resulting tool orientation is defined according to the hierarchy specified for generic 5-axis transformation. Priority: •...
  • Page 65: Parameterization Of Orientable Tool Holder Data

    F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants 1.7.4 Parameterization of orientable tool holder data Application Machine types for which the table or tool can be rotated, can either be operated as true 5-axis machines or as conventional machines with orientable tool holders. In both cases, machine kinematics is determined by the same data, which, due to different parameters, previously had to be entered twice - for tool holder via system varaibles and for transformations via machine data.
  • Page 66 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Note The transformation only takes place if the orientable toolholder concerned is available and the value of $TC_CARR23 contains a valid entry for type M, P or T kinematics in lower or upper case.
  • Page 67 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Assignment for all types of transformation together identical MD24520 $MC_TRAFO5_ROT_SIGN_IS_PLUS_1[0] (sign of TRUE* rotary axis 1/2/3 for 5-axis transformation 1) MD24520 $MC_TRAFO5_ROT_SIGN_IS_PLUS_1[1] TRUE* *) Machine data MD24520/MD24620 $MC_TRAFO5_ROT_SIGN_IS_PLUS_1/2 are redundant. They are used to invert the direction of rotation of the assigned rotary axis. However, this can also be achieved by inverting the direction of axis vector $MC_TRAFO5_AXIS1/2_1/2.
  • Page 68 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Transformation type "P" (in accordance with MD24100 $MC_TRAFO_TYPE_1 = 40) MD24500 $MC_TRAFO5_PART_OFFSET_1[0] $TC_CARR18 (+$TC_TCARR58) MD24500 $MC_TRAFO5_PART_OFFSET_1[1] $TC_CARR19 (+$TC_TCARR59) MD24500 $MC_TRAFO5_PART_OFFSET_1[2] $TC_CARR20 (+$TC_TCARR60) Assignments for transformation type 56 Toolholder data assignments dependent on transformation type 56 Transformation type "M"...
  • Page 69: Extension Of The Generic Transformation To 6 Axes

    F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants 1.7.5 Extension of the generic transformation to 6 axes Application With the maximum 3 linear axes and 2 rotary axes, the motion and direction of the tool in space can be completely described with the generic 5-axis transformation. Rotations of the tool around itself, as is important for a tool that is not rotation-symmetric or robots, require an additional rotary axis.
  • Page 70 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Configuration For configuration of a 6-axis transformation the extensions of the following machine data are required: • The channel axis index of the 3rd rotary axis must be entered in the following machine data: MD24110 $MC_TRAFO_AXES_IN_1[5] (axis assignment for transformation) •...
  • Page 71 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Programming of orientation With the extension of the generic orientation transformation to 6 axes, all three degrees of freedom of the orientation can be freely selected. They can be uniquely defined through the position of a rectangular Cartesian coordinate system.
  • Page 72: Extension Of The Generic Transformation To 7 Axes

    F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Note The orientation vector of a tool can also be defined via system the variables $TC_DPV or $TC_DPV3 - $TC_DPV5 in tool data - see /FB1/ Function Manual Basic Machine, Tool Corrections (W1), "Sum and Set-up Corrections".
  • Page 73 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Function Another 7th axis is required in connection with the generic 6-axis transformation which rotates the workpiece. This 7th axis is considered only along with Transformer Type 24 (generic 6- axis transformation having 3 rotary axes that move the tool ). The position of the 7th axis is specified according to a strategy of the CAD system and settled with the Cartesian position (X, Y, Z) by the generic transformation in such a way that the axes always approach the TCP position programmed with reference to the workpiece,...
  • Page 74 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Description of the kinematics The 7-axis transformation builds on the generic 5-/6-axis transformation. Note The 7-axis transformation also covers kinematics in which the 6th axis is not available. In the following pages, we speak exclusively about a 7th axis or about a 7-axis transformation, even when it is actually the 6th axis in connection with a 5-axis kinematics.
  • Page 75 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Position vector in MCS $MC_TRAFO5_PART_OFFSET_n[0..2] Vector of programmed position in the WCS Tool correction vector $MC_TRAFO5_BASE_TOOL_n[0..2] $MC_TRAFO5_JOINT_OFFSET_n[0..2] jo23: $MC_TRAFO6_JOINT_OFFSET_2_3_n[0..2] Figure 1-19 Schematic diagram of 7-axis kinematics Programming 1. Programming the Cartesian position The position of the 7th axis must be programmed in the workpiece coordination system in addition to the Cartesian position.
  • Page 76 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Orientation 1. Orientation with axis interpolation If the 7th axis should have no influence on the programmed orientation, the G codes of Groups 25 and 51 must be set accordingly: G code group 25: ORIMKS G code group 51: ORIAXES (if MD 21104 $MC_ORI_IPO_WITH_G_CODE = 1 is set).
  • Page 77: Cartesian Manual Travel With Generic Transformation

    F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Frames The basic coordinate system sits on the 7th axis. It is also rotated when the 7th axis rotates. This way the workpiece coordinate system (WCS) does not remain stationary when the workpiece is rotated over the 7th axis.
  • Page 78 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Activation The following machine data not only activates the function, but also sets the permitted coordinate systems. MD21106 $MC_CART_JOG_SYSTEM (coordinate systems for Cartesian JOG) The following setting data sets the virtual kinematics used for traversing motion of the orientation: SD42660 $SC_ORI_JOG_MODE (definition of virtual kinematics for JOG) As opposed to the generic 5-/6-axis transformation, only kinematics can be set in which the...
  • Page 79 F2: Multi-axis transformations 1.7 Generic 5-axis transformation and variants Rotations with JOG With JOG, the rotations around the specified directions of the respective reference system can be performed with Euler angle or RPY angle. SD42660 $SC_ORI_JOG_MODE = 1: When jogging, Euler angles are traversed, i.e.: the first axis rotates around the z direction, the second axis rotates around the x direction, the third axis (if present) rotates around the new z direction.
  • Page 80: Restrictions For Kinematics And Interpolation

    F2: Multi-axis transformations 1.8 Restrictions for kinematics and interpolation Restrictions for kinematics and interpolation For systems where there are less than six axes available for transformation, the following restrictions must be taken into account. 5-axis kinematics For 5-axis kinematics there are two degrees of freedom for orientation. The assignment of orientation axes and tool vector direction must be selected so that there is no rotation around the tool vector.
  • Page 81 F2: Multi-axis transformations 1.8 Restrictions for kinematics and interpolation Such a situation would be treated as follows: There is only one relevant machine data, which circles the pole as usual: MD24540 $MC_TRAFO5_POLE_LIMIT_1 (closing angle tolerance for interpolation by pole for 5-xis transformation) MD24640 $MC_TRAFO5_POLE_LIMIT_2 (closing angle tolerance for interpolation by pole for 5-xis transformation) For further information about the handling of singular positions, see:...
  • Page 82 F2: Multi-axis transformations 1.8 Restrictions for kinematics and interpolation End point within the circle If the end point is within the circle, the first axis comes to a standstill and the second axis moves until the difference between target and actual orientation is minimal. However, since the first rotary axis does not move, the orientation will generally deviate from the programmed value (see previous Figure).
  • Page 83: Orientation

    F2: Multi-axis transformations 1.9 Orientation Orientation 1.9.1 Basic orientation Differences to the previous 5-axis transformations In the 5-axis transformations implemented to date, basic orientation of the tool was defined by the type of transformation. Generic 5-axis transformation can be used to enable any basic tool orientation, i.e. space orientation of the tool is arbitrary, with axes in their initial positions.
  • Page 84 F2: Multi-axis transformations 1.9 Orientation If a basic orientation is defined by the above method, it cannot be altered while a transformation is active. The orientation can be changed only by selecting the transformation again. Via the orientation of the active tool For 2.: The basic orientation is determined by the tool •...
  • Page 85: Orientation Movements With Axis Limits

    F2: Multi-axis transformations 1.9 Orientation Note The range of settable orientations depends on the directions of the rotary axes involved and the basic orientation. The rotary axes must be mutually perpendicular if all possible orientations are to be used. If this condition is not met, "dead" ranges will occur. Examples: 1.
  • Page 86: Orientation Compression

    F2: Multi-axis transformations 1.9 Orientation The following conditions must be met in order to monitor the axis limits of a rotary axis and modify the calculated end positions: • A generic 5-axis transformation of type 24, 40 or 56 must be active. •...
  • Page 87 F2: Multi-axis transformations 1.9 Orientation Conditions The orientation movement is compressed in the following cases: • Active orientation transformation (TRAORI) • Active large radius circular interpolation (i.e. tool orientation is changed in the plane which is determined by start and end orientation). Large circle interpolation is performed under the following conditions: MD21104 $MC_ORI_IPO_WITH_G_CODE = 0, ORIWKS is active and...
  • Page 88 F2: Multi-axis transformations 1.9 Orientation Compression mode The manner in which the tolerances are to be considered is set via the unit position in the machine data: MD20482 $MC_COMPRESSOR_MODE (mode of compression) Value Meaning The tolerances specified with MD33100 $MA_COMPRESS_POS_TOL are observed for all the axes (geo and orientation axes).
  • Page 89 F2: Multi-axis transformations 1.9 Orientation The hundreds position of MD20482 is used to select which blocks outside the linear blocks (G1) should be compressed. Value Meaning Circular blocks and G0 blocks are not compressed. This is compatible with earlier SW versions.
  • Page 90: Smoothing Of Orientation Characteristic

    F2: Multi-axis transformations 1.9 Orientation General structure of an NC block that be compressed The general structure of an NC block that can be compressed can therefore look like this: N... X=<...> Y=<...> Z=<...> A3=<...> B3=<...> C3=<...> THETA=<...> F=<...> N... X=<...> Y=<...> Z=<...> A2=<...> B2=<...> C2=<...> THETA=<...> F=<...> Programming tool orientation using rotary axis positions Tool orientation can be also specified using rotary axis positions, e.g.
  • Page 91 F2: Multi-axis transformations 1.9 Orientation Function The "Smoothing the orientation characteristic (ORISON)" function can be used to smooth oscillations affecting orientation over several blocks. The aim is to achieve a smooth characteristic for both the orientation and the contour. Prerequisites The "Smoothing the orientation characteristic (ORISON)"...
  • Page 92: Orientation Relative To The Path

    F2: Multi-axis transformations 1.9 Orientation Example Program code Comments TRAORI() ; Activation of orientation transformation. ORISON ; Activation of orientation smoothing. $SC_ORISON_TOL=1.0 ; Orientation tolerance smoothing = 1.0 degrees. X10 A3=1 B3=0 C3=1 X10 A3=–1 B3=0 C3=1 X10 A3=1 B3=0 C3=1 X10 A3=–1 B3=0 C3=1 X10 A3=1 B3=0 C3=1 X10 A3=–1 B3=0 C3=1...
  • Page 93 F2: Multi-axis transformations 1.9 Orientation orientation jump should be smoothed in a dedicated, inserted intermediate block. In this case, path motion is stopped in the contour corner. • There are two options of 6-axis transformations: Like tool rotation, tool orientation is interpolated relative to the path using ORIPATH, ORIPATHS.
  • Page 94 F2: Multi-axis transformations 1.9 Orientation 1. The end orientation of the previous block refers to the tangent and the normal vector at the end of the previous block. Both can differ from this at the start of the current block. Therefore, the start orientation in the current block does not have the same alignment with respect to the tangent and the normal vector as at the end of the previous block.
  • Page 95 F2: Multi-axis transformations 1.9 Orientation Smoothing of the orientation jump ORIPATHS Smoothing of the oreintation jump is done within the setting data SD42670 $SC_ORIPATH_SMOOTH_DIST (path distance to smoothing orientation) of the specified path. The programmed reference of the orientation to the path tangent and normal vector is then no longer maintained within this distance.
  • Page 96: Programming Of Orientation Polynominals

    F2: Multi-axis transformations 1.9 Orientation Path relative interpolation of the rotation ORIROTC With 6-axis transformations, in addition to the complete interpolation of the tool orientation relative to the path and the rotation of the tool, there is also the option that only the rotation of the tool relative to the path tangent is interpolated.
  • Page 97 F2: Multi-axis transformations 1.9 Orientation Type 2 polynomials Orientation polynomials of type 2 are polynomials for coordinates PO[XH]: x coordinate of the reference point on the tool PO[YH]: y coordinate of the reference point on the tool PO[ZH]: z coordinate of the reference point on the tool Polynomials for angle of rotation and rotation vectors For 6-axis transformations, the rotation of the tool around itself can be programmed for tool orientation.
  • Page 98 F2: Multi-axis transformations 1.9 Orientation Rotations of rotation vectors with ORIROTC The rotation vector is interpolated relative to the path tangent with an offset that can be programmed using the THETA angle. A polynomial up to the 5th degree can also be programmed with PO[THT]=(c2, c3, c4, c5) for the offset angle.
  • Page 99: Tool Orientation With 3-/4-/5-axis Transformations

    F2: Multi-axis transformations 1.9 Orientation Interrupts If an illegal polynomial is programmed, the following alarms are generated: Alarm 14136: Oreintation polynomial is generally not allowed. Alarm 14137: Polynomials PO[PHI] and PO[PSI] are not permitted. Alarm 14138: Polynomials PO[XH], PO[YH], PO[ZH] are not permitted. Alarm 14139: Polynomial for angle of rotation PO[THT] is not permitted.
  • Page 100 F2: Multi-axis transformations 1.9 Orientation The reading of the direction of rotation vector with the following system variables is only meaningful for a 6-axis transformation. $P_TOOLROT[n] Rotation direction vector active in the interpreter not applicable in synchronous actions $AC_TOOLR_ACT[n] Active rotation direction vector in the interpolator $AC_TOOLR_END[n] End orientation of the active block $AC_TOOLR_DIFF...
  • Page 101: Orientation Axes

    F2: Multi-axis transformations 1.10 Orientation axes 1.10 Orientation axes Direction The directions around which axes are rotated are defined by the axes of the reference system. In turn, the reference system is defined by ORIMKS and ORIWKS commands: • ORIMKS: Reference system = Basic coordinate system •...
  • Page 102: Jog Mode

    F2: Multi-axis transformations 1.10 Orientation axes Orientation transformation 1: MD24585 $MC_TRAFO5_ORIAX_ASSIGN_TAB_1[n] n = channel axis [0..2] Orientation transformation 2: MD24685 $MC_TRAFO5_ORIAX_ASSIGN_TAB_2[n] n = channel axis [0..2] transformation [1..4] MD24110 $MC_TRAFO5_AXES_IN_1[n] (axis n = channel axis [0..7] assignment for transformation) MD24410 $MC_TRAFO5_AXES_IN_4[n] (axis assignment for transformation 4) transformation [5..8] MD24432 $MC_TRAFO5_AXES_IN_5[n] (axis...
  • Page 103: Programming For Orientation Transformation

    F2: Multi-axis transformations 1.10 Orientation axes Feedrate in JOG When orientation axes are traversed manually, the channel-specific feedrate override switch or the rapid traverse override switch in rapid traverse override is applied. Until now, velocities for traversal in JOG mode have always been derived from the machine axis velocities.
  • Page 104 F2: Multi-axis transformations 1.10 Orientation axes • ORIVIRT2: Orientation programming on the basis of virtual orientation axes (definition 2) The type of interpolation is distinguished on the basis of G-group 51: • ORIAXES: Orientation programming of linear interpolation of orientation axes or machine axes •...
  • Page 105 F2: Multi-axis transformations 1.10 Orientation axes Interpolation type The following machine data is used to specify which interpolation type is used: MD21104 $MC_ORI_IPO_WITH_G_CODE (G-code for orientation interpolation): • ORIMKS or ORIWKS (for description, see Chapter "Workpioece Orientation") • G-code group 51 with the commands ORIAXES or ORIVECT ORIAXES: Linear interpolation of machine axes or orientation axes.
  • Page 106: Programmable Offset For Orientation Axes

    F2: Multi-axis transformations 1.10 Orientation axes 1.10.3 Programmable offset for orientation axes How the programmable offset works The additional programmable offset for orientation axes acts in addition to the existing offset and is specified when transformation is activated. Once transformation has been activated, it is no longer possible to change this additive offset and no zero offset will be applied to the orientation axes in the event of an orientation transformation.
  • Page 107: Orientation Transformation And Orientable Tool Holders

    F2: Multi-axis transformations 1.10 Orientation axes Orientable tool holder with additive offset On an orientable tool holder, the offset for both rotary axes can be programmed with the system variables $TC_CARR24 and $TC_CARR25. This rotary axis offset can be transferred automatically from the zero offset effective at the time the orientable tool holder was activated.
  • Page 108 F2: Multi-axis transformations 1.10 Orientation axes • MD21134 $MC_ORI_MODULO_RANGE[0...2] (Size of the modulo range for the display of the orientation axes) • MD21136 $MC_ORI_MODULO_RANGE_START[0...2] (Starting position of the modulo range for the display of the orientation axes) Please note the following: •...
  • Page 109: Orientation Vectors

    F2: Multi-axis transformations 1.11 Orientation vectors 1.11 Orientation vectors 1.11.1 Polynomial interpolation of orientation vectors Programming of polynomials for axis motions The rotary axes are normally subjected to linear interpolation in case of orientation changes with the help of rotary axis interpolation. However, it is also possible to program the polynomials as usual for the rotary axes.
  • Page 110 F2: Multi-axis transformations 1.11 Orientation vectors POLYPATH: In addition to the modal G function POLY, the predefined subprogram POLYPATH(argument) can be used to activate polynomial interpolation selectively for different axis groups. The following arguments are allowed for the activation of polynomial interpolation ("AXES"): For all path axes and supplementary axes ("VECT"):...
  • Page 111 F2: Multi-axis transformations 1.11 Orientation vectors The two PHI and PSI angles are specified in degrees. POLY Activation of polynomial interpolation for all axis groups. POLYPATH ( ) Activation of polynomial interpolation for all axis groups. "AXES" and "VECT" are possible groups. The coefficients a and b are specified in degrees.
  • Page 112 F2: Multi-axis transformations 1.11 Orientation vectors PHI and PSI angle Programming of polynomials for the two angles PO[PHI] and PO[PSI] is always possible. Whether the programmed polynomials are actually interpolated for PHI and PSI depends on: • POLYPATH("VECT") and ORIVECT are active, then the polynomials will be interpolated. •...
  • Page 113: Rotations Of Orientation Vector

    F2: Multi-axis transformations 1.11 Orientation vectors Constraints Polynomial interpolation of orientation vectors is only possible for control variants in which the following functions are included in the functional scope: • Orientation transformation • Polynomial interpolation 1.11.2 Rotations of orientation vector Functionality Changes in tool orientation are programmed by specifying an orientation vector in each block, which is to be reached at the end of the block.
  • Page 114 F2: Multi-axis transformations 1.11 Orientation vectors Programming of orientation direction and rotation While the direction of rotation is already defined when you program the orientation with RPY angles, additional parameters are needed to specify the direction of rotation for the other orientations: 1.
  • Page 115 F2: Multi-axis transformations 1.11 Orientation vectors The start angle is derived from the start value of the rotation vector, resulting from the end value of the previous block. The constant coefficient of the polynomial is defined by the starting angle of the polynomial. The rotation vector is always perpendicular to the current tool orientation and forms the angle THETAin conjunction with the basic rotation vector.
  • Page 116 F2: Multi-axis transformations 1.11 Orientation vectors Activation of rotation A rotation of the orientation vector is programmed with the identifier THETA. The following options are available for programming: Programming of an angle of rotation at the end of the block. THETA=<value>...
  • Page 117: Extended Interpolation Of Orientation Axes

    F2: Multi-axis transformations 1.11 Orientation vectors A programmable rotation of the orientation vector is only possible when an orientation transformation (TRAORI) is active. A programmed orientation rotation is only interpolated if the machine kinematics allow rotation of the tool orientation (e.g. 6-axis machines). 1.11.3 Extended interpolation of orientation axes Functionality...
  • Page 118 F2: Multi-axis transformations 1.11 Orientation vectors • The opening angle of the cone is programmed degrees with the identifier (nutation angle). The value range of this angle is limited to the interval between 0 degrees and 180 degrees. The values 0 degrees and 180 degrees must not be programmed. If an angle is programmed outside the valid interval, an alarm is generated.
  • Page 119 F2: Multi-axis transformations 1.11 Orientation vectors Settings for intermediate orientation orientation interpolation on a cone with intermediate ORICONIO orientation: Interpolation on a conical peripheral surface with intermediate orientation setting If this G-code is active, it is necessary to specify an intermediate orientation with A7, B7, C7 which is specified as a (normalized) vector.
  • Page 120 F2: Multi-axis transformations 1.11 Orientation vectors Besides the two end values, additional polynomials can be programmed in the following form: PO[XH] = (xe, x2, x3, x4, x5): (xe, ye, ze) the end point of the curve, and PO[YH] = (ye, y2, y3, y4, y5): xi, yi, zi the coefficients of the polynomials PO[ZH] = (ze, z2, z3, z4, z5): of the 5th degree maximum.
  • Page 121 F2: Multi-axis transformations 1.11 Orientation vectors Examples Various changes in orientation are programmed in the following program example: N10 G1 X0 Y0 F5000 N20 TRAORI ; orientation transformation active. N30 ORIVECT ; interpolate WZ orientation as a vector N40 ORIPLANE ;...
  • Page 122: Online Tool Length Offset

    F2: Multi-axis transformations 1.12 Online tool length offset 1.12 Online tool length offset Functionality Effective tool length can be changed in real time so that the length changes are also considered for changes in orientation of the tool. System variable $AA_TOFF[ ] applies tool length compensations in 3-D according to the three tool directions.
  • Page 123 F2: Multi-axis transformations 1.12 Online tool length offset MD21190 $MC_TOFF_MODE (operation of tool offset) The following machine data can be used to set whether the content of the synchronization variable $AA_TOFF[ ] is to be approached as an absolute value or whether an integrating behavior is to take place.
  • Page 124 F2: Multi-axis transformations 1.12 Online tool length offset Reset Compensation values can be reset with the TOFFOF( ) command. This instruction triggers a preprocessing stop. Accumulated tool length compensations are cleared and incorporated in the basic coordinate system. The run-in is synchronized with the current position in main run. Since no axes can be traversed here, the values of $AA_IM[ ] do not change.
  • Page 125 F2: Multi-axis transformations 1.12 Online tool length offset System variables In the case of online tool length offset, the following system variables are available to the user: System variables Meaning for online tool length offset $AA_TOFF[ ] Position offset in the tool coordinate system $AA_TOFF_VAL[ ] Integrated position offset in the WCS $AA_TOFF_LIMIT[ ]...
  • Page 126: Examples

    F2: Multi-axis transformations 1.13 Examples 1.13 Examples 1.13.1 Example of a 5-axis transformation CHANDATA(1) $MA_IS_ROT_AX[AX5] = TRUE $MA_SPIND_ASSIGN_TO_MACHAX[AX5] = 0 $MA_ROT_IS_MODULO[AX5]=0 ;----------------------------------------------------------------------------------------------------- ; general 5-axis transformation ; kinematics: 1. rotary axis is parallel to Z 2. rotary axis is parallel to X Movable tool ;----------------------------------------------------------------------------------------------------- $MC_TRAFO_TYPE_1 = 20...
  • Page 127 F2: Multi-axis transformations 1.13 Examples $MC_TRAFO5_ROT_SIGN_IS_PLUS_1[1] = TRUE $MC_TRAFO5_NON_POLE_LIMIT_1 = 2.0 $MC_TRAFO5_POLE_LIMIT_1 = 2.0 $MC_TRAFO5_BASE_TOOL_1[0] = 0.0 $MC_TRAFO5_BASE_TOOL_1[1] = 0.0 $MC_TRAFO5_BASE_TOOL_1[2] = 5,0 $MC_TRAFO5_JOINT_OFFSET_1[0] = 0.0 $MC_TRAFO5_JOINT_OFFSET_1[1] = 0.0 $MC_TRAFO5_JOINT_OFFSET_1[2] = 0.0 CHANDATA(1) Program example for general 5-axis transformation: ; Definition of tool T1 $TC_DP1[1,1] = 10 ;...
  • Page 128: Example Of A 3-axis And 4-axis Transformation

    F2: Multi-axis transformations 1.13 Examples N160 a3 = 1 b3 = 0 c3 = 0 N170 a3 = 1 b3 = 0 c3 = 1 N180 a3 = 0 b3 = 1 c3 = 0 N190 a3 = 0 b3 = 0 c3 = 1 Euler angles program: N200 ORIMKS N210 G1 G90...
  • Page 129: Example Of A 4-axis Transformation

    F2: Multi-axis transformations 1.13 Examples 1.13.2.2 Example of a 4-axis transformation Example: For the machine schematically presented in Figure "Schematic 4-axis Transformation with movable Workpiece" (see Chapter "3- and 4-axis Transformation", Short Description), the 4-axis transformation can be projected in the following way: $MC_TRAFO_TYPE_n = 18 $MC_TRAFO_GEOAX_ASSIGN_TAB_n[0] = 1 $MC_TRAFO_GEOAX_ASSIGN_TAB_n[1] = 2...
  • Page 130: Example For Orientation Axes

    F2: Multi-axis transformations 1.13 Examples Program ; Definition of tool T1 $TC_DP1[1,1] = 120; Type $TC_DP2[1,1] = 0; $TC_DP3[1,1] = 20; Z length offset vector G17 $TC_DP4[1,1] = 8.; $TC_DP5[1,1] = 5.; TRAORI(1); Activation of transformation ORIMKS; Orientation reference to MCS G0 X1 Y0 Z0 A0 B0 F20000 G90 G64 T1 D1 G17 ;...
  • Page 131 F2: Multi-axis transformations 1.13 Examples $MC_TRAFO5_ORIAX_ASSIGN_TAB_1[1]=5 ; Channel index of second orientation axis $MC_TRAFO5_ORIAX_ASSIGN_TAB_1[2]=6 ; Channel index of third orientation axis $MC_ORIAX_TURN_TAB_1[0]=3 ; Z direction $MC_ORIAX_TURN_TAB_1[1]=2 ; Y direction $MC_ORIAX_TURN_TAB_1[2]=3 ; Z direction CHANDATA(1) Figure 1-24 3 orientation axes for the 1st orientation transformation for kinematics with 6 transformed axes Example 2: 3 orientation axes for the 2nd orientation transformation for kinematics with 5 transformed...
  • Page 132: Examples For Orientation Vectors

    F2: Multi-axis transformations 1.13 Examples $MC_ORIAX_TURN_TAB_1[0]=1 ; X direction $MC_ORIAX_TURN_TAB_1[1]=2 ; Y direction $MC_ORIAX_TURN_TAB_1[2]=3 ; Z direction CHANDATA(1) Figure 1-25 3 orientation axes for the 2nd orientation transformation for kinematics with 5 transformed axes The rotation through angle C2 about the Z" axis is omitted in this case, because the tool vector orientation can be determined solely from angles A2 and B2 and no further degree of freedom is available on the machine.
  • Page 133: Example Of Rotations Of Orientation Vector

    F2: Multi-axis transformations 1.13 Examples In N40, the orientation vector is rotated in the Z-X plane which is spanned by the start and end vector. Here, the PHI angle is interpolated in a line in this plane between the values 0 and 90 degrees (large circle interpolation).
  • Page 134: Examples For Generic Axis Transformations

    F2: Multi-axis transformations 1.13 Examples N40 Linear interpolation of angle of rotation from starting value 0 degrees to end value 90 degrees. N50 The angle of rotation changes from 90 degrees to 180 degrees in accordance with the parabola. θ(u) = 90 + u N60 A rotation can also be programmed without a change in orientation taking place.
  • Page 135: Example Of A Generic 6-axis Transformation

    F2: Multi-axis transformations 1.13 Examples $TC_CARR14[1] = 0 ; Angle of rotation of 2nd axis N100 X0 Y0 Z0 B0 C0 F10000 ORIWKS G17 N110 TRAORI() ; Selection of basic transformationorientation ; from machine data N120 C3=1 ; Orientation parallel to Z ;...
  • Page 136: Example Of A Generic 7-axis Transformation

    F2: Multi-axis transformations 1.13 Examples An orthogonalization is therfore not necessary, and therefore the programmed orientation normal vector is not modified. N100 $TC_DP1[2,2] = 120 ; End mill N110 $TC_DP3[2,2]= ; Length offset vector N120 $TC_DPV [2,2] = 0 ; Tool cutting edge orientation N130 $TC_DPV3[2,2] = 1 ;...
  • Page 137: Example For The Modification Of Rotary Axis Motion

    F2: Multi-axis transformations 1.13 Examples Note While traversing the quadrant in the example, only the 7th axis turns by 360 degrees. The machine remains in the fixed position. 1.13.6.3 Example for the modification of rotary axis motion The machine is a 5-axis machine of machine type 1 (two-axis swivel head with CA kinematics) on which both rotary axes rotate the tool (transformation type 24).
  • Page 138 F2: Multi-axis transformations 1.13 Examples Programming Comment TRAORI COMPCURV ; The movement describes a circle generated from polygons. The orientation moves on a taper around the Z axis with an opening angle of 45 degrees. N100 X0 Y0 A3=0 B3=-1 C3=1 N110 FOR COUNTER=0 TO NUMBER N120 ANGLE=360*COUNTER/NUMBER N130 X=RADIUS*cos(angle) Y=RADIUS*sin(angle)
  • Page 139: Data Lists

    F2: Multi-axis transformations 1.14 Data lists 1.14 Data lists 1.14.1 Machine data 1.14.1.1 General machine data Number Identifier: $MN_ Description 10620 EULER_ANGLE_NAME_TAB Name of Euler angles or names of orientation axes 10630 NORMAL_VECTOR_NAME_TAB Name of normal vectors 10640 DIR_VECTOR_NAME_TAB Name of direction vectors 10642 ROT_VECTOR_NAME_TAB Name of rotation vectors...
  • Page 140 F2: Multi-axis transformations 1.14 Data lists Number Identifier: $MC_ Description 21136 ORI_DISP_MODULO_RANGE_START Starting position of the module range for the display of the orientation axes 21150 JOG_VELO_RAPID_ORI[n] Rapid traverse in jog mode for orientation axes in the channel [n = 0..2] 21155 JOG_VELO_ORI[n] Orientation axis velocity in jog mode [n = 0..2]...
  • Page 141 F2: Multi-axis transformations 1.14 Data lists Number Identifier: $MC_ Description 24464 TRAFO_GEOAX_ASSIGN_TAB_8[n] Assignment geometry axis to channel axis for transformation 8 [geometry no.] 24470 TRAFO_TYPE_9 Definition of transformation 9 in channel 24472 TRAFO_AXES_IN_9[n] Axis assignment for transformation 9 [axis index] 24474 TRAFO_GEOAX_ASSIGN_TAB_9[n] Assignment geometry axis to channel axis for...
  • Page 142 F2: Multi-axis transformations 1.14 Data lists Number Identifier: $MC_ Description 24600 TRAFO5_PART_OFFSET_2[n] Offset vector for 5-axis transformation 2 [n = 0.. 2] 24610 TRAFO5_ROT_AX_OFFSET_2[n] Position offset of rotary axis 1/2 for 5-axis transformation 2 [axis no.] 24620 TRAFO5_ROT_SIGN_IS_PLUS_2[n] Sign of rotary axis 1/2 for 5-axis transformation 2 [axis no.] 24630 TRAFO5_NON_POLE_LIMIT_2...
  • Page 143: Setting Data

    F2: Multi-axis transformations 1.14 Data lists 1.14.2 Setting data 1.14.2.1 General setting data Number Identifier: $SN_ Description 41110 JOG_SET_VELO Geometry axes 41130 JOG_ROT_AX_SET_VELO Orientation axes 1.14.2.2 Channel­specific setting data Number Identifier: $SC_ Description 42475 COMPRESS_CONTOUR_TOL Max. contour deviation for compressor 42476 COMPRESS_ORI_TOL Max.
  • Page 144 F2: Multi-axis transformations 1.14 Data lists Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 145: G1: Gantry Axes

    G1: Gantry axes Brief description Gantry axes are machine axes that are mechanically and rigidly connected with one another, e.g. axes to move the gantry of gantry milling machines. Because of this mechanical coupling, gantry axes must always be traversed together as gantry grouping. The axis via which this gantry grouping is explicitly traversed or programmed is called the leading axis.
  • Page 146: Gantry Axes" Function

    G1: Gantry axes 2.2 "Gantry axes" function "Gantry axes" function Application For gantry milling machines, often various elements - e.g. the gantry or the transverse beams - are moved by several axes operating in parallel that are independent of one another. Each axis comprises a machine axis parameterized in the NC, drive, motor and measuring system.
  • Page 147 G1: Gantry axes 2.2 "Gantry axes" function Synchronous axis The axes of the gantry grouping, which are traversed by the NC in synchronism with the leading axis, are known as synchronous axes. From the point of view of the programmer and/ or operator, the synchronous axes "do not exist".
  • Page 148 G1: Gantry axes 2.2 "Gantry axes" function Monitoring the synchronism difference 2 limit values can be specified for the synchronism difference. Gantry warning limit The gantry warning limit is set using the following machine data: MD37110 $MA_GANTRY_POS_TOL_WARNING (gantry warning limit) The "Alarm limit exceeded"...
  • Page 149 G1: Gantry axes 2.2 "Gantry axes" function Extended monitoring of the synchronism difference An extended monitoring of the synchronism difference can be activated using the following machine data: MD37150 $MA_GANTRY_FUNCTION_MASK, Bit 0 = 1 For the extended monitoring, a synchronism difference between the leading and synchronous axis, obtained when tracking or when the gantry grouping is opened, is taken into account.
  • Page 150 G1: Gantry axes 2.2 "Gantry axes" function Disturbance characteristic If faults occur, which cause an axis of the gantry to be stopped, then the complete gantry grouping is always stopped. Opening the gantry grouping The axis coupling within a gantry grouping can be opened (dissolved) using the following machine data: MD37140 $MA_GANTRY_BREAK_UP = 1 (invalidate gantry grouping) When the setting becomes active, the axes of the gantry grouping can be individually...
  • Page 151: Referencing And Synchronization Of Gantry Axes

    G1: Gantry axes 2.3 Referencing and synchronization of gantry axes Referencing and synchronization of gantry axes 2.3.1 Introduction Misalignment after starting Immediately after the machine is switched on, the leading and synchronous axes may not be ideally positioned in relation to one another (e.g. misalignment of a gantry). Generally speaking, this misalignment is relatively small so that the gantry axes can still be referenced.
  • Page 152 G1: Gantry axes 2.3 Referencing and synchronization of gantry axes The appropriate synchronous axes traverse in synchronism with the leading axis. Interface signal "Referenced/synchronized" of the leading axis is output to indicate that the reference point has been reached. Section 2: Referencing of the synchronous axes As soon as the leading axis has approached its reference point, the synchronous axis is automatically referenced (as for reference point approach).
  • Page 153 G1: Gantry axes 2.3 Referencing and synchronization of gantry axes The next step in the operating sequence depends on the difference calculated between the actual values of the leading and synchronous axes: • difference is smaller than the gantry warning limit: MD37110 $MA_GANTRY_POS_TOL_WARNING (gantry warning limit) The gantry synchronization process is started automatically.
  • Page 154 G1: Gantry axes 2.3 Referencing and synchronization of gantry axes The following flowchart illustrates the referencing and synchronization processes. Figure 2-2 Flowchart for referencing and synchronization of gantry axes Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 155 G1: Gantry axes 2.3 Referencing and synchronization of gantry axes Synchronization process A synchronization process is always required in the following cases: • after the reference point approach of all axes included in a grouping, • if the axes become de-synchronized (s below). Operational sequence failure If the referencing process described above is interrupted as a result of disturbances or a RESET, proceed as follows:...
  • Page 156 G1: Gantry axes 2.3 Referencing and synchronization of gantry axes Instead, the actual position of the leading axis is specified as the target position and is approached in the uncoupled state. Note For the leading axis, automatic synchronization can be locked using the following NC/PLC interface signal: DB31, ...
  • Page 157: Automatic Synchronization

    G1: Gantry axes 2.3 Referencing and synchronization of gantry axes Selecting the reference point To ensure that the shortest possible paths are traversed when the gantry axes are referenced, the reference point values from leading and synchronous axes should be the same in the machine data: MD34100 $MA_REFP_SET_POS (reference point value/destination point for distance­coded system)
  • Page 158: Points To Note

    G1: Gantry axes 2.3 Referencing and synchronization of gantry axes If the gantry grouping is switched from follow-up mode to position control mode, axis synchronism is automatically restored provided the actual-value monitor does not detect a difference between the positions of the leading and synchronized axes greater than the setting in the machine data: MD36030 $MA_STANDSTILL_POS_TOL (standstill tolerance) In this case, a new setpoint is specified for the synchronized axis (axes) without interpolation.
  • Page 159 G1: Gantry axes 2.3 Referencing and synchronization of gantry axes The maximum tolerance for position actual value switchover should be set to a lower value than the gantry warning limit: MD36500 $MA_ENC_CHANGE_TOL (Max. tolerance for position actual value switchover) The two position measuring systems must, however, have been referenced beforehand. The relevant measuring system must be selected before referencing is initiated.
  • Page 160 G1: Gantry axes 2.3 Referencing and synchronization of gantry axes Activation of axis compensations Compensation functions can be activated for both the leading axis and the synchronized axes. Compensation values are applied separately for each individual gantry axis. These values must therefore be defined and entered for the leading axis and the synchronized axes during start-up.
  • Page 161: Start-up Of Gantry Axes

    G1: Gantry axes 2.4 Start-up of gantry axes Start-up of gantry axes General information Owing to the forced coupling which is normally present between leading and synchronized gantry axes, the gantry axis grouping must be started up as if it were an axis unit. For this reason, the axial machine data for the leading and synchronized axes must always be defined and entered jointly.
  • Page 162 G1: Gantry axes 2.4 Start-up of gantry axes Table 2-1 Examples for defining the gantry axis grouping MD37100 $MA_GANTRY_AXIS_TYPE Gantry axis Gantry grouping Leading axis Synchronous axis Leading axis Synchronous axis Entering gantry trip limits For the monitoring of the actual position values of the synchronized axis in relation to the actual position of the leading axis, the limit values for termination, as well as for the leading and synchronized axes, should be entered corresponding to the specifications of the machine manufacturer:...
  • Page 163 G1: Gantry axes 2.4 Start-up of gantry axes References: Function Manual Extended Functions; Compensations (K3) The following control parameters must be set to the same value for the leading axis and synchronized axis: • MD33000 $MA_FIPO_TYPE (fine interpolator type) • MD32400 $MA_AX_JERK_ENABLE (axial jerk limitation) •...
  • Page 164 G1: Gantry axes 2.4 Start-up of gantry axes Check of dynamic response adaptation: The following errors of the leading and synchronized axes must be equal in magnitude when the axes are operating at the same speed! For the purpose of fine tuning, it may be necessary to adjustservo gain factors or feedforward control parameters slightly to achieve an optimum result.
  • Page 165 G1: Gantry axes 2.4 Start-up of gantry axes Input of gantry warning limit Once the reference point values for the leading and synchronized axes have been optimized so that the gantry axes are perfectly aligned with one another after synchronization, the warning limit values for all axes must be entered in the following machine data: MD37110 $MA_GANTRY_POS_TOL_WARNING (gantry warning limit) To do this, the value must be increased incrementally until the value is just below the alarm...
  • Page 166 G1: Gantry axes 2.4 Start-up of gantry axes • Always use an offset of 0 for the function generator and measuring function in contrast to the recommendations for normal axes. • Set the amplitudes for function generator and measuring function to such low values that the activated axis traverses a shorter distance than the position tolerance allows.
  • Page 167: Plc Interface Signals For Gantry Axes

    G1: Gantry axes 2.5 PLC interface signals for gantry axes PLC interface signals for gantry axes Special IS for gantry axes The special NC/PLC interface signals of the coupled gantry axes are taken via the axial NC/ PLC interface of the leading or synchronized axes. The table below shows all special gantry NC/PLC interface signals along with their codes and indicates whether the IS is evaluated on the leading axis or the synchronized axis.
  • Page 168 G1: Gantry axes 2.5 PLC interface signals for gantry axes Effect on NC/PLC interface signal DB31, ... DBX ... Leading axis Synchronous axis Ramp-function generator fast stop (RFGFS) 20.1 On all axes in gantry grouping Select drive parameter set 21.0 - 21.2 Axial Axial Enable Pulses...
  • Page 169: Miscellaneous Points Regarding Gantry Axes

    G1: Gantry axes 2.6 Miscellaneous points regarding gantry axes Miscellaneous points regarding gantry axes Manual travel It is not possible to traverse a synchronized axis directly by hand in JOG mode. Traverse commands entered via the traversing keys of the synchronized axis are ignored internally in the control.
  • Page 170 G1: Gantry axes 2.6 Miscellaneous points regarding gantry axes Axis replacement All axes in the gantry grouping are released automatically in response to a RELEASE command (leading axis). A replacement of the leading axis of a closed gantry grouping is only possible, if all axes of the grouping are known in the channel in which they are to be transferred, otherwise alarm 10658 is signaled.
  • Page 171 G1: Gantry axes 2.6 Miscellaneous points regarding gantry axes • In the "Gantry Axes" function, the difference of the actual position values from the leading and synchronized axis is monitored continuously and the traversing motion is shut down if there are impermissible deviations. There is no monitoring for the "Coupled motion" function.
  • Page 172: Examples

    G1: Gantry axes 2.7 Examples Examples 2.7.1 Creating a gantry grouping Introduction The gantry grouping, the referencing of its axes, the orientation of possible offsets and, finally, the synchronization of the axes involved are complicated procedures. The individual steps involved in the process are explained below by an example constellation. Constellation Machine axis 1 = gantry leading axis, incremental measuring system Machine axis 3 = gantry synchronized axis, incremental measuring system...
  • Page 173: Setting Of Nck Plc Interface

    G1: Gantry axes 2.7 Examples MD34030 $MA_REFP_MAX_CAM_DIST = corresponds to max. distance traversed MD34040 $MA_REFP_VELO_SEARCH_MARKER = MD34050 $MA_REFP_SEARCH_MARKER_REVERSE = e.g. FALSE MD34060 $MA_REFP_MAX_MARKER_DIST = Difference betw. cam edge and 0 mark MD34070 $MA_REFP_VELO_POS = MD34080 $MA_REFP_MOVE_DIST = 0 MD34090 $MA_REFP_MOVE_DIST_CORR = 0 MD34092 $MA_REFP_CAM_SHIFT = 0 MD34100 $MA_REFP_SET_POS = 0 MD34200 $MA_ENC_REFP_MODE = 1...
  • Page 174: Commencing Start-up

    G1: Gantry axes 2.7 Examples The PLC user program sets the following for the axis data block of axis 3: DB31, ... DBX29.4 = 0 The NCK sets the following as a confirmation in the axis block of axis 3: DB31, ...
  • Page 175 G1: Gantry axes 2.7 Examples At this point in time, the NCK has prepared axis 1 for synchronization and registers this to the interface signal: DB31, ... DBB101 with: In addition, the following steps must be taken: • RESET • Read off values in machine coordinate system: e.g.
  • Page 176: Setting Warning And Trip Limits

    G1: Gantry axes 2.7 Examples • Examine actual positions of machine. Case A or B might apply: Figure 2-3 Possible results after referencing of axis 1 (master axis) If Case A applies, the synchronization process can be started immediately. See step "Start synchronization".
  • Page 177 G1: Gantry axes 2.7 Examples Proceed as follows • Set the machine data for all axes with a large value to begin with: MD37120 $MA_GANTRY_POS_TOL_ERROR (gantry trip limit) • Set a very small value in the machine data: MD37110 $MA_GANTRY_POS_TOL_WARNING (gantry warning limit) When you put a heavy, dynamic strain on the axes, always be careful to re-enter the self- canceling alarm "10652 channel %1 axis %2 gantry warning limit exceeded".
  • Page 178 G1: Gantry axes 2.7 Examples Note The same procedure must be followed when starting up a gantry grouping in which the coupled axes are driven by linear motors and associated measuring systems. The error limits entered into machine data MD37110 and MD37120 are considered as additional tolerance values of the actual-value difference of the master and following axis if the IS "Gantry is synchronous"...
  • Page 179: Data Lists

    G1: Gantry axes 2.8 Data lists Data lists 2.8.1 Machine data 2.8.1.1 Axis/spindle­specific machine data Number Identifier: $MA_ Description 30300 IS_ROT_AX Rotary axis 32200 POSCTRL_GAIN factor 32400 AX_JERK_ENABLE Axial jerk limitation 32410 AX_JERK_TIME Time constant for axis jerk filter 32420 JOG_AND_POS_JERK_ENABLE Initial setting for axial jerk limitation 32430...
  • Page 180: Signals

    G1: Gantry axes 2.8 Data lists 2.8.2 Signals 2.8.2.1 Signals from mode group DB number Byte.bit Description 11, ... Active machine function REF 2.8.2.2 Signals from channel DB number Byte.bit Description 21, ... 33.0 Referencing active 2.8.2.3 Signals to axis/spindle DB number Byte.bit Description...
  • Page 181: G3: Cycle Times

    G3: Cycle times Brief description This description explains the relationships and machine data of the various system cycles of the NC: • Basic system clock cycle • Interpolator cycle • Position controller cycle SINUMERIK 840D For SINUMERIK 840D the position control cycle and the interpolator cycle (IPO cycle) are derived from the system clock cycle, which is set in the machine data of the NC.
  • Page 182: Startup

    G3: Cycle times 3.2 Startup Startup Parameter assignment system clock cycle, position control cycle and interpolator cycle are defined with the following machine data: MD10050 $MN_SYSCLOCK_CYCLE_TIME (system clock cycle) MD10060 $MN_POSCTRL_SYSCLOCK_TIME_RATIO (factor for position-control cycle) MD10070 $MN_IPO_SYSCLOCK_TIME_RATIO (factor for the interpolation cycle) MD10050, $MN_SYSCLOCK_CYCLE_TIME sets the system clock cycle of the system software in seconds.
  • Page 183: Sinumerik 840d

    G3: Cycle times 3.3 SINUMERIK 840D SINUMERIK 840D Interpolator cycle The interpolator cycle defines the cycle time in which the setpoint interface to the position controllers is updated. The interpolator cycle is important for two reasons in normal processing: • The product of velocities and interpolator cycles defines the geometry resolution of the interpolated contour.
  • Page 184 G3: Cycle times 3.3 SINUMERIK 840D If this is not the case, there is an automatic offset and the following alarm is displayed: Alarm 4102 "IPO cycle increased to [ ] ms" Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 185: Sinumerik 840di With Profibus Dp

    G3: Cycle times 3.4 SINUMERIK 840Di with PROFIBUS DP SINUMERIK 840Di with PROFIBUS DP Note Further information on SINUMERIK 840Di can be found in: References: /HBI/ SINUMERIK 840Di Manual, PROFIBUS-DP Communication 3.4.1 Description of a DP cycle Actual values At time T , the actual position values are read from all the equidistant drives (DP slaves).
  • Page 186 G3: Cycle times 3.4 SINUMERIK 840Di with PROFIBUS DP Master application cycle MAPC: NC position control cycle for SINUMERIK 840Di always applies for: T MAPC DP cycle time: DP cycle time Data exchange time: Total transfer time for all DP slaves Master time: Offset of the start time for NC position control Input time: Time of actual value sensing Output time: time of setpoint activation...
  • Page 187: Clock Cycles And Position-control Cycle Offset

    G3: Cycle times 3.4 SINUMERIK 840Di with PROFIBUS DP 3.4.2 Clock cycles and position-control cycle offset Cycle times The NC derives the cycle times (system clock cycle, position-control cycle and interpolator cycle) from the equidistant PROFIBUS-DP cycle set in the SIMATIC S7 project during configuration of the PROFIBUS.
  • Page 188 G3: Cycle times 3.4 SINUMERIK 840Di with PROFIBUS DP Figure 3-2 Position control cycle offset compared to PROFIBUS-DP cycle Key to Fig. above: TLag: Computing time requirements for the position controller TDP: DP cycle time: DP cycle time TDX: Data exchange time: Total transfer time for all DP slaves Master time: Offset of the start time for NC position control Global Control: Broadcast message for cyclic convergence of the equidistance between DP master and DP slaves...
  • Page 189 G3: Cycle times 3.4 SINUMERIK 840Di with PROFIBUS DP • Cyclic communication with the DP slaves (drives) must be completed before the position controller is started. Condition: T > T • The position controller must have finished before the PROFIBUS-DP/system cycle comes to an end.
  • Page 190 G3: Cycle times 3.4 SINUMERIK 840Di with PROFIBUS DP Alarm requests in the event of a conflict during startup MD10059 $MN_PROFIBUS_ALARM_MARKER (PROFIBUS alarm marker) In this machine data, alarm requests on the PROFIBUS level are stored even after reboot. If a conflict is found between the following machine data and the data in the PROFIBUS-SDB during the booting, the machine data is adjusted to this SDB and an alarm is set during the next booting: MD10050 $MN_SYSCLOCK_CYCLE_TIME (system clock cycle)
  • Page 191: Data Lists

    G3: Cycle times 3.5 Data lists Data lists 3.5.1 Machine data 3.5.1.1 General machine data Number Identifier: $MN_ Description 10050 SYSCLOCK_CYCLE_TIME Basic system clock cycle 10059 PPOFIBUS_ALARM_MARKER PROFIBUS alarm marker (internal only) 10060 POSCTRL_SYSCLOCK_TIME_RATIO Factor for position control clock cycle 10061 POSCTRL_CYCLE_TIME Position control cycle...
  • Page 192 G3: Cycle times 3.5 Data lists Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 193: K6: Contour Tunnel Monitoring

    K6: Contour tunnel monitoring Brief description 4.1.1 Contour tunnel monitoring Function The absolute movement of the tool tip in space is monitored. The function operates channel specific. Model A round tunnel with a definable diameter is defined around the programmed path of a machining operation.
  • Page 194: Programmable Contour Accuracy

    K6: Contour tunnel monitoring 4.1 Brief description Example The following figure is a diagram of the monitoring area shown by way of a simple example. Figure 4-1 Position of the contour tunnel around the programmed path As long as the calculated actual position of the tool tip remains inside the sketched tunnel, motion continues in the normal way.
  • Page 195: Contour Tunnel Monitoring

    K6: Contour tunnel monitoring 4.2 Contour tunnel monitoring Contour tunnel monitoring Aim of the monitoring function The aim of the monitoring function is to stop the movement of the axes if axis deviation causes the distance between the tool tip (actual value) and the programmed path (setpoint) to exceed a defined value (tunnel radius).
  • Page 196 K6: Contour tunnel monitoring 4.2 Contour tunnel monitoring Shutting down Monitoring can be stopped by enabling the MD setting: MD21050 = 0.0. Analysis output The values of deviation of the actual value of the tool tip from the programmed path can – for analysis purposes –...
  • Page 197: Programmable Contour Accuracy

    K6: Contour tunnel monitoring 4.3 Programmable contour accuracy Programmable contour accuracy Initial situation There is always a velocity-dependent difference between setpoint and actual position when an axis is traversed without feedforward control. This lag results in inaccurate curved contours. Function The "Programmable contour accuracy"...
  • Page 198 K6: Contour tunnel monitoring 4.3 Programmable contour accuracy RESET/end of program On RESET/program end the response set in the following machine data for the G code group 39 will become effective: MD20110 $MC_RESET_MODE_MASK (definition of initial control settings after RESET/TP- End) MD20112 $MC_START_MODE_MASK (definition of the control default settings in case of NC START)
  • Page 199: Constraints

    K6: Contour tunnel monitoring 4.4 Constraints Constraints Availability of the "Contour tunnel monitoring" function The function is an option ("Contour monitoring with tunnel function"), which must be assigned to the hardware via the license management. Coupled motion If coupled motion between two geometry axes is programmed with contour tunnel monitoring, this always results in activation of the contour tunnel monitoring.
  • Page 200: Examples

    K6: Contour tunnel monitoring 4.5 Examples Examples 4.5.1 Programmable contour accuracy Program code Comment N10 X0 Y0 G0 N20 CPRECON ; Enabling the contour accuracy defined by MD. N30 F10000 G1 G64 X100 ; Machining with10 m/min in the continuous-path mode. N40 G3 Y20 J10 ;...
  • Page 201: Data Lists

    K6: Contour tunnel monitoring 4.6 Data lists Data lists 4.6.1 Machine data 4.6.1.1 Channel­specific machine data Number Identifier: $MC_ Description 20470 CPREC_WITH_FFW Programmable contour accuracy 21050 CONTOUR_TUNNEL_TOL Response threshold for contour tunnel monitoring 21060 CONTOUR_TUNNEL_REACTION Reaction to response of contour tunnel monitoring 21070 CONTOUR_ASSIGN_FASTOUT Assignment of an analog output for output of the...
  • Page 202 K6: Contour tunnel monitoring 4.6 Data lists Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 203: M3: Coupled Axes

    M3: Coupled axes Coupled motion 5.1.1 Product brief 5.1.1.1 Function The "coupled motion" function enables the definition of simple axis links between a master axis and a slave axis, taking into consideration a coupling factor. Coupled motion has the following features: •...
  • Page 204: General Functionality

    M3: Coupled axes 5.1 Coupled motion • The maximum number of coupled motion groupings is limited to 4. • Only 1 leading axes may be assigned to each coupled motion axis. • Cascading is not possible. Note These restrictions do not apply when NCK software is supplied with the relevant options of generic coupling (refer to "...
  • Page 205 M3: Coupled axes 5.1 Coupled motion Figure 5-1 Application Example: Two-sided machining Multiple couplings Up to two leading axes can be assigned to one coupled motion axis. The traversing movement of the coupled motion axis then results from the sum of the traversing movements of the leading axes.
  • Page 206 M3: Coupled axes 5.1 Coupled motion Switch ON/OFF Coupled motion can be activated/deactivated via the part programs and synchronous actions. In this context please ensure that the switch on and switch off is undertaken with the same programming: • Switch on: Part program → Switch off: Part program •...
  • Page 207 M3: Coupled axes 5.1 Coupled motion Distance-to-go: Coupled motion axis The distance-to-go of a coupled motion axis refers to the total residual distance to be traversed from dependent and independent traversing. Delete distance-to-go: Coupled motion axis Delete distance-to-go for a coupled motion axis only results in aborting of the independent traversing movement of the leading axis.
  • Page 208: Programming

    M3: Coupled axes 5.1 Coupled motion 5.1.3 Programming 5.1.3.1 Definition and switch on of a coupled axis grouping (TRAILON) Definition and switch on of a coupled axis grouping take place simultaneously with the TRAILON part program command. Programming Syntax: TRAILON(<coupled motion axis>, <leading axis>, [<coupling factor>]) Effective: modal Parameters:...
  • Page 209: Switch Off (trailof)

    M3: Coupled axes 5.1 Coupled motion 5.1.3.2 Switch off (TRAILOF) Switch off of the coupling of a coupled-motion axis with a leading axis takes place through the TRAILOF part program command. Programming Syntax: TRAILON(<coupled motion axis>, <leading axis>) or (in abbreviated form): TRAILOF(<coupled-motion axis>) Effective: modal...
  • Page 210 M3: Coupled axes 5.1 Coupled motion This allows the speed to be changed for the independent motion of a coupled motion axis using a feed override or a DRF offset to be defined using the handwheel in AUTOMATIC and MDA modes. Dependent coupled motion axis With respect to the motion of a coupled motion axis, which is dependent on the leading axis, only the coupled-motion axis interface signals that effect termination of the motion (e.g.
  • Page 211: Status Of Coupling

    M3: Coupled axes 5.1 Coupled motion 5.1.5 Status of coupling The coupling status of an axis can be determined using the following system variables: $AA_COUP_ACT[axis identifier] Value Description No coupling active 1, 2, 3 Tangential tracking Synchronous spindle coupling Coupled motion active Master value coupling Following axis of electronic gearbox Note...
  • Page 212: Curve Tables

    M3: Coupled axes 5.2 Curve tables Curve tables 5.2.1 Product brief 5.2.1.1 Function The "curve tables" function can be used to define the complex sequence of motions of an axis in a curve table. Any axis can be defined as a leading axis and a following axis can be traversed by taking a curve table into account.
  • Page 213: General Functionality

    M3: Coupled axes 5.2 Curve tables 5.2.2 General functionality Curve tables A functional relation between a command variable "master value" and an abstract following value is described in the curve table. A following variable can be assigned uniquely to each master value within a defined master value range.
  • Page 214: Memory Organization

    M3: Coupled axes 5.2 Curve tables Selection of memory type While defining a curve table, it can be defined whether the curve table is created in the static or dynamic NC memory. Note Table definitions in the static NC memory are available even after control system run-up. Curve tables of the dynamic NC memory must be redefined after every control system run- 5.2.3 Memory organization...
  • Page 215 M3: Coupled axes 5.2 Curve tables Insufficient memory If a curve table cannot be created, because sufficient memory is not available, then the newly created table is deleted immediately after the alarm. If insufficient is available, then one or more table(s) that is/are no longer required can be deleted with CTABDEL or, alternatively, memory can be reconfigured via machine data.
  • Page 216: Commissioning

    M3: Coupled axes 5.2 Curve tables 5.2.4 Commissioning 5.2.4.1 Memory configuration A defined storage space is available for the curve tables in the static and dynamic NC memory, which is defined through the following machine data: Static NC memory MD18400 $MN_MM_NUM_CURVE_TABS Defines the number of curve tables that can be stored in the static NC memory.
  • Page 217: Specification Of Memory Type

    M3: Coupled axes 5.2 Curve tables Value Description No curve tables that contain a discontinuity in the following axis are produced. Alarm 10949 is output and program processing is aborted. Curve tables with a discontinuity in the following axis can be generated. If a segment contains a discontinuity in the following axis, Alarm 10955 is output but program processing is continued.
  • Page 218 M3: Coupled axes 5.2 Curve tables • Deleting curve table(s): CTABDEL(n) ; curve table n CTABDEL(n, m) ; [n < m], more than one in the range of numbers ; it is deleted in static "SRAM" and in dynamic "DRAM" of NC memory. •...
  • Page 219 M3: Coupled axes 5.2 Curve tables Enable/cancel blocking The following functions can be used to enable or cancel deletion and overwrite blocks for parts. programs. • Enable deletion and overwrite block. General form: CTABLOCK(n, m, memType) • Cancel deletion and overwrite block. CTABUNLOCK releases the tables locked with CTABLOCK.
  • Page 220 M3: Coupled axes 5.2 Curve tables • Table number of nth curve table. General form: CTABID(n, memType) Generates the table number of the nth curve table with memory type memType. CTABID(1, memType) is used to read out the highest curve number (105) of the memory type specified.
  • Page 221 M3: Coupled axes 5.2 Curve tables • Number of curve polynomials used by curve table number n. CTABPOLID(n) • Number of still possible polynomials in memory memType. CTABFPOL(n) • Maximum number of possible polynomials in memory memType. CTABMPOL(n) Boundary values of curve tables Behavior of the leading axis/following axes on the edges of the curve table: •...
  • Page 222 M3: Coupled axes 5.2 Curve tables • applim: Behavior at the curve table edges. - 0 non-periodic (table is processed only once, even for rotary axes). 1 periodic, modulo (the modulo value corresponds to the LA table values). 2 periodic, modulo (LA and FA are periodic). •...
  • Page 223 M3: Coupled axes 5.2 Curve tables Restrictions The following restrictions apply when programming: • The NC block must not generate a preprocessing stop. • No discontinuities may occur in leading axis motion. • Any block that contains a traverse instruction for the following axis must also include a traverse for the leading axis.
  • Page 224: Access To Table Positions And Table Segments

    M3: Coupled axes 5.2 Curve tables N130 AX1=150 AX2=6 ; 3. Curve segment: Master value: 100...150, following value 6 N130 AX1=180 AX2=0 ; 4. Curve segment: Master value: 150...180, following value: 6...0 N200 CTABEND ; End of definition, curve table ;...
  • Page 225 M3: Coupled axes 5.2 Curve tables Reading segment positions Segment positions of a curve table for the value for the following axis can be read using the CTABSSV and CTABSEV calls. The language commands CTABSSV and CTABSEV generally provide the start and end values of the internal segments of the curve tables for the following axis.
  • Page 226 M3: Coupled axes 5.2 Curve tables Identifying the segment associated with master value X Example of reading the segment starting and end values for determining the curve segment associated with master value X = 30 using CTABSSV and CTABSEV: N10 DEF REAL STARTPOS ;Beginning of the definition for the start position of the curve table N20 DEF REAL ENDPOS...
  • Page 227 M3: Coupled axes 5.2 Curve tables Reading values at start and end The values of the following axes and of the master axis at the start and end of a curve table can be read with the following calls: R10 =CTABTSV(n, degrees, F axis), following value at the beginning of the curve table R10 =CTABTEV(n, degrees, F axis), following value at the beginning of the curve table R10 =CTABTSP(n, degrees, F axis), following value at the beginning of the curve table R10 =CTABTEP(n, degrees, F axis), following value at the beginning of the curve table...
  • Page 228: Activation/deactivation

    M3: Coupled axes 5.2 Curve tables Figure 5-3 Determining the minimum and maximum values of the table 5.2.7 Activation/deactivation Activation The coupling of real axes to a curve table is activated through this command: LEADON (<Following axis>, <Leading axis>, <n>) with <n>...
  • Page 229: Modulo-leading Axis Special Case

    M3: Coupled axes 5.2 Curve tables Deactivation The switch off of the coupling to a curve table takes place through the following command: LEADON (<Following axis>, <Leading axis>) Deactivation is possible: • In the part program • in synchronized actions Note While programming LEADOF, the abbreviated form is also possible without specification of the leading axis.
  • Page 230: Behavior In Automatic, Mda And Jog Modes

    M3: Coupled axes 5.2 Curve tables 5.2.9 Behavior in AUTOMATIC, MDA and JOG modes Activation An activated curve table is functional in the AUTOMATIC, MDA and JOG modes. Basic setting after run-up No curve tables are active after run-up. 5.2.10 Effectiveness of PLC interface signals Dependent following axis With respect to the motion of a following axis that is dependent on the leading axis, only the...
  • Page 231: Diagnosing And Optimizing Utilization Of Resources

    M3: Coupled axes 5.2 Curve tables 5.2.11 Diagnosing and optimizing utilization of resources The following functions allow parts programs to get information on the current utilization of curve tables, table segments and polynomials. One result of the diagnostic functions is that resources still available can be used dynamically with the functions, without necessarily having to increase memory usage.
  • Page 232 M3: Coupled axes 5.2 Curve tables When using the CTABID(p, memType) function, no assumptions should be made regarding the sequence of the curve tables in the memory. The CTABID(p, ...) function supplies the ID (table number) of the curve table entered in memory as the pth curve table. If the sequence of curve tables in memory changes between consecutive calls of CTABID()CTABID(), e.g.
  • Page 233 M3: Coupled axes 5.2 Curve tables b) Curve table segments • Determine number of used curve segments of the type memType in the memory range. • CTABSEG(memType, segType) • If memType is not specified, the memory type specified in the following machine data: MD20905 $MC_CTAB_DEFAULT_MEMORY_TYPE Result: >= 0: Number of curve segments...
  • Page 234 M3: Coupled axes 5.2 Curve tables c) Polynomials • Determine the number of used polynomials of the memory type CTABPOL(memType) If memType is not specified, the memory type specified in the following machine data: MD20905 $MC_CTAB_DEFAULT_MEMORY_TYPE Result: >= 0: Number of polynomials already used in the memory type -2: Invalid memory type •...
  • Page 235: Master Value Coupling

    M3: Coupled axes 5.3 Master value coupling Master value coupling 5.3.1 Product brief 5.3.1.1 Function The "master value coupling" function can be used to process short programs cyclically with close coupling of the axes to one another and a master value that is either generated internally or input from an external source.
  • Page 236 M3: Coupled axes 5.3 Master value coupling Virtual leading axis/simulated master value If the leading axis is not interpolated by the same NCU, the interpolator that is implemented in the NCU for this particular leading axis can be used for master value simulation. The following MD settings must be defined for this: MD30132 $MA_IS_VIRTUAL_AX[n] = 1 (axis is virtual axis) MD30130 $MA_CTRLOUT_TYPE[n] = 0 (simulation as output type of setpoint)
  • Page 237 M3: Coupled axes 5.3 Master value coupling Figure 5-4 Master value coupling offset and scaling (multiplied) Figure 5-5 Master value coupling offset and scaling (with increment offset) Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 238 M3: Coupled axes 5.3 Master value coupling Reaction to Stop All master value coupled following axes react to channel stop and MODE GROUP stop. Master value coupled following axes react to a stop due to end of program (M30, M02) if they have not been activated by static synchronous actions (IDS=...).
  • Page 239: Programming

    M3: Coupled axes 5.3 Master value coupling Spindles in master value coupling A spindle can only be used as the master value coupled following axis if it has been switched to axis mode beforehand. The machine data parameter block of the axis drive then applies. Example: Activation from synchronized action Program code Comment...
  • Page 240 M3: Coupled axes 5.3 Master value coupling Boundary conditions: • No reference point is required to activate the coupling. • A defined following axis cannot be traversed in the JOG mode (not even if the "Synchronized run fine" or. "synchronized run coarse" interface signal is not there). •...
  • Page 241 M3: Coupled axes 5.3 Master value coupling Meaning: Following axis as geometry-, channel- or machine axis name (X, Y, Z,...) <FA> Leading axis as geometry-, channel- or machine axis name (X, Y, Z,...) <LA> Software axis is also possible: MD30130 $MA_CTRLOUT_TYPE=0 (setpoint output type) Example: Program code Comment...
  • Page 242 M3: Coupled axes 5.3 Master value coupling System variables of the master value The following master value system variables can only be read from part program and from synchronous actions: System variable Meaning $AA_LEAD_V[ax] Velocity of the leading axis $AA_LEAD_P[ax] Position of the leading axis $AA_LEAD_P_TURN Master value position...
  • Page 243: Behavior In Automatic, Mda And Jog Modes

    M3: Coupled axes 5.3 Master value coupling Note If the following axis is not enabled for travel, it is stopped and is no longer synchronous. 5.3.4 Behavior in AUTOMATIC, MDA and JOG modes Efficiency A master value coupling is active depending on the settings in the part program and in the following machine data: MD20110 $MC_RESET_MODE_MASK (definition of initial control system settings after RESET/TP-End)
  • Page 244 M3: Coupled axes 5.3 Master value coupling • MD20110 $MC_RESET_MODE_MASK=2001H && MD20112 $MC_START_MODE_MASK=0H → Master value coupling remains valid after RESET and START • MD20110 $MC_RESET_MODE_MASK=2001H && MD20112 $MC_START_MODE_MASK=2000H → Master value coupling remains valid after RESET and is canceled with START. However, master value coupling activated via IDS=...
  • Page 245: Effectiveness Of Plc Interface Signals

    M3: Coupled axes 5.3 Master value coupling 5.3.5 Effectiveness of PLC interface signals Leading axis When a coupled axis group is active, the interface signals (IS) of the leading axis are applied to the appropriate following axis via axis coupling. i.e.: •...
  • Page 246 M3: Coupled axes 5.3 Master value coupling Logging The curve tables generated by the definition of motion sequences are stored in the battery- backed memory. The curve tables are not lost when the control system is switched off. These functions have no effect on cyclic machines because they are performed without operator actions.
  • Page 247: Electronic Gearbox (eg)

    M3: Coupled axes 5.4 Electronic gearbox (EG) Electronic gearbox (EG) 5.4.1 Product brief 5.4.1.1 Function General The "electronic gear" function makes it possible to control the movement of a following axis, depending on up to five master axes. The relationship between each leading axis and the following axis is defined by the coupling factor.
  • Page 248: Preconditions

    M3: Coupled axes 5.4 Electronic gearbox (EG) • Traverse time-optimized with respect to programmed synchronized position • Traverse path-optimized with respect to programmed synchronized position Application Examples: • Machine tools for gear cutting • Gear trains for production machines 5.4.1.2 Preconditions The "Electronic Gearbox"...
  • Page 249 M3: Coupled axes 5.4 Electronic gearbox (EG) It is thus possible for each curve (except for the special case of a straight line) for the leading axis to influence the following axis in a non-linear manner. The function can only be used with EGONSYN.
  • Page 250 M3: Coupled axes 5.4 Electronic gearbox (EG) The maximum permissible number of EG axis groups is 31. Note The option must be enabled. EG cascading The following axis of an EG can be the leading axis of another EG. For a sample configuration file, see Chapter "Examples".
  • Page 251 M3: Coupled axes 5.4 Electronic gearbox (EG) Activation response An electronic gearbox can be activated in two different ways: 1. On the basis of the axis positions that have been reached up to now in the course of processing the command to activate the EG axis group is issued without specifying the synchronizing positions for each individual axis.
  • Page 252 M3: Coupled axes 5.4 Electronic gearbox (EG) Synchronization abort with EGONSYN and EGONSYNE 1. The EGONSYN/EGONSYNE command is aborted under the following conditions and changed to an EGON command: • RESET • Axis switches to tracking The defined synchronization positions are ignored. Synchronous traverse monitoring still takes synchronized positions into account.
  • Page 253 M3: Coupled axes 5.4 Electronic gearbox (EG) Difference < .. TOL_COARSE As long as the synchronous traverse difference is smaller than the following machine data, IS "Coarse synchronism" DB 31, ... DBX 98.1 is at the interface and IS "Fine synchronism" DB 31, ...
  • Page 254 M3: Coupled axes 5.4 Electronic gearbox (EG) Other signals If an EGON(), EGONSYN() or EGONSYNE() block is encountered in the main run, the signal "Coupling active" is set for the following axis. If the following axis is only overlaid, the signals "Coupling active"...
  • Page 255: Performance Overview Of Eg (summary)

    M3: Coupled axes 5.4 Electronic gearbox (EG) Block change mode 1. When an EG axis group is activated, it is possible to specify the conditions under which a part program block change is to be executed: 2. The specification is made with a string parameter with the following meaning: 3.
  • Page 256 M3: Coupled axes 5.4 Electronic gearbox (EG) Leading axis A leading axis can: • be used once in the same EG • be used as leading axis in several coupling modules • be PLC axis • be command axis Leading and following axis The following is allowed for leading and following axes: real simulated...
  • Page 257 M3: Coupled axes 5.4 Electronic gearbox (EG) RESET For RESET: • the EG status remains unchanged • the EG configuration is retained End of parts program On end of a part program: • the EG status remains unchanged • the EG configuration is retained Warm start and cold start In the case of a warm start per HMI operation and cold start (POWER OFF/ POWER ON): •...
  • Page 258: Definition Of An Eg Axis Group

    M3: Coupled axes 5.4 Electronic gearbox (EG) Block change behavior In the EG activation commands (EGON, EGONSYN, EGONSYNE), it can be specified for which condition (with respect to synchronism) the next block of the parts program is to be processed. Options: •...
  • Page 259: Activating An Eg Axis Group

    M3: Coupled axes 5.4 Electronic gearbox (EG) Preconditions for defining an EG axis group: No existing axis coupling may already be defined for the following axis. (If necessary, an existing axis must be deleted with EGDEL.) EGDEF triggers preprocessing stop with alarm. For an example of how to use the EG gearbox for gear hobbing, please see Chapter "Examples", "Electronic Gearbox for Gear Hobbing".
  • Page 260 M3: Coupled axes 5.4 Electronic gearbox (EG) With synchronization The EG axis group is activated with synchronization selective: 1. EGONSYN EGONSYN(FA, block change mode, SynPosFA, LA , SynPosLA , Z_LA , N_LA With: FA: Following axis Block change mode: "NOC": Block change takes place immediately "FINE": Block change is performed in "Fine synchronism"...
  • Page 261 M3: Coupled axes 5.4 Electronic gearbox (EG) 2. EGONSYNE EGONSYNE(FA, block change mode, SynPosFA, Approach mode, LA ,SynPosLA , Z_LA N_LA with: "FA": Following axis Block change mode: "NOC": Block change takes place immediately "FINE": Block change is performed in "Fine synchronization" "COARSE": Block change is performed in "Coarse synchronization"...
  • Page 262 M3: Coupled axes 5.4 Electronic gearbox (EG) Approach response with FA at standstill In this case, the time-optimized and path-optimized traversing modes are identical. The table below shows the target positions and traversed paths with direction marker (in brackets) for the particular approach modes: Position of the Programmed Traversing...
  • Page 263 M3: Coupled axes 5.4 Electronic gearbox (EG) Sample notations EGONSYNE(A, "FINE", 110, "NTGT", B, 0, 2, 10) couple A to B, synchronized position A = 110, B = 0, coupling factor 2/10, approach mode = NTGT EGONSYNE(A, "FINE", 110, "DCT", B, 0, 2, 10) couple A to B, synchronized position A = 110, B = 0, coupling factor 2/10, approach mode = EGONSYNE(A, "FINE", 110, "NTGT", B, 0, 2, 10, Y, 15, 1, 3) couple A to B, synchronized position A = 110, B = 0, Y = 15,...
  • Page 264: Deactivating An Eg Axis Group

    M3: Coupled axes 5.4 Electronic gearbox (EG) 5.4.5 Deactivating an EG axis group Variant 1 There are different ways to deactivate an active EG axis grouping. EGOFS(following axis) The electronic gearbox is deactivated. The following axis is braked to a standstill. This call triggers a preprocessing stop.
  • Page 265: Interaction Between Rotation Feedrate (g95) And Electronic Gearbox

    M3: Coupled axes 5.4 Electronic gearbox (EG) 5.4.7 Interaction between rotation feedrate (G95) and electronic gearbox The FPR( ) part program command can be used to specify the following axis of an electronic gear as the axis, which determines the rotational feedrate. The following behavior is applicable in this case: •...
  • Page 266: System Variables For Electronic Gearbox

    M3: Coupled axes 5.4 Electronic gearbox (EG) 5.4.9 System variables for electronic gearbox Application The following system variables can be used in the parts program to scan the current states of an EG axis group and to initiate appropriate reactions if necessary: Table 5-1 System variables, R means: Read access possible Preprocessing...
  • Page 267 M3: Coupled axes 5.4 Electronic gearbox (EG) Table 5-1 System variables, R means: Read access possible Preprocessing name Type Access Meaning, value Cond. Index stop Parts Parts Sync Sync progra progra act. act. $P_EG_BC[a] STRING Block change criterion for Axis identifier EG activation calls: EGON, a: Following axis EGONSYN:...
  • Page 268: Generic Coupling

    M3: Coupled axes 5.5 Generic coupling Generic coupling 5.5.1 Product brief 5.5.1.1 Function Function "Generic Coupling" is a general coupling function, combining all coupling characteristics of existing coupling types (coupled motion, master value coupling, electronic gearbox and synchronous spindle). The function allows flexible programming: •...
  • Page 269 M3: Coupled axes 5.5 Generic coupling • Functional scope and required application knowledge increase from the basic version to the optional CP_EXPERT version. • The number of required couplings (following axes, following spindles) and their properties are decisive in the selection of versions. Example of simultaneous operation: If sequential operation of 1 x synchronous spindle pair for part transfer from the main to the supplementary spindle and the 1 x multi-edge turning is required, then the CP-...
  • Page 270 M3: Coupled axes 5.5 Generic coupling Table 5-3 Scaling of availability of coupling properties Type A Type B Type C Type D Type E Cascading permitted BCS / BCS / BCS / Co-ordinate reference (default): CPFRS="BCS") Synchronized spindle with 1:1 coupling Maximum number of synchronous spindles / multi-edge turning with the following properties: →...
  • Page 271 M3: Coupled axes 5.5 Generic coupling Table 5-3 Scaling of availability of coupling properties Type A Type B Type C Type D Type E + (max. Non-linear coupling law (CPLCTID) permitted CP - Free generic coupling Maximum number of free generic couplings with the following properties: Default (corresponds to CPSETTYPE="CP"...
  • Page 272: Basics

    M3: Coupled axes 5.5 Generic coupling 5.5.2 Basics 5.5.2.1 Coupling module With the aid of a coupling module, the motion of one axis, ( → following axis), can be interpolated depending on other ( → leading) axes. Coupling rule The relationships between leading axis/values and a following axis are defined by a coupling rule (coupling factor or curve table).
  • Page 273: Keywords And Coupling Characteristics

    M3: Coupled axes 5.5 Generic coupling The following axis position results from the overlay (summation) of the dependent motion components (FA and FA ), which result from the individual coupling relationships to DEP1 DEP2 the leading axes, and of the independent motion component (FA ) of the following axis: = FA + FA...
  • Page 274 M3: Coupled axes 5.5 Generic coupling Notation In order to be uniquely assigned, keywords are furnished with the prefix "CP", for Coupling). Depending on meaning and application position, a third letter is used: Keyword prefix Meaning Example Describes the characteristics of the entire coupling. CPON CPF* Describes the characteristics of the following axis...
  • Page 275 M3: Coupled axes 5.5 Generic coupling Default setting Keyword Coupling characteristics / meaning (CPSETTYPE="CP") Synchronization mode CFAST CPFMSON Behavior of the following axis at switching on STOP CPFMON Behavior of the following axis at complete switch-off STOP CPFMOF Switch-off position of the following axis when Not set CPFPOS + CPOF switching off...
  • Page 276: System Variables

    M3: Coupled axes 5.5 Generic coupling 5.5.2.3 System variables The current state of a coupling characteristic set with a keyword, can be read and written to with the relevant system variable. Note When writing in the part program, PREPROCESSING STOP is generated. Notation The names of system variables are normally derived from the relevant keywords and a corresponding prefix.
  • Page 277: Delete Coupling Module (cpdel)

    M3: Coupled axes 5.5 Generic coupling Programming Syntax: CPDEF= (<following axis/spindle>) Identifiers: Coupling Definition Functionality: Definition of a coupling module The coupling is not activated. Following axis/ Type: AXIS spindle: Range of values: All defined axis and spindle identifiers in the channel Example: Programming Comment...
  • Page 278: Defining Leading Axes (cpldef Or Cpdef+cpla)

    M3: Coupled axes 5.5 Generic coupling Range of values: All defined axis and spindle identifiers in the channel Example: Programming Comment CPDEL=(X2) ; Deletion of the coupling module with following axis X2. Constraints • The switch command CPDEL results in a preprocessing stop with active coupling. Exception: No preprocessing stop occurs in CPSETTYPE="COUP".
  • Page 279: Delete Leading Axes (cpldel Or Cpdel+cpla)

    M3: Coupled axes 5.5 Generic coupling Programming with CPLA and CPDEF Syntax: CPLA[FAx]= (<leading axis/spindle>) Identifiers: Coupling Lead Axis Functionality: Definition of leading axis/spindle for following axis/spindle FAx. Leading axis/ Type: AXIS spindle: Range of values: All defined axis and spindle identifiers in the channel Example: Programming...
  • Page 280 M3: Coupled axes 5.5 Generic coupling Programming with CPLDEL Syntax: CPLDEL[FAx]= (<leading axis/spindle>) Identifiers: Coupling Lead Axis Delete Functionality: Deletion of leading axis/spindle of following axis/spindle FAx. The leading axis/spindle module will be deleted and the corresponding memory will be released. If the coupling module does not have a leading axis/spindle any more, the coupling module will be deleted and the memory will be released.
  • Page 281: Switching Coupling On/off

    M3: Coupled axes 5.5 Generic coupling Example: Programming Comment CPDEL=(X2) CPLA[X2]=(X1) ; Deletion of leading axis X1 of the coupling to following axis X2. Constraints • CPLDEF is only allowed in blocks without CPDEF/CPON/CPOF/CPDEL. (This limitation applies to the case where the keywords refer to the same coupling module.) •If an active leading axis is deleted, the coupling to this leading axis is implicitly deactivated.
  • Page 282: Switch Off Coupling Module (cpof)

    M3: Coupled axes 5.5 Generic coupling Example: Programming Comment CPON=(X2) ; Activation of coupling of the following axis X2. Constraints Application of CPON to an already active coupling results in a neurosynchronization. If applicable, changed coupling properties become effective as a result. Any lost synchronization (for example, following axis was in tracking mode) is restored.
  • Page 283: Switching On Leading Axes Of A Coupling Module (cplon)

    M3: Coupled axes 5.5 Generic coupling 5.5.4.3 Switching on leading axes of a coupling module (CPLON) CPLON activates the coupling of a leading axis to a following axis. If several leading axes are defined for a coupling module, they can be activated and deactivated separately with CPLON. Programming Syntax: CPLON[FAx]= (<leading axis/spindle>)
  • Page 284: Implicit Creation And Deletion Of Coupling Modules

    M3: Coupled axes 5.5 Generic coupling Programming Syntax: CPLOF[FAx]= (<leading axis/spindle>) Identifiers: Coupling Lead Axis Off Functionality: Deactivates the coupling of a leading axis/spindle to the following axis/ spindle FAx. Leading axis/ Type: AXIS spindle: Range of values: Axes of the channel Example: Programming Comment...
  • Page 285: Programming Coupling Characteristics

    M3: Coupled axes 5.5 Generic coupling Constraints • Implicitly created coupling modules (via switch-on commands) are deleted once they are completely deactivated (CPOF). Advantage: Deleting them with CPDEL/CPLDEL is not necessary. Disadvantage (possibly): All coupling properties which were set with CPOF are lost. •...
  • Page 286 M3: Coupled axes 5.5 Generic coupling Example: Programming Comment CPLNUM[X2,X1]=1.3 ; The numerator of the coupling factor of the coupling of the following axis X2 to the leading axis X1 must be 1.3. Denominator of the coupling factor Syntax: CPLDEN[FAx,LAx]= <value> Identifiers: Coupling Lead Denominator Functionality:...
  • Page 287: Coupling Relationship (cplsetval)

    M3: Coupled axes 5.5 Generic coupling Example: Programming Comment CPLCTID[X2,X1]=5 ; The leading axis specific coupling component of the coupling of the following axis X2 to the leading axis X1 is calculated with curve table No. 5. Constraints • A coupling factor of zero (CPLNUM=0) is a permissible value. In this case, the leading axis/ spindle does not provide a path component for the following axis/spindle, however, it remains a part of the coupling.
  • Page 288: Co-ordinate Reference (cpfrs)

    M3: Coupled axes 5.5 Generic coupling Programming Syntax: CPLSETVAL[FAx,LAx]= <value> Identifiers: Coupling Lead Set Value Functionality: Defines tapping of the leading axis/spindle LAx and the reaction point on the following axis/spindle FAx. Coupling reference: Type: STRING Range of values: "CMDPOS" Commanded Position Setpoint value coupling...
  • Page 289: Block Change Behavior (cpbc)

    M3: Coupled axes 5.5 Generic coupling Programming Syntax: CPFRS[FAx]= (<co-ordinate reference>) Identifiers: Coupling Following Relation System Functionality: Defines the co-ordinate reference system for the coupling module of the following axis/spindle FAx. Co-ordinate Type: STRING reference: Range of values: ”BCS” Basis Co-ordinate System Basic Coordinate System ”MCS”...
  • Page 290 M3: Coupled axes 5.5 Generic coupling The block change criterion can be defined with the keyword CPBC or with the programming command WAITC. The instruction programmed last is valid. Programming with PCBC Syntax: CPBC[FAx]= "<block change criterion>" Identifiers: Coupling Block Change Criterium Functionality: Defines block change criterion with active coupling.
  • Page 291: Synchronized Position Of The Following Axis When Switching On (cpfpos+cpon)

    M3: Coupled axes 5.5 Generic coupling Parameter: Fax: Designates the following axis and therefore the coupling module. Defines the desired block change criterion. FAx: Type: STRING Range of values: Axes of the channel Type: STRING Range of values: "NOC" Block change is performed irrespective of the coupling status.
  • Page 292 M3: Coupled axes 5.5 Generic coupling Programming Syntax: CPON=FAx CPFPOS[FAx]= <value> Identifiers: Coupling Following Position Functionality: Defines the synchronized position of the following axis when switching on. AC, IC and GP are possible in position specification. Value: Type: REAL Range of values: All position within the traverse range boundaries Example: Programming Comment...
  • Page 293: Synchronized Position Of The Leading Axis When Switching On (cplpos)

    M3: Coupled axes 5.5 Generic coupling 5.5.5.6 Synchronized position of the leading axis when switching on (CPLPOS) The current leading axis position, taken as leading value, can be offset. The synchronized position of the leading axis therefore defines the zero point of the input variable. Programming Syntax: CPLPOS[FAx,LAx]= <value>...
  • Page 294: Synchronization Mode (cpfmson)

    M3: Coupled axes 5.5 Generic coupling Programming Comment N20 X1=280 F1000 ; Leading axis X1 is traversed to position 280. CPON=(X2) ; The current position X1=280 is taken as synchronized position of the leading axis. The previously active synchronized position of the leading axis (200) becomes ineffective.
  • Page 295: Behavior Of The Following Axis At Switch-on (cpfmon)

    M3: Coupled axes 5.5 Generic coupling "NRGP" Next Ratio Gap Path The next segment is Optimized approached in a path- optimized manner, in accordance with the ratio of the number of gears to the number of teeth. "ACN" Absolute Co-ordinate For rotary axes only! Negative The rotary axis traverses...
  • Page 296 M3: Coupled axes 5.5 Generic coupling Programming Syntax: CPFMON[FAx]= "<block change criterion>" Identifiers: Coupling Following Mode On Functionality: Defines the behavior of the following axis/spindle during switch-on of the coupling. Power­on response: Type: STRING Range of values: "STOP" Stop For spindles only! An active motion of the following spindle is stopped before switch- "CONT"...
  • Page 297: Behavior Of The Following Axis At Switch-off (cpfmof)

    M3: Coupled axes 5.5 Generic coupling 5.5.5.9 Behavior of the following axis at switch-off (CPFMOF) The behavior of the following axis/spindle during complete switch-off of an active coupling can be programmed with the keyword CPFMOF. Programming Syntax: CPFMOF[FAx]= "<switch-off behavior>" Identifiers: Coupling Following Mode Off Functionality:...
  • Page 298: Position Of The Following Axis When Switching Off (cpfpos+cpof)

    M3: Coupled axes 5.5 Generic coupling 5.5.5.10 Position of the following axis when switching off (CPFPOS+CPOF) When switching off a coupling (CPOF) traversing to a certain position can be requested for the following axis. Programming Syntax: CPOF=(FAx) CPFPOS[FAx]= <value> Functionality: Defines the switch-off position of the following axis FAx.
  • Page 299 M3: Coupled axes 5.5 Generic coupling Programming Syntax: CPMRESET[FAx]= "<Reset behavior>" Identifiers: Coupling Mode RESET Functionality: Defines the behavior of a coupling at RESET. Reset response: Type: STRING Range of values: "NONE" The current state of the coupling is retained. "ON"...
  • Page 300: Condition At Parts Program Start (cpmstart)

    M3: Coupled axes 5.5 Generic coupling Constraints • The coupling characteristics set with CPMRESET is retained until the coupling module is deleted with (CPDEL). • For the coupling type (CPSETTYPE="TRAIL", "LEAD", "EG" or "COUP") the response is defined by the following machine data during RESET: MD20110 $MC_RESET_MODE_MASK (definition of initial control system settings after RESET/TP-End) →...
  • Page 301: Status During Part Program Start In Search Run Via Program Test (cpmprt)

    M3: Coupled axes 5.5 Generic coupling Example: Programming Comment CPMSTART[X2]="ON" ; At part program start, coupling to following axis X2 is switched on. Constraints • The coupling characteristics set with CPMSTART are retained until the coupling module is deleted with (CPDEL). •...
  • Page 302 M3: Coupled axes 5.5 Generic coupling Value: Type: STRING Range of values: "NONE" The current state of the coupling is retained. "ON" When the appropriate coupling module is created, the coupling is switched on. All defined leading axis relationships are activated. This is also performed when all or parts of these leading axis relationships are active, i.e.
  • Page 303: Offset / Scaling (cplintr, Cplinsc, Cplouttr, Cploutsc)

    M3: Coupled axes 5.5 Generic coupling 5.5.5.14 Offset / scaling (CPLINTR, CPLINSC, CPLOUTTR, CPLOUTSC) An existing coupling relationship between a following axis and a leading axis can be scaled and offset. The effect of these functions on the total setpoint value of the following axes can be viewed from the following formula: Total setpoint value of the following axis Total...
  • Page 304 M3: Coupled axes 5.5 Generic coupling Scaling the input value Syntax: CPLINSC[FAx,LAx]= <value> Identifiers: Coupling Lead In Scale Factor Functionality: Defines the scaling factor for the input value of the LAx leading axis. Value: Type: REAL Default value: Example: Programming Comment CPLINSC[X2,X1]=0.5 ;...
  • Page 305: Synchronism Monitoring (cpsyncop, Cpsynfip, Cpsyncov, Cpsynfiv)

    M3: Coupled axes 5.5 Generic coupling Scaling of the output value Syntax: CPLOUTSC[FAx,LAx]= <value> Identifiers: Coupling Lead Out Scale Factor Functionality: Defines the scaling factor for the output value of coupling the following axis FAx with leading axis LAx. Value: Type: REAL Default value:...
  • Page 306 M3: Coupled axes 5.5 Generic coupling of the leading axes according to the coupling rule) reaches one of the programmed threshold values: Command Meaning Threshold value of position synchronous operation "Coarse" CPSYNCOP[FAx] Threshold value of position synchronous operation "Fine" CPSYNFIP[FAx] Threshold value of speed synchronous operation "Coarse"...
  • Page 307 M3: Coupled axes 5.5 Generic coupling System variable Meaning $AA_SYNC [FAx] State of the coupling Value State Not synchronized "Coarse" synchronous operation reached "Fine" synchronous operation reached Signal reaction Synchronous operation signals themselves do not stop the involved axes, but can release them via synchronized action or NC/PLC interface signals (refer to Chapter "Extended Shutdown/Retraction (ESR)").
  • Page 308 M3: Coupled axes 5.5 Generic coupling Threshold value of speed synchronous operation "Coarse" Syntax: CPSYNCOV[FAx]= <value> Designation: Coupling Synchronous Difference Coarse Velocity Functionality: Defines the threshold value for the "Coarse'' speed synchronous operation. Value: Type: REAL Threshold value of speed synchronous operation "Fine" Syntax: CPSYNFIV[FAx]= <value>...
  • Page 309: Reaction To Stop Signals And Commands (cpmbrake)

    M3: Coupled axes 5.5 Generic coupling Supplementary conditions • When considering the synchronous operation difference, an active coupling cascade is not taken into account. This means: if in the considered coupling module, the leading axis is a following axis in another coupling module, the current actual or setpoint position is still used as input variable for the calculation of the synchronous operation difference.
  • Page 310: Response To Certain Nc/plc Interface Signals (cpmvdi)

    M3: Coupled axes 5.5 Generic coupling Examples Example 1: Programming Comment CPDEF=(AX5) CPLA[AX5]=(AX4) CPMBRAKE[AX5]=0 ; Defining a coupling (leading axis Ax4 with following axis Ax5). NST "feed stop / spindle stop" should not brake the coupling group. Example 2: Programming Comment CPDEF=(S2) CPLA[S2]=(S1) Definition of a spindle coupling:...
  • Page 311 M3: Coupled axes 5.5 Generic coupling Meaning Reserved. Reserved. Reserved. The effect of NC/PLC interface signal DB31, ... DBX1.3 (axis/spindle disable) on the following axis/spindle can be set via bit 3: Bit 3 = 0 DB31, ... DBX1.3 has no effect on the following axis/ spindle. The state of the following axis/spindle with reference to the axis/spindle disable is derived solely from the state of the leading axes/spindles.
  • Page 312 M3: Coupled axes 5.5 Generic coupling The effect of NC/PLC interface signal DB21, ... DBX25.7 (program test selected) or DB21, ... DBX1.7 (activate program test) on the following axis/spindle can be set via bit 5: Bit 5 = 0 DB21, ... DBX25.7 or DB21, ... DBX1.7 has no effect on the following axis/spindle. The state of the following axis/spindle with reference to the axis/ spindle disable is derived solely from the state of the leading axes/spindles.
  • Page 313 M3: Coupled axes 5.5 Generic coupling Effect of bits 3/5 and 4/6 The effects of the different motion components on the following axis/spindle as a function of the associated axis/spindle disable are illustrated in the table below: Meaning A/S disable A/S disable A/S disable CPMVDI...
  • Page 314 M3: Coupled axes 5.5 Generic coupling A/S disable: Axis/spindle disable This refers to the resulting internal state of the axis/spindle disable. The spindle disable, which is set via the NC/PLC interface signal DB31, … DBX1.3 (axis/spindle disable), can be overwritten by states such as program test (DB21, … DBX25.7 or DB21, … DBX1.7) and SERUPRO, thus generating an axis/spindle state which differs from the NC/PLC interface signal.
  • Page 315: Coupling Cascading

    M3: Coupled axes 5.5 Generic coupling 5.5.6 Coupling cascading Coupling cascades The coupling modules can be connected in series. The following axis/spindle of a coupling module then becomes the leading axis/spindle of another coupling module. This results in a coupling cascade. Multiple coupling cascades in series is also possible.
  • Page 316 M3: Coupled axes 5.5 Generic coupling Assignment to existing coupling commands The number of adaptive cycles corresponds to the number of existing coupling commands. The assignment is as follows: Coupling commands Adaptive cycle TRAILON cycle700 TRAILOF cycle701 LEADON cycle702 LEADOF cycle703 COUPDEF cycle704...
  • Page 317: Coupling Types (cpsettype)

    M3: Coupled axes 5.5 Generic coupling 5.5.7.2 Coupling types (CPSETTYPE) Coupling types If presetting of coupling types (coupled motion, master value coupling, electronic gearbox and synchronized spindle) is required, when creating the coupling module (CPON/CPLON or CPDEF/CPLDEF), the keyword CPSETTYPE needs to be used also. Programming Syntax: CPSETTYPE[FAx]= <value>...
  • Page 318 M3: Coupled axes 5.5 Generic coupling Default settings Presettings of programmable coupling characteristics for various coupling types can be found in the following table: Keyword Coupling type Default Coupled motion Master value Electronic gear Synchronous (CP) (TRAIL) coupling (EG) spindle (LEAD) (COUP) CPDEF...
  • Page 319 M3: Coupled axes 5.5 Generic coupling Keyword Coupling type CPLOUTTR CPLOUTSC CPSYNCOP MD37200 MD37200 MD37200 CPSYNFIP MD37210 MD37210 MD37210 CPSYNCOV MD37220 MD37220 CPSYNFIV MD37230 MD37230 CPMBRAKE CPMVDI Bit 3 Bit 4 Bit 5 Bit 6 Legend: Pre-processing Main run depends additionally on MD22621 - not relevant or not allowed Additional properties Value ranges or availability of additional properties of a set coupling type (CPSETTYPE) can be found in the following table:...
  • Page 320 M3: Coupled axes 5.5 Generic coupling Master value Synchronous Default Coupled motion Electronic gear coupling ( spindle (CP) (TRAIL) (EG) LEAD) (COUP) Implicit selection/ deselection of state control Legend: also refer to: Function Manual, Extended Functions; Synchronous Spindle (S3) - not relevant or not allowed Availability of specified characteristics depends on the available version (see " Preconditions [Page 268] ").
  • Page 321: Projected Coupling (cpres)

    M3: Coupled axes 5.5 Generic coupling CPSETTYPE= TRAIL LEAD COUP CPSETVAL Alarm 16686 Alarm 16686 Alarm 16686 with CMDVEL with CMDVEL with CMDVEL CPFRS Alarm 16686 with BCS CPBC Alarm 16686 Alarm 16686 CPFPOS + CPON Alarm 16686 Alarm 16686 CPFPOS + CPOF Alarm 16686 Alarm 16686...
  • Page 322: Cross-channel Coupling, Axis Replacement

    M3: Coupled axes 5.5 Generic coupling Following spindle: Type: AXIS Range of values: All defined spindle identifiers in the channel Example: Programming Comment CPLON[S2]=(S1) CPSETTYPE[S2]="COUP" ; Creates a coupling module for following spindle S2 with leading spindle S1 and activates the coupling module.
  • Page 323: Behavior With Rotary Axes

    M3: Coupled axes 5.5 Generic coupling Leading axes Axis change of leading axes can be performed independently of the state of the coupling. 5.5.9 Behavior with rotary axes Rotary axes as leading or following axes It is possible to couple rotary axes to a linear axis and vice versa. Note that a direct assignment of degrees to mm must be performed using the coupling rule.
  • Page 324 M3: Coupled axes 5.5 Generic coupling Programming Comment N50 A=IC(100) ; A traverses from 40 degrees to 140 degrees, X traverses through additional 50mm to 250. N60 A=ACP(80) ; A traverses in the positive direction to 50 degrees, the traversing path is 300 degrees in the positive direction.
  • Page 325: Behavior During Power On

    M3: Coupled axes 5.5 Generic coupling 5.5.10 Behavior during POWER ON, ... Power on No coupling is active at power ON. Coupling modules are not available. RESET The behavior on RESET can be set separately for each coupling module (see CPMRESET). The coupling can be activated, deactivated or the current state can be retained.
  • Page 326: Tracking The Deviation From Synchronism

    M3: Coupled axes 5.5 Generic coupling The rapid stop is set at: • Stop A and Stop C (Safety Integrated) • Alarms with rapid stop as configured braking behavior • Reaching the hardware limit switch and rapid stop as configured braking behavior: MD36600 $MA_BRAKE_MODE_CHOICE = 1 Switchover to actual-value coupling.
  • Page 327 M3: Coupled axes 5.5 Generic coupling When workpieces are transferred from front to rear machining, a position offset may result from the closing of the workpiece receptacle. This could be down to square-edged workpieces or due to the generation of an angular momentum when the workpiece receptacle (chuck) is closed quickly during a movement.
  • Page 328: Measuring The Deviation From Synchronism

    M3: Coupled axes 5.5 Generic coupling 5.5.12.2 Measuring the deviation from synchronism The controller measures the difference between the setpoint positions and actual positions when the following spindle is operating in synchronism. This results in a correction value, which is saved in a system variable. Requirements The following requirements must be met to enable the controller to calculate the correction value:...
  • Page 329 M3: Coupled axes 5.5 Generic coupling Activation Measuring and tracking of the deviation from synchronism are activated by setting the following NC/PLC interface signal to "1": DB31, ... DBX31.6 (track synchronism) The signal only has an effect on the following spindle. Note In the following cases, signal DB31, ...
  • Page 330: Entering The Deviation From Synchronism Directly

    M3: Coupled axes 5.5 Generic coupling The correction value is the difference between the setpoint and actual-value synchronism positions. This value is saved for the corresponding following spindle in the following system variable: $AA_COUP_CORR[S<n>] (following spindle: correction value for synchronous spindle coupling) Note You must ensure that the velocity of the leading and following axes is kept as constant as...
  • Page 331: Diagnostics For Synchronism Correction

    M3: Coupled axes 5.5 Generic coupling The correction value is incorporated into the setpoint value calculation for the following spindle, in the coupling module. Resetting the setpoint by the coupling offset relieves the tension between the leading and following spindles. The synchronism signals are produced by comparing the actual values with the corrected setpoints.
  • Page 332: Resetting Synchronism Correction

    M3: Coupled axes 5.5 Generic coupling 5.5.12.6 Resetting synchronism correction Versions Synchronism correction can be reset in the following ways: • Writing value "0" to variable $AA_COUP_CORR[S<n>]. Synchronism correction is suppressed via a ramp with reduced accelerating power (just as when a correction value is implemented).
  • Page 333: Limitations And Constraints

    M3: Coupled axes 5.5 Generic coupling Figure 5-11 Time diagram for synchronizing and resetting synchronism correction Note If the correction path has not been traversed in full and the NC/PLC interface signal DB31, ... DBX31.7 (reset synchronism correction) has not been reset, writing to variable $AA_COUP_CORR[S<n>] will not have any effect.
  • Page 334 M3: Coupled axes 5.5 Generic coupling Correction value If the correction value $AA_COUP_CORR is being written via a part program/synchronized action, as well as being determined due to the "track the deviation from synchronism" function being activated (DB31, ... DBX31.6 = 1), the most recent event to occur is always the one that takes effect.
  • Page 335: Dynamic Response Of Following Axis

    M3: Coupled axes 5.6 Dynamic response of following axis Dynamic response of following axis 5.6.1 Parameterized dynamic limits The dynamics of the following axis is limited by the following MD values: MD32000 $MA_MAX_AX_VELO (maximum axis velocity) MD32300 $MA_MAX_AX_ACCEL (Maximum axis acceleration) 5.6.2 Programmed dynamic limits 5.6.2.1...
  • Page 336 M3: Coupled axes 5.6 Dynamic response of following axis Programming in synchronized actions The possibility of programming VELOLIMA[FA] and ACCLIMA[FA]in synchronized actions depends on the coupling type:. Coupling type Parts program Synchronized actions Tangential correction Coupled motion Master value coupling Electronic gearbox Synchronous spindle Generic coupling...
  • Page 337: Examples

    M3: Coupled axes 5.6 Dynamic response of following axis POWER ON During POWER ON the values of VELOLIMA and ACCLIMA are initialized to 100%. Mode change The dynamic offsets remain valid only on transition from AUTO → JOG mode. RESET The validities of the (VELOLIMA and ACCLIMA) dynamic offsets after RESET depend on the setting in the channel-specific machine data: MD22410 $MC_F_VALUES_ACTIVE_AFTER_RESET (F Function is active even after...
  • Page 338: System Variables

    M3: Coupled axes 5.6 Dynamic response of following axis Master value coupling Axis 4 is coupled to X via a master value coupling. The acceleration capability of the following axis is limited to 80% of maximum acceleration. N120 ACCLIMA[AX4]=80 ; 80% N130 LEADON(AX4,X,2) ;...
  • Page 339: Boundary Conditions

    M3: Coupled axes 5.7 Boundary conditions Boundary conditions 5.7.1 General boundary conditions NOTICE Drive optimization At a SINAMICS S120 drive unit, a maximum of 3 drives can be optimized or measured at the same time (speed controller optimization/function generator). Therefore, for a coupling with more than 3 coupled drives at the same time, we recommend that these are distributed over several drive units.
  • Page 340 M3: Coupled axes 5.7 Boundary conditions External master value axes When using the REPOS or REPOSA parts program instructions in conjunction with external master value axes, it should be ensured that these are released by the channel or switched to a "neutral state"...
  • Page 341: Examples

    M3: Coupled axes 5.8 Examples Examples 5.8.1 Coupled motion Application Example: Two-sided machining Example 1 Example of an NC part program for the axis constellation shown in Fig.: TRAILON(V,Y,1) ; Activation of 1st coupled axis group TRAILON(W,Z,-1) ; Activation of 2nd coupled axis group G0 Z10 ;...
  • Page 342: Curve Tables

    M3: Coupled axes 5.8 Examples Example 2 The dependent and independent movement components of a coupled motion axis are added together for the coupled motion. The dependent component can be regarded as a co-ordinate offset with reference to the coupled motion axis. N01 G90 G0 X100 U100 N02 TRAILON(U,X,1) ;...
  • Page 343 M3: Coupled axes 5.8 Examples %_N_TAB_1_NOTPERI_MPF N19 PO[X]=(105.941,1.961,-0.938) PO[Y]=(11.708,-6.820,-1.718) N20 PO[X]=(132.644,-0.196,-0.053) PO[Y]=(6.815,-2.743,0.724) N21 PO[X]=(147.754,-0.116,0.103) PO[Y]=(3.359,-0.188,0.277) N22 PO[X]=(174.441,0.578,-0.206) PO[Y]=(0.123,1.925,0.188) N23 PO[X]=(185.598,-0.007,0.005) PO[Y]=(-0.123,0.430,-0.287) N24 PO[X]=(212.285,0.040,-0.206) PO[Y]=(-3.362,-2.491,0.190) N25 PO[X]=(227.395,-0.193,0.103) PO[Y]=(-6.818,-0.641,0.276) N26 PO[X]=(254.098,0.355,-0.053) PO[Y]=(-11.710,0.573,0.723) N26 PO[X]=(254.098,0.355,-0.053) PO[Y]=(-11.710,0.573,0.723) N27 PO[X]=(310.324,0.852,-0.937) PO[Y]=(-7.454,11.975,-1.720) N28 PO[X]=(328.299,-0.209,0.169) PO[Y]=(-3.197,0.726,-0.643) N29 PO[X]=(360.031,0.885,-0.413) PO[Y]=(0.000,-3.588,0.403) CTABEND N30 M30 Definition of a periodic curve table...
  • Page 344: Electronic Gear For Gear Hobbing

    M3: Coupled axes 5.8 Examples N10 DEF REAL DEPPOS N160 X0 N170 LEADOF(Y,X) N180 DEPPOS = CTAB(75.0,2,GRADIENT) ; Reading the table position at master value 75.0 from the curve table with Table No. 2 N190 G0 X75 Y=DEPPOS ; Positions of leading and following axis N200 LEADON(Y,X,2) ;...
  • Page 345 M3: Coupled axes 5.8 Examples Figure 5-12 Definition of axes on a gear hobbing machine (example) The functional interrelationships on the gear hobbing machine are as follows: In this case, the workpiece table axis (C) is the following axis which is influenced by three master drives.
  • Page 346 M3: Coupled axes 5.8 Examples = Rotational speed of milling spindle (B) = Number of gears of the hobbing machine = Number of teeth of the workpiece = Feed velocity of axial axis (Z) = Feed velocity of tangential axis (Y) = Axial differential constant = Tangential differential constant Quantities which influence the setpoint of workpiece axis C...
  • Page 347 M3: Coupled axes 5.8 Examples Extract from parts program: Program code Comment EGDEF(C,B,1,Z,1,Y,1) ; Definition of EG axis grouping with setpoint coupling (1) from B, Z, Y to C (following axis). EGON(C,"FINE",B,z0,z2,Z,udz,z2,Y,udy,z2) ; Activate coupling. … Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 348: Extended Example With Non-linear Components

    M3: Coupled axes 5.8 Examples 5.8.3.2 Extended example with non-linear components Introduction The following example extends the example in Figure "Axis Definition of a Hobbing Machine" in Chapter "Example of Linear Couplings" with the following: • Machine error compensations which are not linearly dependent on the Z axis, and •...
  • Page 349 M3: Coupled axes 5.8 Examples The following section of a part program is intended to illustrate the general concept; supplementary curve tables and gear wheel/machine parameters are still to be added. Components to be added are marked with <...> . Stated parameters may also have to be modified, e.g.
  • Page 350 M3: Coupled axes 5.8 Examples N810 EGONSYN(C99, "NOC", ; Switch-on of leading axis B <SynPosC99>, B, <SynPosC99_B>, 18, 2, & Y, <SynPosC99_Y>, ; Switch-on of leading axis Y R1 * π, 1, & Z, <SynPosC99_Z>, ; Switch-on of leading axis Z 10, 1) ;...
  • Page 351 M3: Coupled axes 5.8 Examples The system variables listed below are only used for explanatory purposes! ; ************** Gear X (G1) $AA_EG_TYPE[X, Z] = 1 ; Setpoint value coupling $AA_EG_NUMERA[X, Z] = 1 ; curve table No. = 1 $AA_EG_DENOM[X, Z] = 0 ;...
  • Page 352 M3: Coupled axes 5.8 Examples $AA_EG_NUMERA[C99, B] = 10 ; numerator for coupling factor $AA_EG_DENOM[C99, B] = 1 ; denominator for coupling factor $P_EG_BC[C99] = "NOC" ; Block change criterion $AA_EG_NUM_LA[C99] = 3 ; Number of leading axes $AA_EG_AX[0, C99] = Y ;...
  • Page 353 M3: Coupled axes 5.8 Examples $MA_IS_ROT_AX[AX1] = FALSE ; *************** Axis 2, "Y" $MC_AXCONF_GEOAX_NAME_TAB[1]="Y" $MC_AXCONF_CHANAX_NAME_TAB[1] = "Y" $MC_AXCONF_MACHAX_USED[1] = 2 $MN_AXCONF_MACHAX_NAME_TAB[1] = "Y1" $MA_SPIND_ASSIGN_TO_MACHAX[AX2] = 0 $MA_IS_ROT_AX[AX2] = FALSE ; *************** Axis 3, "Z" $MC_AXCONF_GEOAX_NAME_TAB[2] = "Z" $MC_AXCONF_CHANAX_NAME_TAB[2] = "Z" $MC_AXCONF_MACHAX_USED[2]=3 $MN_AXCONF_MACHAX_NAME_TAB[2] = "Z1"...
  • Page 354: Generic Coupling

    M3: Coupled axes 5.8 Examples $MA_IS_ROT_AX[AX6] = TRUE $MA_ROT_IS_MODULO[AX6] = TRUE ; ************** Axis 10, "C99" $MC_AXCONF_CHANAX_NAME_TAB[9] = "C99" $MC_AXCONF_MACHAX_USED[9]=10 $MA_SPIND_ASSIGN_TO_MACHAX[AX10] = 0 $MA_IS_ROT_AX[AX10] = TRUE $MA_ROT_IS_MODULO[AX10] = TRUE 5.8.4 Generic coupling 5.8.4.1 Programming examples Direct switch on/off with one leading axis A coupling module is created and activated with following axis X2 and leading axis X1.
  • Page 355 M3: Coupled axes 5.8 Examples CPOF=(X2) CPLA[X1]=(Z) ; The coupling with leading axis Z is deactivated with CPOF, the coupling with leading axis X1 is retained. The created coupling module remains created. Selective switch-on/off with three leading axes A coupling module is created and activated with following axis X2 and leading axes X1, Z and N10 CPDEF=(X2) CPLA[X2]=(X1) CPLA[X2]=(Z) CPLA[X2]=(A) N20 CPON=(X2) ;...
  • Page 356: Adapt Adaptive Cycle

    M3: Coupled axes 5.8 Examples 5.8.4.2 Adapt adaptive cycle Target Coupled motion in the machine co-ordinate system must be possible with the existing coupling command TRAILON. The adaptive cycle for TRAILON is supplemented with the coupling characteristic "Co-ordinate reference" (CPFRS). Procedure 1.
  • Page 357: Data Lists

    M3: Coupled axes 5.9 Data lists Data lists 5.9.1 Machine data 5.9.1.1 NC-specific machine data Number Identifier: $MN_ Description 11410 SUPPRESS_ALARM_MASK Mask for supporting special alarm outputs 11660 NUM_EG Number of possible electronic gears 11750 NCK_LEAD_FUNCTION_MASK Functions for master value coupling 11752 NCK_TRAIL_FUNCTION_MASK couple motion functions...
  • Page 358: Axis/spindle­specific Machine Data

    M3: Coupled axes 5.9 Data lists 5.9.1.3 Axis/spindle­specific machine data Number Identifier: $MA_ Description 30130 CTRLOUT_TYPE Setpoint output type 30132 IS_VIRTUAL_AX Axis is virtual axis 30455 MISC_FUNCTION_MASK Axis functions 35040 SPIND_ACTIVE_AFTER_RESET Own spindle RESET 37160 LEAD_FUNCTION_MASK Functions for master value coupling 37200 COUPLE_POS_TOL_COARSE Threshold value for "Coarse synchronism"...
  • Page 359 M3: Coupled axes 5.9 Data lists Identifier Meaning $AA_EG_TYPE Type of coupling for leading axis b $AA_IN_SYNC[FA] Synchronization status of the following axis $AA_LEAD_P Current leading position value (modulo reduced). $AA_LEAD_P_TURN current leading value - position component lost as a result of modulo reduction. $AA_LEAD_SP simulated master value - position MCS $AA_LEAD_SV...
  • Page 360 M3: Coupled axes 5.9 Data lists Identifier Meaning $AA_CPSYNFIV Threshold value of velocity synchronism "Fine" (main run) $AA_CPLINSC Scaling factor of the input value of a leading axis (main run) $AA_CPLINTR Offset value of the input value of a leading axis (main run) $AA_CPLOUTSC Scaling factor of the output value of the coupling (main run) $AA_CPLOUTTR...
  • Page 361: Signals

    M3: Coupled axes 5.9 Data lists Identifier Meaning $PA_CPLINTR Offset value of the input value of a leading axis (pre-processing) $PA_CPLOUTSC Scaling factor of the output value of the coupling (pre-processing) $PA_CPLOUTTR Offset value of the output value of the coupling (pre-processing) $PA_CPSETTYPE Preset coupling type $PA_JERKLIMA...
  • Page 362: Signals From Axis/spindle

    M3: Coupled axes 5.9 Data lists 5.9.4.2 Signals from axis/spindle DB number Byte.Bit Name 31, ... 83.1 Limiting of differential speed 31, ... 83.5 Spindle in setpoint range, differential speed 31, ... 83.6 Speed limit exceeded, total speed 31, ... 83.7 Actual direction of rotation clockwise, total speed 31, ...
  • Page 363: R3: Extended Stop And Retract

    R3: Extended stop and retract Brief description The extended stop and retract function - subsequently called ESR - offers the possibility of flexibly responding when a fault situation occurs as a function of the process: • Extended stop Assuming that the specific fault situation permits it, all of the axes, enabled for extended stopping, are stopped in an orderly fashion.
  • Page 364: Control-managed Esr

    R3: Extended stop and retract 6.2 Control-managed ESR Control-managed ESR 6.2.1 Extended stop and retract (ESR) Using the Extended stop/retract (ESR)" function, axes that have been enabled for the function are stopped and retracted in a defined, delayed fashion. This is done to quickly separate the tool and workpiece in certain programmable system states.
  • Page 365: Drive-independent Reactions

    R3: Extended stop and retract 6.2 Control-managed ESR In order to perform retraction outside the AUTOMATIC mode as well, triggering of this function is linked to the system variable $AC_ESR_TRIGGER. Retraction initiated via $AC_ESR_TRIGGER is locked, in order to prevent multiple retractions. 6.2.2 Drive-independent reactions Generator operation...
  • Page 366: Power Failure Detection And Bridging

    R3: Extended stop and retract 6.2 Control-managed ESR 6.2.3 Power failure detection and bridging DC link voltage limit values The DC link is monitored against the limit values shown in the following diagram: Figure 6-1 DC link voltage limit values The drive and DC link pulses are cancelled at specific voltage levels, which means that the drives coast-down.
  • Page 367: Nc-controlled Extended Stop

    R3: Extended stop and retract 6.2 Control-managed ESR 6.2.4 NC-controlled extended stop Parameter assignment NC-controlled extended stopping is parameterized with: MD37500 $MA_ESR_REACTION = 22 Definition of the timing behavior The following machine data is used to define the timing for extended stopping: MD21380 $MC_ESR_DELAY_TIME1 (delay time, ESR axes) MD21381 $MC_ESR_DELAY_TIME2 (ESR time for interpolatory braking) Delay time for ESR axes...
  • Page 368 R3: Extended stop and retract 6.2 Control-managed ESR Precondition The precondition in this case is that at least one of the axes involved is parameterized as NC controlled retraction or stopping axis: MD37500 $MA_ESR_REACTION > 20 For axes, which are not parameterized as NC controlled retraction or stopping axis, fast braking with subsequent tracking is realized immediately that extended stopping starts ($AC_ESR_TRIGGER = 1).
  • Page 369: Nc-controlled Retraction

    R3: Extended stop and retract 6.2 Control-managed ESR 6.2.5 NC-controlled retraction Parameter assignment NC-controlled retraction is parameterized with: MD37500 $MA_ESR_REACTION = 21 Behavior If the channel-specific system variable $AC_ESR_TRIGGER = 1 is set, and if there is a retraction axis in this channel and $AA_ESR_ENABLE=1 is set for this, then LIFTFAST is activated in this channel.
  • Page 370 R3: Extended stop and retract 6.2 Control-managed ESR Supplementary conditions Retraction and/or rapid lift is not executed for the following axes: • Axes, which are not permanently assigned a channel • Axes, which are in the open-loop speed-controlled mode (spindles) •...
  • Page 371 R3: Extended stop and retract 6.2 Control-managed ESR Examples for the behavior of path axes for different enable signals "NC-controlled retraction" is configured for path axes X and Y: • ESR_REACTION[X] =21 • ESR_REACTION[Y] =21 1. "Extended stop and retract" and retraction motion is enabled for both path axes: $AA_ESR_ENABLE(X)=1 $AA_ESR_ENABLE(Y)=1 POLFMASK(X,Y)
  • Page 372 R3: Extended stop and retract 6.2 Control-managed ESR Value Description Response to the axial NC/PLC interface signal DB31 DBB4.3 (feed stop) or context-sensitive interpolator stop. Retraction motion stop for axial feed stop or context-sensitive interpolator stop No retraction motion stop for axial feed stop or context-sensitive interpolator stop Response to the channel-spec.
  • Page 373 R3: Extended stop and retract 6.2 Control-managed ESR NOTICE Frames with rotation Frames with rotation do not influence the retraction position of machine axes. For the same axis names of a channel and machine axis, retraction motion is executed in the workpiece coordinate system.
  • Page 374: Possible Trigger Sources

    R3: Extended stop and retract 6.2 Control-managed ESR Change coordinate system If the coordinate system is to be changed, rapid lift must first be deactivated using POLFMASK orPOLFMLIN, and only then can programming commence with POLF in the new coordinate system.
  • Page 375: Logic Gating Functions: Source And Reaction Linking

    R3: Extended stop and retract 6.2 Control-managed ESR General trigger sources • Digital inputs (NCU module or terminal block) or the internal control image of digital outputs that can be read back: $A_IN, $A_OUT • Channel status: $AC_STAT • VDI signals •...
  • Page 376: Activating

    R3: Extended stop and retract 6.2 Control-managed ESR 6.2.8 Activating Option The function "Extended stop and retract" is an option. Axis-specific function enable ($AA_ESR_ENABLE) The axis-specific function enable is realized using the system variable: $AA_ESR_ENABLE[<axis>] = 1 Axis-specific enable for extended stopping An axis is enabled for extended stopping with: MD37500 $MA_ESR_REACTION[axis] = 22 Axis-specific enable for retraction...
  • Page 377 R3: Extended stop and retract 6.2 Control-managed ESR DC link energy The energy available in the DC link of the drive units when the line supply fails is calculated as follows: E = 1/2 * C * (VDClink - VDClink alarm Energy in Wattseconds [Ws] Total capacity of intermediate circuit in Farad [F]...
  • Page 378 R3: Extended stop and retract 6.2 Control-managed ESR Table 6-1 SINAMICS ALM (infeed units): Nominal and minimum buffer times Backup time t Buffer time t Max. capacitance Energy content Energy content [kW] [mF] ) [Ws] ) [Ws] with P [ms] with P [ms] 6000...
  • Page 379: Control System Response

    R3: Extended stop and retract 6.2 Control-managed ESR The energy stored in an axis can be calculated as follows: E = 1/2 * Θ * ω Θ Total moment of inertia ω Angular velocity at the instant in time that a switch-over is made to generator operation This energy is fed back into the DC link with an efficiency of approx.
  • Page 380 R3: Extended stop and retract 6.2 Control-managed ESR Examples for axes with path relationship For the subsequent examples, two path axes X and Y are assumed, which are configured as NC-controlled retraction axes and are programmed for the retraction positions: •...
  • Page 381: Power Off/power On

    R3: Extended stop and retract 6.2 Control-managed ESR Initial situation Response in the case of ESR • $AA_ESR_ ENABLE[X] = 1 B is not enabled for ESR. As B is not a path axis, B is immediately stopped with a rapid stop. •...
  • Page 382: Part Program Start, Nc Start

    R3: Extended stop and retract 6.2 Control-managed ESR 6.2.10.4 Part program start, NC start In order that a defined initial state is available when a part program starts, the programmed absolute retraction positions and the enable signals of the retraction axes are deleted when the part program starts.
  • Page 383: Esr Executed Autonomously In The Drive

    R3: Extended stop and retract 6.3 ESR executed autonomously in the drive ESR executed autonomously in the drive 6.3.1 Fundamentals Function Drive-integrated extended stop and retract (ESR) enables the fast separation of workpiece and tool independent of the higher-level control (NC). For this purpose, the following axial functions can be configured in the drive: •...
  • Page 384: Configuring Stopping In The Drive

    R3: Extended stop and retract 6.3 ESR executed autonomously in the drive Note SINAMICS S120, function module "ESR" To activate the function module "ESR", the configuration mode must first be enabled in the SINAMICS S120: • p0009 = 2 (defining the drive type/function module) The "ESR"...
  • Page 385: Configuring Retraction In The Drive

    R3: Extended stop and retract 6.3 ESR executed autonomously in the drive Time at which stopping was triggered Instant in time after the time that was configured in p0892 has expired OFF3/OFF1 Braking ramp as a function of p0891 Figure 6-4 Response to drive-integrated stopping Feedback signal The stopping status is signaled back to the control.
  • Page 386 R3: Extended stop and retract 6.3 ESR executed autonomously in the drive Parameter Description p0892 ESR: Timer The parameter specifies the total time that elapses to reach the speed specified in p0893 followed by constant velocity travel. This is followed by an OFF1 or OFF3 ramp depending on the parameterization in p0891.
  • Page 387: Configuring Generator Operation In The Drive

    R3: Extended stop and retract 6.3 ESR executed autonomously in the drive 6.3.4 Configuring generator operation in the drive The generator mode for the drive-integrated ESR is configured using the following drive parameters: Parameter Description p0888 ESR: Configuration Value Meaning Generator operation (Vdc controller) Parameter Description...
  • Page 388: Esr Is Enabled Via System Variable

    R3: Extended stop and retract 6.3 ESR executed autonomously in the drive Generator minimum speed The lower limit of the motor speed of the generator axis is configured using drive parameter p2161: Parameter Description p2161 Speed threshold value 3 Speed threshold value for the message: |n_act| < speed threshold value 3 Feedback signal The generator operation status is signaled back to the control.
  • Page 389: Feedback Of The Esr Status

    R3: Extended stop and retract 6.3 ESR executed autonomously in the drive Note The trigger signal must be active in the part program/synchronized action for at least 2 IPO cycles to ensure that the PROFIdrive telegram is transferred to the drive. Mapping in the drive unit System variable $AN_ESR_TRIGGER is mapped to drive parameter p0890.0.
  • Page 390: Acknowledge Esr Reactions

    R3: Extended stop and retract 6.3 ESR executed autonomously in the drive Interrelationship between signals MELDW System variable NC/PLC interface signal MELDW.Bit9 $AA_ESR_STAT .Bit2 (ESR initiated / generator operation (ESR is triggered) active (r0887.12)) MELDW.Bit4 $AA_ESR_STAT .Bit3 DB31, … DBX95.0 (VDC_min controller is active (Vdc link (DC link undervoltage) (VDC link <...
  • Page 391: Configuring Esr In The Part Program

    R3: Extended stop and retract 6.3 ESR executed autonomously in the drive System variable and drive parameters The following diagram shows the relationship between system variables and drive parameters when triggering and acknowledging ESR reactions. ① NC: Enabling the ESR reaction via $AA_ESR_ENABLE = 1 (axis-specific) ②...
  • Page 392 R3: Extended stop and retract 6.3 ESR executed autonomously in the drive Function: ESRS(...):(stopping) Using the ESRS(...) function, drive parameters can be changed regarding the drive- integrated "stop" ESR function. Syntax ESRS(<access_1>,<stopping time_1>[,...,<axis_n>,<stopping time_n>]) A maximum of 5 axes can be programmed in a function call; n = 5 Meaning Special features of the function: •...
  • Page 393 R3: Extended stop and retract 6.3 ESR executed autonomously in the drive Parameter: <Axis_n> Function: For the specified axis, writes to drive parameter p0888 (configuration): p0888 = 2 Type: AXIS Range of values: Channel axis identifier Parameter: <retraction velocity _n> Function: For the axis specified under <Axis_n>, writes to drive parameter p0893 (retraction speed):...
  • Page 394 R3: Extended stop and retract 6.3 ESR executed autonomously in the drive the drive-integrated ESR for an axis is enabled ($AA_ESR_ENABLE[<axis>] == 1), then it is not permissible to change the axial transmission ratio. NOTICE Changing the transmission ratio If the drive-integrated ESR is not enabled for an axis ($AA_ESR_ENABLE[<axis>] == 0), then the axial transmission ratio can be changed.
  • Page 395: Configuring The Esr Via The Plc User Program

    R3: Extended stop and retract 6.3 ESR executed autonomously in the drive Reset behavior The parameter values written using the functions ESRS(...) and ESRR(...) are overwritten with the parameter values saved in the drive when the drive powers-up or for a drive warm restart.
  • Page 396 R3: Extended stop and retract 6.3 ESR executed autonomously in the drive • MD36963 $MA_SAFE_VELO_STOP_REACTION (stop response, safely reduced speed) • MD10089 $MN_SAFE_PULSE_DIS_TIME_BUSFAIL (wait time pulse cancellation when the bus fails) Delay times in the drive are configured using the following drive parameters: •...
  • Page 397: Esr And Safety Integrated (828d)

    R3: Extended stop and retract 6.3 ESR executed autonomously in the drive 6.3.12 ESR and Safety Integrated (828D) No feedback signal of the safety stop reaction Within the scope of SINUMERIK 828D, the safety stop reaction currently active in the drive is not signaled back to the control.
  • Page 398: Boundary Conditions

    R3: Extended stop and retract 6.4 Boundary conditions Boundary conditions Operational performance of the components The drive components involved in the extended stopping and retraction must be capable of functioning. If one of these components fails, the full scope of the described reaction no longer applies.
  • Page 399: Examples

    R3: Extended stop and retract 6.5 Examples Examples 6.5.1 NC-controlled reactions Example using NC-controlled reactions. The important details are specified. Exercise The A axis is to operate as the generator drive, while the X axis should retract 10 mm at maximum speed in the event of a fault, and axes Y and Z should stop after a delay of 100 ms so that the retraction axis has time to cancel the mechanical coupling.
  • Page 400: Retraction While Thread Cutting

    R3: Extended stop and retract 6.5 Examples Trigger conditions and static synchronized actions Example 1: Trigger condition is the occurrence of alarms, which activate the follow-up (tracking) mode: Program code IDS=02 WHENEVER ($AC_ALARM_STAT B_AND 'H2000')>0 DO $AC_ESR_TRIGGER=1 Example 2: Trigger condition is when the ELG synchronous monitoring responds, if, e.g. Y is defined as ELG following axis and the max.
  • Page 401: Rapid Lift, Absolute And Incremental

    R3: Extended stop and retract 6.5 Examples Program code Comment N80 POLFMASK(Z) Disable retraction, axis X Y and Enable retraction, axis Z N90 Y10 ; Retraction response, axial: Z (abs.) N100 POLFMASK() ; Disable retraction of all axes 6.5.4 Rapid lift, absolute and incremental Retraction to absolute positions and through an incremental distance: Program code Comment...
  • Page 402 R3: Extended stop and retract 6.5 Examples Program code Comment N90 Z100 G1 F1000 Retraction response: - linear relation: X (inc.), Y (abs.) - axial: Z (abs.) N95 POLF[X]=10 ; Retraction position axis X, absolute N100 Y0 G1 F1000 Retraction response: - linear relation: X (inc.), Y (abs.) - axial: Z (abs.) N110 POLFMLIN()
  • Page 403: Data Lists

    R3: Extended stop and retract 6.6 Data lists Data lists 6.6.1 Machine data 6.6.1.1 Channel­specific machine data Number Identifier: $MC_ Description 21204 LIFTFAST_STOP_COND Stop characteristics for rapid lift 21380 ESR_DELAY_TIME1 Delay time (STOPBYALARM, NOREAD) for ESR axes 21381 ESR_DELAY_TIME2 Time for interpolatory braking of ESR axes 6.6.1.2 Axis/spindle­specific machine data Number...
  • Page 404: Signals To Axis/spindle

    R3: Extended stop and retract 6.6 Data lists 6.6.3.2 Signals to axis/spindle DB number Byte.Bit Name 31, ... Feed stop 6.6.3.3 Signals from axis/spindle DB number Byte.bit name 31, ... 95.0 VDC link < alarm threshold 31, ... 95.3 Generator operation – minimum speed fallen below 31, ...
  • Page 405: S9: Setpoint Switchover

    S9: Setpoint switchover Brief description Function The "setpoint exchange" function is used in applications in which the same motor is used to traverse different machine axes. Replacing the technology function "setpoint changeover" (TE5) The "setpoint changeover" function replaces the technology function "setpoint changeover" (TE5).
  • Page 406: Startup

    S9: Setpoint switchover 7.2 Startup Startup The "setpoint exchange" function is required in applications in which a single motor needs to drive a number of axes/spindles such as, for example, on milling machines with special millheads. The spindle motor is operated as both a tool drive and a millhead orienting mechanism.
  • Page 407 S9: Setpoint switchover 7.2 Startup Figure 7-3 Setpoint exchange with 2 axes Activation The setpoint is exchanged and the corresponding interface signals are evaluated in the PLC user program. Note An existing PLC user program may need to be modified due to changes in the meaning of interface signals in comparison with the technology card solution.
  • Page 408 S9: Setpoint switchover 7.2 Startup Transfer conditions • Axis standstill of all axes involved. • Special functions such as reference point approach, measuring, travel to fixed stop, function generator, star/delta changeover, drive parameter set changeover are not active in the axis with drive control. •...
  • Page 409: Interface Signals

    S9: Setpoint switchover 7.3 Interface signals Interface signals Axis­specific signals Despite assignment of a drive to several machine axes, the use of NC/PLC interface signals remains unchanged. This requires an explicit coordination of access operations to the NC/ PLC interface signals in the PLC user program. Status signals The status signals contained in the following bytes are always displayed in the same way for all of the machine axes involved in the changeover:...
  • Page 410 S9: Setpoint switchover 7.3 Interface signals Figure 7-4 Schematic setpoint changeover from machine axes AX1 to AX2 Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 411: Interrupts

    S9: Setpoint switchover 7.4 Interrupts Interrupts Drive alarms are only displayed for axes with drive control Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 412: Position Control Loop

    S9: Setpoint switchover 7.5 Position control loop Position control loop During setpoint exchange, the drive train and therefore the position control loop are isolated. In order to avoid instabilities, exchange only takes place at standstill and once all servo enables have been deleted. The use of a single drive means that only one of the control loops can be closed at any one time.
  • Page 413: Reference Points

    S9: Setpoint switchover 7.6 Reference points Reference points The use of load-side encoders does not affect the axial reference points of a setpoint exchange. However, the mechanical reference to the load can be lost following setpoint exchange for a load-side position derived solely from the motor encoder. These types of axis must be referenced again after every setpoint exchange.
  • Page 414: Constraints

    S9: Setpoint switchover 7.7 Constraints Constraints "Parking" operating status The "parking" operating state can only be exited using the axis with the drive checking function. Service display drive The "Drive Service Display" HMI diagnostics screen does not take into account changes in assignments between the machine axes and the drive.
  • Page 415: Data Lists

    S9: Setpoint switchover 7.8 Data lists Data lists 7.8.1 Machine data 7.8.1.1 Axis/spindle­specific machine data Number Identifier: $MA_ Description 30130 CTRLOUT_TYPE Output type of setpoint 30200 NUM_ENCS Number of encoders 30220 ENC_MODULE_NR Actual-value assignment: Drive number / measurement circuit number 30230 ENC_INPUT_NR Actual-value assignment:...
  • Page 416 S9: Setpoint switchover 7.8 Data lists Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 417: T3: Tangential Control

    T3: Tangential control Brief description Tangential control The tangential control function belongs to the category of NC functions with coupled axes. It is characterized by the following features: • There are two leading axes which are moved independently by means of normal traversing instructions (leading axes).
  • Page 418 T3: Tangential control 8.1 Brief description Applications The tangential control function can be used for example for the following applications: • Tangential positioning of a rotatable tool for nibbling operations. • Follow-up control of tool alignment for a bandsaw. • Positioning a dressing tool on a grinding wheel.
  • Page 419: Characteristics Of Tangential Follow-up Control

    T3: Tangential control 8.2 Characteristics of tangential follow-up control Characteristics of tangential follow-up control Task specification Follow-up control for the rotary axis must be implemented so that the axis is always positioned at a specified angle on the programmed path of the two leading axes. Figure 8-1 Tangential control, offset angle of zero degrees to path tangent In the diagram, X and Y are the leading axes in which the path is programmed;...
  • Page 420 T3: Tangential control 8.2 Characteristics of tangential follow-up control Special cases • G641 rounding is possible between two blocks, both of which move at least one of the two leading axes of the tangentially following axis. • G641 rounding is possible between two blocks, both of which do not move either of the leading axes of the tangentially following axis.
  • Page 421: Using Tangential Follow-up Control

    T3: Tangential control 8.3 Using tangential follow-up control Using tangential follow-up control Activation The following axis can only be aligned if: • The assignment between the leading and following axes is declared to the system (TANG) • Follow-up control is activated explicitly (TANGON) •...
  • Page 422: Assignment Between Leading Axes And Following Axis

    T3: Tangential control 8.3 Using tangential follow-up control Cross-channel block search The cross-channel block search in the program test mode (SERUPRO "Search-Run by Program test") can be used to simulate the tangential tracking of axes. Further information about the multi-channel block search function SERUPRO, see: References: Function Manual, Basic Functions;...
  • Page 423: Switching On Corner Response

    T3: Tangential control 8.3 Using tangential follow-up control following axes made beforehand with TANG. Refer to Section "Assignment between leading axes and following axis". An angle between the tangent and the position of the following axis can be specified optionally when follow-up is activated. This angle is maintained by the control for as long as the following axis is made to follow.
  • Page 424: Termination Of Follow-up Control

    T3: Tangential control 8.3 Using tangential follow-up control System variable $AC_TLIFT_BLOCK The system variable $AC_TLIFT_BLOCK indicates whether the current block is an intermediate block generated by TLIFT. If the value of the system variable is 1, TLIFT inserted the current block as an intermediate block. 8.3.4 Termination of follow-up control Programming...
  • Page 425: Canceling The Definition Of A Follow-up Axis Assignment

    T3: Tangential control 8.3 Using tangential follow-up control 8.3.6 Canceling the definition of a follow-up axis assignment. A follow-up axis assignment specified by TANG() remains active after TANGOF. This inhibits a plane change or geometry axis switchover. The predefined subprogram TANGDEL is used to cancel the definition of a follow-up axis assignment so that the follow-up axis can be operated dependent on new leading axes when a new follow-up axis assignment is defined.
  • Page 426 T3: Tangential control 8.3 Using tangential follow-up control Geometry axis switchover with TANGDEL The following example shows how TANGDEL is used correctly in association with an axis switchover. N10 GEOAX(2,Y1) ; Geo axis group is determined N20 TANG(A,X, Y) ; Channel axis Y1 is being assigned N30 TANGON(A, 90) ;...
  • Page 427: Limit Angle

    T3: Tangential control 8.4 Limit angle Limit angle Description of problem When the axis moves backwards and forwards along the path, the tangent turns abruptly through 180 degrees at the path reversal point. This response is not generally desirable for this type of machining operation (e.g.
  • Page 428: Supplementary Conditions

    T3: Tangential control 8.5 Supplementary conditions Supplementary conditions Block search with active coupling Note For an active coupling, it is recommended to only use block search type 5, "Block search via program test" (SERUPRO) for a block search. Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 429: Examples

    T3: Tangential control 8.6 Examples Examples Positioning of workpiece Figure 8-4 Tangential positioning of a workpiece on a bandsaw Positioning of tool Figure 8-5 Positioning of a dressing tool on a grinding wheel Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 430 T3: Tangential control 8.6 Examples Example Corner in area Programming TANG(A,X,Y,1.0,"B") TLIFT(A) G1 G641 X0 Y0 Z0 A0 TANGON(A,0) N4 X10 N5 Z10 N6 Y10 Here, a corner is hidden in the area between N4 and N6. N6 causes a tangent jump. That is why there is no rounding between N5 and N6 and an intermediate block is inserted.
  • Page 431: Data Lists

    T3: Tangential control 8.7 Data lists Data lists 8.7.1 Machine data 8.7.1.1 Axis/spindle­specific machine data Number Identifier: $MA_ Description 37400 EPS_TLIFT_TANG_STEP Tangential angle for corner recognition 37402 TANG_OFFSET Default angle for tangential follow-up control 8.7.2 System variables Identifier Description $AC_TLIFT_BLOCK Current block is an intermediate block generated by TLIFT Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 432 T3: Tangential control 8.7 Data lists Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 433: Te01: Installation And Activation Of Loadable Compile Cycles

    Contents A description is provided in the following chapters as to how technology functions, available from Siemens, can be installed and activated in the control as individual loadable compile cycles. Technology functions The description is a general description and applies to all the following technology functions: •...
  • Page 434 Compile cycles are functional expansions of the NCK system software that can be created by the machine manufacturer and/or by Siemens and then imported in the control later. As part of the open NCK system architecture, compile cycles have comprehensive access to data and functions of the NCK system level via defined software interfaces.
  • Page 435: Loading Compile Cycles

    TE01: Installation and activation of loadable compile cycles 9.1 Loading compile cycles Loading compile cycles 9.1.1 Loading a compile cycle with HMI sl Precondition • The compile cycle to be transferred to the control must be saved on a storage medium which can be directly connected to the control, such as a USB-FlashDrive.
  • Page 436: Loading A Compile Cycle With Hmi Advanced

    TE01: Installation and activation of loadable compile cycles 9.1 Loading compile cycles 9.1.2 Loading a compile cycle with HMI Advanced Precondition To transfer a compile cycle to the control, the following requirements must be met: A storage medium (e.g. USB FlashDrive), which stores the compile cycle, is connected to the PCU.
  • Page 437 TE01: Installation and activation of loadable compile cycles 9.1 Loading compile cycles Execution Perform the following operation to load a compile cycle from an external computer into the NCK: 1. Start the "WinSCP3" program on the external computer (programming device / PC) 2.
  • Page 438: Interface Version Compatibility

    TE01: Installation and activation of loadable compile cycles 9.2 Interface version compatibility Interface version compatibility The compile cycle and the NCK system software communicate via a SINUMERIK-specific interface. The interface version used by the loaded compile cycle must be compatible with the interface version of the NCK system software.
  • Page 439 TE01: Installation and activation of loadable compile cycles 9.2 Interface version compatibility Interface versions The relevant interface versions are displayed under: • Interface version of the NCK system software HMI Advanced: Diagnosis > Service Display > Version > NCU Version Display (excerpt) ------------------------------------------- CC Interface Version:...
  • Page 440 TE01: Installation and activation of loadable compile cycles 9.2 Interface version compatibility Dependencies The following dependencies exist between the interface versions of a compile cycle and the NCK system software: • 1. Position of the interface version number The 1st digit of the interface version number of a compile cycle and the NCK system software must be the same .
  • Page 441: Software Version Of A Compile Cycle

    TE01: Installation and activation of loadable compile cycles 9.3 Software version of a compile cycle Software version of a compile cycle The SW version of a compile cycle is displayed under: HMI Advanced: Diagnosis > Service Display > Version > NCU Version Display (excerpt) ------------------------------------------- CC Interface Version:...
  • Page 442: Activating The Technological Functions In The Nck

    TE01: Installation and activation of loadable compile cycles 9.4 Activating the technological functions in the NCK Activating the technological functions in the NCK Requirement The corresponding option must be enabled before activating a technology function as described below. If the option data has not been set, the following alarm appears every time the NCK boots and the technology function will not be activated: Bit number Alarm 7202 "XXX_ELF_option_bit_missing: <...
  • Page 443: Function-specific Startup

    TE01: Installation and activation of loadable compile cycles 9.5 Function-specific startup Function-specific startup Further function-specific installation routines are described in the corresponding function description (TE1 - TEn). Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 444: Creating Alarm Texts

    <BaseName_02 type="QString" value="xxx"/> </BaseNames> 9. Restart HMI sl. Further information about creating alarm text files with HMI sl can be taken from: Literature: /IAM/ SINUMERIK 840D sl Commissioning Manual; Chapter: Configuring user alarm texts Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 445: Creating Alarm Texts With Hmi Advanced

    German. 5.Restart HMI Advanced. For more information about creating alarm texts with HMI Advanced, please refer to: References: /IAM/ SINUMERIK 840D sl/840Di sl/840D/840Di Startup CNC Part 2 (HMI); Startup HMI Advanced (IM4), Chapter: Creating user alarm texts Note HMI reinstallation Retain the added alarm texts in the text files of the F:\oem even after a reinstallation of HMI.
  • Page 446: Creating Alarm Texts With Hmi Embedded

    4. Restart HMI Embedded. For more information about creating alarm texts with HMI Embedded, please refer to: References: /IAM/ SINUMERIK 840D sl/840Di sl/840D/840Di Commissioning CNC Part 2 (HMI); Commissioning HMI Embedded (IM2), Chapter: Creating In-House Texts Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 447: Upgrading A Compile Cycle

    TE01: Installation and activation of loadable compile cycles 9.7 Upgrading a compile cycle Upgrading a compile cycle To upgrade a compile cycle installed in the control, under no circumstances is it sufficient to just exchange the corresponding ELF file. If only the ELF file is replaced, then this can result in undefined behavior of the NCK software due to inconsistent data of the memory and data management.
  • Page 448: Deleting A Compile Cycle

    TE01: Installation and activation of loadable compile cycles 9.8 Deleting a compile cycle Deleting a compile cycle If a loaded compile cycle is to be completely deleted in the control, it is not enough to only delete the corresponding ELF file. With this procedure, the following data is kept in the retentive memory of the control: •...
  • Page 449: Data Lists

    TE01: Installation and activation of loadable compile cycles 9.9 Data lists Data lists 9.9.1 Machine data 9.9.1.1 NC-specific machine data Number Identifier: $MN_ Description 60900 + i CC_ACTIV_IN_CHAN_XXXX[n] n = 0: Activating the technology function in NC channels with: with: i = 0, 1, XXXX = function code n = 1:...
  • Page 450 TE01: Installation and activation of loadable compile cycles 9.9 Data lists Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 451: Te02: Simulation Of Compile Cycles

    TE02: Simulation of compile cycles 10.1 Brief description 10.1.1 Function If part programs, which use compile cycles, are simulated on the SINUMERIK user interface (e.g. HMI Advanced) simulation is aborted and corresponding error messages are issued. The reason is that compile cycle support has not yet been implemented on the HMI. The measures described below show how to set up the simulation runtime environment to enable the simulation of part programs, which use compile cycles, without error messages.
  • Page 452: Oem Transformations

    TE02: Simulation of compile cycles 10.2 OEM transformations 10.2 OEM transformations When using OEM transformations, the simulation runtime environment has to be set. Proceed as follows installation path 1. Create a new directory: "< >/OEM" in addition to the standard directory: installation path "<...
  • Page 453 TE02: Simulation of compile cycles 10.2 OEM transformations 6. In the directory for the manufacturer cycles, create the file "TRAORI.SPF" with the following contents: PROC TRAORI(INT II) 7. In the directory for the manufacturer cycles, create the file "TRACON.SPF" with the following contents: PROC TRACON(INT II) Note...
  • Page 454 TE02: Simulation of compile cycles 10.2 OEM transformations Special Functions Function Manual, 09/2011, 6FC5397-2BP40-2BA0...
  • Page 455: Te1: Clearance Control

    TE1: Clearance control 11.1 Brief description 11.1.1 General information Function Description The "clearance control" technological function is used to maintain a one-dimensional (1D) or three-dimensional (3D) clearance required for technological reasons during a defined machining process. The clearance to be maintained may be e.g. the distance of a tool from the workpiece surface to be machined.
  • Page 456 TE1: Clearance control 11.1 Brief description Laser cutting During laser cutting, a divergent parallel laser beam is directed across a fiber-optic cable or via a mirror to a light-collecting lens mounted on the laser machining head. The collecting lens focuses the laser beam at its focal point. Typical focal lengths are from 5 to 20 cm. The position of the focal point in relation to the workpiece is an extremely critical process parameter in laser cutting operations and must be kept constant within a tolerance of ≤...
  • Page 457 TE1: Clearance control 11.1 Brief description System overview (840Di) An overview of the system components required for clearance control in conjunction with SINUMERIK 840Di is provided in the following diagram. Figure 11-2 System components for clearance control with SINUMERIK 840Di 1D/ 3D machining Clearance control can be used for 1D and 3D machining with up to five interpolatory axes.
  • Page 458: Clearance Control

    TE1: Clearance control 11.2 Clearance control 11.2 Clearance control 11.2.1 Control dynamics Closed-loop control gain Kv The dynamic response of the closed control loop (sensor - open-loop control - axis) is determined by the maximum closed-loop control gain Kv. The closed-loop control gain Kv is defined as: Clearance control characteristics Clearance control is based on the two characteristics shown in the following diagram: •...
  • Page 459 TE1: Clearance control 11.2 Clearance control From the point of view of the control, the unit for the closed-loop control gain is [(mm/min)/V]. In the same way as the setpoint clearance in standardized in [mm], values can only be standardized in [(mm/min)/mm] by using the sensor electronics. Max.
  • Page 460: Velocity Feedforward Control

    TE1: Clearance control 11.2 Clearance control • Conversion time, channel cycle time: ET 200 S with "2 AI U high-speed" analog electronics module produces the following times: Conversion time: 0.1 ms Channel cycle time: 1 ms (both channels) → Average control deadtime of 0.5 ms •...
  • Page 461 TE1: Clearance control 11.2 Clearance control (840Di) The velocity filters of the SIMODRIVE 611 universal/ E and POSMO SI, CD, CA drives provide an additional means of damping: • Parameter 1502: (time constant for speed setpoint filter 1) • Parameter 1503: (time constant for speed setpoint filter 2) CAUTION Every damping measure implemented contributes to increasing the overall time constant of the control loop!
  • Page 462: Control Loop Structure

    TE1: Clearance control 11.2 Clearance control 11.2.3 Control loop structure The figures below provide an overview of how the clearance control function is embedded in the control loop structure of the NC position controller and the internal structure of the function.
  • Page 463: Compen