1
G-Code, CAD, and CAM discussions / Noob G Code question
« on: October 12, 2020, 11:51:21 PM »
So I am brand new to CNC and after a 2.5 year battle over receiving a machine that was being built for me and then receiving an incomplete pile of pieces I have my machine together and moving. I have no experience with G Code but love to learn new things. Tonight I tested movement with code for the first time. I wrote a simple code to start in the middle of a square, move out, move around and back to the center just moving air. Here is the code
% (1)
G01
F50
Y-2
X2 (5)
Y4
X-4
Y-4
X2
Y2 (10)
%
The machine ran blocks 3-8 exactly as it should but it moved block 9. 4 inches and block 10. 4 inches. So it didn't end up back at center but rather at the back right corner. I ran it many times with the same result. Running Mach 3 with motors calibrated and tuned. Do I have a setting wrong in Mach, or am I not understanding the code or what? I know this seems ridiculously simple to most, but a guys gotta start somewhere. Even at 64. Thanks for your help
% (1)
G01
F50
Y-2
X2 (5)
Y4
X-4
Y-4
X2
Y2 (10)
%
The machine ran blocks 3-8 exactly as it should but it moved block 9. 4 inches and block 10. 4 inches. So it didn't end up back at center but rather at the back right corner. I ran it many times with the same result. Running Mach 3 with motors calibrated and tuned. Do I have a setting wrong in Mach, or am I not understanding the code or what? I know this seems ridiculously simple to most, but a guys gotta start somewhere. Even at 64. Thanks for your help