Hello
Guest
it is
September 25, 2023, 06:53:36 AM
Guest
Login
Register
Menu
Home
Help
Search
Calendar
Members
Members
View the memberlist
Search For Members
Login
Register
YouTube
Machsupport Forum
/
Mach Discussion
/
VB and the development of wizards
/
Toggle ON/OFF output VB Script?
« previous
next »
Print
Pages:
1
Go Down
Author
Topic: Toggle ON/OFF output VB Script? (Read 8984 times)
0 Members and 1 Guest are viewing this topic.
robertmonroe
23
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?
Logged
ger21
6,295
Re: Toggle ON/OFF output VB Script?
«
Reply #1 on:
August 12, 2009, 10:32:38 PM »
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
Logged
Gerry
2010 Screenset
http://www.thecncwoodworker.com/2010.html
JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
robertmonroe
23
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
Logged
ger21
6,295
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?
Logged
Gerry
2010 Screenset
http://www.thecncwoodworker.com/2010.html
JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Grand Master B
19
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
Logged
howajo
1
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!
Logged
Print
Pages:
1
Go Up
« previous
next »