Hello Guest it is July 06, 2020, 11:20:01 PM

Author Topic: DRO's change but motors do not move, until Mach3 is restarted  (Read 11863 times)

0 Members and 1 Guest are viewing this topic.

Offline rcaffin

*
  •  1,029 1,029
    • View Profile
Re: DRO's change but motors do not move, until Mach3 is restarted
« Reply #10 on: October 07, 2012, 04:55:57 AM »
Hum ... following on...
If restarting Mach3 after one job solves the problem, how about hitting the eStop after one job and then the Reset? That fires off the sdame Init string. Does that sort out the problem?

If so, I would look very closely at what M codes you have at the end and how they interact with the wiring around the eStop line. A mis-wiring around there could be the problem. Yes, I am definitely looking for a HW problem here.

Cheers

Offline DMBGO

*
  •  200 200
  • Time is the same in a relative way
    • View Profile
Re: DRO's change but motors do not move, until Mach3 is restarted
« Reply #11 on: October 17, 2012, 11:47:23 PM »
I found the answer to the problem, and I'll post it here in case someone else runs across the same issue. The fix was simple (as most fixes are). All I had to do was uncheck in General Config, the box that said : On program end tun off all outputs.

Why this caused the issue in the first place I don't know, but I suspect that it is a bug in the Ess plugin. I'll ask on the Warp9 forum to see what Greg thinks.

Cheers

Dave
Cheers

David

Offline DMBGO

*
  •  200 200
  • Time is the same in a relative way
    • View Profile
Re: DRO's change but motors do not move, until Mach3 is restarted
« Reply #12 on: October 18, 2012, 12:26:24 AM »
Here is a screen shot of the solution
Cheers

David

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: DRO's change but motors do not move, until Mach3 is restarted
« Reply #13 on: October 18, 2012, 02:55:22 AM »
What does your m9004 macro do?
Hood

Offline DMBGO

*
  •  200 200
  • Time is the same in a relative way
    • View Profile
Re: DRO's change but motors do not move, until Mach3 is restarted
« Reply #14 on: October 18, 2012, 03:00:00 AM »
Is this M9004.m1s? if so its contents are:

SetSpinSpeed(1000)
 
Cheers

Dave
Cheers

David

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: DRO's change but motors do not move, until Mach3 is restarted
« Reply #15 on: October 18, 2012, 03:06:29 AM »
Oh ok its not likely related then, I was just wondering if it could have been.
BTW you could just have easily put S1000 in the init string rather than have a macro, then again maybe your macro is used by something else so you already needed it.
Hood

Offline DMBGO

*
  •  200 200
  • Time is the same in a relative way
    • View Profile
Re: DRO's change but motors do not move, until Mach3 is restarted
« Reply #16 on: October 18, 2012, 03:46:05 AM »
No I don't think that speed is there for anything in particular, but 1000 seems to be a good starting speed.

Cheers Dave
Cheers

David

Offline DMBGO

*
  •  200 200
  • Time is the same in a relative way
    • View Profile
Re: DRO's change but motors do not move, until Mach3 is restarted
« Reply #17 on: October 18, 2012, 03:57:50 PM »
FYI here's what Greg said:

"Thanks for the detailed de_script_ion with the screen shots. The DROs will only change if the board is reporting positions back to Mach. So internally the board is creating those moves but they are evidently not being output on the pins. My guess is that it somehow ended up in Offline mode. In that mode I disabled the outputs but ran the plugin as normally as possible. I'll look into it this afternoon. If I can't recreate it may write a plugin for you to try that will alert you if it ends up in that mode.

Thanks,

Greg"

Cheers Dave
Cheers

David

Offline DMBGO

*
  •  200 200
  • Time is the same in a relative way
    • View Profile
Re: DRO's change but motors do not move, until Mach3 is restarted
« Reply #18 on: October 18, 2012, 08:38:51 PM »
Out of curiosity, are you able to replicate this issue Hood?
Cheers

David

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: DRO's change but motors do not move, until Mach3 is restarted
« Reply #19 on: October 19, 2012, 06:01:42 AM »
I have tested here and it does the same, reason for me is that it is taking away the enables from my servo drive. A simple reset is all that is required to get it going again.
I suspect if you also choose to have it E-Stop on M30 or Rewind then it would be fine when you enabled Mach again.
It is therefore not really a SmoothStepper issue but more a config issue.

Regarding the macro, my point was you do not need to have a macro written if all it is for is to set the spindle speed to 1000 at startup. A simple S1000 in the initialisation string on General Config would have done the same thing without having to write a custom macro.
Hood