To code like LIST 1 this is what I do...
 
In my SMF I set Q366 to #C3= (nothing) and Q367 to #C3=/  
You can use any of the Q's from Q360 to Q371
 
Then in my template file on all my @ sections at the beginning of  every
line where I want a block delete code I put a #C3 
like so...
 
@START
#EVAL(#U8=0)<HURCO.TMP DEBUG HEADINGS U8 IS 1,SET TO 0 FOR NO DEBUG>
#IF(#U8=1)<**** START >
#EVAL(#U1=0)
#EVAL(#C0=1)
#EVAL(#C1=1)
#EVAL(#U5=0)
#EVAL(#ABSI=0)
#OFFBLK
%
<#S0 )>
<( #S1 )>
<( #S2 )>
<( #S3 )>
<( #S4 )>
( #FILE - #DATE - #SYSTIME )
  
#C3N#TOOLM98P1
#C3T#TOOL( #TLCMT )
<M0( #S9 )>
<M0( #S1 )>
<M0( #S2 )>
<M0( #S3 )>
#C3#TLIDG43X#XPOSY#YPOSZ#ZPOSS#SPEEDH#FMT(#LOFF,F2.0)#SPNDL
#CALL(G99)
#EVAL(#DOFF=#TOOL+30)
 
@TOOLCHG
#IF(#U8=1)<**** TOOLCHG >
#EVAL(#ZPOS=#ZHOME)
#MOV#FXDZ#ZPOS
#IF(#C1=1)<>#ELSE<#C3#C1( #S9 )#RESET(#FEED)>
#EVAL(#C1=1)
#EVAL(#U5=0)
#C3N#TOOLM98P1
 
#C3T#TOOL( #TLCMT )
<M0( #S9 )>
<M0( #S1 )>
<M0( #S2 )>
<M0( #S3 )>
#C3#TLIDG43X#XPOSY#YPOSZ#ZHOMES#SPEEDH#FMT(#LOFF,F2.0)#SPNDL
#RESET(#FXD,#MOV,#PECK,#DWELL,#C0,#FEED,#RTNLVL)
#CALL(G99)
#EVAL(#DOFF=#TOOL+30)
#EVAL(#ZPOS=#ZHOME)
 
Then when I want the block delete on at a specfic location like your LIST 1
I use the two @ sections below
 
@BDON
#IF(#U8=1)<**** BLOCK DELETE ON >
<#EVAL(#C3=1)>
 
@BDOFF
#IF(#U8=1)<**** BLOCK DELETE OFF >
<#EVAL(#C3=0)>

I activate the @BDON section in the .PM4 file at the appropriate location
using an User Event to turn block delete on.
Then I turn block delete off with the @BDOFF User Event in the .PM4 file at
the place where you want it to stop.
 
If I want block delete from the very beginning then I set #C3=1 in the Job
Notes, in the Job Information of my Job Operation Planner.
 
Just as a side note EDIT PLUS V4.5 the good old DOS bug free version
resequences LIST 1 just the way you it. 
The as I call it EDIT MINUS V8.3 which came with V11.5 SmartCAM doesn't
work!  Just another annoying bug!

-----Original Message-----
From: Jeff Pieper [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 07, 2000 11:15 PM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] #ONBLK / #OFFBLK


Hey gang!
I could use some help with a small problem that I have.
If you use #ONBLK in the .TMP to output N#'s the / (block skip) is output
before the N###.
If you have to resequence the file for some reason, Edit Plus will not
recognize the /N450 and will renumber it again
like this.    N450 /N450
I no most of you are thinking why doesn't he just recode the file. Well, we
run 6 sided blocks with sub programs
and I want to be able to resequence each sub program separately in Edit Plus
without having to delete the /N450 first.
The following code in list 1 is what I'd like SmartCAM to output, but
instead outputs what is in list 2.
I'm referring to the N#'s and block skips. If I resequence using Edit Plus I
get what's in list 3.
 
                 LIST 1
LIST 2                                                  LIST 3
N110 M106 (C-10-3 ROUGHER TOOL 3)   N110 M106 (C-10-3 ROUGHER TOOL 3)
N110 M106 (C-10-3 ROUGHER TOOL 3) 
N115 T60M08                                         N115 T60M08
N115 T60M08                                          
N120 G00X1.0Y1.06S1592M03                N120 G00X1.0Y1.06S1592M03
N120 G00X1.0Y1.06S1592M03
N125 G43Z1.0H03                                  N125 G43Z1.0H03
N125 G43Z1.0H03                                   
N130 G98G73Z-2.087R0.1Q0.1F22.0       N130 G98G73Z-2.087R0.1Q0.1F22.0
N130 G98G73Z-2.087R0.1Q0.1F22.0
N135 /Y-3.348                                       /N135 Y-3.348
N135 /N135 Y-3.348
N140 /X3.125                                         /N140 X3.125
N140 /N140 X3.125
N145 G80M09                                       N145 G80M09
N145 G80M09
N150 G91G28Z0.0M05                           N150 G91G28Z0.0M05
N150 G91G28Z0.0M05
N155 G28X0.0Y0.0                                N155 G28X0.0Y0.0
N155 G28X0.0Y0.0
N160 G90                                             N160 G90
N160 G90
 
 
I'd also like to know how to start the N#'s over again at N10 for each sub
program that I code on SmartCAM. 
Does anyone know what .INI file I need to edit to get the N#'s to out put
before the block skip like list 1?
Thanks for your help.
If your confused please call me at 217-632-4640 for more information.
 
Thanks
Jeff
 

======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to