NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Using LinuxCNC G Code Newbie question about offsets and homing

Welcome, Guest
Username: Password: Remember me

TOPIC: Newbie question about offsets and homing

Re:Newbie question about offsets and homing 14 Mai 2012 01:53 #20070

  • cncbasher
  • cncbasher's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 685
  • Thank you received: 30
  • Karma: 53
ok see attached file
i have left gaps to show the parts modified etc .

notice the specific gcode turning off work offsets and setting modes , this is good practice to essentialy set up the machine rather than presume that the machine is correct
at the top of each gcode file and resetting at the end etc .

it also sets tool to be specificly tool 1 etc , i always leave tool 1 to have no offsets in my tool table , so i always have a default

i show this as an example , i'm not saying it's error proof , so check before using etc This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

Re:Newbie question about offsets and homing 14 Mai 2012 02:56 #20072

  • andypugh
  • andypugh's Avatar
  • OFFLINE
  • Moderator
  • Posts: 4136
  • Thank you received: 141
  • Karma: 130
Bullseye wrote:
the first iteration works fine. Then when I put the second workpiece in the fixture to hold it for engraving. When the same Gcode is executed again, the cutter moves to a location that is offset in all 3 axises unless I close and completely reset LinuxCNC.

I suspect that you are in relative motion (G91) mode, by mistake. It might be that all you need is a G90 command
www.linuxcnc.org/docview/html/gcode/gcode.html#sec:G90-G91

You could possibly set this in the MDI window, and it ought to stick, but it is good practice to set it at the beginning of all programs to be sure.

Another possibility is that you are losing position during a long rapid. This will only happen if the machine speed/accel are set too high though.

in either of the above case Machine -> unhome all / followed by a re-home ought to fix the issue temporarily. If it is a machine-offset being applied, then it won't/
The administrator has disabled public write access.

Re:Newbie question about offsets and homing 14 Mai 2012 05:41 #20075

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4956
  • Thank you received: 87
  • Karma: 134
Bullseye wrote:
John,
thanks for taking the time to reply.
I have attached the test file that I am using. The code is generated for me by Stickfonts and is all absolute moves. I have tried putting a G53 x0 y0 z0 in the front of the file but it did not seem to help. I still feel that my problem has something to do with my setup.

Bill

But you didn't specify absolute in your missing preamble. Also G53 with axis words without a motion word will do nothing. You would have to say "G53 G0 X0 Y0 Z0" to rapid to the machine origin. Notice the G0 rapid word in there.

Your file only contains G0 and G1 moves and I ran it twice in the simulator and don't see anything shifting on the second run so I agree the problem has to be elsewhere.

I have been working on a G code tutorial specifically for LinuxCNC, if you care to look at it the preamble section it will help you prepare a proper preamble for your G code.

One last note the normal file end it M2, I'm not sure what M30 does exactly...

Also, have you tested your machine to make sure your not loosing steps?

linuxcnc.org/docview/html/common/Stepper...ostics.html#_testing

John
Last Edit: 14 Mai 2012 05:44 by BigJohnT.
The administrator has disabled public write access.

Re:Newbie question about offsets and homing 14 Mai 2012 06:04 #20077

  • cncbasher
  • cncbasher's Avatar
  • NOW ONLINE
  • Moderator
  • Posts: 685
  • Thank you received: 30
  • Karma: 53
John :
M2 is End program (usualy with reset , no rewind )
M30 is End program ( always with reset and rewind )

so a slight variation John

sorry for hijacking the thread , but just to answer Johns query etc ..
good work on the gcode tutorial to
The administrator has disabled public write access.

Re:Newbie question about offsets and homing 14 Mai 2012 06:58 #20081

  • Bullseye
  • Bullseye's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 0
Thanks. I will try the modified code today and let you know how it worked for me. Can you explain how homing works when you do not have a dedicated home switch? Also, it seems that the homing process is more an assigning the current point to X0 Y0 Z0 than actually moving the tool to the desired point. I know that you typically want to accomplish both actions when you perform a home operation but no movement occurs unless you issue a G0 or G1 command right? I keep struggling with how (the correct way) to get the tool back to the home position accurately without having to manually touch off on each axis when I want to return to the home position. I know that these are pretty basic questions, but as good as the documentation is, I just cannot grasp this operation.

Bill
The administrator has disabled public write access.

Re:Newbie question about offsets and homing 14 Mai 2012 07:45 #20084

  • BigJohnT
  • BigJohnT's Avatar
  • NOW ONLINE
  • Administrator
  • Posts: 4956
  • Thank you received: 87
  • Karma: 134
cncbasher wrote:
John :
M2 is End program (usualy with reset , no rewind )
M30 is End program ( always with reset and rewind )

so a slight variation John

sorry for hijacking the thread , but just to answer Johns query etc ..
good work on the gcode tutorial to

IIRC LinuxCNC does not have a reset or rewind and the docs suggest that M30 is to exchange pallets. I don't think M30 really does anything that I can see anywhere so better to use M2 with LinuxCNC.

Thanks, if you notice anything missing/wrong or needed on the tutorial let me know.

John
The administrator has disabled public write access.
Time to create page: 1.706 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.