1852 HEIDENHAIN Technical Manual iTNC 530 HSCI
9.16.2 Number conversion
Module 9050 Conversion from binary → ASCII
Module 9050 converts a binary numerical value consisting of a mantissa and
exponent to base 10 into an ASCII-coded decimal number and saves it as a
string in the specified address. The exponent refers to the least significant
place of the number. The iTNC detects a negative number when the mantissa
corresponds to a negative number in the notation as a two’s complement. The
iTNC sets an algebraic sign only before negative numbers. The control does
not convert trailing zeros after the decimal point or leading zeros before the
decimal point. The iTNC writes the string left-aligned in the string address that
you specify.
Constraints:
The decimal character is defined by Machine Parameter MP7280 as a comma
(MP7280 = 0) or a period (MP7280 = 1).
Call:
PS B/W/D/K <>Mantissa of the number to be converted>
PS B/W/D/K <>Exponent to base 10 of the value>
PS B/W/D/K <>String address in which the iTNC saves the ASCII-coded
decimal number>
CM 9050
Error code:
Marker Value Meaning
M4203 0 Number was converted
1 See W1022 for error code
W1022 2 Invalid string address or invalid exponent