Siemens SINUMERIK 840D Function Manual page 6

Mc axes and spindles
Hide thumbs Also See for SINUMERIK 840D:
Table of Contents

Advertisement

Preface
Quantity structure
Explanations concerning the NC/PLC interface are based on the absolute maximum number of
the following components:
● Mode groups (DB11)
● Channels (DB21, etc.)
● Axes/spindles (DB31, etc.)
Data types
The control provides the following data types that can be used for programming in part
programs:
Type
Meaning
INT
Signed integers
REAL
Numbers with decimal point
BOOL
Boolean values
CHAR
ASCII characters and bytes
STRING
Character string, null-terminated
AXIS
Axis names
FRAME
Geometrical parameters for moving, rotating, scaling, and
mirroring
Arrays
Arrays can only be formed from similar elementary data types. Up to 3-dimensional arrays are
possible.
Example: DEF INT ARRAY[2, 3, 4]
Number systems
The following number systems are available:
● Decimal: DEF INT number = 1234 or DEF REAL number = 1234.56
● Hexadecimal: DEF INT number = 'H123ABC'
● Binary: DEF INT number = 'B10001010010'
Querying REAL variables
We recommend that querying REAL or DOUBLE variables in NC programs and synchronized
actions is programmed as limit value evaluation.
Example: Querying the actual value of an axis for a specific value
Program code
DEF REAL AXPOS = 123.456
IF ($VA_IM[<axis>] - 1ex-6) <= AXPOS <= ($VA_IM[<axis>] + 1ex-6)
...
6
Range of values
-2.147.483.648 ... +2.147.483.647
≈ ±5.0*10
... ≈ ±1.7*10
-324
TRUE (≠0) , FALSE (0)
0 ... 255 or -128 ... 127
Maximum of 400 characters + /0
(no special characters)
All axis names available in the control
system
---
Comment
; actual position
== AXPOS
Axes and spindles
Function Manual, 06/2019, A5E47437747B AA
+308

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents