Modules For String Processing - HEIDENHAIN iTNC 530 HSCI Technical Manual

Hide thumbs Also See for iTNC 530 HSCI:
Table of Contents

Advertisement

9.10.11 Modules for string processing

Example
String memory (characters)
1
...
S0
X - P O S . : 1 2 3
S1
1 2 3
...
...
1828
Module 9070 Copy a number from a string
The iTNC searches a selectable string memory, (S0 to S99), for a numerical
value. When the numerical value is first found, the iTNC copies it as a string
into another selectable string memory. The iTNC 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
iTNC recognizes unsigned and signed numbers, with and without decimal
places. Both the period and comma are permitted as decimal point. The iTNC
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 code:
Marker
Value
Meaning
M4203
0
Number copied
1
Error. See W1022.
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
L S"X-POS.:123"
= S0
PS K+0
PS K+1
CM 9070
PL W520
10
...
128
HEIDENHAIN Technical Manual iTNC 530 HSCI
Data stack [bit]
10

Advertisement

Table of Contents
loading

Table of Contents