Hello Guest it is March 28, 2024, 10:33:32 AM

Author Topic: Weird rotary axis issue???????????????  (Read 15011 times)

0 Members and 1 Guest are viewing this topic.

Offline Tarak

*
  •  229 229
    • View Profile
Re: Weird rotary axis issue???????????????
« Reply #10 on: April 26, 2016, 06:04:13 PM »
MachMotion Mach3 CNC Computer Enclosure X15-350
• 15" Color LCD Flat Panel monitor 1024X768
• Intel Celeron D 360 3.46GHz Processor
• 80GB Hard Drive
• 1Gb Ram
• Microsoft Windows XP, sp3
• Mach3 Installed R3.042.040 (I don't have the latest version installed (R3.043.066), because when I did, I lose the ability to stop the program when I press the STOP button on the switch panel.)
• Switch Panel
• MC-01 ModIO Controller
• USB Smooth Stepper
• Servo Motor, ID 33003 with Industrial Encoder - Qty3
• CNC Teknix Tek10 servo driver - Qty3

rcaffin, you are correct the servo drive is faulting for X axis, but, as long as I do not rotate A axis for multiple turns, I can use X,Z and A axis all day with no issue at all????
Also I can use A, X & Z simultaneously all day with absolutely no issue, but if I rotate A axis for multiple turns, I have to pull X away extremely slow to prevent the machine from tripping out X axis.
Here is a sample program that causes the error, the program is created from this custom screen I made.


;Annular plunge grinding example
#1=21
#2=20
#3=0.6
#4=2
#5=3
#6=0
#7=1
#8=-1874919423
#9=0
#10=0.2
#11=0.05
#12=20000
#13=15000
#14=0.95
#15=5
#21=10
#23=0
#24=3
#25=1
#28=3
#16=0.6
#17=1
#18=[[#6/[#5+#3]]*#3]
#20=3
#22=-1.1520495086364e-007
#26=[360/#7]
#27=[#22*#4]
#29=6
G90 G21 G57
G18
G90 G0 Z0.
M15;wheel on
G4 P2
X[#2+#11+#17+#21]
A0
M98 P1 L#20
G90 G0 X[#2+#11+#17+#21]
Z0. A0
X[#1+#21]
G4 P1
M16;wheel off
M30

O1
G91 G0 X[#21-[#21*2]]
M98 P2 L#15
G91 G1 A720 F#12
G0 X[#17+#21];THIS IS WHERE X AXIS JOLTS OUT AND THEN TRIPS OUT********
G0 X[[#18-[#18*2]]*#4] Z[[#3*#4]-[[#3*#4]*2]] A[[#22-[#22*2]]*#4]
M209
M99

O2
G91 G1 X[#10-[#10*2]] A360 F#12
M98 P3 L1
M99

O3
M99

O4
G91 G0 X[#21-[#21*2]]
M98 P5 L1
G0 X#21
G0 X[#18-[#18*2]] Z[[#3*#25]-[[#3*#25]*2]] A[#22-[#22*2]]
M99

O5
G91 G1 X[[#11-[#11*2]]-.3] A360 F#13
M98 P6 L#28
G91 G1 X[#9+0.3] A#26 F#13
G91 G0 X#11
M99

O6
G91 G1 A360. F#13
M99
« Last Edit: April 26, 2016, 06:05:53 PM by Tarak »

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: Weird rotary axis issue???????????????
« Reply #11 on: April 26, 2016, 06:40:47 PM »
Another parametric programmer! Wonderful!

What happens if you change
G0 X[#17+#21];THIS IS WHERE ...
to
G1 X[#17+#21] ?

I don't know what is the problem, but ...
I was using .042 but I upgraded to .062 and things did seem to improve. About all i can suggest is that you do the upgrade and rerun the program. A pain, I know, but I found the upgrade was definitely worth while - it solved some other bugs.

NOTE: while ARTSOFT are promoting .066, the world on the street is that you should stop at .062 instead.

Side issue:
Subroutine O3 is a no-op. I take it you simply truncated it?
Subroutine O6 simply spins the A axis N times: this is a grinding op?

Offline Tarak

*
  •  229 229
    • View Profile
Re: Weird rotary axis issue???????????????
« Reply #12 on: April 26, 2016, 08:12:04 PM »
rcaffin, yeah I try and use parametric code wherever I can.....much handier and also the best way to get consistency in your programs!
If I change from a G0 to a G1 it only works if I put a crazy slow speed in, but it does work!, if I try and rapid out, or G1 out at a normal medium feed rate, I get the same result of tripping the drive.
I will give .062 another go (I'm pretty sure I did awhile ago, but because I couldn't stop the program once it was started I removed it, not being able to stop the program is a deal breaker for me.)

Subroutine O3 is a no-op. I take it you simply truncated it?................This only is empty because the FINISH button on my screen is not enabled
Subroutine O6 simply spins the A axis N times: this is a grinding op?..........This is for spark out passes.

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: Weird rotary axis issue???????????????
« Reply #13 on: April 26, 2016, 08:55:35 PM »
Quote
If I change from a G0 to a G1 it only works if I put a crazy slow speed in, but it does work!, if I try and rapid out, or G1 out at a normal medium feed rate, I get the same result of tripping the drive.
Imho, I would really focus on why the drive is tripping. Something is making it do that: what? To be sure, Mach might be sending some funny things to the drive, like a crazy speed, but imho you need to know what. Fwiiw, I don't think .062 has that problem.

Quote
I will give .062 another go (I'm pretty sure I did awhile ago, but because I couldn't stop the program once it was started I removed it, not being able to stop the program is a deal breaker for me.)
It would be that for me too, but FeedHold does work for me. NOT instantaneously, I must admit, but usually. There are some caveats though.
* If the program is executing a complex instruction like G8n (drilling) in Mill or G76 (threading) in Lathe, the program may not stop until that whole instruction has completed. This may be because the instruction is actually being run by the ESS, and I have not set Mach up to stop via the ESS. I may do so some day.
* Just sometimes, not very often, Mach does not want to stop on Feedhold, so I have to use the Stop button. I don't know why. Hitting the Stop button does not normally cause the machine to lose its zero. (Hitting Reset does make it lose the zero slightly.)

You can also use Input#1 as a stop signal, but I have not done that.

Cheers
Roger

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Weird rotary axis issue???????????????
« Reply #14 on: April 26, 2016, 09:43:44 PM »
feedhold stops when the buffer has run out of info in Mach3, Mach4 it works when you hit it

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: Weird rotary axis issue???????????????
« Reply #15 on: April 26, 2016, 10:13:31 PM »
I seem to remember that you can configure Mach3 to tell the ESS to halt. I imagine that would be faster. Perhaps someone else who has their machine and ESS set up like this could comment?
 
Cheers
Roger

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Weird rotary axis issue???????????????
« Reply #16 on: April 26, 2016, 10:30:15 PM »
as far as I know it's down to the buffer size on the ESS smaller faster bugger slower, that was from the horse mouth

Offline rcaffin

*
  •  1,052 1,052
    • View Profile
Re: Weird rotary axis issue???????????????
« Reply #17 on: April 26, 2016, 10:44:42 PM »
Yes, afaik, the buffer size matters when you configure Mach3 to handle the Feedhold. But I think you can tell Mach3 to send the feedhold through (immediately) to the ESS.    I THINK.
I can't ask the machine right now: it's doing a 6 hour run.

Cheers
Roger

Offline Tarak

*
  •  229 229
    • View Profile
Re: Weird rotary axis issue???????????????
« Reply #18 on: April 27, 2016, 12:51:14 AM »
I will try the v062 later today, but with R3.042.040 when I press the stop button, it runs for a second or two (exactly what you guys said), it just needs to finish the command in the buffer.
hmmmmm...maybe I need to look at sending the feedhold command through to the smooth stepper??

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Weird rotary axis issue???????????????
« Reply #19 on: April 27, 2016, 01:17:50 AM »
I have asked the ESS guys about it should hear back in a few hours