0 BEGIN PGM 7055-EN MM 1 ;Program for outside machining of a 2 ;cylindrical surface with an end mill. 3 ;The cylinder axis is parallel to the Y-axis. 4 ;Machining is done in a circular path around 5 ;a center point in X- and Z-axis, and the 6 ;stepover is made in the Y-axis. The motion 7 ;on both sides is from bottom to top. The 8 ;pitch indicates in how many paths each side 9 ;is divided. The control calculates how great 10 ;the stepover must be. At the beginning the 11 ;tool is positioned with a correction of its 12 ;radius and at the end the last motion is 13 ;done at the defined position added up with 14 ;the radius. 15 ; 16 BLK FORM 0.1 Z X-55 Y+0 Z-55 17 BLK FORM 0.2 X+55 Y+100 Z+0 18 ; 19 ;Input parameter 20 FN 0: Q1 =+0 ;CYLINDER CENTER IN THE X-AXIS 21 FN 0: Q2 =-50.1 ;CYLINDER CENTER IN THE Z-AXIS 22 FN 0: Q3 =+0 ;STARTING POINT IN THE Y-AXIS 23 ; ;MINIMUM COORDINATE 24 FN 0: Q4 =+100 ;END POINT IN THE Y-AXIS 25 ; ;MAXIMUM COORDINATE 26 FN 0: Q5 =+50 ;PITCH 27 ; ;NUMBER OF MOTIONS EACH SIDE 28 FN 0: Q6 =+50 ;CYLINDER RADIUS 29 FN 0: Q7 =+10 ;SAFETY HIGHT 30 FN 0: Q8 =+600 ;FEED RATE FOR MILLING 31 FN 0: Q9 =+300 ;FEED RATE FOR PLUNGING 32 ;Input parameter completed 33 ; 34 ;Tool call end mill 35 TOOL CALL 8 Z S8000 36 ; 37 ; 38 ;Calculations 39 FN 1: Q10 =+Q1 + +Q108 ;Circle center in X for the first side 40 FN 2: Q11 =+Q1 - +Q108 ;Circle center in X for the second side 41 FN 2: Q13 =+Q3 - +Q108 ;Starting point 42 FN 1: Q14 =+Q4 + +Q108 ;End point 43 FN 2: Q15 =+Q14 - +Q13 ;Track 44 FN 4: Q16 =+Q15 DIV +Q5 ;Stepover 45 FN 2: Q17 =+Q5 - +1 ;Number of repetitions 46 FN 1: Q18 =+Q6 + +Q108 ;Pre-positioning 47 FN 1: Q19 =+Q1 + +Q18 ;Pre-positioning first side 48 FN 2: Q20 =+Q1 - +Q18 ;Pre-positioning second side 49 ;Calculations completed 50 ; 51 L Z+100 R0 FMAX ;Move to a safe position 52 ; 53 ;First side 54 L X+Q19 Y+Q13 R0 FMAX M3 ;Pre-positioning 55 L Z+Q7 R0 FMAX ;Move to the safety hight 56 CC X+Q10 Z+Q2 ;Center of circular path 57 LBL 1 58 L X+Q19 R0 FMAX 59 LP PR+Q6 PA+90 FQ9 ;Infeed 60 L IY+Q16 R0 FQ8 ;Stepover 61 CP IPA-90 DR- FQ8 ;Circular path 62 L Z+Q7 R0 FMAX ;Move to the safety hight 63 CALL LBL 1 REPQ17 ;Repetitions 64 ; 65 ;Second side 66 L X+Q20 Y+Q14 R0 FMAX ;Pre-positioning 67 CC X+Q11 Z+Q2 ;Center of the circular path 68 LBL 2 69 L X+Q20 R0 FMAX 70 LP PR+Q6 PA-90 FQ9 ;Infeed 71 L IY-Q16 R0 FQ8 ;Stepover 72 CP IPA+90 DR+ FQ8 ;Circular path 73 L Z+Q7 R0 FMAX ;FMove to the safety hight 74 CALL LBL 2 REPQ17 ;Repetitions 75 ; 76 ;Move back and end of program 77 L Z+100 R0 FMAX M30 78 END PGM 7055-EN MM