Go to Triangle Digital Support Home Page TDS2020F TECHNICAL MANUAL
Programming
Logic functions
Live website search
Enter key words
 

LOGIC FUNCTIONS

DEFINITIONS

On TDS2020F a false flag is 0 and a true flag any other number. When a true flag is returned from a function, it is always -1, but as an input parameter it can be any non-zero value.

 

0<>

( n - f )

Converts number n into logically identical flag. Opposite of NOT .

?BIT

( ca n - f )

Flag is true if bit n at byte address ca is set.

AND

( n1 n2 - n3 )

n3 is the logical AND function of n1 and n2.

BIT

( n1 - n2 )

n2 has one bit set. This is bit 0 to bit 15 according the input number n1.

NOT

( n - f )

Converts number n into opposite flag 0 or 1. Opposite of 0<> and identical to 0= .

OFF

( aa - )

False (0) to variable at aa.

ON

( aa - )

True (-1) to variable at aa.

ONE

( ca n - )

Set bit n (0 to 7) at byte address ca.

OR

( n1 n2 - n3 )

n3 is the logical OR function of n1 and n2.

TOGGLE

( ca b - )

Exclusive or the content of byte at address ca with the byte b.

WITHIN

( n1 n2 n3 - f )

True if n1 is in the range n2 to n3 where n2 and n3 are like the parameters of a DO loop.

XOR

( n1 n2 - n3 )

n3 is the logical exclusive OR of n1 and n2.

ZERO

( ca n - )

Clear bit n (0 to 7) at byte address ca.

Go to Triangle Digital Support Home Page Go to top   Next page