Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:35:22 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Mach3 ShutDown
Pages: 1 2 »   Go Down
Print
Author Topic: Mach3 ShutDown  (Read 3623 times)
0 Members and 1 Guest are viewing this topic.
Repmo
Active Member

Offline Offline

Posts: 54



View Profile
« on: December 03, 2008, 08:18:16 PM »

I Use mach 3 with touch screen and the X was hard to push,

HOW CAN I SHUTDOWN mach 3 with VB buttons ??

I want same as if I push alt+f4

tanks
Fred

Logged
Repmo
Active Member

Offline Offline

Posts: 54



View Profile
« Reply #1 on: December 05, 2008, 06:36:12 PM »

OEM 706,

tanks Brian

Fred

Logged
Repmo
Active Member

Offline Offline

Posts: 54



View Profile
« Reply #2 on: December 17, 2008, 06:00:05 PM »

the OEM code 706  turn off mach3 without saving readout, 

Do you know how can I saving my Zeros  before  DOOEMBUTTON (706)

Logged
Repmo
Active Member

Offline Offline

Posts: 54



View Profile
« Reply #3 on: January 02, 2009, 05:56:05 PM »

Up Smiley

How can I save DRO and LED before quit mach 3, with   DOOEMBUTTON (706)    I can quit mach3  but the readout and other DRO was not saved.... 

I had try    SaveWizard ()    but not seem to work....

help me Smiley

Fred



Logged
cncstep
Active Member

Offline Offline

Posts: 21




View Profile WWW
« Reply #4 on: April 13, 2009, 10:25:09 AM »

I Use mach 3 with touch screen and the X was hard to push,

HOW CAN I SHUTDOWN mach 3 with VB buttons ??

I want same as if I push alt+f4

tanks
Fred



It is possible to make so:

dim z as integer
z=shell("shutdown.exe -s -t 5",1)

I in such a way switch off a computer after the ending of work when I leave it for the night to work. Has made command M999 and has registered it in it Smiley
Logged

Repmo
Active Member

Offline Offline

Posts: 54



View Profile
« Reply #5 on: April 17, 2009, 06:48:45 AM »

I Use mach 3 with touch screen and the X was hard to push,

HOW CAN I SHUTDOWN mach 3 with VB buttons ??

I want same as if I push alt+f4

tanks
Fred



It is possible to make so:

dim z as integer
z=shell("shutdown.exe -s -t 5",1)

I in such a way switch off a computer after the ending of work when I leave it for the night to work. Has made command M999 and has registered it in it Smiley


it work good ??  My problem with OEMcode 705 and 706  turn off computer but when I return in mach3, the zero of my last session was loose....

Logged
cncstep
Active Member

Offline Offline

Posts: 21




View Profile WWW
« Reply #6 on: April 18, 2009, 01:11:58 AM »

it work good ??  My problem with OEMcode 705 and 706  turn off computer but when I return in mach3, the zero of my last session was loose....

I have understood your problem Smiley yes in this variant of coordinate are not kept.

If to make this code
SendKeys " % {F4} "

That mach3 will be cut down as if on command Alt+F4, but it deduces a window of confirmation in which it is necessary to press the button yes. But during this moment the program does not give in to a script and it is impossible to press this button..

There is one exit will write the second separate program which to catch this window and to press the button yes.

Sergey
Logged

robinho.sl
Active Member

Offline Offline

Posts: 4


View Profile
« Reply #7 on: June 15, 2009, 05:48:37 PM »

o/

tks a lot!!

I was searching for this!!

But this code didn't work like i'd want.
So i tried (is it try on past?) others combinations with "SendKeys" and i found this:

SendKeys "%+{F4}"

without blanks.

Its works!!!!  o/
Logged
giannis121
Active Member

Offline Offline

Posts: 128


View Profile
« Reply #8 on: August 24, 2009, 04:03:10 AM »

Have you noticed that this command does not work on "image button"?
Works only with "button".
Why is that? Can be solved?
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #9 on: August 24, 2009, 07:33:26 AM »

The cheap way to do it on image buttons is this, put the code:
SendKeys "%+{F4}"
into a macro call it "m888" and save it to your profiles macro folder.
in the image button, tick the VB box, and put this code:

Code "m888"

then when you push the button it runs that macro, which then runs the shutdown code.

scott
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Pages: 1 2 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!