Siemens SINUMERIK 828D Programming Manual page 65

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

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
R14=(R1+R2)*R3
R15=SQRT(POT(R1)+POT(R2))
RESFRAME=FRAME1:FRAME2
FRAME3=CTRANS(...):CROT(...)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
Comment
; New R1 = old R1 +1
; Multiplication or division takes precedence
over addition or subtraction.
; Parentheses are calculated first.
; Inner parentheses are resolved first:
R15 = square root of (R1+R2)
; The concatenation operator links frames to form
a resulting frame or assigns values to frame
components.
Flexible NC programming
1.3 Arithmetic functions
65

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents