beautypg.com

14 commands for string execution – HEIDENHAIN TNC 407 (243 020) Technical Manual User Manual

Page 575

background image


7-114

TNC 407/TNC 415/TNC 425

3 Commands

01.98

3.14 Commands for STRING Execution

STRING execution allows the creation and manipulation of any texts via the PLC program. These
texts may be displayed in the PLC window of the screen by the use of Module 9082, and/or deleted
again with Module 9080 (refer to PLC modules). A STRING Accumulator and four STRING memories
are provided in the control for STRING execution. A maximum of 128 characters may be loaded into
this.

STRING accumulator:

128 Characters

1

128

STRING memory:

128 Characters

1

128

S 0
S 1
S 2
S 3

Example:

1

128

C O O L A N T

1

O N

STRING Accumulator and STRING memory are volatile, and so are again deleted upon powering off.
For STRING execution, the new operand "S" has been introduced. The operand "S" may be used with
various arguments.

Explanation of the Operand:

The operand "S" is only used in STRING execution. The following locations may be addressed with
the various arguments:

– STRING memory: Should a STRING memory be addressed, the number of the required memory

(S0-S3) must be specified after the Operand-Designation.

– Part of a STRING: If only part of a STRING is to be addressed, then this can be done by addressing

Sn^X (see INDEX REGISTER).
The substring will be addressed from the X-th character in the specified STRING.

– Immediate STRING: A STRING can also be entered directly into the PLC program. The Text

STRING, which may contain 0 – 37 characters, must be identified by quotation marks.
Example: S "COOLANT 1 ON"

– Text from the PLC-Error Message files and/or from the PLC-Dialogue files: Text from the active

error message or dialogue files may be read by the input of the line number.