Welcome, Guest. Please login or register.
Did you miss your activation email?
May 25, 2012, 06:23:06 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  Toggle ON/OFF output VB Script?
Pages: 1   Go Down
Print
Author Topic: Toggle ON/OFF output VB Script?  (Read 1406 times)
0 Members and 2 Guests are viewing this topic.
robertmonroe
Active Member

Offline Offline

Posts: 23


View Profile
« on: August 12, 2009, 08: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? Huh
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,612



View Profile WWW
« Reply #1 on: August 12, 2009, 09: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

robertmonroe
Active Member

Offline Offline

Posts: 23


View Profile
« Reply #2 on: August 13, 2009, 12:43:11 AM »

Could I get a sample VB Script?  For toggling an LED too.

Please, thanks in advance.

Robert
Logged
ger21
Global Moderator
*
Offline Offline

Posts: 2,612



View Profile WWW
« Reply #3 on: August 18, 2009, 09:17:57 PM »

What outputs are using? And how are you using them?
Logged

Grand Master B
Active Member

Offline Offline

Posts: 19



View Profile
« Reply #4 on: October 30, 2009, 06: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
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!