MonoKrom - QtPyVCP GUI for PlasmaC and Mill

More
11 months 3 weeks ago #338047 by Sandro
I still have the error “unknown word where unary operation could be” even when I output a .ngc file from SheetCam. I've test with the LinuxCNC plasma post processor for SheetCam. In Monokrom I am using the plasma_gcode_preprocessor (default with Monokorm). I have attached the pre processor log. There everything seems to work. However the LinuxCNC parser seems to be unable to read whatever the plasma_gcode_preprocessor puts out. The error comes from here:  github.com/LinuxCNC/linuxcnc/blob/af15a4...interp_read.cc#L1424

Preprocessor log:
Warning: Spoiler!

Please Log in or Create an account to join the conversation.

More
11 months 3 weeks ago #338048 by tommylight
It says LinuxCNC post processor but it does output line numbers with N, why?
Mach3 uses line numbers, not LinuxCNC, so try removing them.

Please Log in or Create an account to join the conversation.

More
11 months 3 weeks ago #338067 by rodw
there should be a specific post processor for Plasmac shipped with Sheetcam (before QTplasmac) Try it and read the file as there are notes at the top.

@Tommy, line numbers in linuxcnc are optional and Sheetcam has settings to generate with and without.

Please Log in or Create an account to join the conversation.

More
11 months 3 weeks ago #338072 by Sandro
Yes I forgot to mention this. I have tested with the Plasamac postprocessor as well (the one I normally use with my QtPlasmac setup) with the same result. It works, if I deactivate the plasma_gcode_preprocessor in the Filter section of the INI but then I can obviously not use any of the advanced Monokrom features like hole detection.

Please Log in or Create an account to join the conversation.

More
11 months 3 weeks ago - 11 months 3 weeks ago #338073 by Hakan
At least got it up and running. 
1. Had to replace "import imp" in  /usr/lib/python3/dist-packages/qtpyvcp/app/application.py 
with "import importlib.util"
and on line 159

Code:
        #module = imp.load_source('python_vcp', pyfile)         spec = importlib.util.spec_from_file_location('python_vcp', pyfile)         module = importlib.util.module_from_spec(spec)         spec.loader.exec_module(module)

This comes from the python3-qtpyvcp apt package.
Is it qtpyvcp to blame or trixie that doesn't provide the imp module?

2. Missing [PLASMAC]SLAT_TOP in ini file. Added
SLAT_TOP=0.0 in PLASMAC section.
I guess it could be given a default value as is done for so many variables when they are missing.

3. Locale problems. <string>:1: SyntaxWarning: invalid decimal literal
Started linuxcnc with
Code:
debian@plasma$ LC_ALL=C linuxcnc xyz.ini


and it gives me a Monokrom screen.
 

Edit.
The LC_ALL=C wasn't needed.
But this one needs attention:
Code:
Note: Using POSIX realtime !!!!db_init: </home/james/dev/venv/bin/plasma_tooldbpipe> not executable emc/task/taskclass.cc 169: can't initialize DB_PROGRAM. emc/task/taskclass.cc 188: can't load tool table.
Last edit: 11 months 3 weeks ago by Hakan.

Please Log in or Create an account to join the conversation.

More
11 months 3 weeks ago #338077 by Aciera
the 'imp' module has been removed in python 3.12

Please Log in or Create an account to join the conversation.

Moderators: KCJ, Lcvette
Time to create page: 0.073 seconds
Powered by Kunena Forum