Access To Table Positions And Table Segments - Siemens SINUMERIK 840D Function Manual

Mc axes and spindles
Hide thumbs Also See for SINUMERIK 840D:
Table of Contents

Advertisement

Example 2
Example of a curve table with active tool radius compensation:
Prior to definition of a curve table with CTABDEF(), tool radius compensation must not be active;
otherwise alarm 10942 is generated. This means that tool radius compensation must be
activated within the definition of the curve table. Similarly, it must be deactivated again before
the end of the curve table definition, using CTABEND.
Program code
N10 CTABDEF(Y, X, 1, 0)
N20 X0 Y0
N30 G41 X10 Y0
N40 X20 Y20
N50 X40 Y0
N60 X60 Y20
N70 X80 Y0
N80 G40 X90 Y0
N90 CTABEND
Tool radius compensation is activated in block N30; this causes the approach movement for
radius compensation to be made in this block. Similarly, the approach movement for
deactivation of the radius compensation is made in block N80.
Note
The value pairs between CTABDEF and CTABEND must be specified for precisely the axis
names that have been programmed in CTABDEF as the leading axis name and following axis
name. In the case of programming errors, alarms or incorrect contours may be generated.
14.2.6

Access to table positions and table segments

Reading table positions
With the program commands CTAB and CTABINV the following value for a master value (CTAB)
can be read from the part program and from synchronous actions, or alternatively the master
value can be read off for a following value. The pitch value can be used to calculate the speed
of the following axis or leading axis at any position in the table.
Reading segment positions
Segment positions of a curve table for the value for the following axis can be read using
the CTABSSV and CTABSEV calls.
The language commands CTABSSV and CTABSEV generally provide the start and end values
of the internal segments of the curve tables for the following axis. These values only agree with
the programmed values of the curve tables if the programmed segments can be converted 1:1
Axes and spindles
Function Manual, 06/2019, A5E47437747B AA
Comment
; start of the definition for the non-
; periodic curve table no. 1
; tool radius compensation on
; tool radius compensation off
M3: Coupled axes
14.2 Curve tables
441

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840d sl

Table of Contents