586,117 active members*
3,510 visitors online*
Register for free
Login
Results 1 to 3 of 3
  1. #1
    Join Date
    Oct 2004
    Posts
    48

    SolidCam Post open file comand

    I am trying to get SolidCam to create 2 files when posting my jobs. I want to post my normal Gcode as well as a tool file that will hold a series of parameters that the main program will read. What I need to know is how to make the GPP file create an additional file.
    At the moment I have added the following to my GPP file:

    local string PARAMETERS
    {nl,'!!open file=' PARAMETERS '.nc!!'}
    {nl,'%'}
    {nl,'<PARAMETERS>'}
    {nl,' TOOL PROG TEST '}
    {nl}
    mcode=99
    {nl,'M',mcode}
    {nl,'%'}
    {nl,'!!close file=' PARAMETERS '.nc!!'}
    endif

    This is not working as it just adds the following to the main outputted Gcode

    !!open file=!!
    %
    <PARAMETERS>
    TOOL PROG TEST

    M99
    %
    !!close file=.nc!!

    If anyone could help with what to add or change in the GPP file to get the separate file opening and closing it would be much appreciated

    Jake T-B

  2. #2
    Join Date
    Aug 2009
    Posts
    3
    Hi,

    tell us, where do you insert the syntax, I mean the place of the subroutine? (@xxx)

    Orgelbie

  3. #3
    Join Date
    Oct 2007
    Posts
    499
    Hi Jake,

    Try including the full file name in PARAMETERS before the open file command

    local string PARAMETERS
    PARAMETERS = 'PARAMETERS.NC'
    {nl,'!!open file=' PARAMETERS '!!'}
    {nl,'%'}
    {nl,'<PARAMETERS>'}
    {nl,' TOOL PROG TEST '}
    {nl}
    mcode=99
    {nl,'M',mcode}
    {nl,'%'}
    {nl,'!!close file=' PARAMETERS '!!'}

    The other thing to remember is always convert numbers etc. to strings before tring to output them to text files

    Bob

Similar Threads

  1. Replies: 3
    Last Post: 09-23-2008, 03:03 PM
  2. Cant open DXF file with mc9.1
    By CATCH22 in forum Mastercam
    Replies: 10
    Last Post: 01-04-2008, 08:46 PM
  3. CANT OPEN FILE
    By reedmiles in forum BobCad-Cam
    Replies: 1
    Last Post: 12-13-2007, 07:03 PM
  4. Replies: 17
    Last Post: 01-29-2007, 12:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •