- Posts: 51
- Thank you received: 1
G76, Troubleshooting needed!
8 years 2 weeks ago #118771
by Victor
G76, Troubleshooting needed! was created by Victor
Hi!
I'm having trouble to get the G76 threading to work.
When trying to run a program with G76 the lathe starts the spindle and moves to start point, after that nothing else happens it just sits there with spindle running.
My first thought was that the index signal didn't come through but i get signal on both input-A and input-B using the watch function in HAL configuration.
So i guess something is not configured correctly but i cant figure it out.
The lathe is a Emco Turn 120P converted with Mesa 7176E, i kept the original encoder that has one 1ppr signal and one 360ppr signal.
I've attached the NC-program, .ini and .hal files and also some screen shots of HAL configuration/Watch
Any ideas?
Best regards Victor
I'm having trouble to get the G76 threading to work.
When trying to run a program with G76 the lathe starts the spindle and moves to start point, after that nothing else happens it just sits there with spindle running.
My first thought was that the index signal didn't come through but i get signal on both input-A and input-B using the watch function in HAL configuration.
So i guess something is not configured correctly but i cant figure it out.
The lathe is a Emco Turn 120P converted with Mesa 7176E, i kept the original encoder that has one 1ppr signal and one 360ppr signal.
I've attached the NC-program, .ini and .hal files and also some screen shots of HAL configuration/Watch
Any ideas?
Best regards Victor
Please Log in or Create an account to join the conversation.
8 years 2 weeks ago - 8 years 2 weeks ago #118772
by PCW
Replied by PCW on topic G76, Troubleshooting needed!
Assumimg index is working, I think there are two possibilities here:
1. motion.spindle.at-speed false
(check state when spindle running and then check hal connections)
2. Spindle encoder not counting or counting backwards
( verify that this counts UP by 1.00 for each FORWARD turn of the spindle )
1. motion.spindle.at-speed false
(check state when spindle running and then check hal connections)
2. Spindle encoder not counting or counting backwards
( verify that this counts UP by 1.00 for each FORWARD turn of the spindle )
Last edit: 8 years 2 weeks ago by PCW.
The following user(s) said Thank You: Victor
Please Log in or Create an account to join the conversation.
8 years 2 weeks ago - 8 years 2 weeks ago #118773
by Victor
Replied by Victor on topic G76, Troubleshooting needed!
Hi!
Thanks for your response PCW!
So when checking "motion.spindle-at-speed" using HAL meter it shows TRUE, it doesn't mater if the spindle is off, at 3000rpm or during acceleration / de-acceleration it always shows TRUE, so it does not seam to work?
When checking hm2_7i76e.0.encoder.00.count using watch function in HAL Configuration it started at -108235 or something and continued to increase so after a bit of running it is now -377404 and it doesn't mater if i run cw or ccw it still increases but i guess that has to do with the fact i don't have a quadruple encoder.
Edit: i also check how many pulses that was counted after approximately a full turn on the spindle. and i got about 150 pulses, is that odd due to the fact i got a 360PPR encoder?
The spindle speed in axis is about the same as what my rpm meter says the chuck is spinning IRL.
Br Victor
Thanks for your response PCW!
So when checking "motion.spindle-at-speed" using HAL meter it shows TRUE, it doesn't mater if the spindle is off, at 3000rpm or during acceleration / de-acceleration it always shows TRUE, so it does not seam to work?
When checking hm2_7i76e.0.encoder.00.count using watch function in HAL Configuration it started at -108235 or something and continued to increase so after a bit of running it is now -377404 and it doesn't mater if i run cw or ccw it still increases but i guess that has to do with the fact i don't have a quadruple encoder.
Edit: i also check how many pulses that was counted after approximately a full turn on the spindle. and i got about 150 pulses, is that odd due to the fact i got a 360PPR encoder?
The spindle speed in axis is about the same as what my rpm meter says the chuck is spinning IRL.
Br Victor
Last edit: 8 years 2 weeks ago by Victor.
Please Log in or Create an account to join the conversation.
8 years 2 weeks ago - 8 years 2 weeks ago #118780
by andypugh
That is decreasing.
It is counting backwards. Change the sign of the spindle encoder scale (probably in the INI) and it should work.
Replied by andypugh on topic G76, Troubleshooting needed!
Victor wrote: When checking hm2_7i76e.0.encoder.00.count using watch function in HAL Configuration it started at -108235 or something and continued to increase so after a bit of running it is now -377404 and it doesn't mater if i run cw or ccw it still increases
That is decreasing.
It is counting backwards. Change the sign of the spindle encoder scale (probably in the INI) and it should work.
Last edit: 8 years 2 weeks ago by andypugh.
The following user(s) said Thank You: Victor
Please Log in or Create an account to join the conversation.
8 years 2 weeks ago #118789
by Victor
Replied by Victor on topic G76, Troubleshooting needed!
Hi Andy!
That did the trick!
I changed ENCODER_SCALE from 150 to -150 and G76 started working!
Thanks to both of you!
However the Z motion/feed sounds uneven, like it's vibrating/stuttering.
Is that normal? or do i need to adjust something?
This is what i have under spindle in .ini file
#********************
# Spindle
#********************
[SPINDLE_9]
P = 1.0
I = 1.0
D = 0.5
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 4576.0
ENCODER_SCALE = -150.0
OUTPUT_SCALE = 4576
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 4576
Br Victor
That did the trick!
I changed ENCODER_SCALE from 150 to -150 and G76 started working!
Thanks to both of you!
However the Z motion/feed sounds uneven, like it's vibrating/stuttering.
Is that normal? or do i need to adjust something?
This is what i have under spindle in .ini file
#********************
# Spindle
#********************
[SPINDLE_9]
P = 1.0
I = 1.0
D = 0.5
FF0 = 1.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
MAX_OUTPUT = 4576.0
ENCODER_SCALE = -150.0
OUTPUT_SCALE = 4576
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 4576
Br Victor
Please Log in or Create an account to join the conversation.
8 years 2 weeks ago #118895
by Victor
Replied by Victor on topic G76, Troubleshooting needed!
Ok, did some more testing.
With a pitch of 1mm it runs fine on 300rpm, 600rpm,
But on 400rpm, 1200rpm it stutters on the Z feed.
And threading works during M3 command but not when using M4..
If i change back encoder scale from -150 to 150 i can use M4 but of course not M3.
How can i solve this?
Br Victor
With a pitch of 1mm it runs fine on 300rpm, 600rpm,
But on 400rpm, 1200rpm it stutters on the Z feed.
And threading works during M3 command but not when using M4..
If i change back encoder scale from -150 to 150 i can use M4 but of course not M3.
How can i solve this?
Br Victor
Please Log in or Create an account to join the conversation.
Time to create page: 0.253 seconds