Selecting A Single Character - Siemens sinumerik 840d Programming Manual

Hide thumbs Also See for sinumerik 840d:
Table of Contents

Advertisement

Flexible NC Programming
1
1.10 String operations
840D
840D
NCU 571
NCU 572
NCU 573

1.10.7 Selecting a single character

Individual characters of a string can be selected by
means of this function. This applies both to read
access and write access operations.
Syntax:
CHAR_ERG = STRINGVAR [IDX]
CHAR_ERG = STRINGARRAY [IDX_ARRAY,
IDX_CHAR]
Semantics:
The character located at the specified position within
the string is read/written. If the position parameter is
negative or greater than the string, then an alarm is
output.
Example of messages:
Insertion of an axis identifier in a pre-assembled
string.
DEF STRING [50] MESSAGE = "Axis n has
reached position"
MESSAGE [6] = "X"
MSG (MESSAGE)
1-54
FM-NC
810D
840Di
Result type: CHAR
Result type: CHAR
;Returns the message "Axis X has
reached position"
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
04.00
1
 Siemens AG 2000. All rights reserved

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents