g76 code or g33
- protomachine
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
04 May 2012 19:11 #19819
by protomachine
g76 code or g33 was created by protomachine
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
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
Please Log in or Create an account to join the conversation.
04 May 2012 20:06 #19820
by BigJohnT
Replied by BigJohnT on topic Re:g76 code or g33
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
John
Please Log in or Create an account to join the conversation.
- protomachine
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
05 May 2012 02:06 #19825
by protomachine
Replied by protomachine on topic Re:g76 code or g33
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
Please Log in or Create an account to join the conversation.
05 May 2012 08:45 #19832
by cncbasher
Replied by cncbasher on topic Re:g76 code or g33
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 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
Please Log in or Create an account to join the conversation.
05 May 2012 12:31 #19838
by BigJohnT
Replied by BigJohnT on topic Re:g76 code or g33
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
John
Please Log in or Create an account to join the conversation.
05 May 2012 12:41 #19839
by BigJohnT
Replied by BigJohnT on topic Re:g76 code or g33
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
John
Please Log in or Create an account to join the conversation.
05 May 2012 16:55 - 05 May 2012 16:55 #19842
by andypugh
Replied by andypugh on topic Re:g76 code or g33
protomachine wrote:
Have you connected motion.spindle-index-enable and motion.spindle-revs to the encoder output in the HAL file?
linuxcnc.org/docview/html/man/man9/motion.9.html
I am trying to get my machine to thread
Have you connected motion.spindle-index-enable and motion.spindle-revs to the encoder output in the HAL file?
linuxcnc.org/docview/html/man/man9/motion.9.html
Last edit: 05 May 2012 16:55 by andypugh.
Please Log in or Create an account to join the conversation.
- protomachine
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
05 May 2012 22:24 #19868
by protomachine
Replied by protomachine on topic Re:g76 code or g33
I am new to this, how do I check the A and index? If I do need to invert it, where do I change that parameter. I am not in front of the machine to play around. Thanks for your help.
Please Log in or Create an account to join the conversation.
06 May 2012 12:11 #19873
by andypugh
Replied by andypugh on topic Re:g76 code or g33
protomachine wrote:
In the HAL file, or possibly the INI file (both live in the emc2/configs directory, in the folder with the name of your machine)
You might find this useful reading:
linuxcnc.org/docview/html/hal/intro.html
linuxcnc.org/docview/html/hal/basic_hal.html
where do I change that parameter
In the HAL file, or possibly the INI file (both live in the emc2/configs directory, in the folder with the name of your machine)
You might find this useful reading:
linuxcnc.org/docview/html/hal/intro.html
linuxcnc.org/docview/html/hal/basic_hal.html
Please Log in or Create an account to join the conversation.
- protomachine
- Offline
- New Member
Less
More
- Posts: 5
- Thank you received: 0
08 May 2012 13:58 #19929
by protomachine
Replied by protomachine on topic Re:g76 code or g33
I have attached the portion of my hal file that deals with spindle. I am not seeing anything with a " near scaling" statement. Does anything stand out to anybody? Thanks for the help.
Please Log in or Create an account to join the conversation.
Time to create page: 0.078 seconds