Siemens SINUMERIK 840D sl Programming Manual page 70

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Flexible NC programming
1.3 Arithmetic functions
BOUND ()
CTRANS()
CROT ()
CSCALE()
CMIRROR()
Programming
The usual mathematical notation is used for arithmetic functions. Priorities for execution are
indicated by parentheses. Angles are specified for trigonometry functions and their inverse
functions (right angle = 90°).
Examples
Example 1: ATAN2
Example 2: Initializing complete variable arrays
Program code
R1=R1+1
R1=R2+R3 R4=R5-R6 R7=R8*R9
R10=R11/R12 R13=SIN(25.3)
R14=R1*R2+R3
70
Variable value within the defined value range
(see "Variable minimum, maximum and range (MINVAL,
MAXVAL and BOUND) (Page 74)")
Offset
Rotation
Change of scale
Mirroring
Comment
; New R1 = old R1 +1
; Multiplication or division takes precedence
over addition or subtraction.
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
The arithmetic function
ATAN2 calculates the angle
of the total vector from two
mutually perpendicular
vectors.
The result is in one of four
quadrants (-180° < 0 <
+180°).
The angular reference is
always based on the 2nd
value in the positive direction.
Job Planning

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents