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

Table of Contents

Advertisement

7.9 Commands for String Processing

Example
Operand
declaration
7 – 150
String processing enables you to use the PLC program to generate and
manipulate any texts. Use Module 9082 to display these texts in the PLC
window of the screen, and delete them with Module 9080. The TNC features
one string accumulator and eight string memories, in each of which you can
save up to 128 characters:
String accumulator (characters)
1
x x x x x x x x x x x x x x ................ x x x x x x x x x x x x x x
String memory (characters)
1
S0
x x x x x x x x x x x x x x .............. x x x x x x x x x x x x x x
...
x x x x x x x x x x x x x x .............. x x x x x x x x x x x x x x
String accumulator (characters)
1
C O O L A N T 1 O N
String accumulator and string memory are volatile, which means that they are
erased by the TNC when power is switched off. The new operand "S" has
been introduced for string processing. You can use the operand "S" with
different arguments.
The "S" operands are to be used only with string processing. You can target
the following addresses with the various arguments:
n
Addressing string memory: After the operand designation, specify the
number of the desired memory (S0 – S15).
n
Address part of a string: Use the address Sn^X (see INDEX Register). The
TNC addresses the substring beginning with the X-th character of the
specified string.
n
Immediate string: You can also enter a string directly in the PLC program.
The text string, which may contain a maximum of 37 characters, must be
indicated by quotation marks.
Example: "Coolant 1 on"
n
Texts from the PLC error message file or from the PLC dialog file: By
specifying the line number you can read texts from the active error message
file or dialog file: PLC-ERROR: S#Exx xx: Line number from the PLC error
message file (0 to 999)
PLC-DIALOG: S#Dxx xx: Line number from the PLC dialog file (0 to 4095).
Enter the string #Exx or #Dxx in the argument <arg> of the string command.
The TNC then saves a 5-byte-long string <SUB> E0xx or <SUB> D0xx
(<SUB> = ASCII <SUB>) in the accumulator. Instead of this string, the TNC
reads the line xx of the active error message or dialog file on the screen.
n
Enter an ASCII character in the string. Define the ASCII character through
its code: S#Axxx
HEIDENHAIN Technical Manual TNC 426, TNC 430
128
128
128

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