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