Homing works, Arrow movement works but sending Job is inverse?

Hello,

I have an K40 Laser with GRBL 1.1h (Arduino Uno CNCShield) and can not fix a problem.
Homing switches are at the left rear position and the Homing command is working fine (right direction).
Moving the Laser-Gantry by the Arrows in the move Menue is also working fine (right direction).
But if I draw something in the Workspace and send it to the machine it will not work.
The soft-limits are reached - if I disable soft limits the machine runs into negative coordinates and makes horrible noise.

I try to fix the issue since weeks but without any success.
Hopefully anyone here can help me :slight_smile:



Thanks for your help.

Best regards,
Timo

Normally GRBL based devices for K40 machines use a bottom-left origin even while homing top-left. This doesn’t have to be the case, where Monport K40 is an example. Can you confirm that your preference is to work top-left origin with positive values as you move to the right and down?

Can you provide the following:

  1. Run these commands in Console and return output as text:
$H
$I
$$
$#
?
  1. Create a square in LightBurn and then do File->Save gcode, save with a .txt extension, and upload file here.
1 Like

Thank you for helping me to get through the cloudy woods.
I try my best to give you the needed information, unfortunately my skills are quiet a bit low.

If I am using the arrows in the menu Move the directions working as expected - no issues.
Moving the gantry by this function → something went wrong:


Here is the requested data:

$H
ok
$I
[VER:1�LZI��ʂ’���5
[OPT:VMZ,15,128]
Target buffer size found
ok
$$
$0=10
$1=255
$2=0
$3=0
$4=0
$5=0
$6=0
$14=3
$11=0.000
$12=0.002
$13=0
$20=1
$21=0
$22=1
$23=3
$24=200.000
$25=5000.000
$26=250
$27=3.000
$30=1000
$31=0
$32=1
$100=79.204
$101=78.707
$102=80.000
$110=12000.000
$111=12000.000
$112=50.000
$120=2000.000
$121=2000.000
$122=3.000
$130=300.000
$131=210.000
$132=30.000
ok
$#
[G54:-300.000,-210.000,0.000]
[G55:0.000,0.000,0.000]
[G56:0.000,0.000,0.000]
[G57:0.000,0.000,0.000]
[G58:0.000,0.000,0.000]
[G59:0.000,0.000,0.000]
[G28:0.000�0.000,0.000]
[G30:0.000,0.000,0.000]
[G92:0.000,0.000,0.000]
[TLO:0.000]
[PRB:0.000,0.000,0.000:0]
ok
?
<Idle|MPos:0.000,0.000,0.000|Bf:15,137|FS:0,0|WCO:-300.000,-210.000,0.000>
ok

Gcode (Square 30x30mm Starting at 0x 0y)

; LightBurn 1.3.01
; GRBL device profile, absolute coords
; Bounds: X0 Y0 to X30 Y30
G00 G17 G40 G21 G54
G90
M4
; Cut @ 8 mm/sec, 100% power
M8
G0 X0Y0
M3
; Layer CUT
G1 Y30S1000F480
G1 X30
G1 Y0
G1 X0
M9
G1 S0
M5
G90
; return to user-defined finish pos
G0 X0 Y0
M2

Where did you get the firmware for your Arduino? It seems like it’s glitching. I’m curious if it’s a bad flash.

There are missing parameters (e.g. $10), the version number seems corrupted, and you’re getting some garbage in the other results. This could also be due to a bad connection.

In any case, I think this is the fundamental problem but it’s unclear if you’ll be able to resolve this with the firmware as-is.

But let’s try it.

Can you clear the work offset by issuing this in Console:

G10 L2 P1 X0 Y0
$H
?

Can you return those results? If you get back something that looks like this can you please retest?

<Idle|MPos:0.000,0.000,0.000|Bf:15,137|FS:0,0>

So basically showing no WCO or a WCO of 0,0,0.

1 Like

I don’t know, the firmware flash was at the end of 2021 - sorry.

Maybe because Lightburn is connected with TCP.
I am driving the CNCShield with an external ESP-32 connected to TX and RX.
The computer is in another room, with a long (active) usb cable I get problems with connection.
That is the reason for the WiFi connection.

This time it says:

[VER:1.1h.20190825:]
[OPT:VMZ,15,128]
Target buffer size found

Next to the console commands - After that the machine is working :heart_eyes:
Even after restart it is working! :+1: Is there anything else I have to know?

12

That’s great. I think you should be fine at this point. I do suspect you may have an issue at some point with what seems like a slightly unreliable wireless to serial bridge but that should become apparent with tests.

Thank you so much!
Please let me know how I can buy a coffee for you :smile:

I did a quick direct connection between TX<->RX and RX<->TX.
Tomorrow I will solder an 10uf capacitor and two resistors like on the picture:


(Copyright by Instructables By jadhalabi)

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