The error generated is caused by the #IF(VIS(#U0))< > statement in the @FIRSTHOLE section of your template file. The "VIS()" function is actually one of the macro snap functions but does work as expected within the code generator. I believe the error checking routine in SmartCAM doesn't recognizes this one particular macro command as valid in the template file. I've have the exact same problem. The code generator performs as expected but I always get an error message when the debug switches are set. I've tried variations of the syntax, such as:
#IF(VIS(#U0))< >// visible if true (Boolean) #IF(VIS(#U0)=1)< >// visible if true #IF(VIS(#U0)=-1)< >// masked if true #IF(VIS(#U0)<0)< >// masked if true #IF(VIS(#U0)>0)< >// visible if true #IF(VIS(#U0)<>0)< >// visible or masked if true (hey, I was desperate) But with no luck. This is one I've learned to live with. It's not "officially" a bug because "officially" macro snap functions aren't intended to work in the code generator template file. Unofficially they work pretty damn good. ============================================= Fred Lauzus, CAM Programming Coordinator High Steel Structures, Incorporated mailto:[EMAIL PROTECTED] http://www.highsteel.com ============================================= -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, June 25, 2001 3:08 PM To: 'SmartCam Forum'; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [mfg-smartcam] Code Generator for Fanuc 16i-M Sorry, It's Monday................. .(See attached file: 16i.zip) 06/25/2001 10:03 AM David Vandervort David Vandervort David Vandervort 06/25/2001 10:03 AM 06/25/2001 10:03 AM To: [EMAIL PROTECTED], "'SmartCam Forum'" <[EMAIL PROTECTED]> cc: [EMAIL PROTECTED] Subject: Re: [mfg-smartcam] Code Generator for Fanuc 16i-M (Document link: David Vandervort) Paul, This is a work in progress and should be used for reference only. I'm using it on a VMC with a 4th axis (C axis called B) to code holes on the XY plane but output C axis moves. Hope this helps. Fred, Would you look at this and tell me why I always get an invalid numeric expression error from my @FIRSTHOLE section? It functions correctly, but always errors when there is a hole present in the process model. Thanks, Dave "Paul G Anderson" <[EMAIL PROTECTED]> on 06/21/2001 07:11:27 PM Please respond to [EMAIL PROTECTED] To: "Mfg-Smartcam \(E-mail\)" <[EMAIL PROTECTED]> cc: "Dave Gallagher"@loki.sdrc.com (bcc: David Vandervort/USA/PSTI/Praxair) Subject: [mfg-smartcam] Code Generator for Fanuc 16i-M Hello All, Does any have a code generator for a Fanuc 16i-M controller ? Its on a brand new Daewoo 4 axis horizontal twin pallet machining center. Anything close would help as well. Thanks in advance ! Paul G Anderson ME/Programming Tura Machine Co 610-534-1800 Ext. 218 ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ====================================================================== ====================================================================== To find out more about this mailing list including how to unsubscribe, send the message "info mfg-smartcam" to [EMAIL PROTECTED] ======================================================================
