1726 HEIDENHAIN Technical Manual MANUALplus 620
8.21 OVERWRITE String (OVWR)
Syntax: OVWR (OVERWRITE)
Operands: S <arg>
Action:
Save the string from the string accumulator in a string memory. This command
differs from the = command in that the control does not transfer the "string
end" character along with it. In this way you can overwrite the beginning of a
string that is already in the string memory. The memory into which the control
is to copy the string is selected through the argument <arg> after the operand
designation. Permissible arguments: 0 to 99 (string memory S0 to S99). See
also "Operand declaration."
Example:
This example also applies to the string commands L, + and =.
Add a string from the string memory S0 to an immediate string. The result is
to overwrite the contents of string memory S1. Initial state:
Immediate string = HYDRAULICS
String memory S0 = OIL
String memory S1 = COOLANT MISSING
Final status:
String memory (characters)
1128
S0 OIL
S1 COOLANT MISSING
... ...
Function STL String accumulator (characters)
1 128
Load the immediate
string into the string
accumulator
L S "HYDRAUL." OIL
Add content of string
memory S0 to string
accumulator.
+ S0 HYDRAUL. OIL
Overwrite content of
string memory S1 with
content of string
accumulator.
OVWR S1 HYDRAUL. OIL
String memory (characters)
1 128
S0 OIL
S1 HYDRAUL. OIL MISSING
... ...