Sep 08, 2023 Leave a message

Classic Case Of Macro Program

 

%
O11; (FANUC system uses a finishing macro program with 1 variable, 12 segments in total)
N01 #16=0; (#16 represents the angle of the moving angle α of the center of the knife circle, and 0 is the initial value)
N06 G54S400 M03; (Set the coordinate system to specify the speed and specify the spindle to rotate forward)
N07T0101; (command tool position number and tool compensation number)
N08G00X150Z100; (arrive at the general starting point)
N09 G00Z[50+8.8*COS[#16]]; (reaching the starting point of the thread in the Z direction)
N10X[100-17.6*SIN[#16]]; (X direction reaches the starting point of the thread of the tool)
N11 G32Z-113 F25; (Turn a knife)
N12 G00 X140; (raise knife)
N13 #16=#16+8; (Calculate the α value of the next knife, where 8 is the angular interval △α between the two knifes)
N14 IF [#16 LE 180] GOTO 09 (If α does not exceed 162°, continue driving)
N15 G00 X150Z100 M05; (Spindle stops and returns to the total retraction point)
N16 M30; (end of program)
%

 

Send Inquiry

whatsapp

skype

E-mail

Inquiry