Type Conversion - Siemens sinumerik 840d Programming Manual

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

Advertisement

04.00
1
840D
840D
NCU 571
NCU 572
NCU 573
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"
MSG(STRG)
STRG[6] = 0
MSG(STRG)

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])
 Siemens AG 2000. All rights reserved
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
FM-NC
810D
840Di
Flexible NC Programming
1.10 String operations
;supplies the message "Axis X
stationary"
;supplies the message "Axis"
1
1-47

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik fm-ncSinumerik 840diSinumerik 810d

Table of Contents