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 g76 code or g33

Welcome, Guest
Username: Password: Remember me

TOPIC: g76 code or g33

g76 code or g33 04 Май 2012 12:11 #19819

I am trying to get my machine to thread, this code should be fine right?
t1 m6
g43
s300 m3
g0z1x.2
g4p3
g76 p.05 z-.5 i-.075 j.008 k.045 h3 r2.0 q29.5 e.05 l2
g0x.5
g0z0
m5
m30


My machine will get to the pause, and when it gets to the g76 line it acts like it's in a loop. I get no motion at all. Same thing on a g33. My commanded speed and my actual speed differ quite a bit on the AXIS gui. Are they too far apart to sync the two axis to the spindle? Any idea where to go from here? Thanks
The administrator has disabled public write access.

Re:g76 code or g33 04 Май 2012 13:06 #19820

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
You need two things before spindle synchronized motion will work, a spindle at speed and an index pulse. In addition to that to thread I think at a minimum you need at least some kind of encoder to generate at least the A pulse train.

John
The administrator has disabled public write access.

Re:g76 code or g33 04 Май 2012 19:06 #19825

My code should work though right? I have a rotary encoder connected to a 7i47 board. If i watch the raw counts in the hal meter, it counts consistently at 4096. What am I missing? Thanks
The administrator has disabled public write access.

Re:g76 code or g33 05 Май 2012 01:45 #19832

  • cncbasher
  • cncbasher's Avatar
  • OFFLINE
  • Moderator
  • Posts: 680
  • Thank you received: 30
  • Karma: 53
a few things to check
the encoder gives you both an index and an A Pulse ( A & I ) and that the encoder count type is set to 1
it could also be that the encoder input requires inverting

you need to set the commanded speed and actuial speed as close as possible for the sync to work correctly , so scale the spindle so as to get the required result , you should be able to get spindle speed and commanded speed and the speed shown in axis to be within
10 - 20 rpm with care
The administrator has disabled public write access.

Re:g76 code or g33 05 Май 2012 05:31 #19838

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
I had to use the near component on my lathe for spindle at speed. I'm not near a linuxcnc machine but open up Show HAL Configuration and use the watch window to see if spindle at speed is coming on.

John
The administrator has disabled public write access.

Re:g76 code or g33 05 Май 2012 05:41 #19839

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 4955
  • Thank you received: 87
  • Karma: 134
Yea the index input pin might need inverting if it is on all the time iirc it needs to be an off to on transition... oh I see cncbasher said that too...

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