cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Laser Grbl Post M3/M4

Laser Grbl Post M3/M4

Allow you to select to use M3 or M4 for turning on the laser. 

 

A powerful feature of Grbl 1.1 is the M3 Constant Laser Power Mode or M4 Dynamic Laser Power Mode.

 

M3 is good for cutting, M4 for etching because it calculates turns and adjusts the laser power setting so you don't get burnt corners.

 

 

 

Please refence:

https://github.com/gnea/grbl/wiki/Grbl-v1.1-Laser-Mode

 

1 Comment
adminFGVYK
Community Visitor

Hi

New to the board so bear with me.

We are busy with a Plasma table that will be controlled by Grbl.  The following issues was found in the current V1.1 post which are actually Laser centric.

 

I don't know if the issues I have is just 'beginner stupidity' but here goes.

1.  The processing failed with error in 'onRadiusCompensation'  I comment that out.

2. The Laser power was switched on at start. This line  function now force an M3 to switch the flame off.

3. The 'onPower' function was empty. As we use Plasma that need to be Started and  Stopped many times per part we included M3 and M4 depending on On or Off.

 

The following lines was changed and the system is now usable.  Maybe a Plasma Ggrbl Post is required.

1)

function onRadiusCompensation() {
// *** ADIE This line caued a crash in Posting ****
//pendingRadiusCompensation = radiusCompensation;
}

 

2)

// ** Adie = do not start flame BUT STOP IT **
//writeBlock(gMotionModal.format(0), sOutput.format(power), mFormat.format(getPowerMode(currentSection)));
writeBlock(mFormat.format(3)); // Stop Flame
// ** End Adie **

 

3) *** Crude but working *** Smiley LOL

// ** Adie Switch Flame on or off **
function onPower(power) {
if (power) writeBlock(mFormat.format(4)); // Start Flame
if (!power) writeBlock(mFormat.format(3)); // Stop Flame
}

 

Cheers

Adie

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea