Hello Guest it is December 09, 2019, 02:12:46 AM

Author Topic: Reset = E-stop?  (Read 13730 times)

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: Reset = E-stop?
« Reply #20 on: June 05, 2011, 07:34:17 PM »
OK where in your screen set is the code you want us to check?

(;-) TP

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: Reset = E-stop?
« Reply #21 on: June 05, 2011, 09:45:54 PM »
Hood could you test something on your end to confirm something? The While Ismoving will NOT work with the feedhold RUNNING a Gcode Progam. As long as the feedhold is still active the while Ismoving()  loop holds up VB in a wait loop.  

IF you Press the STOP button manually it releases the loop and continues the VB code  (;-( I don't remember it being that way in the past.


DoOemButton(1002) 'Feedhold
While Ismoving()
Sleep 10
Wend
Message " It made it passed the Feedhold"
Sleep 5000
DoOemButton(1003)
Message "It made it to STOP"
end

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: Reset = E-stop?
« Reply #22 on: June 05, 2011, 10:07:35 PM »
Sorry Hood the first line should reference button(1001)  Feedhold. Not 1002

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: Reset = E-stop?
« Reply #23 on: June 06, 2011, 12:11:25 AM »
OK I think I figured it out. The While Ismoving will not release the loop because mach is still active in a paused mode. 

We will need to use

 While IsStopped() =0
Wend

That Way the LOOP is released the moment ALL the axis's actually stop moving.

I could have sworn the ismoving() used to work for this ?????  Maybe the brain has faded.

(;-) TP
Re: Reset = E-stop?
« Reply #24 on: June 06, 2011, 02:00:26 AM »
Hood: No servo's, I'm busy with the screen first.

BR549, it's at all the reset buttons, thanks for the code, but it also does it while mach3 is not executing g-code.

I don't know if it needs a reinstall, this is on my notebook, I'll have to try put it on the dedicated machine to see if it makes a difference but I loaned that out and can only use it again on Wednesday.


« Last Edit: June 06, 2011, 02:05:42 AM by jrobson »

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: Reset = E-stop?
« Reply #25 on: June 06, 2011, 02:23:00 AM »
NOW I see it happening in YOUR screenset. That same code runs fine in MY screen set. That mean you may have some crossed up button code or possible duplicate hotkeys somewhere in the screenset.

Been there done that one before. I will start looking for the problem to help out.

(;-)TP
Re: Reset = E-stop?
« Reply #26 on: June 06, 2011, 02:24:52 AM »
Okay thanks for confirming, I'll have a look around and see if I can find it as well.

I used the mouse to test.

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: Reset = E-stop?
« Reply #27 on: June 06, 2011, 02:41:08 AM »
OK I cleaned out all the button code for all the resets and reentered the code and it seems to work fine here.  NO resets when you use the button

Opened with MachScreen and it declared the screen set corrupt for some reason.

(;-) TP
Re: Reset = E-stop?
« Reply #28 on: June 06, 2011, 02:44:18 AM »
Hmmm... okay what does that mean, must I redo it?

Offline BR549

*
  •  6,916 6,916
    • View Profile
Re: Reset = E-stop?
« Reply #29 on: June 06, 2011, 03:02:53 AM »
I don't know for sure all I did was clean out the code and retype it in again and it worked OK.

Give that a try, (;-) TP