MonoKrom - QtPyVCP GUI for PlasmaC and Mill

More
07 Nov 2025 19:53 #338047 by Sandro
Replied by Sandro on topic MonoKrom - QtPyVCP GUI for PlasmaC and Mill
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!
Attachments:

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
07 Nov 2025 20:41 #338048 by tommylight
Replied by tommylight on topic MonoKrom - QtPyVCP GUI for PlasmaC and Mill
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
08 Nov 2025 06:07 #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
08 Nov 2025 07:59 #338072 by Sandro
Replied by Sandro on topic MonoKrom - QtPyVCP GUI for PlasmaC and Mill
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.

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
08 Nov 2025 09:18 - 08 Nov 2025 10:17 #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

        #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
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:
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.
Attachments:
Last edit: 08 Nov 2025 10:17 by Hakan.

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

More
08 Nov 2025 11:11 #338077 by Aciera
Replied by Aciera on topic MonoKrom - QtPyVCP GUI for PlasmaC and Mill
the 'imp' module has been removed in python 3.12

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

  • Hakan
  • Away
  • Platinum Member
  • Platinum Member
More
08 Nov 2025 13:46 - 08 Nov 2025 13:46 #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.
Last edit: 08 Nov 2025 13:46 by Hakan.
The following user(s) said Thank You: tommylight, rodw

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

More
09 Nov 2025 10:57 #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 or Create an account to join the conversation.

More
26 Nov 2025 19:08 #339256 by Sandro
Replied by Sandro on topic MonoKrom - QtPyVCP GUI for PlasmaC and Mill
So the plasma_gcode_preprocessor which comes with Monokrom works for you? I still had no success.

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

More
27 Nov 2025 06:32 #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 or Create an account to join the conversation.

Moderators: KCJLcvette
Time to create page: 0.153 seconds
Powered by Kunena Forum