Check to make sure your device is set up with the correct device profile, following these steps:
-Click ‘Devices’ in the ‘Laser’ window
-Double click your laser in the list
-Make sure the selected device is set to ‘GRBL’
-click next until you’re done
Next, in your Device Settings (‘Edit’ > ‘Device Settings’), make sure you do not have ‘GCode Clustering’ enabled.
Please save and share the GCode (‘File’ > ‘Save GCode’) for an example project here so we can take a look. You’ll need to change the file extension to ‘.txt’ to upload it here.
Nothing is jumping out from this GCode - this could be a firmware configuration issue or a communications issue. A simple thing to try is changing the ‘Transfer mode’ in ‘Device Settings’ from ‘Buffered’ to ‘Synchronous.’
If that doesn’t help, please open the Console window (Top menu bar > ‘Window’ > ‘Console’), and enter these commands, one line at a time, and press “enter” after each:
$i
$$
$#
?
Then Copy/Paste the results into a reply here, so we may investigate further.
Hello to all. I’m having the same issue. I’ve looked at older posts and made sure all is correct.
Rotary : Disabled
Device set to GRBL
Gcode clustering : Disabled
Transfer mode : Buffered
Changed to Synchronous
Buffered
Starting stream
Layer C00
[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
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
ok
Synchronous
Starting stream
[MSG:M4 requires laser mode or a reversable spindle]
error:20
Unsupported or invalid g-code command found in block.
Thanks for the reply
I have infact enabled Laser mode and still to no avail
I’ve actually bricked the controller trying to update the firmware from Makerbase so i need to fix that first
Hi again. I’ve updated the firmware to the MKS latest version V2.30_H35_2022_1223_N_ZX_001 and i’m experiencing alot of line shifting/ missed steps even after adjusting $120(from 50 through to 1200) and X “Speed” to lower values in Lightburn as well. Nothing seem to be changing the shifting. So i loaded the earlier firmware version V2.20_H35_2022_1101_N_ZX_002 and even though this is alot better it seems that no settings are getting rid of the shifting in the lines. I’ve aslo taken the gantry apart and cleaned it. It’s now spotless so no binding, resistance, etc. So i’m not sure where to go from here ???
And would anyone be able to supply the list of $ settings for this firmware. There are some missing from the listing on Github MKS as copied from the site as opposed to the above from the controller
COMMANDS
PARAMETERS
DESCRIPTION
$0
10
Sets time length per step. Minimum 3usec.
$1
5
Sets a short hold delay when stopping to let dynamics settle before disabling steppers. Value 255 keeps motors enabled with no delay.
$2
0
Inverts the step signal. Set axis bit to invert (00000ZYX). The details can refer to XYZ-TABLE
$3
1
Inverts the direction signal. Set axis bit to invert (00000ZYX). The details can refer to XYZ-TABLE
$4
0
Inverts the stepper driver enable pin signal.
$5
1
Inverts the all of the limit input pins.
$6
0
Inverts the probe input pin signal.
$10
1
Alters data included in status reports.
$11
0.01
Sets how fast Grbl travels through consecutive motions. Lower value slows it down.
$12
0.002
Sets the G2 and G3 arc tracing accuracy based on radial error. Beware: A very small value may effect performance.
$13
0
Enables inch units when returning any position and rate value that is not a settings value.
$20
0
Enables soft limits checks within machine travel and sets alarm when exceeded. Requires homing.
$21
0
Enables hard limits. Immediately halts motion and throws an alarm when switch is triggered.
$22
0
Enables homing cycle. Requires limit switches on all axes.
$23
0
Homing searches for a switch in the positive direction. Set axis bit (00000ZYX) to search in negative direction. The details can refer to XYZ-TABLE
$24
300
Feed rate to slowly engage limit switch to determine its location accurately.
$25
1000
Seek rate to quickly find the limit switch before the slower locating phase.
$26
250
Sets a short delay between phases of homing cycle to let a switch debounce.
$27
1
Retract distance after triggering switch to disengage it. Homing will fail if switch isn’t cleared.
$28
1000
Modify the output frequency of the spindle, the input range is 0-100000
$30
1000
Maximum spindle speed. Sets PWM to 100% duty cycle.
$31
0
Minimum spindle speed. Sets PWM to 0.4% or lowest duty cycle.
$32
1
Enables laser mode. Consecutive G1/2/3 commands will not halt when spindle speed is changed.
$100
80
X-axis travel resolution in steps per millimeter.
$101
80
Y-axis travel resolution in steps per millimeter.
$102
80
Z-axis travel resolution in steps per millimeter.
$110
6000
X-axis maximum rate. Used as G0 rapid rate.
$111
6000
Y-axis maximum rate. Used as G0 rapid rate.
$112
6000
Z-axis maximum rate. Used as G0 rapid rate.
$120
500
X-axis acceleration. Used for motion planning to not exceed motor torque and lose steps.
$121
500
Y-axis acceleration. Used for motion planning to not exceed motor torque and lose steps.
$122
500
Z-axis acceleration. Used for motion planning to not exceed motor torque and lose steps.
$130
285
Maximum X-axis travel distance from homing switch. Determines valid machine space for soft-limits and homing search distances.
$131
272
Maximum Y-axis travel distance from homing switch. Determines valid machine space for soft-limits and homing search distances.
$132
80
Maximum Z-axis travel distance from homing switch. Determines valid machine space for soft-limits and homing search distances.