ndOnbI
(Library)

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

ndOnbI (<Integer variable number>,<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 ndOnb 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 ndOnbI(1,104,119)
|
'Converts the value of integer variable I (number 1)
'to a 16-bit binary and outputs it to output ports
'104 to 119.
|