Hello Guest it is April 16, 2024, 05:33:02 PM

Author Topic: button for activate/deactivate output 7  (Read 3297 times)

0 Members and 1 Guest are viewing this topic.

button for activate/deactivate output 7
« on: February 24, 2013, 10:53:13 AM »
hi

I'm trying to get a button working in mach3 to activate output 7 when pushed and deactivate when pushed again. output 7 port 10 pin 7 on the pokey.
Pin no 7. is set to output and IO to output7.

The pokeys is a 57E with the new plugin for mach3

hope some can help me with a VB for this.

/Mike

Offline Tweakie.CNC

*
  • *
  •  9,197 9,197
  • Super Kitty
    • View Profile
Re: button for activate/deactivate output 7
« Reply #1 on: February 24, 2013, 11:07:00 AM »
Hi Mike,

Try this...

If IsOutputActive(OUTPUT7) Then    'Check to see if its on
DeActivateSignal(OUTPUT7)             'Its on so turn it off
Else
ActivateSignal(OUTPUT7)                 'Its off so turn it on
End If

Tweakie.
PEACE
Re: button for activate/deactivate output 7
« Reply #2 on: February 24, 2013, 11:29:58 AM »
WOW that was fast , it work like a charme. THANKS!!!  :)