command ncc is not waiting

Issue #307 resolved
Brian created an issue

Hi,

if I run the successive commands in a script file:

open_gerber

ncc

cncjob

I get an error

ERROR: Object not found: Top_Tracks_NCC

while executing

"cncjob ..."

The script moves on to the next command while ncc job is is still running and before the ncc plot exists

Many Thanks

Comments (11)

  1. Marius Stanciu

    Ok. Added the option for the clear_copper() method to run non-threaded and use this on the ncc TcL command.

  2. Marius Stanciu

    BTW, the cncjob TclCommand does not work with multi-geo geometries like the ones generated by the Paint Tool or NonCopperClear Tool.

  3. Marius Stanciu

    Until the cncjob is fixed, for the TclCommands ncc and paint it is a deadend.
    Fixing cncjob will take some time as it require some code refactoring.

  4. Brian reporter

    wow, Thanks.

    TclCommand cncjob does not use -outname but does work

    error in powershell, could be unrelated!

    [ERROR][Dummy-13] Exception occurred within a postprocessor: Traceback (most recent call last):

    File "C:\Temp\Winpython32-3.7.4.0\FlatCAM\jpcgt-flatcam-b67bec80521c\camlib.py", line 5637, in doformat2

    ‌ returnvalue = fun(attributes)

    File "postprocessors\grbl_laser.py", line 80, in end_code

    ‌ gcode = ('G00 Z' + self.feedrate_format %(p.fr_decimals, p.z_end) + "\n")

    TypeError: must be real number, not NoneType

  5. Marius Stanciu

    Hi,

    I did fixed the outname issue but regarding the error I need to know the exact steps you’ve done to create the issue (including the parameters you used). One easier way is to send me a Project file set with everything. You can attach it here.

  6. Marius Stanciu

    Regarding the error in the post above, the reason is that you specified the endz argument liek this:
    -endz

    without giving it a value like it is supposed:
    -endz 30

    I took care of that for Tcl Commands cncjob and drillcncjob such that whenever the value is not given to the parameter it will be like the parameter was not used and the value used will be the one from the defaults (preferences window).

  7. Log in to comment