Alastair19
Plastic
- Joined
- Nov 19, 2017
Basically I need some help , I was wandering if there is anyway for me to shorten this program at all as it is very long and heartbreaking having to enter this manually every time a new part comes in lol. We have a jig set up to hold 5 parts, they are all parallel to each other in the Y axis, they are 1ā(Y) x .5ā(Z) bars that are hollow in the middle and the wall thickness is .049ā (also there are only two important holes and the other 10 holes are to lighten the part) but il show you a short clip of my average program;
Begin PGM -1009***-***āRev * Inch (canāt get charged for copyright )
Blk form 0.1 Z X+0 Y-1.000 Z-0.500
Blk form 0.2 X+16.585 Y+0 Z+0
;6mm Spot Drill
TOOL CALL 22 Z S5000 DL+0.01
L Z+4 FMAX m13
CYCL DEF 1.0 PECKING
1.1 (0.05)
1.2 (-0.05)
1.3 (0.05)
1.4 (0)
F200
Call LBL1
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y-2.559
Call LBL1
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y-5.118
(This goes on for the 5 rows and then another to set datum back to 0)
LBL 1;
L Z+0.05 FMAX
L X+ 0.375 Y-.500 FMAX M99
L X+1.814 FMAX M99
L X+3.253 FMAX M99
L X+4.692 FMAX M99
L X+6.131 FMAX M99
L X+7.570 FMAX M99
L X+9.009 FMAX M99
L X+10.448 FMAX M99
L X+11.887 FMAX M99
L X+13.328 FMAX M99
L X+14.765 FMAX M99
L X+16.210 FMAX M99
LBL 0
(That is only for the Spot drilling, it then has to go on for each drill size used etc. Itās not too bad once you get doing it for a while but Iāve been thinking to myself that there must be an easier way , I shortened the cycle definitions a small bit just because I couldnāt be bothered to write them in if Iām completely honest, but everything should be there) I would appreciate any advice at all from you guys if needed. Iām a 19 year old apprentice and I donāt think itās a bad program considering I didnāt know how to write one about a month ago
Begin PGM -1009***-***āRev * Inch (canāt get charged for copyright )
Blk form 0.1 Z X+0 Y-1.000 Z-0.500
Blk form 0.2 X+16.585 Y+0 Z+0
;6mm Spot Drill
TOOL CALL 22 Z S5000 DL+0.01
L Z+4 FMAX m13
CYCL DEF 1.0 PECKING
1.1 (0.05)
1.2 (-0.05)
1.3 (0.05)
1.4 (0)
F200
Call LBL1
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y-2.559
Call LBL1
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y-5.118
(This goes on for the 5 rows and then another to set datum back to 0)
LBL 1;
L Z+0.05 FMAX
L X+ 0.375 Y-.500 FMAX M99
L X+1.814 FMAX M99
L X+3.253 FMAX M99
L X+4.692 FMAX M99
L X+6.131 FMAX M99
L X+7.570 FMAX M99
L X+9.009 FMAX M99
L X+10.448 FMAX M99
L X+11.887 FMAX M99
L X+13.328 FMAX M99
L X+14.765 FMAX M99
L X+16.210 FMAX M99
LBL 0
(That is only for the Spot drilling, it then has to go on for each drill size used etc. Itās not too bad once you get doing it for a while but Iāve been thinking to myself that there must be an easier way , I shortened the cycle definitions a small bit just because I couldnāt be bothered to write them in if Iām completely honest, but everything should be there) I would appreciate any advice at all from you guys if needed. Iām a 19 year old apprentice and I donāt think itās a bad program considering I didnāt know how to write one about a month ago