1730 HEIDENHAIN Technical Manual MANUALplus 620
8.28 Modules for string processing
Module 9070 Copy a number from a string
The control searches a selectable string memory (S0 to S99) for a numerical
value. The control copies the first numerical value found as a string into
another selectable string memory. The control does not check whether a
conflict arises between the source and target string. It may overwrite the
source string (even then, however, the function of the module is ensured). The
control recognizes unsigned and signed numbers, with and without decimal
places. Both the period and comma are permitted as decimal point. The
control returns the position (in characters) of the first character after the found
number in the string memory to be searched.
Call:
PS K/B/W/D <Address of the string memory to be searched>
PS K/B/W/D <Address of the string memory for the found number>
CM 9070
PL B/W/D <Offset end of numerical string in the searched string
memory>
Error recognition:
Example L S"X-POS.:123"
= S0
PS K+0
PS K+1
CM 9070
PL W520
Marker Value Meaning
NN_GenApiModule
Error (M4203)
0 Number copied
1 Error. See NN_GenApiModuleErrorCode
(W1022)
NN_GenApiModule
ErrorCode (W1022)
2 Invalid address of the source string or target
string
11 No number, no string end, or number string
has a length of more than 79 characters
String memory (characters) Data stack [bit]
1 ... 10 ... 128
S0 X- POS. : 123
S1 1 2 3 10
... ...