Hello Guest it is December 14, 2019, 03:50:32 AM

Author Topic: How do I Activate and later Deactivate an unused output  (Read 1529 times)

0 Members and 1 Guest are viewing this topic.

How do I Activate and later Deactivate an unused output
« 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.

 

Online Tweakie.CNC

*
  • *
  •  8,022 8,022
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: How do I Activate and later Deactivate an unused output
« Reply #1 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.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: How do I Activate and later Deactivate an unused output
« Reply #2 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.