String Processing; Copying A Number From A String - HEIDENHAIN TNC 415 Technical Manual

Hide thumbs Also See for TNC 415:
Table of Contents

Advertisement

Call:
PS
K/B/W/D
<Number of source string>
PS
K/B/W/D
<Destination address in Word-RAM>
CM
9054
Example:
S0 = Hex 63
6
B0 = 99
0110 0011
Error status after call: M3171 =

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
<Number of source string>
PS
K/B/W/D
<Number of destination string>
CM
9070
PL
B/W/D
<Offset end of number string in source string>
01.98
TNC 407/TNC 415/TNC 425
3
0: Binary block was converted
1: Error condition see above
4 PLC Modules
7-151

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Tnc 425eTnc 415fTnc 407Tnc 415bTnc 425

Table of Contents