Siemens SINUMERIK 840D sl Function Manual page 227

Special functions
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Reading values at start and end
The values of the following axes and of the master axis at the start and end of a curve table
can be read with the following calls:
R10 =CTABTSV(n, degrees, F axis), following value at the beginning of the curve table
R10 =CTABTEV(n, degrees, F axis), following value at the beginning of the curve table
R10 =CTABTSP(n, degrees, F axis), following value at the beginning of the curve table
R10 =CTABTEP(n, degrees, F axis), following value at the beginning of the curve table
Value range of the following value
The following example illustrates how the minimum and maximum values of the table are
determined using CTABTMIN and CTABTMAX:
Program code
N10 DEF REAL STARTVAL
N20 DEF REAL ENDVAL
N30 DEF REAL STARTPARA
N40 DEF REAL ENDPARA
N50 DEF REAL U_MINVAL
N60 DEF REAL U_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 STARTPARA=CTABTSP(1,GRADIENT)
N230 ENDPARA=CTABTEP(1,GRADIENT)
...
N240 U_MINVAL=CTABTMIN(1)
N250 U_MAXVAL=CTABTMAX(1)
Special Functions
Function Manual, 09/2011, 6FC5397-2BP40-2BA0
Comment
;Beginning of definition of start and
; Initial values of curve table
;Begin of table definition
; Start value of the 1st table segment
;End position 1st table segment =
; start position 2nd table segment
;End position of the 2nd table segment
...
;End position of the 3rd table segment
...
;End position of the 4th table segment
...
;End of table definition
; STARTPOS = 10
; Start position of table as well as
;ENDPOS = 20
;End position of table
; STARTPARA = 0,
; Master value at beginning of curve
table
;ENDPARA = 80
; Master value at end of curve table
; read from value range of following
axis
; Minimum value when Y = 5 and
; Maximum value when Y = 40
M3: Coupled axes
5.2 Curve tables
227

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840de sl

Table of Contents