Welcome, Guest. Please login or register.
Did you miss your activation email?
February 12, 2012, 10:11:46 AM

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
| | |-+  Spindle Macro Question
Pages: 1   Go Down
Print
Author Topic: Spindle Macro Question  (Read 505 times)
0 Members and 1 Guest are viewing this topic.
stevekun
Holding

Offline Offline

Posts: 1


View Profile
« on: February 24, 2010, 02:49:06 PM »

Hi,
I have a spindle controller that gives out a 'reached speed' signal.
I'd like help writing scripting to use this signal.

I figured out what I need to do....

start spindle
wait for pin 15 to go high (Input 1)
continue with prgm (G code)
monitor pin 15 until end of prgm, when low(spindle controller error), stop prgm execution

prgm ends with....
m9
m5
m30

Can I use SystemWaitFor ()

If the monitoring thing is a problem, I won't use it. (just to maybe save a tool)

I've been reading and jumbling some codes for days now and just don't know enough to put it together right.
Any help would be great.
Logged
arbus
Active Member

Offline Offline

Posts: 13


View Profile WWW
« Reply #1 on: April 01, 2010, 05:54:09 PM »

Maybe use an Led to control it?

Use OEM code 821 -824  (Input 1 - 4 active LED)

eg. Set the pin as input 1
When input 1 is active LED 1 is On.

Trig = GetOEMLED(821)
While Trig <> 1
Wend


If you wanted to monitor it during a gcode operation maybe use BRAINS.  Set up Brains to monitor the LED.

AR

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!