Aspire Direct Output to UCCNC
Posted: Wed Oct 30, 2024 12:33 pm
Hello,
this is my solution to enable the Aspire direct output function for UCCNC
Let me know if it works for you too and if it can be improved
To enable the direct output I added this line into a copy of the UCCNC original postprocessor
The first part is just a name, the second is the ini file that contains the command to execute
Then I put this command into the ini file
What it does is creating a UCCNC subfolder in the temp folder and moves the gcode (%s) into it with a fixed name.
Both files are in the attached zip file and go into this folder, where V is the version of Aspire
To make UCCNC load the file I created an M20002 macro and setup a macroloop that starts with UCCNC
The macro continuously checks if there is an Autoload.gcode file in the specified folder and, if UCCNC is stopped, loads it then removes it.
this is my solution to enable the Aspire direct output function for UCCNC
Let me know if it works for you too and if it can be improved
To enable the direct output I added this line into a copy of the UCCNC original postprocessor
The first part is just a name, the second is the ini file that contains the command to execute
- Code: Select all
DIRECT_OUTPUT = "UCCNC|UCCNC_run.ini"
Then I put this command into the ini file
What it does is creating a UCCNC subfolder in the temp folder and moves the gcode (%s) into it with a fixed name.
- Code: Select all
cmd
/c mkdir "%%TEMP%%\UCCNC\" & move /y %s "%%TEMP%%\UCCNC\Autoload.gcode"
Both files are in the attached zip file and go into this folder, where V is the version of Aspire
- Code: Select all
C:\ProgramData\Vectric\Aspire\{Vx.x}\My_PostP
To make UCCNC load the file I created an M20002 macro and setup a macroloop that starts with UCCNC
The macro continuously checks if there is an Autoload.gcode file in the specified folder and, if UCCNC is stopped, loads it then removes it.
- Code: Select all
string AutoloadFile = Environment.GetEnvironmentVariable("TEMP") + @"\UCCNC\Autoload.gcode";
//MessageBox.Show(AutoloadFile);
if(exec.CycleStopped && System.IO.File.Exists(AutoloadFile)){
exec.Loadfile(AutoloadFile);
while(exec.IsLoading()){}
System.IO.File.Delete(AutoloadFile);
}