91
General Mach Discussion / Re: Locating question
« on: January 18, 2011, 07:37:10 AM »
I have taken your advise and started back at the beginning with the code from Dan. This is what I am working with.
G1 X1
G1 Y1
G1 X0
G1 Y0
G0 X-3 Y0
G52 X-3 (this will offset the current point by -3 making it X0. Y remains the same)
G1 X1
G1 Y1
G1 X0
G1 Y0
G52 X0 (set the offset back to zero)
G0 X3 Y0
When I load this code the display window shows two squares on the X axis three inches apart which is what I would expect to see.
When I run the program the crosshairs start at the left lower point of the right square and procedes to cut around until it gets back to 0,0. The propgram then sends the crosshairs to X-3 which is the starting place for the left square. Instead of showing the cut around the left square the crosshairs jump to the right square and retraces the path there. When it is done there the crosshsairs jump to 0,0 of the left square and them moves to X3. Why is it not showing the cut around the left square even though I beleive if I had the motors hooked up it would actually be cutting the left square?
If I step through the program the display will show show all the cuts on both squares but not when I run the program. Do I have something set wrong in the setup or display configuration screens?
I beleive this has been my problem all along as I have relied on the display screen to show me what I would be making. Even after I had checked my code many times the display would not show what i thought thould be there.
Thank you for any help
Ray
G1 X1
G1 Y1
G1 X0
G1 Y0
G0 X-3 Y0
G52 X-3 (this will offset the current point by -3 making it X0. Y remains the same)
G1 X1
G1 Y1
G1 X0
G1 Y0
G52 X0 (set the offset back to zero)
G0 X3 Y0
When I load this code the display window shows two squares on the X axis three inches apart which is what I would expect to see.
When I run the program the crosshairs start at the left lower point of the right square and procedes to cut around until it gets back to 0,0. The propgram then sends the crosshairs to X-3 which is the starting place for the left square. Instead of showing the cut around the left square the crosshairs jump to the right square and retraces the path there. When it is done there the crosshsairs jump to 0,0 of the left square and them moves to X3. Why is it not showing the cut around the left square even though I beleive if I had the motors hooked up it would actually be cutting the left square?
If I step through the program the display will show show all the cuts on both squares but not when I run the program. Do I have something set wrong in the setup or display configuration screens?
I beleive this has been my problem all along as I have relied on the display screen to show me what I would be making. Even after I had checked my code many times the display would not show what i thought thould be there.
Thank you for any help
Ray