the calculation uses the complete for mula with trigonometric function

rounded 03 constant, the calculation uses the complete for mula with trigonometric function:


#5 = #3/2


Returns 590


#5 = 90-#5


Returns 310


#5 = TAN[#5]


Returns 0600861


#5 = #1/2*#5


Returns4506455


#5 = #5+#2+#4


CNC Steel Structural Drilling Machine


Returns 19006455


The com ment in block N4 should be changed as well (if necessary):


N4 G99 G81 R25 Z-[ABS[#5]] F1500


Actual distance-to-go will be 21506455


Prac ti cally, this is of lit tle con se quence, but macro pro gram mer should pay angle machine at ten tion to de tails


Copyright 2005, Industrial Press Inc, New York, NY –


FANUC CNC Custom Macros


MACRO FUNCTIONS


133


2 Example 5


The next im prove ment will im prove the pre vi ous ex am ple even more and elim i nate the mul ti ple


def i ni tion of vari cnc equipment able #5 In di vid ual blocks of in ter me di ate cal cu la tions are very use ful to step through the pro gram and per haps make it eas ier for gen eral un der stand ing and even de bug ging


How ever, in most cases, a shorter pro gram is pre ferred Writ ing only a sin gle def i ni tion of vari –


able #5 means com bin ing – nest ing – all in di vid angle shearing machine ual cal cu la tions This ex am ple shows how: O0016 (MAIN PROGRAM 5)


#1 = 150


(DRILL DIAMETER – D IN THE FORMULA)


#2 = 130


(PLATE THICKNESS)


#3 = 1180


(DRILL POINT ANGLE – A IN THE FORMULA)


#4 = 15


(PENETRATION CLEARANCE ADDED)


(鈥斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€旓拷?


#5 = #1/2*TAN[90-#3/2]+#4+#2


(SINGLE FORMULA NESTED IN A BLOCK)


(鈥斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€斺€旓拷?


N1 G21


N2 G90 G00 G54 X1000 Y500 S800 M03


N3 G43 Z50 H01 M08


N4 G99 G81 R25 Z-[ABS[#5]] F1500


(DISTANCE-TO-GO IS Z-215)


N5 G80 Z50 M09


N6 G28 X1000 Y500 Z50 M05


N7 M30


%


2 Example 6


So far, all five ex am ples

tags: ,
posted in Uncategorised by admin

Follow comments via the RSS Feed | Leave a comment | Trackback URL

Leave Your Comment

 
Powered by cnc machine tools | drilling machine. Design by CNC punching machine . Edit by drill machine | punching machine