Axis couplings
9.2 Curve tables (CTAB)
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
515
Examples
Example 1:
Define following axis and leading axis values at the start and end of the curve table, along
with the minimum and maximum values of the following axis in the entire definition range of
the curve table.
Program code Comment
N10 DEF REAL STARTPOS
N20 DEF REAL ENDPOS
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) ; Beginning of table definition
N110 X0 Y10 ; Start position 1st table segment
N120 X30 Y40 ; End position 1st table segment = start position 2nd
table segment
N130 X60 Y5 ; End position 2nd table segment = etc.
N140 X70 Y30
N150 X80 Y20
N160 CTABEND ; End of table definition.
...
N200 STARTPOS=CTABTSV(1,GRADIENT) ; Following axis value at start of curve table = 10
N210 ENDPOS=CTABTEV(1,GRADIENT) ; Following axis value at end of curve table = 20
N220 STARTPARA=CTABTSP(1,GRADIENT) ; Leading axis value at start of curve table = 0
N230 ENDPARA=CTABTEP(1,GRADIENT) ; Leading axis value at end of curve table = 80
N240 MINVAL=CTABTMIN(1) ; Minimum value of following axis with Y=5
N250 MAXVAL=CTABTMAX(1) ; Maximum value of following axis with Y=40