Program code Comment
N220 STARTPARA=CTABTSP(1,GRADIENT) ; Master axis value at start of curve table =
0
N230 ENDPARA=CTABTEP(1,GRADIENT) ; Master 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
Example 2:
Determination of following axis values at the start and end of the curve segment associated with
leading axis value X=30.
Program code Comment
N10 DEF REAL STARTPOS
N20 DEF REAL ENDPOS
N30 DEF REAL GRADIENT
...
N100 CTABDEF(Y,X,1,0) ; Start of table definition.
N110 X0 Y0 ; Start position 1st table segment
N120 X20 Y10 ; End position 1st table segment =
start position 2nd table segment
N130 X40 Y40 ; End position 2nd table segment = ...
N140 X60 Y10
N150 X80 Y0
N160 CTABEND ; End of table definition.
...
N200 STARTPOS=CTABSSV(30.0,1,GRADIENT) ; Start position Y in 2nd segment = 10
N210 ENDPOS=CTABSEV(30.0,1,GRADIENT) ; End position Y in 2nd segment = 40
Further information
Use in synchronized actions
All commands for reading curve table values can also be used in synchronized actions (see
also the chapter titled "Motion-synchronous actions").
When using the CTABINV, CTABTMIN, and CTABTMAX commands, make sure that:
● Sufficient NC power is available at the time of execution
or
● The number of segments in the curve table is queried prior to the call, so that the table
concerned can be subdivided if necessary
CTAB with non-periodic curve tables
If the specified <master value> is outside the definition range, the upper or lower limit is output
as the following value:
Work preparation
3.16 Axis couplings
NC programming
908 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0