Download Print this page

HEIDENHAIN MANUALplus 620 Technical Manual page 1730

Hide thumbs Also See for MANUALplus 620:

Advertisement

8.28 Modules for string processing
Example
String memory (characters)
1
...
S0
X - P O S . : 1 2 3
S1
1 2 3
...
...
1730
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:
Marker
Value
NN_GenApiModule
0
Error (M4203)
1
NN_GenApiModule
2
ErrorCode (W1022)
11
L S"X-POS.:123"
= S0
PS K+0
PS K+1
CM 9070
PL W520
10
Meaning
Number copied
Error. See NN_GenApiModuleErrorCode
(W1022)
Invalid address of the source string or target
string
No number, no string end, or number string
has a length of more than 79 characters
...
128
HEIDENHAIN Technical Manual MANUALplus 620
Data stack [bit]
10

Advertisement

loading