Results 1 to 7 of 7

Thread: SolidCAM - g-code export fail

  1. #1
    Registered
    Join Date
    Jul 2009
    Location
    UK
    Posts
    15
    Downloads
    0
    Uploads
    0

    SolidCAM - g-code export fail

    Error Message - Line 380, error 41828: System variable 'xc' can not be declared ....

    any ideas what this means? Its my first attempt to export g-code. Its a super simple operation. Its a turning operation.

    If I click OK, i then get this error message:

    Line 713, error 41839: Cannot initialize GPPTool environment

    I can't seem to get past this, has anyone got any ideas?

    It only happens with FANUC0T output ... it exports ok in OKUMAL ??!


    Cheers, C.
    Last edited by mr chris; 07-12-2009 at 08:36 PM.


  2. #2
    Registered
    Join Date
    Dec 2007
    Location
    Turkey
    Posts
    12
    Downloads
    0
    Uploads
    0
    Firstly , open FanucOT.gpp file in the notepad. Find XC variable, and change all xc variable name (for example : XC_new).

    You can export g code now

    example :
    @turn_drill
    local string for for1 for2 for3
    for1 = '2/2.0(P)'
    for2 = '2/2.0(P*10)'
    for3 = '5.0(P*1000)'

    local numeric save_feed xc_new


  3. #3
    Registered
    Join Date
    Jul 2009
    Location
    UK
    Posts
    15
    Downloads
    0
    Uploads
    0
    hey yasemintalay, cheers for the info.

    i've done what you suggested, and it's worked. I have no idea what the change means though..... could you explain? I'm a real newbie to all this. What's an xc variable, and why does changing its name in the gpp file help? And what is a gpp file?

    Cheers,

    C.


  4. #4
    Registered
    Join Date
    May 2010
    Location
    Brazil
    Posts
    2
    Downloads
    0
    Uploads
    0

    Unhappy HELPPPPPP

    line 1195, error 41793: Variable 'xc_newenter' is not defined
    Line 1518, error 41839: Cannot initialize GPPTool enviroment

    What should I put instead of "xc" variable? The xc_new didnīt work properly here Thank you.


  • #5
    Registered
    Join Date
    Oct 2007
    Location
    United Kingdom
    Posts
    442
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by mr chris View Post
    What's an xc variable, and why does changing its name in the gpp file help? And what is a gpp file?
    It's easier to start from the end. A GPP file is a post-processor. In other words, it takes the CAM output and puts it into machine code. You can make the post as detailed or as vague as you like; when its vague the programmer has to put all the tool change code, etc in manually whereas when its detailed the code is ready to put straight into the machine with no manual editing.

    The "xc" variable is simply a variable that is used in the post and I am not sure why renaming it helped as the error you had indicates that the variable was not declared with a line thus global numeric xc at the head of the GPP file. What the "xc " variable does can only be understood by studying the GPP file.

    Open up you GPP file and then fire up the GPP help in the SolidWorks / SolidCAM interface so you can study how the GPP functions. Read back through this forum as there are some enthusiatic GPP tweakers here.

    Have fun

    Bob


  • #6
    Registered
    Join Date
    May 2010
    Location
    Brazil
    Posts
    2
    Downloads
    0
    Uploads
    0

    generate g-code

    I have solidworks 2010 and solidCAM2008 and I can't generate G-code coz thereīs no option for it, i had solidCAM 2007 and it wasnīt any problem. The option "generate" is erased in a gray color, anyone can please help me??????????????


  • #7
    Registered
    Join Date
    Oct 2007
    Location
    United Kingdom
    Posts
    442
    Downloads
    0
    Uploads
    0
    Quote Originally Posted by Uchoa View Post
    I have solidworks 2010 and solidCAM2008 and I can't generate G-code coz thereīs no option for it, i had solidCAM 2007 and it wasnīt any problem. The option "generate" is erased in a gray color, anyone can please help me??????????????
    That sounds like a demo version of SC2010. Get your dongle codes updated from your your reseller and everything should work as it did.


  • Similar Threads

    1. Lathe g-code output from SolidCAM
      By BSF in forum SolidCam
      Replies: 2
      Last Post: 07-06-2009, 03:31 PM
    2. Is there a way to generate CL code in Solidcam
      By manussim in forum SolidCam
      Replies: 1
      Last Post: 11-23-2008, 09:44 AM
    3. Lube Fail
      By CC714 in forum Fanuc
      Replies: 2
      Last Post: 01-24-2008, 11:39 AM
    4. How to export g-code
      By tazboi in forum Mastercam
      Replies: 3
      Last Post: 07-06-2006, 04:15 PM
    5. CAM/CAD export to g-code
      By Net-Man in forum General CAM Discussion
      Replies: 1
      Last Post: 07-05-2005, 08:58 PM

    Posting Permissions


     


    About CNCzone.com

      We are the largest and most active discussion forum from DIY CNC Machines to the Cad/Cam software to run them. The site is 100% free to join and use, so join today!

    Follow us on

    Facebook Dribbble RSS Feed


    Search Engine Friendly URLs by vBSEO ©2011, Crawlability, Inc.