Hello Guest it is March 28, 2024, 12:54:23 PM

Author Topic: Booting streight into Mach  (Read 9332 times)

0 Members and 1 Guest are viewing this topic.

Re: Booting streight into Mach
« Reply #10 on: December 01, 2008, 02:34:11 PM »
I've just found this..... http://kanebt.wordpress.com/kanebt-taskbar-start-menu-remover/

It might save a bit of head scratching, used with the no right had click hack as previously mentioned and a custom windows start screen I think I'll be almost there.

Thanks again for the help, and I hope that others may find this thread usefull.

James

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: Booting streight into Mach
« Reply #11 on: December 02, 2008, 12:29:57 AM »
Thanks for the nice comments :) anything for my fellow CNC friends!

Here is the code...this will do what you want.

You can turn on/off the "taskbar" and "Desktop icons", if you turn off the "Desktop Icons" it will disable the "right click on desktop" as well.
The only other thing I can think of is to "disable short cut keys". You could disable short cut keys and leave 1 combo open so you have acess to regain control.

You can run this code on" boot up" as a "VBS" or/and in Mach on a button or/and from a Macro even, just change the: ShowTask = True and ShowIcons= True:

Code: [Select]
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function GetWindow Lib "user32" (ByVal hwnd As Long, ByVal wCmd As Long) As Long
Private Declare Function ShowWindow Lib "user32" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Private Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
Private Const GW_CHILD = 5
Private Const SW_HIDE = 0
Private Const SW_SHOW = 5
Dim lngHandle As Long
Dim lngStartButton As Long
lngHandle = FindWindow("Shell_TrayWnd", "") 
Dim hWnd_DesktopIcons As Long
hWnd_DesktopIcons = GetWindow( FindWindow("Progman", "Program Manager"), GW_CHILD)
lngHandle = FindWindow("Shell_TrayWnd", "")
   
   
'////Show Taskbar////////
   ShowTask = True
'////Show/hide Icons////
   ShowIcons= True
   
    If  ShowTask Then
        ShowWindow lngHandle, 5
    Else
        ShowWindow lngHandle, 0
    End If
       
    If ShowIcons Then
        ShowWindow hWnd_DesktopIcons, SW_SHOW
    Else
        ShowWindow hWnd_DesktopIcons, SW_HIDE
    End If

Jason Blake
« Last Edit: December 02, 2008, 12:32:33 AM by zealous »
Re: Booting straight into Mach
« Reply #12 on: December 03, 2008, 03:48:38 AM »
If your goal is to make a dedicated mach controller you might want to look at http://www.microsoft.com/windowsembedded/en-us/products/westandard/default.mspx
This is an embedded version of windows designed for OEMs.
Re: Booting streight into Mach
« Reply #13 on: December 05, 2008, 04:57:06 PM »
Hmmm, Now that's interesting. I had no idea it even existed.

Thanks
Re: Booting streight into Mach
« Reply #14 on: November 20, 2009, 11:50:48 AM »
Hello again,

OK, I have read most of these posts. Hood talks about putting MAch into the start up folder, I have to assume that is the same as using Windows explorer and copying MACH to startup folder? I am also trying to load the DROS with the numbers my G code is using as home. I do not have home switches. Right now I have a 17 step procedure (attached) to get the machine running after everything has been shut down. It is a given steps 1,2, and 3 have to be performed manually but 4 thru 17 I would think could be automatic. Is it just a matter of the persistant DRO setting? G code is attached as well. The DRO's read X = 0.150 and Z = 0.650 for home position. For the parts I am making I use the same X and Z home and write the G code from there to make different parts.

I will make sure I have the persistant DRO checked and load Mach to the startup folder.  Is there something else I should be aware of?

Thanks


Procedure for lathe start-up

1.   Turn on computer and monitor.  Takes a few minutes.
2. Make sure power disconnect by door is ON.
3.   Alt Ctrl Del Logon computer.
4.   Click on “Mach3 Loader” Icon on computer.
5.   Select “Simpson Electric ORG” click OK. Wait.
6.   Select the “Program Run Tab” upper left, should be there.
7.   Click the “RESET” in lower left corn.
8.   Click the vertical bar “Ref All Home”. Top Center.
9.   Click on the square for “Zero X” and “Zero Z”.
10. Click the vertical bar “Ref All Home”. Again.
11. Select load G code or select “recent file” lower left.
12. In selection box select Green Red or Blue depending on part.
13. Select “Offline” near center of screen.
14. Click the “Start” twice at the left center. Program will run but NOT    machine.
  15. Select “Offline again”.
  16. Click on “Spindle CW F5” on right side middle.
17. Machine is ready to run. The machine can be started by pushing the Green start or by clicking on the Start on the screen.

;N10 Home X at 0 on ring Z at 0 on ring width
N20 G20 G18 G70 G90 M48 m09 G94
n110 m00
;n111 g04 p15
n120 m03
N121 G00 x0.1500 z0.6500
N133 G00 z0.0300
N134 G00 x0.0100
n135 g01 x0.0020 z0.0000 f0.6
n136 g01 x0.0000 z0.0000
N137 g01 x-0.0002 z-0.0108
N140 G01 x-0.0015 z-0.0150
N141 g01 x-0.0025 z-0.0180 f0.3
N151 G01 X-0.0030
N162 G01 z-0.0250
N163 g04 p0.8
N164 g01 x-0.0040
N168 g01 z-0.0280
N170 g01 z-0.0295
N171 g01 z-0.0300
N172 g04 p0.8
N173 g01 z-0.0315
N174 g01 z-0.0335
N175 g01 z-0.0375
N176 g01 z-0.0385
N179 g04 p0.2
N180 g01 z-0.0390
N190 g04 p1.0
N970 g00 x0.1500 z0.6500
n990 m47


Re: Booting streight into Mach
« Reply #15 on: November 20, 2009, 03:07:01 PM »
This guy has a kick a$$ program made that will not only do what you want but it will make mach run even faster.

http://www.gbcdepot.com/m3s/

good luck
Re: Booting streight into Mach
« Reply #16 on: November 22, 2009, 09:01:10 PM »
Hey Grand master.Have you installed the Mach3shell program?
Has any one tested this and has info to share?
Re: Booting streight into Mach
« Reply #17 on: November 23, 2009, 07:27:47 AM »
If you are using the computer for anything other than mach (ie: cad) then it may be a bit more of a pain as you have to go in and out of the shell, but if the computer is dedicated to CNC then it cant be beat.
with it a slow machine becomes fast as all the windows programs are restricted to a minimum. You can still run an explorer window from the CNC shell so windows programs are still available.

I like to dedicate the PC to only mach/CNC as a real CNC would be, less chance of the user screwing something up.