Data Types - Siemens SINUMERIK 840D sl Programming Manual

Nc programming
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

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
DEF REAL varName[10]
varName[5]=REP(4.5,3)
R10=REP(2.4,3)
DEF FRAME FRM[10]
FRM[5]=REP(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
INT
REAL
BOOL
CHAR
STRING
AXIS
FRAME
Implicit data type conversions
The following data type conversions are possible and are performed implicitly during
assignments and parameter transfers:
REAL
INT
NC programming
Programming Manual, 12/2019, 6FC5398-2EP40-0BA0
Meaning
Integer with sign
Real number (LONG REAL to IEEE)
Truth value TRUE (1) and FALSE (0)
ASCII character
Character string of a defined length
Axis/spindle identifier
Geometric parameters for static coordinate
transformation (translation, rotation, scal‐
ing, mirroring)
from ↓/ to →
Comment
; Array definition
; Array elements [5] to [7] = 4.5
; R-parameters R10 to R12 = 2.4
; Array definition
; Array elements [5] to [9] = CTRANS(X,5)
Value Range
-2147483648 ... +2147483647
±(∼2,2*10
1, 0
ASCII code 0 to 255
Maximum of 200 characters (no special
characters)
Channel axis identifier
---
REAL
x
x
Work preparation
3.1 Flexible NC programming
... ∼1,8*10
)
-308
+308
INT
BOOL
o
x
&
&
423

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents