GETBIT (FUN)

FUNCTION GETBIT : BOOL

Returns the bit value at position N of value X

InOut:

Scope

Name

Type

Comment

Return

GETBIT

BOOL

Input

X

LWORD

Variable from which the bit is chosen, value has to be unsigned

N

BYTE

The bitnumer 0…(size of datatype)