Hello Guest it is December 10, 2019, 02:05:43 PM

Author Topic: UC100 Mach4 Lathe G83 fail  (Read 1762 times)

0 Members and 1 Guest are viewing this topic.

UC100 Mach4 Lathe G83 fail
« on: February 26, 2017, 07:15:49 PM »
When executing a G83 in Mach4 it does not perform as it should.  I have uploaded a YouTube video showing the failure.  I had previously used this exact same code when I was running under Mach3 before they came out with the Mach4 plugin and it worked perfectly.  UCNC believes it is a Mach4 bug.  Can any of you duplicate the error with any other motion controller or Uc100?
 

https://www.youtube.com/watch?v=oQWuqf_LF60

TIA

RT

Online smurph

*
  • *
  •  1,154 1,154
  • "That there... that's an RV."
    • View Profile
Re: UC100 Mach4 Lathe G83 fail
« Reply #1 on: February 27, 2017, 05:49:16 PM »
Have you run it with Sim?  Works fine in Sim for me.  

Steve
Re: UC100 Mach4 Lathe G83 fail
« Reply #2 on: February 27, 2017, 07:00:15 PM »
Hi Steve,

Yes, unfortunately, Sim doesn't seem to cut very well for me.   ;D. You know what they say,

“In theory, theory and practice are the same. In practice, they are not.”

Since I was able to use the code with Mach3 and uc100 one would think it would work the same way using the same hardware with Mach4 and the new uc100 plugin.  Testing it against real hardware in real time is the only reliable method.  If it works on a lathe with Mach4 and Pokeys or pmdx controllers then it would point to the uc100 as the culprit or Mach4 if it fails for them.  Or if someone else has a uc100 and Mach4 and can't reproduce my error then it would point to my hardware or installation. 

I think  ???

Online smurph

*
  • *
  •  1,154 1,154
  • "That there... that's an RV."
    • View Profile
Re: UC100 Mach4 Lathe G83 fail
« Reply #3 on: February 27, 2017, 07:08:32 PM »
My point being is if Sim works and it doesn't on the uc100, then I suspect the uc100 plugin.  That is what we use Sim for mostly.  To verify proper operation of a hardware motion plugin.  If it doesn't work in Sim, then suspect a bug in Mach.  So the FIRST thing one should do if they have a problem is to test with Sim.  Because you will know who to talk to rather quickly. 

Steve

Re: UC100 Mach4 Lathe G83 fail
« Reply #4 on: February 28, 2017, 10:44:54 AM »
Just when I think I'm getting good at communicating I get hit upside the head with a 2x4.

Hidden in my posts is that, I had tried it in SIM, figured it was the UC100, contacted them and their initial response is that they think it is a Mach4 problem.  Their response:
...
Hi,

Thanks for the bug report, but this does not looks like a UC100 plugin bug, it seems more a Mach4 bug.
My reasoning is that motion controllers do not know anything about the g-code being executed on the computer by Mach3/4,
what a motion controller sees is a stream of motion data which the software calculates and the plugin reads and executes those datas.
For the UC100 there is no difference if a command is G0 or G1 or G2 or G3 or ... G83, it only sees a stream of movement vectors array which Mach4 is sending.
...

So...why not ask for some user help here.  Surely someone else is running Mach4 on a lathe and can verify that it works or doesn't on their setup. 

Not trying to bash either Mach4 or CNCdrive, just trying to solve a problem.

I'll try and do better next time with my communications.

RT

Online smurph

*
  • *
  •  1,154 1,154
  • "That there... that's an RV."
    • View Profile
Re: UC100 Mach4 Lathe G83 fail
« Reply #5 on: February 28, 2017, 02:41:08 PM »
Well, it is a bit different from M3 to M4.  In fact, I really want for people to get the idea that comparing Mach 3 to Mach 4 is really like comparing apples to oranges.  They are both machine controllers (fruit), but that is about the extent of it.  Plugins differ tremendously on how they operate between Mach 3 and Mach 4.  And the differences between Mach 3 Turn and Mach 4 Lathe are even more stark.

I'm not saying you should not ask for help here at all.  And I'm not dismissing the problem either.  I wanted to know if it runs with Sim on your machine.  It works fine on my machine, but I may have a different setup.  If Sim produces the same error on your machine as the uc100 does, then I would know there is something different between our two setups and the we can start digging further.  My goal was to help you.  I know that Sim doesn't even cut air very well.  :)  But trying Sim is a very important step in the diagnostics process.  That was the point that I was trying to convey.  Maybe I should do better with my communications too!

Steve
Re: UC100 Mach4 Lathe G83 fail
« Reply #6 on: February 28, 2017, 06:37:03 PM »
New Information,

Did a reinstall of Mach4, no difference.

I decided to just write a gcode file to do this one peck drill.  It skipped every g1 line, executed every g4 and g0.  After 3 or 4 runs it wouldn’t run at all. 

Code: [Select]
M3 S500
G00 Z0.100
G01 F4 Z-.3
G4 P250
G00 Z0.100
G4 p1000
G00 Z-.3
G01 F4 Z-.6
G4 P250
G00 Z0.100
G4 p1000
G00 Z-.6
G01 F4 Z-.9
G4 P250
G00 Z0.100
G4 p1000
G00 Z-.9
G01 F4 Z-1.2
G4 P250
G00 Z0.100
G4 p1000
G00 Z-1.2
G01 F4 Z-1.5
G4 P250
G00 Z0.100
G4 p1000
G00 Z-1.5
G01 F4 Z-1.8
G4 P250
G00 Z0.100
G4 p1000
G00 Z-1.8
G01 F4 Z-2.1
G4 P250
G00 Z0.100
G4 p1000
G00 Z-2.1
G01 F4 Z-2.4
G4 P250
G00 Z0.100
G4 p1000
G00 Z-2.4
G01 F4 Z-2.5
G00 Z0.100
M9

Went back to Mach3 turn and ran the G83, worked great.  Totally at a loss.

Online smurph

*
  • *
  •  1,154 1,154
  • "That there... that's an RV."
    • View Profile
Re: UC100 Mach4 Lathe G83 fail
« Reply #7 on: February 28, 2017, 06:47:20 PM »
What build are you running?  Also, I tested your G code and it ran flawlessly under Sim and Galil.  I wish I had a uc100 to test with, but I don't.  :(

Steve
Re: UC100 Mach4 Lathe G83 fail
« Reply #8 on: February 28, 2017, 08:02:48 PM »
I'm one of the developers at CNCdrive, I'm the one who the OP discussed this issue with in e-mail,
so I thought to quickly clarify a few things so others will also know this when reading.

The UC100 currently can't cut threads with Mach4, so it can't be used for most lathe works,
because we could not fit our code to the Mach4 thread cutting interface yet,
we just could not make that work as calling some lathe functions just freezing up Mach4 and we could not figure out why yet, so we put this part of the development apart at the moment, but will contact the Artsoft guys as soon as we will find the time, so hopefully we can then resolve this issue.

So, the important thing is that the UC100 will not work with Mach4lathe at the moment, it works only with the Mach4mill, so please do not buy a UC100 if you want to use Mach4lathe,
because it currently can't cut threads with Mach4, so it is yet useless with Mach4lathe.

Thank you.