Modules For String Processing - HEIDENHAIN TNC 426 PB/M Technical Manual

Table of Contents

Advertisement

7.9.11 Modules for String Processing

Example
String memory (characters)
1 ........................ 10.....................................................................128
S0
X - P O S . : 1 2 3
S1
1 2 3
...
December 2001
Module 9070 Copy a number from a string
The TNC searches a selectable string memory (S0 to S15) for a numerical
value. When the numerical value is first found, the TNC copies it as a string
into another selectable string memory. The TNC 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
TNC recognizes unsigned and signed numbers, with and without decimal
places. Both the period and comma are permitted as decimal point. The TNC
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
Meaning
M4203
0
Number was copied
1
Error. See W1022.
W1022
2
Incorrect address of the source 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
Commands for String Processing
Data stack [bit]
10
7 – 157

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