Operand Declaration; Logical Comparisons During String Processing - HEIDENHAIN iTNC 530 HSCI Technical Manual

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

Advertisement

Operand
declaration
Logical
comparisons during
string processing
1822
The "S" operands are to be used only for string processing. You can target the
following addresses with the various arguments:
Addressing string memory: After the operand designation, specify the
number of the desired memory (S0 to S99).
Address part of a string: Use the address Sn^X (see INDEX Register). The
iTNC addresses the substring beginning with the X-th character of the
specified string.
Immediate string: You can also enter a string directly in the PLC program.
The text string, which may contain a maximum of 128 characters, must be
indicated by quotation marks.
Example: "Coolant 1 on"
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 2047)
PLC-DIALOG: S#Dxx xx: Line number from the PLC dialog file (0 to 2047).
Enter the string #Exx or #Dxx in the argument <arg> of the string command.
The iTNC then saves a 5-byte-long string <SUB> E0xx or <SUB> D0xx
(<SUB> = ASCII <SUB>) in the accumulator. Instead of this string, the iTNC
reads the line xx of the active error message or dialog file on the screen.
Enter an ASCII character in the string. Define the ASCII character through its
code: S#Axxx
Use the following procedure to compare two strings, depending on the
argument:
Compare the string memory or immediate string, then the iTNC checks both
strings character by character. After the first character that does not fulfill
the condition of comparison, the control resets the logic accumulator. Then
the iTNC does not check the remaining characters. During a comparison, the
iTNC always uses the significance of the characters from the ASCII table.
This results, for example, in:
A < B
AA > A
If you have entered PLC error messages or PLC dialog texts in the
argument, the iTNC compares the position in the error-message file or
dialog file (0 to 2047), but not the actual text as in an immediate string.
The processing times depend on the length of the strings.
HEIDENHAIN Technical Manual iTNC 530 HSCI

Advertisement

Table of Contents
loading

Table of Contents