Hello Guest it is November 13, 2019, 02:23:38 AM

Author Topic: code wanders off, but only sometimes...  (Read 8097 times)

0 Members and 1 Guest are viewing this topic.

code wanders off, but only sometimes...
« on: March 26, 2008, 10:31:14 PM »
Sorry, posted wrong code at first - this one should be the right one.

I'm totally stumped and tired of breaking tooling. Anybody willing to take a look?
> Odd thing is, sometimes it works, some times it doesn't.
> Other similar parts work just fine.
> Tried to recode this one, and still a problem.
> Mach shows the correct path, but wanders off it - this is both in the software and hardware.
> I have no spindle control, mist control or on off relays. Its just xyz control.
> In both images, the green line is where it wanders off - not always the same places. It does this on two different PC's, wether I'm just running the software simulation or actually cutting parts.

%
O0000
N104 G0 G17 G40 G49 G80 G90
N106 G0 Z.25
N108 X0 Y0
N106 G0 G90 G54 X-.1302 Y.5267
N110 Z.1
N112 G1 Z-.045 F1.
N114 X.8056 F2.
N116 G2 Y.4391 R.0438
N118 G1 X-.0682
N120 G3 Y.3516 R.0437
N122 G1 X.8056
N124 G2 Y.264 R.0438
N126 G1 X-.0682
N128 G3 Y.1765 R.0438
N130 G1 X.8056
N132 G2 Y.0889 R.0438
N134 G1 X-.1302
N136 Z.055 F5.
N138 G0 Z.25
N140 X.7372 Y-.181
N142 Z.055
N144 G1 Z-.175 F5.
N146 Y-.057 F2.
N148 G3 X.6442 Y.036 R.093
N150 G1 X.3568
N152 X.1318 Y.1297
N154 X.0192
N156 G2 X-.0428 Y.1917 R.062
N158 G1 Y.2417
N160 G2 X.0192 Y.3037 R.062
N162 G1 X.1192
N164 G3 Y.3047 R.0005
N166 G1 X.0192
N168 G2 X-.0428 Y.3667 R.062
N170 G1 Y.4167
N172 G2 X.0192 Y.4787 R.062
N174 G1 X.1318
N176 X.3568 Y.5725
N178 X.6442
N180 G2 X.7062 Y.5105 R.062
N182 G1 Y.4605
N184 G2 X.6442 Y.3985 R.062
N186 G1 X.4442
N188 G3 Y.21 R.0943
N190 G1 X.6442
N192 G2 X.7062 Y.148 R.062
N194 G1 Y.098
N196 G2 X.6442 Y.036 R.062
N198 G0 Z.25
N200 X0 Y0
N210 M30
%





« Last Edit: March 28, 2008, 10:11:53 PM by Spinnetti »
Need a little help here! (Sev 1 issue)
« Reply #1 on: March 27, 2008, 09:02:41 PM »
see title and previous post
Re: code wanders off, but only sometimes...
« Reply #2 on: March 27, 2008, 09:18:56 PM »
Hello Spinnetti,
The code you posted runs a very different part but runs it well in simulation here.
RC
Re: code wanders off, but only sometimes...
« Reply #3 on: March 27, 2008, 09:42:48 PM »
Rats! I posted the wrong code.. thanks for posting that. The other one (I'll put the right code in) runs fine sometimes too, but as you can see from the screen shots, randomly wanders off some of the time.
Re: code wanders off, but only sometimes...
« Reply #4 on: March 29, 2008, 11:51:13 AM »
Nobody? This is a pretty serious defect, and I'm at a stand still.

** Edit ** Ok, I'm really getting frustrated. What's a paying customer gotta do to get a bug looked at?
« Last Edit: April 05, 2008, 10:13:27 PM by Spinnetti »
Re: code wanders off, but only sometimes...
« Reply #5 on: February 25, 2011, 10:04:02 PM »
I don’t pretend to have the right answers to all the coding problems I encounter. For some of those problems, I am using code that I know to be crappy but its a level of crappy that I understand and therefore don’t mind using. But it would feel odd for me to hand off code that is held together with band-aids.

I don't pretend to understand what you are talking about, but if you are implying I'm "handing off code held together with band-aids", perhaps you can be more specific? More importantly, this thread is nearly 3 years old! Nobody ever could explain it, but I worked around it.

Offline RICH

*
  • *
  •  7,370 7,370
    • View Profile
Re: code wanders off, but only sometimes...
« Reply #6 on: February 26, 2011, 06:29:45 AM »
Spinnetti,

I simulated the code in Mach that you posted and did not see any problems with it at all. It did not "wander off" in Mach.
Attached pic of a backplot of the code and  Mach screen.
Now if you are "wondering off" when actualy cutting the piece that is a very different problem.
It can be computer, machine, or controller related, but will guess  if using  steppers they are  skipping causing you to loose position.
Can't explain much more without more info on what is happening. ;)

So what was your work around?

RICH