Skip to content

Specific working mode for CO2 laser on parameter $32! #721

@Deltaplc

Description

@Deltaplc

Good morning
Sorry to bother you....
I don't know if I've discovered hot water.....but I certainly think I've thought of(and tested) a valid solution to solve the problem!
I will try to explain myself with some examples, to help you better understand the problem that occurs when engraving images.
I have a home-made CO2 laser derived from a K40.

Example of engraving a photo in any mode (Stucki, Jarvis, dithering, etc.) except grayscale.

K40 operation "original configuration":
Fragment of a hypothetical gcode:
G1 X2.5F6000 off laser
G1 X0.1 on laser
G1 X20.5 off laser
G1 X0.1 on laser
G1 X2.5 off laser
G1 .....
The potentiometer (manual analog) supplies a constant voltage to the IN pin (pwm) and the board turns the laser beam on and off via the L (enable) pin.
Example of this configuration:
The sniper has his eye on the scope, always aimed at the target, and he only has to pull the trigger to shoot!
Result:
The IN pin is always at the desired voltage and already keeps the power supply "capacitors charged", it just needs to fire!

Custom laser with any board and firmware derived from grbl and with lightburn or lasergrbl software etc...:
Fragment of a hypothetical gcode:
M4
M3
G1 X2.5F6000 S0
G1 X0.1 S200
G1 X20.5 S0
G1 X0.1 S200
G1 X2.5 S0
G1 .....
The voltage on the IN(pwm) pin, varies from zero to S200, and the L(enable) pin, turns the laser beam on and off, following the strategy that depends on the M3/M4.

Example of this configuration:
The sniper must re-center his eye in the crosshairs every time he has to shoot and then pull the trigger!
Result:
The IN pin does NOT have a constant voltage, but varies between zero volts and S200,
the power supply "capacitors are not constantly charged" and when it fires it is not ready to immediately parry at the desired power!
General problem:
Loss of much detail when using dithering, Jarvis or similar methods at high speeds!

My thoughts Changes to be made to the firmware:
On the solution to this problem:

  1. $32= 0 = CNC; 1= Laser ; 2= ​​Lathe ; 3=Laser_Co2
  2. SPINDLE_ENABLE_PIN = Behavior unchanged, behaves as it does now.
  3. SPINDLE_PWM_PIN = M3/M4 S.....= S1 / S1000 pwm regulation, does NOT consider the S0 parameter for pwm regulation.
  4. M3 / M4 = Turns off with M5 or M2 command. (Now, if $34 is greater than 1, M3 does not turn off if M5 or M2 command is given!)
  5. $34 = Possibility to vary the value from an M(....)S(...) command. In order to adjust and refine the resolution.

Result (already tested):

  • The voltage on the IN(pwm) pin remains constant, because it does NOT consider the S 0 value as a power variation! If $34 is
    slightly higher than the desired power, it improves further!
  • The laser beam will still turn on and off, using the enable pin (L pin) which will keep the same current working strategy.
  • When using the M5 or M2 commands, the laser beam is switched off and made safe!
  • It is also possible to refine all this using the function supported by the $34 command, extending the possibility of varying its parameters with M(....)(S....) commands.

I have already tested this type of configuration manually and using the $34 parameter...
The difference in the result on the finished product is truly abysmal!
At the moment it seems to me that no one has a custom configuration for the control of co2 lasers!
In my opinion it is fundamental since the behavior of the laser beam ignition is profoundly different from that of diode lasers!
I hope you can make these changes, because it will bring huge benefits to those who use grblHal to control their custom co2 laser!

I am available if you need to do tests or for anything about it!
Thank you in advance.
Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions