BEGIN PGM 207.h MM ; h++ 2 13 8 2015_05_07
 QL19 = Q203                                           ; src/207.hpp       :0009
 QL20 = Q200                                           ; src/207.hpp       :0009
 QL21 = Q204                                           ; src/207.hpp       :0009
 QL22 = Q201                                           ; src/207.hpp       :0009
 QL23 = 0                                              ; src/207.hpp       :0009
 QL24 = Q206                                           ; src/207.hpp       :0009
 QL25 = -57239891                                      ; src/207.hpp       :0009
 CALL LBL "207$thread.DRILL"
 QL26 = Q201                                           ; src/207.hpp       :0013
 QL27 = Q239                                           ; src/207.hpp       :0013
 QL28 = 0                                              ; src/207.hpp       :0013
 QL29 = -57239891                                      ; src/207.hpp       :0013
 CALL LBL "207$thread.thread_sync"
LBL "e_2070"                                           ; src/207.hpp       :0007
FN 9: IF 0 EQU 0 GOTO LBL "EXIT"                       ;                   :-001
LBL "207$thread.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 QL30 = 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
 QL33 = QL30                                           ; includes/drill.hpp:0095
 QL34 = 1                                              ; includes/drill.hpp:0095
 CALL LBL "check_bit"
 QL10 = QL35                                           ; includes/drill.hpp:0095
 QL33 = QL30                                           ; includes/drill.hpp:0096
 QL34 = 2                                              ; includes/drill.hpp:0096
 CALL LBL "check_bit"
 QL11 = QL35                                           ; includes/drill.hpp:0096
 QL33 = QL30                                           ; includes/drill.hpp:0097
 QL34 = 0                                              ; includes/drill.hpp:0097
 CALL LBL "check_bit"
 QL11 = QL35                                           ; 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
 QL33 = QL30                                           ; includes/drill.hpp:0104
 QL34 = 2                                              ; includes/drill.hpp:0104
 CALL LBL "check_bit"
 QL10 = QL35                                           ; includes/drill.hpp:0104
 QL33 = QL30                                           ; includes/drill.hpp:0105
 QL34 = 0                                              ; includes/drill.hpp:0105
 CALL LBL "check_bit"
 QL11 = QL35                                           ; includes/drill.hpp:0105
 QL33 = QL30                                           ; includes/drill.hpp:0106
 QL34 = 1                                              ; includes/drill.hpp:0106
 CALL LBL "check_bit"
 QL11 = QL35                                           ; 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
 QL33 = QL30                                           ; includes/drill.hpp:0113
 QL34 = 0                                              ; includes/drill.hpp:0113
 CALL LBL "check_bit"
 QL10 = QL35                                           ; includes/drill.hpp:0113
 QL33 = QL30                                           ; includes/drill.hpp:0114
 QL34 = 1                                              ; includes/drill.hpp:0114
 CALL LBL "check_bit"
 QL11 = QL35                                           ; includes/drill.hpp:0114
 QL33 = QL30                                           ; includes/drill.hpp:0115
 QL34 = 2                                              ; includes/drill.hpp:0115
 CALL LBL "check_bit"
 QL11 = QL35                                           ; 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
 QL36 = 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 QL31 = ID 950 NR 32                    ; includes/drill.hpp:0139
  FN 11: IF QL31 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 QL31 EQU 180 GOTO LBL "ELSE0NOT_4"          ; includes/drill.hpp:0144
  QL22 = QL22 + ( QL0 * ( QL6 / ( TAN( QL31 / 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
 QL37 = 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 QL32 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 "207$thread.thread_sync"                           ; includes/drill.hpp:0045
 QS3 = ""                                              ; includes/drill.hpp:0964
 QS4 = "CfgAxes"                                       ; includes/drill.hpp:0965
 QS5 = "spindleIndices"                                ; includes/drill.hpp:0966
 QS3 = CFGREAD( KEY_ QS3 TAG_ QS4 ATR_ QS5 )           ; includes/drill.hpp:0967
 QS4 = "CfgAxis"                                       ; includes/drill.hpp:0968
 QS5 = "parList"                                       ; includes/drill.hpp:0969
 QS3 = CFGREAD( KEY_ QS3 TAG_ QS4 ATR_ QS5 )           ; includes/drill.hpp:0970
 QS4 = "CfgAxisHardware"                               ; includes/drill.hpp:0971
 QS5 = "posEncoderType"                                ; includes/drill.hpp:0972
 FN 18: SYSREAD Q0 = ID 20 NR 14                       ; includes/drill.hpp:0973
 QL38 = CFGREAD( KEY_ QS3 TAG_ QS4 ATR_ QS5 IDX Q0)    ; includes/drill.hpp:0973
 FN 10: IF QL38 NE 4 GOTO LBL "IFNOT_9"                ; includes/drill.hpp:0974
 FN 14: ERROR= 1074                                    ; includes/drill.hpp:0976
 LBL "IFNOT_9"                                         ; includes/drill.hpp:0977
 QL40 = QL13 - QL14 * QL0                              ; includes/drill.hpp:0981
 Z+QL40 R0 FMAX                                        ; includes/drill.hpp:0982
 QL39 = QL13 - ( QL14 - ABS( QL28 ) ) * QL0            ; includes/drill.hpp:0986
 FN 9: IF QL28 EQU 0 GOTO LBL "IFNOT_10"               ; includes/drill.hpp:0987
 Z QL39 R0 F QL29                                      ; includes/drill.hpp:0989
 QL40 = QL39                                           ; includes/drill.hpp:0990
 LBL "IFNOT_10"                                        ; includes/drill.hpp:0991
 FN 18: SYSREAD QL42 = ID 950 NR 40                    ; includes/drill.hpp:0995
 QL41 = QL27 - QL42                                    ; includes/drill.hpp:0996
 QL41 = ABS ( QL41 )                                   ; includes/drill.hpp:0997
 FN 9: IF QL42 EQU 0 GOTO LBL "IFNOT_11"               ; includes/drill.hpp:0998
 FN 9: IF QL41 EQU 0.002 GOTO LBL "IFNOT_11"           ; includes/drill.hpp:0998
 FN 12: IF QL41 LT 0.002 GOTO LBL "IFNOT_11"           ; includes/drill.hpp:0998
 FN 14: ERROR= 1124                                    ; includes/drill.hpp:1000
 LBL "IFNOT_11"                                        ; includes/drill.hpp:1001
 CYCL DEF 17.0 GEW.-BOHREN GS
 CYCL DEF 17.1 ABST QL14
 CYCL DEF 17.2 TIEFE+QL26
 CYCL DEF 17.3 STEIG+QL27
 CYCL CALL
 FN 9: IF QL28 EQU 0 GOTO LBL "IFNOT_12"               ; includes/drill.hpp:1013
 Q0 = QL13 + QL14                                      ; includes/drill.hpp:1015
 Z+Q0 R0 F QL18                                        ; includes/drill.hpp:1015
 LBL "IFNOT_12"                                        ; includes/drill.hpp:1016
 Z+QL15 R0 FMAX                                        ; includes/drill.hpp:1020
LBL 0                                                  ; includes/drill.hpp:0045
LBL "check_bit"                                        ; includes/stdlib.hh:0124
 QL43=15                                               ; includes/geo.hpp  :0850
 FN 9: IF 0 EQU 0 GOTO LBL "FORCMP_13"                 ; includes/geo.hpp  :0850
 LBL "FOR_13"                                          ; includes/geo.hpp  :0850
 QL43 = QL43 + -1                                      ; includes/geo.hpp  :0850
 LBL "FORCMP_13"                                       ; includes/geo.hpp  :0850
 FN 12: IF QL43 LT 0 GOTO LBL "FORNOT_13"              ; includes/geo.hpp  :0850
 QL35 = 2 ^ QL43                                       ; includes/geo.hpp  :0852
  FN 12: IF QL33 LT QL35 GOTO LBL "IFNOT_14"           ; includes/geo.hpp  :0853
   FN 10: IF QL43 NE QL34 GOTO LBL "IFNOT_15"          ; includes/geo.hpp  :0855
   QL35 = 1                                            ; includes/geo.hpp  :0857
   LBL 0                                               ; includes/geo.hpp  :0858
   LBL "IFNOT_15"                                      ; includes/geo.hpp  :0859
  QL33 = QL33 - 2^QL43                                 ; includes/geo.hpp  :0860
  FN 9: IF 0 EQU 0 GOTO LBL "ENDIF_14"                 ; includes/geo.hpp  :0861
  LBL "IFNOT_14"                                       ; includes/geo.hpp  :0861
   FN 10: IF QL43 NE QL34 GOTO LBL "IFNOT_16"          ; includes/geo.hpp  :0864
   QL35 = 0                                            ; includes/geo.hpp  :0866
   LBL 0                                               ; includes/geo.hpp  :0867
   LBL "IFNOT_16"                                      ; includes/geo.hpp  :0868
  LBL "ENDIF_14"                                       ; includes/geo.hpp  :0869
 FN 9: IF 0 EQU 0 GOTO LBL "FOR_13"                    ; includes/geo.hpp  :0870
 LBL "FORNOT_13"                                       ; includes/geo.hpp  :0870
 QL35 = -1                                             ; includes/geo.hpp  :0871
LBL 0                                                  ; includes/stdlib.hh:0124
LBL "swap_axes"                                        ; includes/stdlib.hh:0120
 FN 17: SYSWRITE ID 212 = QL36                         ; includes/geo.hpp  :0841
LBL 0                                                  ; includes/stdlib.hh:0120
LBL "check_depth_sign"                                 ; includes/stdlib.hh:0128
 FN 9: IF QL37 EQU 0 GOTO LBL "IFNOT_17"               ; includes/geo.hpp  :0880
 FN 12: IF QL37 LT 0 GOTO LBL "IFNOT_17"               ; 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
 QL44 = CFGREAD( KEY_ QS3 TAG_ QS4 ATR_ QS5 )          ; includes/geo.hpp  :0888
  FN 10: IF QL44 NE 1 GOTO LBL "IFNOT_18"              ; includes/geo.hpp  :0890
  FN 14: ERROR= 1077                                   ; includes/geo.hpp  :0891
  LBL "IFNOT_18"                                       ; includes/geo.hpp  :0891
 LBL "IFNOT_17"                                        ; includes/geo.hpp  :0892
LBL 0                                                  ; includes/stdlib.hh:0128
LBL "EXIT"                                             ;                   :-001
END PGM MM
