Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:08:44 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
| | |-+  Using VB script to wait for an external event and then execute G code
Pages: « 1 2 3 4   Go Down
Print
Author Topic: Using VB script to wait for an external event and then execute G code  (Read 5263 times)
0 Members and 2 Guests are viewing this topic.
Octathorpe
Active Member

Offline Offline

Posts: 24


View Profile
« Reply #30 on: October 10, 2008, 06:59:28 AM »

I've ordered a dual relay board.  That way I'll be able to turn off the power to the spectrometer _and_ the power to the motor controller card.  I'll report back after it arrives and I've installed/tested.
Logged
Octathorpe
Active Member

Offline Offline

Posts: 24


View Profile
« Reply #31 on: October 14, 2008, 05:55:46 PM »

The little breakout relay board arrived today.  It only took a short while to get it wired up.  It worked on the first try.  I have added some buttons to the screen to control the relays manually (even got an LED to turn on and off, which is very basic, I know, but it was pretty advanced for me).  I then added some code to the macropump to turn off the power to the motors (not the controller board) and the laser power once the files have reached 96 (the end) and the probe has returned to the home position.  It took me much longer to do the code because it was pretty much trial and error, but it works.

It all seems to function well.  I may try to add some extra features now such as the option of running two or three plates at one time instead of just one.  Overall the system seems to function quite well and is pretty robust so far.  And now I have saved myself a lot of money because I won't have to replace the laser as soon  Cheesy

Thanks, y'all for your help on this.
Logged
Pages: « 1 2 3 4   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!