Hello Guest it is February 12, 2026, 04:17:22 PM

Author Topic: MACH4\pokeys57 : Controlling PWM to laser engrave in greyscales  (Read 1183 times)

0 Members and 1 Guest are viewing this topic.

Re: MACH4\pokeys57 : Controlling PWM to laser engrave in greyscales
« Reply #10 on: February 07, 2026, 04:53:19 AM »
My remapping function of power isn't satisfying yet. I must say that i didn't take the easiest photo. I made a quick user interface (Python).

Lessons Learned :
To avoid white lines caused by a mismatch between the requested travel distances and the minimum step resolution allowed on an axis, I implemented a step-based logic where the commanded distance is computed by multiplying the number of Y-axis steps by the axis counts-per-unit value.
The same resolution was initially used for the X-axis motion; however, the system was unable to keep up with the resulting instruction rate, causing the feed rate to drop to 2400 instead of the requested 3000. As a result, the resolution had to be reduced.
Re: MACH4\pokeys57 : Controlling PWM to laser engrave in grayscales
« Reply #11 on: February 08, 2026, 08:29:37 AM »
Here's the first release of my Gcode converter, AliG : https://github.com/MoMo830/AliG/releases/tag/AliG

Feek free to comment.
« Last Edit: February 08, 2026, 08:37:09 AM by momofr83 »
Re: MACH4\pokeys57 : Controlling PWM to laser engrave in greyscales
« Reply #12 on: February 08, 2026, 08:38:47 AM »
A small example, once settings are correct.

Offline Tweakie.CNC

*
  • *
  •  9,341 9,341
  • Super Kitty
Re: MACH4\pokeys57 : Controlling PWM to laser engrave in greyscales
« Reply #13 on: February 09, 2026, 01:33:45 AM »
Excellent progress.

nb. GitHub returns 404 error for your Alig.

Tweakie.
PEACE
Re: MACH4\pokeys57 : Controlling PWM to laser engrave in greyscales
« Reply #14 on: February 09, 2026, 01:39:47 AM »
Sorry, the good one : https://github.com/MoMo830/AliG
Re: MACH4\pokeys57 : Controlling PWM to laser engrave in grayscales
« Reply #15 on: February 10, 2026, 03:07:43 AM »
I made some updates to ALIG :
- Added Analog output choice (not suitable yet with pokeys, as it requires analog output 0)
- Added S support
- Choice of the origin point
- Improved graphics

Link of the project : https://github.com/MoMo830/AliG

Do I need to make a new topic as S commands are now supported ?

Offline Tweakie.CNC

*
  • *
  •  9,341 9,341
  • Super Kitty
Re: MACH4\pokeys57 : Controlling PWM to laser engrave in greyscales
« Reply #16 on: February 10, 2026, 05:03:03 AM »
Do we know if Mach4 now supports the S### command being used within a running GCode without breaking the CV chain ?
Last I tried it failed miserably.

Tweakie.
PEACE
Re: MACH4\pokeys57 : Controlling PWM to laser engrave in grayscales
« Reply #17 on: February 10, 2026, 05:07:24 AM »
No it doesn't, thats why I built this software. It allows to use M67. I just added S for non mach users.
I can now engrave within Mach4.

I still use S for cutting only.
« Last Edit: February 10, 2026, 05:09:57 AM by momofr83 »

Offline Tweakie.CNC

*
  • *
  •  9,341 9,341
  • Super Kitty
Re: MACH4\pokeys57 : Controlling PWM to laser engrave in greyscales
« Reply #18 on: February 10, 2026, 10:02:52 AM »
OK thanks, I now understand your reasoning for adding the S### support.

Tweakie.
PEACE