Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: strong6515 on December 01, 2012, 10:32:44 PM

Title: How do I Activate and later Deactivate an unused output
Post by: strong6515 on December 01, 2012, 10:32:44 PM
I would like to turn on an unused output (such as OUTPUT 6) after a g-code line comand such as GO X3 Y6
Then several lines later Turn OFF that output and continue running the g-code.
I think I have already used all of the built in outputs such as spindle cw/ccw , mist on, flood on /off.
So, now I think I must finally graduate to the next plateau, and actually learn and understand basic VB Script editing.

Now I will display my acute ignorance, feel free to correct me as you see fit.
I plan to open the script editor in Mach3.
Then open an existing file.
Then SAVE AS that file as , say M123
Then write the suggested text to turn on Output 6
Save again
Add M123 as a line in my g-code
---
After you have finished laughing and shaking your head side to side at my plan, help would be appreciated.
Specifically what should the most basic VB script commands be for output 6 ON and then a later  script for OFF be.
And of course I want to include ALL of the outputs available in Mach3.

 
Title: Re: How do I Activate and later Deactivate an unused output
Post by: Tweakie.CNC on December 02, 2012, 04:03:25 AM
Quote
Specifically what should the most basic VB script commands be for output 6 ON and then a later  script for OFF be.

The commands for ON and OFF...

ActivateSignal(OUTPUT6)

DeActivateSignal(OUTPUT6)

Tweakie.
Title: Re: How do I Activate and later Deactivate an unused output
Post by: strong6515 on December 06, 2012, 07:13:13 PM
Thanks Tweakie, Finally had a chance to test  this important info and it works perfectly.
This small set forward is HUGE to me. Thanks again.