1
Flexible NC Programming 04.00
1.10 Strin
o
erations
1
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
1-54
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
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]
Result type: CHAR
CHAR_ERG = STRINGARRAY [IDX_ARRAY,
IDX_CHAR]
Result type: 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)
;Returns the message "Axis X has
reached position"