Machsupport Forum
Mach Discussion => VB and the development of wizards => Topic started by: robertmonroe 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? ???
-
http://www.machsupport.com/MachCustomizeWiki/index.php?title=Mach_specific_Subroutines/Functions_grouped_by_purpose#Input.2FOutput_signals.2C_Modbus_I.2FO.2C_a_serial_port_and_.22foreign.22_ports
-
Could I get a sample VB Script? For toggling an LED too.
Please, thanks in advance.
Robert
-
What outputs are using? And how are you using them?
-
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
-
Just found this snippet of script which totally solved my problem, thanks! :D