Hello Guest it is December 22, 2024, 05:11:50 AM

Author Topic: Lathe G1 XYZ move servos ""jump" to position  (Read 6177 times)

0 Members and 1 Guest are viewing this topic.

Lathe G1 XYZ move servos ""jump" to position
« on: January 03, 2010, 02:32:27 PM »
Hi all,

I have been working on my turret lathe and it is working great, I've made a run of 50 parts and things are looking really good.  One thing I cannot figure out is why when there is a 'N30 G1 X2.6334 Y0. Z0.0884 F70 S1200 M4' the servos "Jump" to position after a short pause.  The axis move at a rate WAY over the max tuned value in motor tuning, and generally fault out.  It is almost like the servos count the steps and wait, then try to move all at once.  I use SprutCam and edited the post to remove the Y0. value and the problem went away.  What is with the Y0. that would do that?  The Y axis is not set up in mach at all, it seems like it should not really do anything.  Also, there is a Y0. in the G2 and G3 moves but that does not seem to mess anything up.  I've attached code snippets and the Sprut post in case anybody is looking for one...  I am OK with just leaving out the Y's, but am interested if there is another problem that this may cause.

Thank you!!

Offending code
'-------
%
OLathe Roughing
N10 G90 G17 G40 G80 G49
;Lathe Roughing
N20 T101
;OD-TOOL1 (l0.5, Ti0.157, Re0.031, Kr95, Qr5)
N30 G1 X2.6334 Y0. Z0.0884 F70 S1200 M4
N40 Z0.135
N50 X2.6444
N60 F12
N70 X2.6169 Z0.1074
N80 Z-0.2811
N90 X2.6444 Z-0.2535
N100 Z0.1456 F70
N110 X2.5444
N120 X2.5169 Z0.118 F12
N130 Z-0.148
N140 X2.556
N150 G2 G18 X2.602 Y0. Z-0.194 I0. K-0.046
'-------

Code that works-
'-------
%
OLathe Roughing
N10 G90 G17 G40 G80 G49
;Lathe Roughing
N20 T101
;OD-TOOL1 (l0.5, Ti0.157, Re0.031, Kr95, Qr5)
N30 G1 X2.6334 Z0.0884 F70 S1200 M4
N40 Z0.135
N50 X2.6444
N60 F12
N70 X2.6169 Z0.1074
N80 Z-0.2811
N90 X2.6444 Z-0.2535
N100 Z0.1456 F70
N110 X2.5444
N120 X2.5169 Z0.118 F12
N130 Z-0.148
N140 X2.556
N150 G2 G18 X2.602 Y0. Z-0.194 I0. K-0.046
N160 G1 Z-0.2421
'----------


Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Lathe G1 XYZ move servos ""jump" to position
« Reply #1 on: January 04, 2010, 04:36:36 PM »
Not seen this but then again I dont usually have Y in my code.
I will try and remember to test tomorrow but in the ean time if you could attach your xml as there may be something weird in it.
Hood
Re: Lathe G1 XYZ move servos ""jump" to position
« Reply #2 on: January 04, 2010, 04:43:34 PM »
Thanks Hood!!  The XML is attached.

Dustin

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Lathe G1 XYZ move servos ""jump" to position
« Reply #3 on: January 04, 2010, 05:09:22 PM »
Dont see anything amiss from the xml unless its a Brain or ModBUS related although I cant see how.
Hood
Re: Lathe G1 XYZ move servos ""jump" to position
« Reply #4 on: January 04, 2010, 05:18:17 PM »
Hood,

Here is the brain and the only VB script I've messed with.  I was thinking it could be the ModBus somehow too, like it tries to send signals to Y on modbus or something?  Still cannot figure out why that would make the motors go too fast...

Thanks,
Dustin

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Lathe G1 XYZ move servos ""jump" to position
« Reply #5 on: January 05, 2010, 05:13:36 PM »
Got sidetracked today and forgot to test on the lathe, so just bumping up so I hopefully see it again tomorrow and remember.
Hood
Re: Lathe G1 XYZ move servos ""jump" to position
« Reply #6 on: January 05, 2010, 06:25:21 PM »
No worries Hood, I've pretty much worked around it with getting those Y's out of there, but am curious.  Thanks for doing this!
Dustin

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
Re: Lathe G1 XYZ move servos ""jump" to position
« Reply #7 on: January 06, 2010, 10:23:49 AM »
Just tried with some code having an added Y move in with the X and Z and I dont see any delays or jumps or whatever so looks like its peculiar to your setup for some reason. Maybe remove the tool call and see if it still does it.
Hood