1
Technical support / Re:Relay Bit Manipulation
« on: October 24, 2013, 01:34:19 PM »
Here is a little snippet of mine that should clear things up.
If TestBIT (Relay[1],0) Then
CLRBIT Relay[1],0
Endif
'Use TestBIT here for your application
If TestBIT (Relay[1],0) AND TestBIT (Relay[1],1)Then
SetBIT Relay[1],2
EndIf
If TestBIT (Relay[1],0) Then
CLRBIT Relay[1],0
Endif
'Use TestBIT here for your application
If TestBIT (Relay[1],0) AND TestBIT (Relay[1],1)Then
SetBIT Relay[1],2
EndIf