i try starting a project and it stps before it starts, i get this error but i cant figure it out!
error:20
Unsupported or invalid g-code command found in block.
On or near line 2:
Job halted
i try starting a project and it stps before it starts, i get this error but i cant figure it out!
error:20
Unsupported or invalid g-code command found in block.
On or near line 2:
Job halted
Do you have any code listed in Gcode tab in Edit->Device Settings?
If not, can you provide the following:
$I
in Console if you’re not certain)I have the mks dlc32
[VER:1.1.2022010801:]
[OPT:PHSW]
[MSG:Using machine:MKS DLC32]
[MSG:Mode=AP:SSDI=MKS_DLC:IP=192.168.4.1:MAC=0C-DC-7E-49-E4-FD]
test square.dxf (288.2 KB)
Can you push the “Save g-code” button in Laser window and save the file with a .txt extension? The .txt extension will allow the file to be uploaded here.
it wont let choose .txt, it sets itself to nc. and there is not drop box to make it txt
You can type an arbitrary extension. Or change it in a file manager after the fact.
sorry im working on it, its being a pain
squaretest.txt (222.9 KB)
Finally!
Right off the bat I can see that you setup your device as a GRBL-LPC device. You should be setup as a GRBL device.
Press the “Devices” button in Laser window. Edit your configuration and change the device type to GRBL. Then step through the other configurations assuming they are correct.
Then retest.
Regenerate gcode if you still have a problem and upload.
oops thank you!
now i have this:
[VER:1.1.2022010801:]
[OPT:PHSW]
[MSG:Using machine:MKS DLC32]
[MSG:Mode=AP:SSDI=MKS_DLC:IP=192.168.4.1:MAC=0C-DC-7E-49-E4-FD]
ok
Starting stream
[MSG:Program End]
Stream completed in 0:01
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 2:
Job halted
Stream completed in 0:00
ok
Is this a brand new laser setup? How are you connected to the machine?
Go to Edit->Machine Settings. Find $32 and change to 1 if current 0.
Then retest.
its a new board, my old one got fried.
these are my setting now
$$
$0=10
$1=25
$2=0
$3=3
$4=0
$5=1
$6=1
$10=1
$11=0.010
$12=0.002
$13=0
$20=0
$21=0
$22=0
$23=1
$24=300.000
$25=1000.000
$26=250.000
$27=1.000
$30=1000.000
$31=0.000
$32=1
$38=1
$37=1
$40=1
$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=500.000
$121=500.000
$122=500.000
$123=200.000
$124=200.000
$125=200.000
$130=285.000
$131=272.000
$132=80.000
$133=300.000
$134=300.000
$135=300.000
ok
$32 was set to 1 arleady
Interesting. Can you resave gcode and upload?
squaretest5.txt (295.7 KB)
Can you try entering these commands in Console one at a time. Confirm that you get the error:20 when you enter M4.
G00 G17 G40 G21 G54
G90
M4
M8
G0 X58.777Y132.647
G91
If so, I’m wondering if you’re running a bad or old firmware.
thank you for your help yesterday, it was due to old/ bad software. it ran great after. i couldn’t let you know because i hit my max messages being new.
Thanks for the update. What did you upgrade to in case others run into this?
GitHub - makerbase-mks/MKS-DLC32: MKS DLC32 motherboard kit, which is an offline engraving master control kit developed for desktop engraving machines. The hardware is equipped with a 32-bit high-speed ESP32 module, integrated WIFI function, and directly drives a 3.5-inch touch color screen; it can realize fast engraving and WEB web pages. Control, mobile phone APP control and other functions. i just got the latest one. Thank you for your help!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.