BEGIN PGM 205.h MM ; h++ 2 13 8 2015_05_26
 QL19 = Q203                                           ; src/205.hpp       :0009
 QL20 = Q200                                           ; src/205.hpp       :0009
 QL21 = Q204                                           ; src/205.hpp       :0009
 QL22 = Q201                                           ; src/205.hpp       :0009
 QL23 = Q395                                           ; src/205.hpp       :0009
 QL24 = Q206                                           ; src/205.hpp       :0009
 QL25 = Q208                                           ; src/205.hpp       :0009
 CALL LBL "205$unidrill.DRILL"
 QL26 = Q379                                           ; src/205.hpp       :0015
 QL27 = Q211                                           ; src/205.hpp       :0015
 QL28 = 0                                              ; src/205.hpp       :0015
 QL29 = Q202                                           ; src/205.hpp       :0015
 QL30 = Q205                                           ; src/205.hpp       :0015
 QL31 = Q257                                           ; src/205.hpp       :0015
 QL32 = Q256                                           ; src/205.hpp       :0015
 QL33 = Q253                                           ; src/205.hpp       :0015
 QL34 = Q212                                           ; src/205.hpp       :0015
 QL35 = Q258                                           ; src/205.hpp       :0015
 QL36 = Q259                                           ; src/205.hpp       :0015
 QL37 = 0                                              ; src/205.hpp       :0015
 QL38 = 0                                              ; src/205.hpp       :0015
 QL39 = 0                                              ; src/205.hpp       :0015
 QL40 = 0                                              ; src/205.hpp       :0015
 QL41 = 0                                              ; src/205.hpp       :0015
 QL42 = 0                                              ; src/205.hpp       :0015
 QL43 = 100                                            ; src/205.hpp       :0015
 QL44 = -Q200                                          ; src/205.hpp       :0015
 CALL LBL "205$unidrill.uni_drill"
LBL "e_2050"                                           ; src/205.hpp       :0007
FN 9: IF 0 EQU 0 GOTO LBL "EXIT"                       ;                   :-001
LBL "205$unidrill.DRILL"                               ; includes/drill.hpp:0037
 FN 18: SYSREAD QL5 = ID 20 NR 3                       ; includes/drill.hpp:0058
 FN 18: SYSREAD QL1 = ID 20 NR 5                       ; includes/drill.hpp:0067
 FN 18: SYSREAD QL2 = ID 20 NR 22                      ; includes/drill.hpp:0071
 FN 18: SYSREAD QL3 = ID 20 NR 23                      ; includes/drill.hpp:0072
 FN 17: SYSWRITE ID 13 NR 3 = 2000                     ; includes/drill.hpp:0073
 QS3 = "CH_NC"                                         ; includes/drill.hpp:0074
 QS4 = "CfgGeoCycle"                                   ; includes/drill.hpp:0075
 QS5 = "restoreCoolant"                                ; includes/drill.hpp:0076
 QL4 = CFGREAD( KEY_ QS3 TAG_ QS4 ATR_ QS5 IDX 0 )     ; includes/drill.hpp:0077
 FN 9: IF 0 EQU 0 GOTO LBL "IFNOT_1"                   ; includes/drill.hpp:0078
 LBL 2000                                              ; includes/drill.hpp:0079
 QL4 = 1                                               ; includes/drill.hpp:0080
 LBL "IFNOT_1"                                         ; includes/drill.hpp:0081
 FN 17: SYSWRITE ID 13 NR 3 = 0                        ; includes/drill.hpp:0082
 FN 18: SYSREAD QL45 = ID 210 NR 3                     ; includes/drill.hpp:0086
 FN 17: SYSWRITE ID 210 NR 3 = 0                       ; includes/drill.hpp:0087
 FN 9: IF QL5 EQU 0 GOTO LBL "CASE0_2"                 ; includes/drill.hpp:0088
 FN 9: IF QL5 EQU 6 GOTO LBL "CASE1_2"                 ; includes/drill.hpp:0088
 FN 9: IF QL5 EQU 1 GOTO LBL "CASE2_2"                 ; includes/drill.hpp:0088
 FN 9: IF QL5 EQU 7 GOTO LBL "CASE3_2"                 ; includes/drill.hpp:0088
 FN 9: IF QL5 EQU 2 GOTO LBL "CASE4_2"                 ; includes/drill.hpp:0088
 FN 9: IF QL5 EQU 8 GOTO LBL "CASE5_2"                 ; includes/drill.hpp:0088
 FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_2"               ; includes/drill.hpp:0088
 LBL "CASE0_2"                                         ; includes/drill.hpp:0090
 LBL "CASE1_2"                                         ; includes/drill.hpp:0091
 FN 18: SYSREAD QL7 = ID 210 NR 4 IDX 2                ; includes/drill.hpp:0092
 FN 18: SYSREAD QL8 = ID 210 NR 4 IDX 3                ; includes/drill.hpp:0093
 FN 18: SYSREAD QL9 = ID 210 NR 4 IDX 1                ; includes/drill.hpp:0094
 QL48 = QL45                                           ; includes/drill.hpp:0095
 QL49 = 1                                              ; includes/drill.hpp:0095
 CALL LBL "check_bit"
 QL10 = QL50                                           ; includes/drill.hpp:0095
 QL48 = QL45                                           ; includes/drill.hpp:0096
 QL49 = 2                                              ; includes/drill.hpp:0096
 CALL LBL "check_bit"
 QL11 = QL50                                           ; includes/drill.hpp:0096
 QL48 = QL45                                           ; includes/drill.hpp:0097
 QL49 = 0                                              ; includes/drill.hpp:0097
 CALL LBL "check_bit"
 QL11 = QL50                                           ; includes/drill.hpp:0097
 FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_2"               ; includes/drill.hpp:0098
 LBL "CASE2_2"                                         ; includes/drill.hpp:0099
 LBL "CASE3_2"                                         ; includes/drill.hpp:0100
 FN 18: SYSREAD QL7 = ID 210 NR 4 IDX 3                ; includes/drill.hpp:0101
 FN 18: SYSREAD QL8 = ID 210 NR 4 IDX 1                ; includes/drill.hpp:0102
 FN 18: SYSREAD QL9 = ID 210 NR 4 IDX 2                ; includes/drill.hpp:0103
 QL48 = QL45                                           ; includes/drill.hpp:0104
 QL49 = 2                                              ; includes/drill.hpp:0104
 CALL LBL "check_bit"
 QL10 = QL50                                           ; includes/drill.hpp:0104
 QL48 = QL45                                           ; includes/drill.hpp:0105
 QL49 = 0                                              ; includes/drill.hpp:0105
 CALL LBL "check_bit"
 QL11 = QL50                                           ; includes/drill.hpp:0105
 QL48 = QL45                                           ; includes/drill.hpp:0106
 QL49 = 1                                              ; includes/drill.hpp:0106
 CALL LBL "check_bit"
 QL11 = QL50                                           ; includes/drill.hpp:0106
 FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_2"               ; includes/drill.hpp:0107
 LBL "CASE4_2"                                         ; includes/drill.hpp:0108
 LBL "CASE5_2"                                         ; includes/drill.hpp:0109
 FN 18: SYSREAD QL7 = ID 210 NR 4 IDX 1                ; includes/drill.hpp:0110
 FN 18: SYSREAD QL8 = ID 210 NR 4 IDX 2                ; includes/drill.hpp:0111
 FN 18: SYSREAD QL9 = ID 210 NR 4 IDX 3                ; includes/drill.hpp:0112
 QL48 = QL45                                           ; includes/drill.hpp:0113
 QL49 = 0                                              ; includes/drill.hpp:0113
 CALL LBL "check_bit"
 QL10 = QL50                                           ; includes/drill.hpp:0113
 QL48 = QL45                                           ; includes/drill.hpp:0114
 QL49 = 1                                              ; includes/drill.hpp:0114
 CALL LBL "check_bit"
 QL11 = QL50                                           ; includes/drill.hpp:0114
 QL48 = QL45                                           ; includes/drill.hpp:0115
 QL49 = 2                                              ; includes/drill.hpp:0115
 CALL LBL "check_bit"
 QL11 = QL50                                           ; includes/drill.hpp:0115
 FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_2"               ; includes/drill.hpp:0116
 LBL "SWITCHEND_2"                                     ; includes/drill.hpp:0117
 FN 18: SYSREAD QL6 = ID 200 NR 1 IDX 2                ; includes/drill.hpp:0121
 QL6 = QL6 / QL7                                       ; includes/drill.hpp:0125
 QL51 = 3                                              ; includes/drill.hpp:0129
 CALL LBL "swap_axes"
 QL0 = SGN( QL22 )                                     ; includes/drill.hpp:0133
 FN 10: IF QL23 NE 1 GOTO LBL "IFNOT_3"                ; includes/drill.hpp:0134
 FN 18: SYSREAD QL46 = ID 950 NR 32                    ; includes/drill.hpp:0139
  FN 11: IF QL46 GT 0 GOTO LBL "IFNOT_4"               ; includes/drill.hpp:0140
  FN 14: ERROR= 1087                                   ; includes/drill.hpp:0142
  FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_4"                  ; includes/drill.hpp:0143
  LBL "IFNOT_4"                                        ; includes/drill.hpp:0143
  FN 9: IF QL46 EQU 180 GOTO LBL "ELSE0NOT_4"          ; includes/drill.hpp:0144
  QL22 = QL22 + ( QL0 * ( QL6 / ( TAN( QL46 / 2 ) ) ) )
  LBL "ELSE0NOT_4"                                     ; includes/drill.hpp:0147
  LBL "ENDIF_4"                                        ; includes/drill.hpp:0147
 LBL "IFNOT_3"                                         ; includes/drill.hpp:0148
 FN 9: IF QL22 EQU 0 GOTO LBL "EXIT"                   ; includes/drill.hpp:0149
 QL52 = QL22                                           ; includes/drill.hpp:0150
 CALL LBL "check_depth_sign"
 QL16 = QL19 + QL22                                    ; includes/drill.hpp:0151
 QL13 = QL19                                           ; includes/drill.hpp:0155
 QL14 = ABS( QL20 )                                    ; includes/drill.hpp:0156
 Q0 = ABS( QL21 )                                      ; includes/drill.hpp:0157
 FN 9: IF QL14 EQU Q0 GOTO LBL "IFNOT_6"               ; includes/drill.hpp:0157
 FN 12: IF QL14 LT Q0 GOTO LBL "IFNOT_6"               ; includes/drill.hpp:0157
 QL15 = QL13 - QL14 * QL0                              ; includes/drill.hpp:0159
 FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_6"                   ; includes/drill.hpp:0160
 LBL "IFNOT_6"                                         ; includes/drill.hpp:0160
 QL15 = QL13 - ABS( QL21 ) * QL0                       ; includes/drill.hpp:0163
 LBL "ENDIF_6"                                         ; includes/drill.hpp:0164
 QL17 = QL24                                           ; includes/drill.hpp:0169
 FN 11: IF QL25 GT 0 GOTO LBL "IFNOT_7"                ; includes/drill.hpp:0170
  FN 9: IF QL25 EQU -57239891 GOTO LBL "IFNOT_8"       ; includes/drill.hpp:0172
  QL18 = QL17                                          ; includes/drill.hpp:0174
  FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_8"                  ; includes/drill.hpp:0175
  LBL "IFNOT_8"                                        ; includes/drill.hpp:0175
  FN 22: FUNCT QL47 FNR 910 PIN 59 PIN 2 PEX 18        ; includes/drill.hpp:0179
  LBL "ENDIF_8"                                        ; includes/drill.hpp:0180
 FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_7"                   ; includes/drill.hpp:0182
 LBL "IFNOT_7"                                         ; includes/drill.hpp:0182
 QL18 = QL25                                           ; includes/drill.hpp:0185
 LBL "ENDIF_7"                                         ; includes/drill.hpp:0186
LBL 0                                                  ; includes/drill.hpp:0037
LBL "205$unidrill.uni_drill"                           ; includes/drill.hpp:0040
 QL59 = 0                                              ; includes/drill.hpp:0261
 QL29 = ABS( QL29 ) * QL0                              ; includes/drill.hpp:0265
 FN 10: IF QL29 NE 0 GOTO LBL "IFNOT_9"                ; includes/drill.hpp:0266
 FN 14: ERROR= 1030                                    ; includes/drill.hpp:0268
 LBL "IFNOT_9"                                         ; includes/drill.hpp:0269
 QL31 = ABS( QL31 ) * QL0                              ; includes/drill.hpp:0270
 QL35 = ABS( QL35 )                                    ; includes/drill.hpp:0271
 QL36 = ABS( QL36 )                                    ; includes/drill.hpp:0272
 QL32 = ABS( QL32 ) * QL0                              ; includes/drill.hpp:0273
 QL34 = ABS( QL34 )                                    ; includes/drill.hpp:0277
 FN 10: IF QL30 NE 0 GOTO LBL "IFNOT_10"               ; includes/drill.hpp:0278
 QL30 = QL34                                           ; includes/drill.hpp:0280
 LBL "IFNOT_10"                                        ; includes/drill.hpp:0281
 QL30 = ABS( QL30 ) * QL0                              ; includes/drill.hpp:0282
 QL55 = QL13 - QL14 * QL0                              ; includes/drill.hpp:0286
 Z+QL55 R0 FMAX                                        ; includes/drill.hpp:0287
 QL54 = QL13 - ( QL14 - ABS( QL26 ) ) * QL0            ; includes/drill.hpp:0293
 FN 9: IF QL26 EQU 0 GOTO LBL "IFNOT_11"               ; includes/drill.hpp:0294
  FN 9: IF QL37 EQU 0 GOTO LBL "CASE0_12"              ; includes/drill.hpp:0299
  FN 9: IF QL37 EQU 3 GOTO LBL "CASE1_12"              ; includes/drill.hpp:0299
  FN 9: IF QL37 EQU 4 GOTO LBL "CASE2_12"              ; includes/drill.hpp:0299
  FN 9: IF QL37 EQU 13 GOTO LBL "CASE3_12"             ; includes/drill.hpp:0299
  FN 9: IF QL37 EQU 24 GOTO LBL "CASE4_12"             ; includes/drill.hpp:0299
  FN 9: IF QL37 EQU 14 GOTO LBL "CASE5_12"             ; includes/drill.hpp:0299
  FN 9: IF QL37 EQU 23 GOTO LBL "CASE6_12"             ; includes/drill.hpp:0299
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_12"             ; includes/drill.hpp:0299
  LBL "CASE0_12"                                       ; includes/drill.hpp:0301
   FN 9: IF QL38 EQU 0 GOTO LBL "IFNOT_13"             ; includes/drill.hpp:0302
   FN 12: IF QL38 LT 0 GOTO LBL "IFNOT_13"             ; includes/drill.hpp:0302
   TOOL CALL S QL38                                    ; includes/drill.hpp:0304
   LBL "IFNOT_13"                                      ; includes/drill.hpp:0305
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_12"             ; includes/drill.hpp:0306
  LBL "CASE1_12"                                       ; includes/drill.hpp:0307
  LBL "CASE2_12"                                       ; includes/drill.hpp:0308
  M5                                                   ; includes/drill.hpp:0309
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_12"             ; includes/drill.hpp:0310
  LBL "CASE3_12"                                       ; includes/drill.hpp:0311
  LBL "CASE4_12"                                       ; includes/drill.hpp:0312
   FN 9: IF QL38 EQU 0 GOTO LBL "IFNOT_14"             ; includes/drill.hpp:0313
   FN 12: IF QL38 LT 0 GOTO LBL "IFNOT_14"             ; includes/drill.hpp:0313
   TOOL CALL S QL38                                    ; includes/drill.hpp:0315
   LBL "IFNOT_14"                                      ; includes/drill.hpp:0316
   FN 10: IF QL1 NE 0 GOTO LBL "IFNOT_15"              ; includes/drill.hpp:0317
   M5                                                  ; includes/drill.hpp:0317
   LBL "IFNOT_15"                                      ; includes/drill.hpp:0317
  M4                                                   ; includes/drill.hpp:0318
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_12"             ; includes/drill.hpp:0319
  LBL "CASE5_12"                                       ; includes/drill.hpp:0320
  LBL "CASE6_12"                                       ; includes/drill.hpp:0321
   FN 9: IF QL38 EQU 0 GOTO LBL "IFNOT_16"             ; includes/drill.hpp:0322
   FN 12: IF QL38 LT 0 GOTO LBL "IFNOT_16"             ; includes/drill.hpp:0322
   TOOL CALL S QL38                                    ; includes/drill.hpp:0324
   LBL "IFNOT_16"                                      ; includes/drill.hpp:0325
   FN 10: IF QL1 NE 1 GOTO LBL "IFNOT_17"              ; includes/drill.hpp:0326
   M5                                                  ; includes/drill.hpp:0326
   LBL "IFNOT_17"                                      ; includes/drill.hpp:0326
  M3                                                   ; includes/drill.hpp:0327
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_12"             ; includes/drill.hpp:0328
  LBL "SWITCHEND_12"                                   ; includes/drill.hpp:0329
 Z QL54 R0 F QL33                                      ; includes/drill.hpp:0330
  FN 9: IF QL37 EQU 0 GOTO LBL "CASE0_18"              ; includes/drill.hpp:0334
  FN 9: IF QL37 EQU 13 GOTO LBL "CASE1_18"             ; includes/drill.hpp:0334
  FN 9: IF QL37 EQU 3 GOTO LBL "CASE2_18"              ; includes/drill.hpp:0334
  FN 9: IF QL37 EQU 23 GOTO LBL "CASE3_18"             ; includes/drill.hpp:0334
  FN 9: IF QL37 EQU 14 GOTO LBL "CASE4_18"             ; includes/drill.hpp:0334
  FN 9: IF QL37 EQU 4 GOTO LBL "CASE5_18"              ; includes/drill.hpp:0334
  FN 9: IF QL37 EQU 24 GOTO LBL "CASE6_18"             ; includes/drill.hpp:0334
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_18"             ; includes/drill.hpp:0334
  LBL "CASE0_18"                                       ; includes/drill.hpp:0336
   FN 9: IF QL39 EQU 0 GOTO LBL "IFNOT_19"             ; includes/drill.hpp:0337
   FN 12: IF QL39 LT 0 GOTO LBL "IFNOT_19"             ; includes/drill.hpp:0337
   TOOL CALL S QL39                                    ; includes/drill.hpp:0339
   LBL "IFNOT_19"                                      ; includes/drill.hpp:0340
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_18"             ; includes/drill.hpp:0341
  LBL "CASE1_18"                                       ; includes/drill.hpp:0342
  M5                                                   ; includes/drill.hpp:0343
  LBL "CASE2_18"                                       ; includes/drill.hpp:0344
  LBL "CASE3_18"                                       ; includes/drill.hpp:0345
   FN 9: IF QL39 EQU 0 GOTO LBL "IFNOT_20"             ; includes/drill.hpp:0346
   FN 12: IF QL39 LT 0 GOTO LBL "IFNOT_20"             ; includes/drill.hpp:0346
   TOOL CALL S QL39                                    ; includes/drill.hpp:0348
   LBL "IFNOT_20"                                      ; includes/drill.hpp:0349
  M3                                                   ; includes/drill.hpp:0350
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_18"             ; includes/drill.hpp:0351
  LBL "CASE4_18"                                       ; includes/drill.hpp:0352
  M5                                                   ; includes/drill.hpp:0353
  LBL "CASE5_18"                                       ; includes/drill.hpp:0354
  LBL "CASE6_18"                                       ; includes/drill.hpp:0355
   FN 9: IF QL39 EQU 0 GOTO LBL "IFNOT_21"             ; includes/drill.hpp:0356
   FN 12: IF QL39 LT 0 GOTO LBL "IFNOT_21"             ; includes/drill.hpp:0356
   TOOL CALL S QL39                                    ; includes/drill.hpp:0358
   LBL "IFNOT_21"                                      ; includes/drill.hpp:0359
  M4                                                   ; includes/drill.hpp:0360
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_18"             ; includes/drill.hpp:0361
  LBL "SWITCHEND_18"                                   ; includes/drill.hpp:0362
  FN 12: IF QL44 LT QL26 GOTO LBL "IFNOT_22"           ; includes/drill.hpp:0363
  QL55 = QL54                                          ; includes/drill.hpp:0364
  FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_22"                 ; includes/drill.hpp:0365
  LBL "IFNOT_22"                                       ; includes/drill.hpp:0365
  QL55 = QL13 + ( QL44 * QL0 )                         ; includes/drill.hpp:0367
  LBL "ENDIF_22"                                       ; includes/drill.hpp:0368
 LBL "IFNOT_11"                                        ; includes/drill.hpp:0369
 FN 9: IF QL40 EQU 0 GOTO LBL "IFNOT_23"               ; includes/drill.hpp:0370
 FN 12: IF QL40 LT 0 GOTO LBL "IFNOT_23"               ; includes/drill.hpp:0370
 M QL40                                                ; includes/drill.hpp:0372
 LBL "IFNOT_23"                                        ; includes/drill.hpp:0373
 CALL LBL "check_spindle_status"
 QL53 = QL13 + ( ABS( QL26 ) * QL0 )                   ; includes/drill.hpp:0382
 FN 9: IF QL42 EQU 0 GOTO LBL "IFNOT_24"               ; includes/drill.hpp:0383
 QL42 = QL13 + ( ABS( QL42 ) * QL0 )                   ; includes/drill.hpp:0385
 LBL "IFNOT_24"                                        ; includes/drill.hpp:0386
 QL57=QL53                                             ; includes/drill.hpp:0387
 FN 9: IF 0 EQU 0 GOTO LBL "FORCMP_25"                 ; includes/drill.hpp:0387
 LBL "FOR_25"                                          ; includes/drill.hpp:0387
 QL53=QL57                                             ; includes/drill.hpp:0387
 LBL "FORCMP_25"                                       ; includes/drill.hpp:0387
 FN 9: IF QL57 EQU QL16 GOTO LBL "FORNOT_25"           ; includes/drill.hpp:0387
 QL57 = QL57 + QL29                                    ; includes/drill.hpp:0392
  FN 9: IF QL0 EQU 0 GOTO LBL "IFNOT_26"               ; includes/drill.hpp:0393
  FN 11: IF QL0 GT 0 GOTO LBL "IFNOT_26"               ; includes/drill.hpp:0393
   FN 9: IF QL57 EQU QL16 GOTO LBL "IFNOT_27"          ; includes/drill.hpp:0395
   FN 11: IF QL57 GT QL16 GOTO LBL "IFNOT_27"          ; includes/drill.hpp:0395
   QL57 = QL16                                         ; includes/drill.hpp:0397
   LBL "IFNOT_27"                                      ; includes/drill.hpp:0398
   FN 10: IF QL59 NE 0 GOTO LBL "IFNOT_28"             ; includes/drill.hpp:0399
   FN 11: IF QL57 GT QL42 GOTO LBL "IFNOT_28"          ; includes/drill.hpp:0399
   FN 9: IF QL42 EQU 0 GOTO LBL "IFNOT_28"             ; includes/drill.hpp:0399
   QL59 = 1                                            ; includes/drill.hpp:0401
   LBL "IFNOT_28"                                      ; includes/drill.hpp:0402
  FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_26"                 ; includes/drill.hpp:0403
  LBL "IFNOT_26"                                       ; includes/drill.hpp:0403
   FN 9: IF QL57 EQU QL16 GOTO LBL "IFNOT_29"          ; includes/drill.hpp:0406
   FN 12: IF QL57 LT QL16 GOTO LBL "IFNOT_29"          ; includes/drill.hpp:0406
   QL57 = QL16                                         ; includes/drill.hpp:0408
   LBL "IFNOT_29"                                      ; includes/drill.hpp:0409
   FN 10: IF QL59 NE 0 GOTO LBL "IFNOT_30"             ; includes/drill.hpp:0410
   FN 12: IF QL57 LT QL42 GOTO LBL "IFNOT_30"          ; includes/drill.hpp:0410
   FN 9: IF QL42 EQU 0 GOTO LBL "IFNOT_30"             ; includes/drill.hpp:0410
   QL59 = 1                                            ; includes/drill.hpp:0412
   LBL "IFNOT_30"                                      ; includes/drill.hpp:0413
  LBL "ENDIF_26"                                       ; includes/drill.hpp:0414
 QL58=QL53                                             ; includes/drill.hpp:0418
 FN 9: IF 0 EQU 0 GOTO LBL "FORCMP_31"                 ; includes/drill.hpp:0418
  LBL "FOR_31"                                         ; includes/drill.hpp:0418
  LBL "FORCMP_31"                                      ; includes/drill.hpp:0418
  FN 9: IF QL31 EQU 0 GOTO LBL "FORNOT_31"             ; includes/drill.hpp:0418
  QL58 = QL58 + QL31                                   ; includes/drill.hpp:0420
   FN 9: IF QL0 EQU 0 GOTO LBL "IFNOT_32"              ; includes/drill.hpp:0421
   FN 11: IF QL0 GT 0 GOTO LBL "IFNOT_32"              ; includes/drill.hpp:0421
    FN 9: IF QL58 EQU QL57 GOTO LBL "FORNOT_31"        ; includes/drill.hpp:0423
    FN 12: IF QL58 LT QL57 GOTO LBL "FORNOT_31"        ; includes/drill.hpp:0423
   FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_32"                ; includes/drill.hpp:0424
   LBL "IFNOT_32"                                      ; includes/drill.hpp:0424
    FN 9: IF QL58 EQU QL57 GOTO LBL "FORNOT_31"        ; includes/drill.hpp:0427
    FN 11: IF QL58 GT QL57 GOTO LBL "FORNOT_31"        ; includes/drill.hpp:0427
   LBL "ENDIF_32"                                      ; includes/drill.hpp:0428
  Z+QL58 F QL17                                        ; includes/drill.hpp:0429
  IZ-QL32 F QL18                                       ; includes/drill.hpp:0430
  FN 9: IF 0 EQU 0 GOTO LBL "FOR_31"                   ; includes/drill.hpp:0431
  LBL "FORNOT_31"                                      ; includes/drill.hpp:0431
  FN 10: IF QL59 NE 1 GOTO LBL "IFNOT_35"              ; includes/drill.hpp:0436
  Z+QL42 F QL17                                        ; includes/drill.hpp:0438
   FN 9: IF QL27 EQU 0 GOTO LBL "IFNOT_36"             ; includes/drill.hpp:0193
   FN 12: IF QL27 LT 0 GOTO LBL "IFNOT_36"             ; includes/drill.hpp:0193
   CYCL DEF 9.0 VERWEILZEIT
   CYCL DEF 9.1 V.ZEIT QL27
   LBL "IFNOT_36"                                      ; includes/drill.hpp:0197
  LBL "e_205$unidrill.dwell_time1"                     ; includes/drill.hpp:0038
  QL17 = ( QL17 * QL43 ) /100                          ; includes/drill.hpp:0440
  QL59 = 2                                             ; includes/drill.hpp:0441
   FN 9: IF QL42 EQU QL57 GOTO LBL "IFNOT_37"          ; includes/drill.hpp:0442
   Z+QL57 F QL17                                       ; includes/drill.hpp:0444
    FN 10: IF QL57 NE QL16 GOTO LBL "IFNOT_38"         ; includes/drill.hpp:0445
     FN 9: IF QL27 EQU 0 GOTO LBL "IFNOT_39"           ; includes/drill.hpp:0193
     FN 12: IF QL27 LT 0 GOTO LBL "IFNOT_39"           ; includes/drill.hpp:0193
     CYCL DEF 9.0 VERWEILZEIT
     CYCL DEF 9.1 V.ZEIT QL27
     LBL "IFNOT_39"                                    ; includes/drill.hpp:0197
    LBL "e_205$unidrill.dwell_time2"                   ; includes/drill.hpp:0038
    LBL "IFNOT_38"                                     ; includes/drill.hpp:0448
   LBL "IFNOT_37"                                      ; includes/drill.hpp:0449
  FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_35"                 ; includes/drill.hpp:0450
  LBL "IFNOT_35"                                       ; includes/drill.hpp:0450
  Z+QL57 F QL17                                        ; includes/drill.hpp:0453
   FN 10: IF QL16 NE QL57 GOTO LBL "IFNOT_40"          ; includes/drill.hpp:0454
    FN 9: IF QL27 EQU 0 GOTO LBL "IFNOT_41"            ; includes/drill.hpp:0193
    FN 12: IF QL27 LT 0 GOTO LBL "IFNOT_41"            ; includes/drill.hpp:0193
    CYCL DEF 9.0 VERWEILZEIT
    CYCL DEF 9.1 V.ZEIT QL27
    LBL "IFNOT_41"                                     ; includes/drill.hpp:0197
   LBL "e_205$unidrill.dwell_time3"                    ; includes/drill.hpp:0038
   LBL "IFNOT_40"                                      ; includes/drill.hpp:0457
  LBL "ENDIF_35"                                       ; includes/drill.hpp:0458
 Z+QL55 F QL18                                         ; includes/drill.hpp:0459
  FN 9: IF QL28 EQU 0 GOTO LBL "IFNOT_42"              ; includes/drill.hpp:0193
  FN 12: IF QL28 LT 0 GOTO LBL "IFNOT_42"              ; includes/drill.hpp:0193
  CYCL DEF 9.0 VERWEILZEIT
  CYCL DEF 9.1 V.ZEIT QL28
  LBL "IFNOT_42"                                       ; includes/drill.hpp:0197
 LBL "e_205$unidrill.dwell_time4"                      ; includes/drill.hpp:0038
  FN 9: IF QL57 EQU QL16 GOTO LBL "IFNOT_43"           ; includes/drill.hpp:0465
  QL56 = QL35 + ( ( QL53 - QL13 ) / ( QL16 - QL13 ) * ( QL36 - QL35 ) )
  QL56 = QL57 - ( QL56 * QL0 )                         ; includes/drill.hpp:0468
  Z+QL56 F MAX                                         ; includes/drill.hpp:0469
  LBL "IFNOT_43"                                       ; includes/drill.hpp:0470
 QL29 = QL29 - ( ABS( QL34 ) * QL0 )                   ; includes/drill.hpp:0474
  FN 9: IF QL0 EQU 0 GOTO LBL "IFNOT_44"               ; includes/drill.hpp:0475
  FN 11: IF QL0 GT 0 GOTO LBL "IFNOT_44"               ; includes/drill.hpp:0475
   FN 9: IF QL29 EQU QL30 GOTO LBL "IFNOT_45"          ; includes/drill.hpp:0477
   FN 12: IF QL29 LT QL30 GOTO LBL "IFNOT_45"          ; includes/drill.hpp:0477
   QL29 = QL30                                         ; includes/drill.hpp:0477
   LBL "IFNOT_45"                                      ; includes/drill.hpp:0477
  FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_44"                 ; includes/drill.hpp:0478
  LBL "IFNOT_44"                                       ; includes/drill.hpp:0478
   FN 9: IF QL29 EQU QL30 GOTO LBL "IFNOT_46"          ; includes/drill.hpp:0481
   FN 11: IF QL29 GT QL30 GOTO LBL "IFNOT_46"          ; includes/drill.hpp:0481
   QL29 = QL30                                         ; includes/drill.hpp:0481
   LBL "IFNOT_46"                                      ; includes/drill.hpp:0481
  LBL "ENDIF_44"                                       ; includes/drill.hpp:0482
 FN 9: IF 0 EQU 0 GOTO LBL "FOR_25"                    ; includes/drill.hpp:0483
 LBL "FORNOT_25"                                       ; includes/drill.hpp:0483
 FN 9: IF QL41 EQU 0 GOTO LBL "IFNOT_47"               ; includes/drill.hpp:0487
 FN 12: IF QL41 LT 0 GOTO LBL "IFNOT_47"               ; includes/drill.hpp:0487
 M QL41                                                ; includes/drill.hpp:0489
 LBL "IFNOT_47"                                        ; includes/drill.hpp:0490
 FN 9: IF QL26 EQU 0 GOTO LBL "IFNOT_48"               ; includes/drill.hpp:0494
  FN 9: IF QL37 EQU 0 GOTO LBL "CASE0_49"              ; includes/drill.hpp:0496
  FN 9: IF QL37 EQU 3 GOTO LBL "CASE1_49"              ; includes/drill.hpp:0496
  FN 9: IF QL37 EQU 4 GOTO LBL "CASE2_49"              ; includes/drill.hpp:0496
  FN 9: IF QL37 EQU 13 GOTO LBL "CASE3_49"             ; includes/drill.hpp:0496
  FN 9: IF QL37 EQU 24 GOTO LBL "CASE4_49"             ; includes/drill.hpp:0496
  FN 9: IF QL37 EQU 14 GOTO LBL "CASE5_49"             ; includes/drill.hpp:0496
  FN 9: IF QL37 EQU 23 GOTO LBL "CASE6_49"             ; includes/drill.hpp:0496
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_49"             ; includes/drill.hpp:0496
  LBL "CASE0_49"                                       ; includes/drill.hpp:0498
   FN 9: IF QL38 EQU 0 GOTO LBL "IFNOT_50"             ; includes/drill.hpp:0499
   FN 12: IF QL38 LT 0 GOTO LBL "IFNOT_50"             ; includes/drill.hpp:0499
   TOOL CALL S QL38                                    ; includes/drill.hpp:0501
   LBL "IFNOT_50"                                      ; includes/drill.hpp:0502
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_49"             ; includes/drill.hpp:0503
  LBL "CASE1_49"                                       ; includes/drill.hpp:0504
  LBL "CASE2_49"                                       ; includes/drill.hpp:0505
  M5                                                   ; includes/drill.hpp:0506
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_49"             ; includes/drill.hpp:0507
  LBL "CASE3_49"                                       ; includes/drill.hpp:0508
  M5                                                   ; includes/drill.hpp:0509
  LBL "CASE4_49"                                       ; includes/drill.hpp:0510
   FN 9: IF QL38 EQU 0 GOTO LBL "IFNOT_51"             ; includes/drill.hpp:0511
   FN 12: IF QL38 LT 0 GOTO LBL "IFNOT_51"             ; includes/drill.hpp:0511
   TOOL CALL S QL38                                    ; includes/drill.hpp:0513
   LBL "IFNOT_51"                                      ; includes/drill.hpp:0514
  M4                                                   ; includes/drill.hpp:0515
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_49"             ; includes/drill.hpp:0516
  LBL "CASE5_49"                                       ; includes/drill.hpp:0517
  M5                                                   ; includes/drill.hpp:0518
  LBL "CASE6_49"                                       ; includes/drill.hpp:0519
   FN 9: IF QL38 EQU 0 GOTO LBL "IFNOT_52"             ; includes/drill.hpp:0520
   FN 12: IF QL38 LT 0 GOTO LBL "IFNOT_52"             ; includes/drill.hpp:0520
   TOOL CALL S QL38                                    ; includes/drill.hpp:0522
   LBL "IFNOT_52"                                      ; includes/drill.hpp:0523
  M3                                                   ; includes/drill.hpp:0524
  FN 9: IF 0 EQU 0 GOTO LBL "SWITCHEND_49"             ; includes/drill.hpp:0525
  LBL "SWITCHEND_49"                                   ; includes/drill.hpp:0526
 Q0 = QL13 + QL14                                      ; includes/drill.hpp:0527
 Z+Q0 R0 F QL18                                        ; includes/drill.hpp:0527
 LBL "IFNOT_48"                                        ; includes/drill.hpp:0528
 Z+QL15 R0 FMAX                                        ; includes/drill.hpp:0532
LBL 0                                                  ; includes/drill.hpp:0040
LBL "check_bit"                                        ; includes/stdlib.hh:0124
 QL60=15                                               ; includes/geo.hpp  :0850
 FN 9: IF 0 EQU 0 GOTO LBL "FORCMP_53"                 ; includes/geo.hpp  :0850
 LBL "FOR_53"                                          ; includes/geo.hpp  :0850
 QL60 = QL60 + -1                                      ; includes/geo.hpp  :0850
 LBL "FORCMP_53"                                       ; includes/geo.hpp  :0850
 FN 12: IF QL60 LT 0 GOTO LBL "FORNOT_53"              ; includes/geo.hpp  :0850
 QL50 = 2 ^ QL60                                       ; includes/geo.hpp  :0852
  FN 12: IF QL48 LT QL50 GOTO LBL "IFNOT_54"           ; includes/geo.hpp  :0853
   FN 10: IF QL60 NE QL49 GOTO LBL "IFNOT_55"          ; includes/geo.hpp  :0855
   QL50 = 1                                            ; includes/geo.hpp  :0857
   LBL 0                                               ; includes/geo.hpp  :0858
   LBL "IFNOT_55"                                      ; includes/geo.hpp  :0859
  QL48 = QL48 - 2^QL60                                 ; includes/geo.hpp  :0860
  FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_54"                 ; includes/geo.hpp  :0861
  LBL "IFNOT_54"                                       ; includes/geo.hpp  :0861
   FN 10: IF QL60 NE QL49 GOTO LBL "IFNOT_56"          ; includes/geo.hpp  :0864
   QL50 = 0                                            ; includes/geo.hpp  :0866
   LBL 0                                               ; includes/geo.hpp  :0867
   LBL "IFNOT_56"                                      ; includes/geo.hpp  :0868
  LBL "ENDIF_54"                                       ; includes/geo.hpp  :0869
 FN 9: IF 0 EQU 0 GOTO LBL "FOR_53"                    ; includes/geo.hpp  :0870
 LBL "FORNOT_53"                                       ; includes/geo.hpp  :0870
 QL50 = -1                                             ; includes/geo.hpp  :0871
LBL 0                                                  ; includes/stdlib.hh:0124
LBL "swap_axes"                                        ; includes/stdlib.hh:0120
 FN 17: SYSWRITE ID 212 = QL51                         ; includes/geo.hpp  :0841
LBL 0                                                  ; includes/stdlib.hh:0120
LBL "check_depth_sign"                                 ; includes/stdlib.hh:0128
 FN 9: IF QL52 EQU 0 GOTO LBL "IFNOT_57"               ; includes/geo.hpp  :0880
 FN 12: IF QL52 LT 0 GOTO LBL "IFNOT_57"               ; includes/geo.hpp  :0880
 QS3   = SYSSTR( ID 10025 NR 1 )                       ; includes/geo.hpp  :0885
 QS4   = "CfgGeoCycle"                                 ; includes/geo.hpp  :0886
 QS5   = "displayDepthErr"                             ; includes/geo.hpp  :0887
 QL61 = CFGREAD( KEY_ QS3 TAG_ QS4 ATR_ QS5 )          ; includes/geo.hpp  :0888
  FN 10: IF QL61 NE 1 GOTO LBL "IFNOT_58"              ; includes/geo.hpp  :0890
  FN 14: ERROR= 1077                                   ; includes/geo.hpp  :0891
  LBL "IFNOT_58"                                       ; includes/geo.hpp  :0891
 LBL "IFNOT_57"                                        ; includes/geo.hpp  :0892
LBL 0                                                  ; includes/stdlib.hh:0128
LBL "check_spindle_status"                             ; includes/stdlib.hh:0133
 QS3   = SYSSTR( ID 10025 NR 1 )                       ; includes/geo.hpp  :0916
 QS4   = "CfgGeoCycle"                                 ; includes/geo.hpp  :0917
 QS5   = "displaySpindleErr"                           ; includes/geo.hpp  :0918
 Q0 = CFGREAD( KEY_ QS3 TAG_ QS4 ATR_ QS5 )            ; includes/geo.hpp  :0919
 FN 10: IF Q0 NE 1 GOTO LBL "IFNOT_59"                 ; includes/geo.hpp  :0919
 FN 18: SYSREAD Q1 = ID 992 NR 20                      ; includes/geo.hpp  :0921
  FN 10: IF Q1 NE 0 GOTO LBL "IFNOT_60"                ; includes/geo.hpp  :0921
  FN 18: SYSREAD QL62 = ID 20 NR 5                     ; includes/geo.hpp  :0926
   FN 9: IF QL62 EQU 0 GOTO LBL "IFNOT_61"             ; includes/geo.hpp  :0927
   FN 9: IF QL62 EQU 1 GOTO LBL "IFNOT_61"             ; includes/geo.hpp  :0927
   FN 14: ERROR= 1000                                  ; includes/geo.hpp  :0929
   LBL "IFNOT_61"                                      ; includes/geo.hpp  :0930
  FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_60"                 ; includes/geo.hpp  :0931
  LBL "IFNOT_60"                                       ; includes/geo.hpp  :0931
  CALL LBL "state_exec"
  Q0 = QL63                                            ; includes/geo.hpp  :0937
   FN 9: IF Q0 EQU 0 GOTO LBL "IFNOT_62"               ; includes/geo.hpp  :0937
   LBL 0                                               ; includes/geo.hpp  :0937
   LBL "IFNOT_62"                                      ; includes/geo.hpp  :0937
  FN 20: WAIT FOR SYNC                                 ; includes/geo.hpp  :0941
  QL62 = 100                                           ; includes/geo.hpp  :0942
  FN 17: SYSWRITE ID 13 NR3 =+9990                     ; includes/geo.hpp  :0943
  READ FROM PLC KEY "PLC_API_VERSION" TO QL62          ; includes/geo.hpp  :0944
  LBL 9990                                             ; includes/geo.hpp  :0945
   FN 10: IF QL62 NE 100 GOTO LBL "IFNOT_63"           ; includes/geo.hpp  :0946
   FN 18: SYSREAD QL62 = ID 2000 NR 10 IDX 4000        ; includes/geo.hpp  :0948
    FN 10: IF QL62 NE 1 GOTO LBL "IFNOT_64"            ; includes/geo.hpp  :0949
    FN 14: ERROR= 1000                                 ; includes/geo.hpp  :0951
    LBL "IFNOT_64"                                     ; includes/geo.hpp  :0952
   FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_63"                ; includes/geo.hpp  :0953
   LBL "IFNOT_63"                                      ; includes/geo.hpp  :0953
   QS3   = SYSSTR( ID 10025 NR 1 )                     ; includes/geo.hpp  :0959
   QS4   = "CfgActivateKinem"                          ; includes/geo.hpp  :0960
   QS5   = "kinemToActivate"                           ; includes/geo.hpp  :0961
   QS3 = CFGREAD( KEY_ QS3 TAG_ QS4 ATR_ QS5 )         ; includes/geo.hpp  :0962
   QS4   = "CfgKinComposModel"                         ; includes/geo.hpp  :0963
   QS5   = "activeSpindle"                             ; includes/geo.hpp  :0964
   QS10 = CFGREAD( KEY_ QS3 TAG_ QS4 ATR_ QS5 )        ; includes/geo.hpp  :0965
   QS3   = ""                                          ; includes/geo.hpp  :0970
   QS4   = "CfgAxes"                                   ; includes/geo.hpp  :0971
   QS5   = "spindleIndices"                            ; includes/geo.hpp  :0972
   QL62=0                                              ; includes/geo.hpp  :0973
   FN 9: IF 0 EQU 0 GOTO LBL "FORCMP_65"               ; includes/geo.hpp  :0973
    LBL "FOR_65"                                       ; includes/geo.hpp  :0973
    QL62 = QL62 + 1                                    ; includes/geo.hpp  :0973
    LBL "FORCMP_65"                                    ; includes/geo.hpp  :0973
    FN 17: SYSWRITE ID 13 NR 3 = 9991                  ; includes/geo.hpp  :0975
    QS2 = CFGREAD( KEY_ QS3 TAG_ QS4 ATR_ QS5 IDX QL62 )
    Q0 = STRCOMP( SRC_ QS2 SEA_ QS10 )                 ; includes/geo.hpp  :0977
     FN 10: IF Q0 NE 0 GOTO LBL "IFNOT_66"             ; includes/geo.hpp  :0977
     QS2 = "ApiSpin[" || TOCHAR( DAT+QL62 DECIMALS 0 ) || "].NN_SpiMotionRequest"
     READ FROM PLC KEY QS2 TO QL62                     ; includes/geo.hpp  :0980
      FN 10: IF QL62 NE 0 GOTO LBL "IFNOT_67"          ; includes/geo.hpp  :0981
      FN 14: ERROR= 1000                               ; includes/geo.hpp  :0983
      LBL "IFNOT_67"                                   ; includes/geo.hpp  :0984
     FN 9: IF 0 EQU 0 GOTO LBL "FORNOT_65"             ; includes/geo.hpp  :0985
     LBL "IFNOT_66"                                    ; includes/geo.hpp  :0986
    FN 9: IF 0 EQU 0 GOTO LBL "FOR_65"                 ; includes/geo.hpp  :0987
    LBL "FORNOT_65"                                    ; includes/geo.hpp  :0987
   LBL 9991                                            ; includes/geo.hpp  :0988
   LBL "ENDIF_63"                                      ; includes/geo.hpp  :0989
  LBL "ENDIF_60"                                       ; includes/geo.hpp  :0990
 LBL "IFNOT_59"                                        ; includes/geo.hpp  :0991
LBL 0                                                  ; includes/stdlib.hh:0133
LBL "state_exec"                                       ; includes/stdlib.hh:0076
 FN 18: SYSREAD QL63 = ID 992 NR 11                    ; includes/geo.hpp  :0583
 FN 10: IF QL63 NE 1 GOTO LBL "IFNOT_68"               ; includes/geo.hpp  :0584
 QL63 = 3                                              ; includes/geo.hpp  :0586
 LBL 0                                                 ; includes/geo.hpp  :0587
 LBL "IFNOT_68"                                        ; includes/geo.hpp  :0588
 FN 18: SYSREAD QL63 = ID 992 NR 16                    ; includes/geo.hpp  :0590
 FN 10: IF QL63 NE 0 GOTO LBL "IFNOT_69"               ; includes/geo.hpp  :0591
 QL63 = 1                                              ; includes/geo.hpp  :0593
 LBL 0                                                 ; includes/geo.hpp  :0594
 LBL "IFNOT_69"                                        ; includes/geo.hpp  :0595
 FN 18: SYSREAD QL63 = ID 992 NR 10                    ; includes/geo.hpp  :0597
 FN 10: IF QL63 NE 1 GOTO LBL "IFNOT_70"               ; includes/geo.hpp  :0598
 QL63 = 2                                              ; includes/geo.hpp  :0600
 LBL 0                                                 ; includes/geo.hpp  :0601
 LBL "IFNOT_70"                                        ; includes/geo.hpp  :0602
 QL63 = 0                                              ; includes/geo.hpp  :0603
 LBL 0                                                 ; includes/geo.hpp  :0604
LBL 0                                                  ; includes/stdlib.hh:0076
LBL "EXIT"                                             ;                   :-001
END PGM MM
