beautypg.com

HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 578

background image


01.98

TNC 407/TNC 415/TNC 425

3 Commands

7-117

Example of STRING execution:
A STRING from the STRING memory S0 is to be added to an Immediate STRING. This STRING must
overwrite the contents STRING memory S1.

OVWR S1

2

+ S0

3

1

L S "HYDRAULICS"

1

S0

S1

Line

Instruction

STRING Accumulator

O I L

H Y D R A U L I C S

128

1

128

S2

S3

Initial condition:

Immediate STRING: HYDRAULICS
STRING memory S0: OIL
STRING memory S1: NO COOLANT

Final condition:

Line 1: Load the immediate STRING into the STRING accumulator.
Line 2: The contents of the STRING memory S0 is added to the contents of the STRING accumulator.
Line 3: The STRING accumulator overwrites the contents of the STRING memory S1.

128

N O C O O L A N T

S0

S1
S2

S3

H Y D R A U L I C S O I L

H Y D R A U L I C S O I L

O I L

N O H Y D R A U L I C S O I L