Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 08:02:53 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
| | |-+  Cycle Start to check input
Pages: 1   Go Down
Print
Author Topic: Cycle Start to check input  (Read 394 times)
0 Members and 2 Guests are viewing this topic.
Duc748
Active Member

Offline Offline

Posts: 31


View Profile
« on: April 13, 2011, 06:39:10 PM »

Hi,
I need to have the cycle start button check if spindle is activated before a program can be run.
Is this the correct code to insert into cycle button?

If IsActive(InPut10)
DoOemButton(1000)
Else
DoOemButton(1003)
MsgBox("Enable Spindle")
End


Rick
Logged
ftec
Active Member

Offline Offline

Posts: 74


View Profile
« Reply #1 on: May 04, 2011, 01:16:26 AM »

Just a sidenote, if you really want to be on the safe side you need to have some sort of circuitry to check that the spindle truly is running. Some versions back there was a bug in Mach preventing the spindle from starting and if I remember right the spindle led was lit. I had a couple of really serious collisions because of that. So I ended up adding an optional program stop M1 in my post processor after tool changes so that  if the spindle is not running the operator is able to abort the program before the tool penetrates into the material or manually start the spindle. A couple of crashes have been avoided even with the later Mach versions.

/Risto
« Last Edit: May 04, 2011, 01:18:03 AM by ftec » Logged
Pages: 1   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!