Siemens SINUMERIK 840D sl Programming Manual page 390

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

Advertisement

Path traversing behavior
9.3 Curve tables (CTAB)
Example of the assignments to R parameters
...
R10=5 R11=20
...
CTABDEF
G1 X=10 Y=20 F1000
R10=R11+5
X=R10
CTABEND
...
Example of using CTABTSV, CTABTEV, CTABTSP, CTABTEP, CTABTMIN, CTABMAX
Determining the minimum and maximum value of a curve table.
N10 DEF REAL STARTVAL
N20 DEF REAL ENDVAL
N30 DEF REAL STARTPARA
N40 DEF REAL ENDPARA
N50 DEF REAL MINVAL
N60 DEF REAL MAXVAL
N70 DEF REAL GRADIENT
...
N100 CTABDEF(Y,X,1,0)
N110 X0 Y10
N120 X30 Y40
N130 X60 Y5
N140 X70 Y30
N150 X80 Y20
N160 CTABEND
...
N200 STARTPOS = CTABTSV(1, GRADIENT)
N210 ENDPOS = CTABTEV(1, GRADIENT)
N220 SRARTPARA = CTABTSP(1, GRADIENT)
N230 ENDPARA = CTABTEP(1, GRADIENT)
...
N240 MINVAL = CTABTMIN(1)
N250 MAXVAL = CTABTMAX(1)
9-24
;R10=25
;R10=5
;Begin of the table definition
;Start value of the 1st table segment
;End value of the 1st table segment =
;Start value of the 2nd table segment ...
;End of table definition
;Start position STARTPOS = 10,
;End position ENDPOS = 20 of the table, and
;STARTPARA = 10,
;ENDPARA = 80 read the value range of the
;following axis.
;Minimum value when Y = 5 and
;Maximum value when Y = 40
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents