beautypg.com

Compute string length (module 9071) – HEIDENHAIN TNC 306 Technical Manual User Manual

Page 406

background image


7-116

TNC 416/TNC 406/TNC 306

PLC Modules for TNC 416/406

3/2000

Possible errors:
- The number of the target string is outside the permitted range (0..3).
- There are more than 16 decimal places in all (before and after decimal point).
- No places before the decimal point are specified.

Call:

PS

K/B/W/D

PS

K/B/W/D


Bit #3: display with sign
Bit #2: display converted to INCH
Bit #1/#0: Format
00: Sign and number left-justified
01: Sign left-justified, number right-justified
10: Sign and number right-justified
11: Not permitted

PS

K/B/W/D

PS

K/B/W/D

PS

K/B/W/D

CM

9051

Error status after call: M3171 =

0: Number was converted
1: Error condition see above

4.7

Compute string length (Module 9071)

Computes the length of the string with the specified number in the string buffer.

Possible errors:

The number of the source string is outside the valid range (0..3).
The source string has been searched without an end of string () being found.

Call:

PS

K/B/W/D

CM

9071

PL

PL

Error status after call: M3171 =

0: String length was computed
1: Error conditions see above

This manual is related to the following products: