Hello Guest it is September 24, 2020, 11:05:20 AM

Author Topic: Macro or brain???? Help needed  (Read 637 times)

0 Members and 1 Guest are viewing this topic.

Macro or brain???? Help needed
« on: April 19, 2018, 03:05:44 AM »
I have built a plasma table, and I'm trying to add some additional functions.

I have installed a visible laser operated by a spare output.

I wish to write a script or brain ( not sure which is best) that will change M03 output from output 1 to output 6 when an on screen button is toggled.

I have never written any scripts for my cnc but I have programmed in VB.

Thanks

Offline TPS

*
  •  1,673 1,673
    • View Profile
Re: Macro or brain???? Help needed
« Reply #1 on: April 20, 2018, 03:26:54 AM »
if you want to toogle an Output by button, vbscript would be the choice.
for example

Code: [Select]
If IsActive(OUTPUT1) Then
  DeactivateSignal(OUTPUT1)
Else
  ActivateSignal(OUTPUT1)
End If
anything is possible, just try it.
if you find some mistakes, in my bad bavarian english,they are yours.