5 string processing 7-151 – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual
Page 612

Call:
PS
K/B/W/D
PS
K/B/W/D
CM
9054
Example:
0110 0011
B0 = 99
6
S0 = Hex 63
3
Error status after call: M3171 =
0: Binary block was converted
1: Error condition see above
4.5 String Processing
4.5.1 Copying a Number from a String (Module 9070)
Searches for a numerical value in the source string in the string buffer with the specified source
string number. The first numerical value found is copied as a string to the string identified by the
destination string number.
Any conflict between source and destination strings is not checked, the source string is overwritten
if necessary (but the module will still function in this case). The module recognizes signed and
unsigned numbers with and without places after the decimal point. Both the comma and the point
are accepted as the decimal character. The distance (in characters) of the first character after the
number found in the source string is also recorded.
Possible errors:
- The numbers of source or destination string are outside the valid range (0..3).
- There is no number in the specified source string.
- The source string has been searched without an end of string being found.
- The found number string is longer than 79 characters, i.e. internal overflow.
Call:
PS
K/B/W/D
PS
K/B/W/D
CM
9070
PL
B/W/D