Siemens SINUMERIK 840D sl Function Manual page 6

Extended functions
Hide thumbs Also See for SINUMERIK 840D sl:
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
DEF REAL AXPOS = 123.456
IF ($VA_IM[<axis>] - 1ex-6) <= AXPOS <= ($VA_IM[<axis>] + 1ex-6) ; actual position
6
...
Value range
-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
---
== AXPOS
Function Manual, 10/2015, 6FC5397-1BP40-5BA3
+308
Extended Functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828d

Table of Contents