I use
logic in my template to switch from G33 and G71 (Okuma) depending on my step
number. Basicly if the step number is less that 1000 it outputs a G71 and if the
step is greater than 1000 it outputs a G33.
@OP_THD
#IF(#S8=0)<(**************************OP_THD)>
#EVAL(#BDSTR=#TABLE(BSTRING,#BLKDEL))
// #V1 Absolute value of Depth of Last thread pass.
// #V2 Absolute value of Depth of First thread pass.
// #V3 Incremental depth move to each pass depth for individual passes or first pass depth for fixed cycle.
// #V4 Number of passes at first pass depth that will fit.
// #FTHRD Thread Lead
// #FXD Used to output the thread code from smf question 185.
// #XCTR Starting x value for Last thread pass of cycle.
// #XOV Change in X (delta X) between start and end of Last thread pass.
// #XPASS Ending X value for Last thread pass of cycle.
// #XST Start X of First thread pass (includes rapid clear value).
// #ZCTR Starting Z value for Last thread pass of cycle.
// #ZOV Change in Z (delta Z) between start and end of Last thread pass.
// #ZPASS Ending Z value for Last thread pass of cycle.
#EVAL(#V2=#V2*1)
#EVAL(#V1=#V1*2)
#EVAL(#U0=stp(step_num))
//CALL OCHK2 (IS SPINDLE AT 100 PERCENT)
#IF(#U0<1000)< #FXD X#XPASS Z#ZPASS D#V2 H#V1 #IF(#U8>0)<U#FMT(#U8,D0.4) >F#FTHRD M#U3 M#U4>
#IF(#U0>1000)< G33 X#XPASS Z#ZPASS F#FTHRD>
#EVAL(#U3=0)
#IF(#S8=0)<(**************************OP_THD)>
#EVAL(#BDSTR=#TABLE(BSTRING,#BLKDEL))
// #V1 Absolute value of Depth of Last thread pass.
// #V2 Absolute value of Depth of First thread pass.
// #V3 Incremental depth move to each pass depth for individual passes or first pass depth for fixed cycle.
// #V4 Number of passes at first pass depth that will fit.
// #FTHRD Thread Lead
// #FXD Used to output the thread code from smf question 185.
// #XCTR Starting x value for Last thread pass of cycle.
// #XOV Change in X (delta X) between start and end of Last thread pass.
// #XPASS Ending X value for Last thread pass of cycle.
// #XST Start X of First thread pass (includes rapid clear value).
// #ZCTR Starting Z value for Last thread pass of cycle.
// #ZOV Change in Z (delta Z) between start and end of Last thread pass.
// #ZPASS Ending Z value for Last thread pass of cycle.
#EVAL(#V2=#V2*1)
#EVAL(#V1=#V1*2)
#EVAL(#U0=stp(step_num))
//CALL OCHK2 (IS SPINDLE AT 100 PERCENT)
#IF(#U0<1000)< #FXD X#XPASS Z#ZPASS D#V2 H#V1 #IF(#U8>0)<U#FMT(#U8,D0.4) >F#FTHRD M#U3 M#U4>
#IF(#U0>1000)< G33 X#XPASS Z#ZPASS F#FTHRD>
#EVAL(#U3=0)
-----Original Message-----Hello,
From: Kevin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 10, 2002 8:51 AM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] scroll threading
i am trying to get Smartcam to produce a scroll thread using G32, thats what the machine calls for. now I have it set that treads are done with a G76 which is great in most casses but I can't figure out how to get smartcam to use to G32 code, The only way I can get it to work is if I change the smf file, I want to be able to do it with out having to change anything, please help
Kevin Brown
Brck University
Canada
