EasyManua.ls Logo

Siemens SINUMERIK 840DE SL

Siemens SINUMERIK 840DE SL
1334 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Program code Comment
EXTERN UP_VAL(ACHSE) ; Definition of subprogram with "call
by value" parameters
EXTERN UP_REF(VAR ACHSE) ; Definition of subprogram with "call
by reference" parameters
...
UP_VAL(STRG[6]) ; Parameter transfer "by value"
...
CHR = STRG[6] ; Buffer
UP_REF(CHR) ; Parameter transfer "by reference"
3.1.4.9 Formatting a string (SPRINT)
Using the pre-defined SPRINT function, character strings can be formatted and e.g. prepared
for output on external devices (also see "Process DataShare - Output to an external device/file
(EXTOPEN, WRITE, EXTCLOSE): (Page 997)").
Syntax
"<Result_string>"=SPRINT("<Format_string>",<value_1>,<value_2>,...,
<value_n>)
Meaning
SPRINT: Identifier for a pre-defined function that supplies a val‐
ue, type STRING.
"<Format_String>": Character string that contains fixed and variable ele‐
ments. The variable elements are defined using the
format control character % and a subsequent format
description.
< value_1>,< value_2>,…,< value_n>: Value in the form of a constant or NC variables, which
is inserted at the location where the nth format control
character % is located, corresponding to the format
description in the <format_string>.
"<result_string>": Formatted character string (maximum 400 bytes)
Work preparation
3.1 Flexible NC programming
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 455

Table of Contents

Other manuals for Siemens SINUMERIK 840DE SL

Related product manuals