Hello Guest it is August 03, 2020, 06:05:06 AM

Author Topic: G31 what is it for  (Read 2341 times)

0 Members and 1 Guest are viewing this topic.

Offline mrpeja

*
  •  114 114
    • View Profile
    • Embroidery Machines
G31 what is it for
« on: March 26, 2009, 05:10:48 PM »
Hi,
 Do I need THC300 postprocessor with or without G31 option?
Miroslav

Offline jimpinder

*
  •  1,232 1,232
  • Wakefield, West Yorks, UK
    • View Profile
Re: G31 what is it for
« Reply #1 on: March 27, 2009, 04:17:15 AM »
As implemented in Mach 3, G31 is the command for use with - well anything, since, although it is " a straight probe" you can with a little bit of thought use it for all sorts of position finding.

The basic command line is "G31 X1". With that the X axis will move towards position 1 at a low speed. If a pin designated as "straight probe" (on Config/Ports and Pins) is earthed in the time the axis is moving, it will immediatly stop. The command can be applied to any axis with the same result.

On my machine I have a two pin din socket on my control box - providing an earth lead and a connection to the "probe" pin. I have a lead with a two pin din plug at one end. The other end, the earth wire is fastened to a dog clip and the "pin" wire is soldered to a piece of copper clad board.

If I want to use G31, then I plug in the lead. and clip the dog clip - usually onto the tool or drill - the copper clad is then placed as a target. The thickness of the copper clad is known, so when the axis stops I know it's position and can adjust the DRO's accordingly. In actual fact, my machine is earthed in any case, and I can do away with the earth clip.

If your question is should you have it or not, I would suggest it is one of the most useful and "quick" methods of position finding for any machine.


Not me driving the engine - I'm better looking.

Offline mrpeja

*
  •  114 114
    • View Profile
    • Embroidery Machines
Re: G31 what is it for
« Reply #2 on: March 27, 2009, 04:31:37 AM »
Thanks Jim,
Now I see I can find many answers myself if I can read explanation somewhere.
Can you recommend me where to find detailled explanations on how G codes (M codes, F codes, etc) work?
mrpeja