HI  Please can you help.

HI
Please can you help. I not sure the correct code to use to move my axis say 100mm in Marlin. I know that if you use G1 z0 the z axis with move to the position " 0 " but I want to test the distance the axis moves.

Please direct me to wiki link, I would have gone there if I understood the code.

Thank

http://reprap.org/wiki/G-code

Oh great just what I did not want lol

Based on the wiki, I think you’d do:
G91 ; Set to Relative Positioning
G1 Xnnn ; Move X axis nnn millimeters.
G90 ; Set back to Absolute Positioning

But I’m not sitting in front of my printer and I’ve never tried to do this. Give it a shot.

Thanks @Chris_Larsen , I try that tonight and see if it works. Trying to double check my z axis movement. 10mm is not enough on Pronterface, want to move the axis abit further than that. Thanks

Chris’s G code is absolutely correct (you could also use G0 instead of G1 and specify speed of the move using Fnnn after the Xnnn)

Thanks @Chengster_N I will try that aswell. Still on a learning curve with the code. Reading off a page does not always work lol
Thanks

@Vaughan_Lundin i don’t know man, kinda sounds like you did want it. “Please direct me to wiki link”

What a prick

@Vaughan_Lundin i hate to say it, but he does sorta have a point.

Well I thought this is the idea of the forum. To help others. Might be simple to you but to others not. I was not sure of the G1 code. Now that some people pointed out the two positions, i have better understanding. I done professional photography and no matter how simple etc the question has been, I never done that to someone. The bottom line is the world is also made up of pricks & idiots.

@Vaughan_Lundin Yeah, I wish I could downvote posts here. I didn’t take your question to be bad at all. If you hadn’t used machine control before, it’s not obvious what to do. I feel like a lot of people on this group want to keep printing hard so they can be elitist and feel good about themselves at the expense of others. Newsflash: 3D printing is not all that hard :slight_smile:

Thanks @Chris_Larsen much appreciate it.