g-code help

Hello, when I run any g-code in Repetier my machine does not move, so I delete some lines of the g-code and then my MPCNC is alive.

I need to delete these lines every time before I run the any g-code. I have no idea how to fix this, if it is related to Fusion 360 or to the firmware?

The lines I delete are from “Start begin” to “Start End”

; *** START begin *** G90 G21 M84 S0 G92 X0 Y0 Z0 ; COMMAND_TOOL_MEASURE M0 Attach ZProbe G28 Z G92 Z0.8 G0 Z40 F300 M400 M0 Detach ZProbe ; *** START end ***
 

M0 is pause. So it’s waiting for you to attach a z probe and press a button on the lcd.

I’m assuming there is a setting for probing in the PP.

1 Like

Hi Jeffeb3, now is more clear, I don’t have probe, my MPCNC is end-stop but nothing for the Z axis, in your experience should I buy a Z probe for homing? I made this machine to cut plastic and make some panel, so the measurements must be as much as precise as can be. I saw some probings that home XYZ that you attach in the corner of the stock should I for for this?

If your Z is off by 1mm, what damage will that cause? If you’re cutting through, it will mean a 1mm gouge in your spoil board. But that’s what it’s there for. If you’re doing v carving, then it can mean wider cuts, and odd shapes. But I can get much closer than 1mm manually.

Even if I had a probe, I wouldn’t use it until I needed it. Get some good projects done first. You can then decide if it will help you.

2 Likes

You are right. Thanks…

I made my own with a piece of brass and a 3D printed bracket. I ran the tool wire to through one of the Z tubes and tuck the alligator clip into the tube when not using. The probe puck just sits on the table ready to use. It is 20mm high. As long as I remember to clip to the endmill, it works flawlessly.

I like not having to mess with a piece of paper on the spoil board. It’s not easy and you are doing manual control of the head. I would click the wrong button on CNCjs and send the tool into the table or up out of the mount.

I have a tool change routine that works fine. Still tweaking it, but it does speed up a tool change.

I have an Archim board and it took a little bit to make sure I was connecting the leads to the right pins. I use G28 Z and then G92 Z20 and then I’m set.

[attachment file=“IMG_0507 (2).jpg”]

 

2 Likes

Hi Marion, that is nice, how is the wiring to make the z axis works?

 

looks very nice like the brass

I did the tool connection lead through the z axis conduit and through the wire routing for Z. The touch puck then goes back to the controller. Both get connected to the appropriate sockets on the control board. It is fairly easy wiring. I didn’t have the right terminator connectors to build, but I had a spare 12v. fan from a computer and soldered that connector on.

Here’s a video that goes through the basic ideas. I watched a whole bunch of them and read through the forum posts here and looked up schematics on my Archim board to get it all figured out.

2 Likes

@jeffeb3, Hi, now I have the Probe, but I do not receive any message in the LCD to continue. How can I sort it? Tks

You can connect it to the Zmin (-) and (s) terminals. Then it’s status should show up with M119.

After that, you can home Z on the probe on the top of your workpiece. When that’s done, Marlin will think the top of the probe is zero, so you have to change the Z by the offset with G92.

2 Likes

@jeffeb3 - I had to rebuild the Z axis have two pieces broken, now it is done,

When I Home Z, the Z axis go about 10mm and back 3mm, if I press Z home again goes up another 10mm and down 3mm, instead of going down to the probe direction.

All axis move correctly in manually by Repetier. X/Y home normally.
Any idea?

Check with M119. Your endstop is probably triggered.

1 Like

@jeffeb3
When M119 is entered:
15:10:00.561 : N53 M119*28
15:10:00.583 : Reporting endstop status
15:10:00.583 : x_min: TRIGGERED
15:10:00.583 : x2_min: TRIGGERED
15:10:00.583 : y_min: TRIGGERED
15:10:00.583 : y2_min: TRIGGERED
15:10:00.583 : z_min: open

And, are you only homing Z?

1 Like

well the probe is set and the Home Z button is pressed in Repetier but Z axis goes UP instead of Down

It will go up, to the safe Z distance. That is normal. What is abnormal is that it doesn’t go down until it triggers.

1 Like

This is what is happening
I can move to down manually but when Home only goes up :frowning:

When I home X & Y in repetier shows 0 but Z shows 19

Can you send G28 Z from the command line?

1 Like

15:46:14.489 : N14 G28 Z0108
15:47:15.421 : N15 G28 Z0
109
15:48:39.311 : N16 G28 X0108
15:48:44.383 : N17 G28 Y0
108
15:48:46.831 : N18 G28 Z096
15:49:01.502 : N19 M119
18
15:49:01.523 : Reporting endstop status
15:49:01.523 : x_min: TRIGGERED
15:49:01.523 : x2_min: TRIGGERED
15:49:01.523 : y_min: TRIGGERED
15:49:01.523 : y2_min: TRIGGERED
15:49:01.523 : z_min: open

Still goes up and Z still 19 on Repetier

1 Like