Siemens Sinumerik 840D sl Programming Manual page 515

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

Advertisement

Example 3: Definition of a periodic curve table
Definition of a periodic curve table with number 2, master value range 0 to 360, following axis
motion from 0 to 45 and back to 0:
Program code
N10 DEF REAL DEPPOS
N20 DEF REAL GRADIENT
N30 CTABDEF(Y,X,2,1)
N40 G1 X=0 Y=0
N50 POLY
N60 PO[X]=(45.0)
N70 PO[X]=(90.0) PO[Y]=(45.0,135.0,-90)
N80 PO[X]=(270.0)
N90 PO[X]=(315.0) PO[Y]=(0.0,-135.0,90)
N100 PO[X]=(360.0)
N110 CTABEND
;Test of the curve by coupling Y to X:
N120 G1 F1000 X0
N130 LEADON(Y,X,2)
N140 X360
N150 X0
N160 LEADOF(Y,X)
N170 DEPPOS=CTAB(75.0,2,GRADIENT)
N180 G0 X75 Y=DEPPOS
;After activating the coupling, no synchronization of the following axis is required.
N190 LEADON(Y,X,2)
N200 G1 X110 F1000
N210 LEADOF(Y,X)
N220 M30
Job planning
Programming Manual, 02/2011, 6FC5398-2BP40-1BA0
9.2 Curve tables (CTAB)
Comments
; Start of definition
; End of definition
; Read the table function for
master value 75.0.
; Positioning leading and following
axes.
Axis couplings
515

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de slSinumerik 828d

Table of Contents