1611
General Mach Discussion / Re: Toggle output from button input?
« on: March 09, 2015, 08:21:16 AM »
Ok something like this in the macropump may work, I am assuming They are set up as Input 1 and Output 1 for the code, so if you are using differnt ones you would need to amend accordingly.
LED = GetOEMLED(852) ' LED looks at state of Output 1 LED
If IsActive (Input1) And LED = True Then ' looking at input 1 and LED of Output 1
DeActivateSignal (OutPut1)
Else
If IsActive (Input1) And LED = False Then
ActivateSignal (OutPut1)
End If
End If
Hood
LED = GetOEMLED(852) ' LED looks at state of Output 1 LED
If IsActive (Input1) And LED = True Then ' looking at input 1 and LED of Output 1
DeActivateSignal (OutPut1)
Else
If IsActive (Input1) And LED = False Then
ActivateSignal (OutPut1)
End If
End If
Hood