EasyManuals Logo

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 #423 background imageLoading...
Page #423 background image
Value assignment in program execution
In the case of value assignment in program execution, the rules described above for the
definition apply. The following options are also supported:
Expressions are also permitted as elements in the value list.
Value assignment starts with the programmed array index. Values can be assigned
selectively to subarrays.
Examples:
Program code Comment
DEF REAL varName[10] ; Array definition
varName[5]=REP(4.5,3) ; Array elements [5] to [7] = 4.5
R10=REP(2.4,3) ; R-parameters R10 to R12 = 2.4
DEF FRAME FRM[10] ; Array definition
FRM[5]=REP(CTRANS(X,5)) ; Array elements [5] to [9] = CTRANS(X,5)
See also
Definition and initialization of array variables (DEF, SET, REP) (Page 417)
3.1.1.13 Data types
The following data types are available in the NC:
Data type Meaning Value Range
INT Integer with sign -2147483648 ... +2147483647
REAL Real number (LONG REAL to IEEE) ±(∼2,2*10
-308
… ∼1,8*10
+308
)
BOOL Truth value TRUE (1) and FALSE (0) 1, 0
CHAR ASCII character ASCII code 0 to 255
STRING Character string of a defined length Maximum of 200 characters (no special
characters)
AXIS Axis/spindle identifier Channel axis identifier
FRAME Geometric parameters for static coordinate
transformation (translation, rotation, scal‐
ing, mirroring)
---
Implicit data type conversions
The following data type conversions are possible and are performed implicitly during
assignments and parameter transfers:
from ↓/ to → REAL INT BOOL
REAL x o &
INT x x &
Work preparation
3.1 Flexible NC programming
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0 423

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