Hello Guest it is January 25, 2022, 07:29:36 PM

Author Topic: Toggle ON/OFF output VB Script?  (Read 8282 times)

0 Members and 1 Guest are viewing this topic.

Toggle ON/OFF output VB Script?
« on: August 12, 2009, 09:20:28 PM »
Toggle ON/OFF output VB Script?

I made a screen where I have buttons for the outpus so I need to toggle them on and off.

What would be the VB Script for output 1 for example? ???
Re: Toggle ON/OFF output VB Script?
« Reply #2 on: August 13, 2009, 01:43:11 AM »
Could I get a sample VB Script?  For toggling an LED too.

Please, thanks in advance.

Robert

Offline ger21

*
  • *
  •  6,292 6,292
    • View Profile
    • The CNC Woodworker
Re: Toggle ON/OFF output VB Script?
« Reply #3 on: August 18, 2009, 10:17:57 PM »
What outputs are using? And how are you using them?
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Toggle ON/OFF output VB Script?
« Reply #4 on: October 30, 2009, 07:31:39 AM »
button code:

If IsOutputActive(OUTPUT6) Then
DeActivateSignal(OUTPUT6)
else
ActivateSignal(OUTPUT6)
end if

LED code:
and if you want an LED to go on and off with the button select (Output 6 Active LED) for that LED
(OEM code 79) for output 6
Re: Toggle ON/OFF output VB Script?
« Reply #5 on: March 15, 2014, 01:31:08 AM »
Just found this snippet of script which totally solved my problem, thanks! :D