ndOnb
(Library)

Converts a decimal number to a binary number and outputs it from a designated port.

ndOnb (<Integer value>, <Least significant digit output port number>, <Most significant digit output port number>)

This statement provides a similar function to an ONB instruction in the conventional language.
The system converts an integer to a binary number and outputs it from a designated port.
Use the ndOnbI Library for the ONB instruction to format type I variable value output.

For output ports, use 16 ports or less in series. When you designate more than 16 ports, if low order port > high order port, or if you designate a port not available for output, no processing will be done.

CALL ndOnb(15,104,119)
|
'Converts a decimal 15 to a 16-bit binary and
'outputs it to output ports 104 to 119.
|