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 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 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 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 to join the conversation.

More
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.
 

Attachment not found



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.

Please Log in 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 to join the conversation.

More
11 months 3 weeks ago #338079 by Hakan
Yes, trixie uses python3.13. I guess it would be fine in bookworm with 3.11.
It turned out the tool_db issue was just a setting in xyz.ini. The tool program is in /usr/bin.

I have played around a bit and yes it looks very very nice.
The material handling looks awesome.
So I'll turn it into a real machine, for my plasma cutter.

Please Log in to join the conversation.

More
11 months 3 weeks ago #338110 by rodw

Yes, trixie uses python3.13. I guess it would be fine in bookworm with 3.11.
It turned out the tool_db issue was just a setting in xyz.ini. The tool program is in /usr/bin.

I have played around a bit and yes it looks very very nice.
The material handling looks awesome.
So I'll turn it into a real machine, for my plasma cutter.
Yes, I helped Joco get this working on real hardware when he did the first development. and it is very good. Built like a touch screen gui should be! 

Please Log in to join the conversation.

More
11 months 4 days ago #339256 by Sandro
So the plasma_gcode_preprocessor which comes with Monokrom works for you? I still had no success.

Please Log in to join the conversation.

More
11 months 4 days ago #339306 by rodw

So the plasma_gcode_preprocessor which comes with Monokrom works for you? I still had no success.
I used sheetcam with the plasmac post processor and let monokrom's filter do the hole processing.

Please Log in to join the conversation.

Time to create page: 0.659 seconds
Powered by Kunena Forum