Siemens SINUMERIK 840D sl Programming Manual page 604

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

Advertisement

User stock removal programs
14.6 Calculate circle data (CALCDAT)
Example
The program determines whether the three points lie along the arc of a circle.
N10 DEF REAL PT[3,2]=(20,50,50,40,65,20)
N20 DEF REAL RES[3]
N30 DEF BOOL STATUS
N40 STATUS = CALCDAT(PT,3,RES)
N50 IF STATUS == FALSE GOTOF ERROR
14-16
;Points definition
;Result
;Variable for the status
;Call calculated circle data
;Jump to error
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents