Siemens SINUMERIK 840D sl Programming Manual page 601

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

Advertisement

Note
Please note that variables must be defined before they are used.
The values defined with CONTPRON must be observed when transferring the contours:
Parameter 2
Parameter 3
Parameter 4
Parameter 5
Parameter 6
Parameter 9
Parameter 10
Example
Calculate the intersection of contour element 3 in table TABNAME1 and contour element 7 in
table TABNAME2. The intersection coordinates in the active plane are stored in CUT (1st
element = abscissa, 2nd element = ordinate). If no intersection exists, the program jumps to
NOCUT (no intersection found).
DEF REAL TABNAME1 [12, 11]
DEF REAL TABNAME2 [10, 11]
DEF REAL ISCOORD [2]
DEF BOOL ISPOINT
DEF INT MODE
...
MODE = 1
N10 ISPOINT=INTERSEC (TABNAME1[16,11],TABNAME2[3,11],ISCOORD, MODE)
N20 IF ISPOINT==FALSE GOTOF NOCUT
...
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
14.4 Intersection of two contour elements (INTERSEC)
Coding of contour mode for the movement
Contour start point abscissa
Contour start point ordinate
Contour end point abscissa
Contour end point ordinate
Center point coordinates for abscissa (only for circuit
contour)
Center point coordinates for ordinate (only for circuit
contour)
;Contour table 1
;Contour table 2
;Intersection coordinates when ISPOINT =
1
;Variable for the intersection status
;Defining machining type
;Calculation regardless of active plane
;Call intersection of contour elements
;Jump to NOCUT
User stock removal programs
14-13

Advertisement

Table of Contents
loading

Table of Contents