Syntax:
stringvar = ULongIntToBin(ULongIntvar)
Command Availability:
Available on all microcontrollers
Explanation:
The ULongIntToBin
function creates a string of a ANSI (32) characters.
The function converts a number to a string consisting of ones and zeros that represents the binary value.
Note:
Supports ULongInt variables only. For BYTE variables use VarToBin
, for WORD variables use VarWToBinand
for INTEGER variables use VarIntegerToBin
Example:
string = ULongIntToBin( 1 ) ' Returns "00000000000000000000000000000001" string = ULongIntToBin( 254 ) ' Returns "00000000000000000000000011111110"
For more help, see ByteToBin, WordToBin, IntegerToBin