Number Conversion; Module 9050 Conversion Of Binary Numbers → Ascii - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.15.2 Number Conversion

7 – 180
Module 9050 Conversion of binary numbers → ASCII
Module 9050 converts a binary numerical value consisting of a mantissa and
exponent to the base of 10 into a decimal number and saves it as a string in
the specified addressed. The exponent refers to the least significant place of
the number. The TNC detects a negative number when the mantissa
corresponds to a negative number in the notation as a two's complement. The
TNC 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 TNC 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 the base of 10 of the value>
PS
B/W/D/K <String address in which the TNC saves the ASCII-coded
decimal number>
CM
9050
Error recognition:
Marker
Value
Meaning
M4203
0
Number was converted
1
For error see W1022
W1022
2
Invalid string address or invalid exponent
HEIDENHAIN Technical Manual TNC 426, TNC 430

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 430 pa/mTnc 430 mTnc 426 cbTnc 430 caTnc 426 pbTnc 430 pa ... Show all

Table of Contents