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 AXIS Axis Hangup!

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Axis Hangup!

Axis Hangup! 27 Fév 2010 07:02 #2089

  • eslavko
  • eslavko's Avatar
  • NOW ONLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 1
Hello...

Here is code that hangup Axis.
G21
G91
F80
o<YSearch> do
G38.3 Y1
o<YSearch> while[#5070 eq 0]
M02


Seems that axis dryrun that code and make infiniti loop as #5070 parameter is not updated (probe trigered)
How to overcome that?
The administrator has disabled public write access.

Re:Axis Hangup! 27 Fév 2010 07:19 #2091

  • acemi
  • acemi's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Karma: 6
Why do you need while loop here?
Last Edit: 27 Fév 2010 08:09 by acemi.
The administrator has disabled public write access.

Re:Axis Hangup! 27 Fév 2010 07:44 #2092

  • eslavko
  • eslavko's Avatar
  • NOW ONLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 1
The idea of code is to make move until probe hit object.

As position is not known I just make progres until get hit.

If I want just one move then move should span trought entire table. But If the probe is in midle of table I got soft limit error.
The administrator has disabled public write access.

Re:Axis Hangup! 27 Fév 2010 08:08 #2093

  • acemi
  • acemi's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Karma: 6
You can use G90 and an end position before the limit point.
The administrator has disabled public write access.

Re:Axis Hangup! 27 Fév 2010 08:19 #2095

  • eslavko
  • eslavko's Avatar
  • NOW ONLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 1
Where to read axis limit?!? And current position?!?
The administrator has disabled public write access.

Re:Axis Hangup! 27 Fév 2010 10:19 #2097

  • acemi
  • acemi's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 55
  • Karma: 6
www.linuxcnc.org/docs/devel/html/gcode_m...38.2:-Straight-Probe
You can read the current position after the probing from #5061 ... #5069
You can get the probing result from #5070
The axis limits are in your INI file
The administrator has disabled public write access.

Re:Axis Hangup! 27 Fév 2010 12:31 #2101

  • eslavko
  • eslavko's Avatar
  • NOW ONLINE
  • Expert Boarder
  • Posts: 120
  • Karma: 1
Here are misunderstanding I think...
I Know that axis limits are in INI. I wrote that. But how to read that value inside Gcode?
I know that #5061 to #5070 are probe variable.
But how to determine current position (before probe move?)
So let's go trought example.

I jog machine inside some hole. Now I want to find center of that hole.

1. Remember current coordinate (how to do that?)
2. Go slow Y+ from current position until probe hit or soft limit reached (remember position #5061.....)
3. Go rapid to coordinate from step 1 (back to start)
4. Go slow Y- (same as step 2)
5. calculate midpoint from step 2 and 4 and go rapid here

6. do same thing for X axis (this is precise)
7. repeat again for Y axis (now Y is precise too)

show message that's done and show diameter too...


Holecenter program's I found all require to tell hole diameter and position. I'm shure that's not necessary. Just don't know how to deal it.

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