Siemens SINUMERIK 828D Programming Manual page 505

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

Advertisement

Program code
N140 X150 Y6
N150 X180 Y0
N200 CTABEND
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, 07/2010, 6FC5398-2BP40-0BA0
Comments
; 4th intermediate point:
Master value: 100...150, Following value: 6 to 6
; 5th intermediate point:
Master value: 150...180, Following value: 6 to 0
; End of definition. The curve table is generated in its
internal representation as a polynomial of up to the 5th
order. The calculation of the curve definition with the
specified intermediate points is dependent on the modally
selected interpolation type (circular, linear, spline
interpolation). The part program state before starting
the definition is restored.
Comments
; Start of definition
; End of definition
; Read the table function for master
; Positioning leading and following
9.2 Curve tables (CTAB)
value 75.0.
axes.
Axis couplings
505

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents