G-Code Error on Atomstack a5 Pro

I have an Atomstack a5 pro and was running quite fine, tried to change macro to a test blink using:
https://awesome.tech/test-fire-button-in-lightburn/

It stopped my machine working so deleted the macro and now I cant do anything all I get is this:

Starting stream

Stream completed in 0:00

Starting stream

Layer C03

[MSG:M4 requires laser mode or a reversable spindle]

error:20

Unsupported or invalid g-code command found in block.

On or near line 4:

Job halted

Stream completed in 0:00

I’m new to this so don’t know where “line 4” is. Could someone please help.

Thanks

Can you type $$ enter in console and copy/paste in your reply?

Hi,

This is what I’ve got:

$$

$0=10

$1=25

$2=0

$3=0

$4=0

$5=1

$6=0

$10=1

$11=0.010

$12=0.002

$13=0

$20=0

$21=1

$22=1

$23=3

$24=300.000

$25=3000.000

$26=250.000

$27=1.000

$30=1000.000

$31=0.000

$32=0

$37=1

$40=2

$100=80.000

$101=80.000

$102=80.000

$103=100.000

$104=100.000

$105=100.000

$110=6000.000

$111=6000.000

$112=6000.000

$113=1000.000

$114=1000.000

$115=1000.000

$120=1000.000

$121=1000.000

$122=1000.000

$123=200.000

$124=200.000

$125=200.000

$130=410.000

$131=400.000

$132=200.000

$133=300.000

$134=300.000

$135=300.000

ok

Not sure this is very GRBL h compatible
image

Remove the $32=0 at start and $32=1 at end
That makes little sense to disable M4 mode, and THEN use M4 command

In the console window, type “$32=1”. This enables laser mode again. It’s turned off in your configuration.

Hi,

Apologies, I’m very new and wanted to see the laser much like you can in LaserGRBL to test fire it.

I’ve removed the $32=0 at start and $32=1 at end so in that macro left it as:

M4 S200

G4 P0.25

M5

And it still doesnt work?

Would it be possible to factory reset Lightburn? I don’t know if that will help?

Factory reset of your laser is done by sending $RST=* in the console window.

This macro doesn’t affect LightBurn, it’s a laser settings thing.

The macro from the page over there makes absolutely no sense. That guy didn’t know what he was doing. There is a fire function already integrated in LightBurn, you need to enable the fire function in device settings and then you have a fire button in the move window. No need for a macro.

Hi,

Ahh so the laser came on and moved around but hasnt actually engraved or cut anything? Do you know why this might be?

Thank you for your help so far though!

Go to Edit _> Device settings
Enable fire button
Fire on frame

Then go to move pannel, there is a new button there that says fire
In front set it to 1% or 0.5% (depends on your power module)

Once you do this. you click fire, laser wil turn on at the given power
if you press frame it will do a broundry of the project with the given power

A pulse fucntion shoul be possible

M3 S10
G1 F1000
G04 P500
M5

Should work?
Unable to test now

This depends on your layer settings. If power is too low, it won’t do anything. Or did you use the framing function? That one is intentionally not doing anything to the material (if set up properly).

No I set it running and it’s cutting it now on 100% power but not engraving. The power is on 50% for engraving.

Did you set $32=1 in console?

Thankyou to all those that helped! I’m back up and running

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.