4 overwriting of a string (ovwr) – HEIDENHAIN TNC 306 Technical Manual User Manual
Page 393

3/2000
TNC 416/TNC 406/TNC 306
Commands
7-103
3.14.4 Overwriting of a STRING (OVWR)
Abbreviation for PLC Editor:
OVWR (OVERWRITE)
Execution time [µs]
< 80
Number of bytes
STRING memory
10
Immediate STRING
—
STRING from error message or dialog files
—
Operands: S
Operation:
With the OVWR command a STRING from the STRING Accumulator is stored in a STRING memory.
This command functions in a similar manner to the = command, with the difference that the
character "STRING-End" is not transferred alongside. By this means, the beginning of a STRING
which is already in the STRING memory, can be overwritten.
The selection of the memory, into which the STRING should be copied, proceeds using the
Argument
STRING memory (S0 – S3) are valid here.
Example for storing a string:
1
S0
S1
128
S2
S3
Initial condition:
PLC ERROR MESSAGE (Line 10):HYDRAULIC OIL
2
= S0
1
L S#E10
Line
Instruction
STRING Accumulator
H Y D R A U L I C O I L
1
128
Final condition:
Line 1: Load the STRING from PLC ERROR MESSAGE line 10 into the STRING accumulator.
Line 2: The contents of the STRING accumulator is loaded into the STRING memory S0
128
S0
S1
S2
S3
H Y D R A U L I C O I L
H Y D R A U L I C O I L
Instructions