EasyManuals Logo
Home>Siemens>Control Systems>SINUMERIK ONE MCP 2400.4c

Siemens SINUMERIK ONE MCP 2400.4c Programming Manual

Siemens SINUMERIK ONE MCP 2400.4c
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
Page #447 background imageLoading...
Page #447 background image
Example 2: ROUNDUP in the NC program
Program code
N10 X=ROUNDUP(3.5) Y=ROUNDUP(R2+2)
N15 R2=ROUNDUP($AA_IM[Y])
N20 WHEN X=100 DO Y=ROUNDUP($AA_IM[X])
...
3.1.4 String operations
Sting operations
In addition to the classic operations "assign" and "comparison" the following string operations
are possible:
Type conversion to STRING (AXSTRING) (Page 448)
Type conversion from STRING (NUMBER, ISNUMBER, AXNAME) (Page 448)
Concatenation of strings (<<) (Page 449)
Conversion to lower/upper case letters (TOLOWER, TOUPPER) (Page 450)
Determine length of string (STRLEN) (Page 451)
Search for character/string in the string (INDEX, RINDEX, MINDEX, MATCH) (Page 452)
Selection of a substring (SUBSTR) (Page 453)
Reading and writing of individual characters (Page 454)
Formatting a string (SPRINT) (Page 455)
Special significance of the 0 character
Internally, the 0 character is interpreted as the end identifier of a string. If a character is replaced
with the 0 character, the string is truncated.
Example:
Program code Comment
DEF STRING[20] STRG="axis . stationary"
STRG[6]="X"
MSG(STRG) ; Supplies the message "axis X sta-
tionary".
STRG[6]=0
MSG(STRG) ; Supplies the message "axis".
Work preparation
3.1 Flexible NC programming
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 447

Table of Contents

Other manuals for Siemens SINUMERIK ONE MCP 2400.4c

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK ONE MCP 2400.4c and is the answer not in the manual?

Siemens SINUMERIK ONE MCP 2400.4c Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK ONE MCP 2400.4c
CategoryControl Systems
LanguageEnglish

Related product manuals