1
04.00 Flexible NC Programming
1.10 Strin
o
erations
1
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
1-47
Special meaning of 0 character
The 0 character is interpreted internally as a string
end identifier.
If a character is replaced by the 0 character, then the
string will be shortened.
Example:
DEF STRING[20] STRG = "Axis .
stationary"
STRG[6] = "X" ;supplies the message "Axis X
stationary"
MSG(STRG)
STRG[6] = 0
MSG(STRG) ;supplies the message "Axis"
1.10.1 Type conversion
Type conversion allows variables of different types to
be used as an integral part of a message (MSG).
Conversion to STRING
Results if the operator << is used implicitly for data
types INT, REAL, CHAR and BOOL (see "Chaining
strings").
An INT value is converted to the normal readable
form. Up to 10 places after the decimal point are
specified for REAL values.
Variables of the AXIS type can be converted to
STRING by means of the AXSTRING function.
FRAME variables cannot be converted.
Example:
MSG("Position:"<<$AA_IM[X])