I hope someone can help. I have been working on a code generator for a Heidenhein TNC 426 control. Everything else is ok, except for the fixed cycles. I am having trouble with them, to say the least. I have attached my .smp and .tmp files. Below is the section I am having trouble with.
@ZCLRMV #EVAL(#V1=#ZPOS) //#IF(#XSET=1,#AND #TLOP<>2)<#EXIT> //#EVAL(#NHOL=#NHOL+1) //#IF(#NHOL=2,#AND #TLOP<>2)<#EXIT> //< L Z#V1 R0 F MAX> @ZCHKMV //#IF(#XSET>=1,#AND #TLOP<>2)<#EXIT> //#IF(#C1=1)<#EVAL(#NHOL=#NHOL+10)#EVAL(#C1=0)> //#IF(#NHOL<=2,#AND #TLOP<>2)<#EXIT> //#EVAL(#NHOL=#NHOL+1) L Z#ZPOS R0 F MAX @ZDPTHMV #EVAL(#V14=INT(#FEED*10)) < L Z#ZPOS R0 F#V14> @FXD1 #EVAL(#V3=0) //#IF(#V9<>#ZDPTH)<#EVAL(#ZDPTH=#ZDPTH+0.125)> #IF(#V9<>#ZDPTH)<#EVAL(#V3=1)> #IF(#V8<>#ZCHK)<#EVAL(#V3=1)> #IF(#V7<>100)<#EVAL(#V3=1)> #IF(#V6<>#FXD)<#EVAL(#V3=1)> #EVAL(#V12=ABS(#V18)) //#EVAL(#V13=#PTOP-#ZCHK+0.125) #EVAL(#V14=INT(#FEED*10)) #EVAL(#V16=#PTOP-#CHKD) #EVAL(#V17=#V12+ABS(#V16)+0.125) #EVAL(#V18=(#ZDPTH-#V16) < L Z+20 R0 F MAX> aa#IF(#V3=1)< CYCL DEF 200 DRILLING ~>#ELSE< L X#XPOS Y#YPOS R0 F MAX M99 M13> #OFFBLK#IF(#V3=1)< Q200 = 0.125 ;SET UP CLEARANCE ~> #IF(#V3=1)< Q201 =#V18 ;DEPTH~> #IF(#V3=1)< Q206 =#V14 ;FEEDRATE FOR PLUNGING ~> #IF(#V3=1)< Q202 =#V12 ;PLUNGING DEPTH ~> #IF(#V3=1)< Q210 =0 ;DWELL TIME AT TOP ~> #IF(#V3=1)< Q203 =#V16 ;SURFACE COORDINATE ~> #IF(#V3=1)< Q204 =#V17 ;2ND SET-UP CLEARANCE ~> #IF(#V3=1)< Q211 =0 ;DWELL TIME AT BOTTOM> //#ONBLK#IF(#V3=1) <L M13> #EVAL(#V14=#FEED) #EVAL(#V9=#ZDPTH) #EVAL(#V8=#ZCHK) #EVAL(#V7=100) #EVAL(#V6=#FXD) #ONBLK#IF(#V3=1)< L X#XPOS Y#YPOS R0 F MAX M99 M13> I am not sure about the #ZCHK, #ZCLR, #ZDPTH. The values in the canned cycle are as follows: Q200 = This should be our z clearance which I need to be 0.125 Q201 = The incremental depth of the drilled hole Q206 = This ones ok Q202 = This is the incremental depth, which should be the same as Q201 Q210 = This is ok Q203 = Is to be the Profile Top Q204 = This is to be the incremental value to get back up to my z clearance above the top of the part Q211 = This is ok I think I may have my settings incorrect in the .smp file. This is why I have all kinds of variables and formulas in the section. Any help would be greatly appreciated. Mike Deren <<BMT125.tMP>> <<BMT125_H.SMF>>
BMT125.tMP
Description: Binary data
BMT125_H.SMF
Description: Binary data
