What's new
What's new

Heidenhain Programming TNC430 *HELP*

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 šŸ˜‚
 
Im no expert on this lanuage but if I recall correctly you might want to look at your programing manual and point tables.I agree with you its not a bad program you have written just a bit long winded
 
Im no expert on this lanuage but if I recall correctly you might want to look at your programing manual and point tables.I agree with you its not a bad program you have written just a bit long winded

Iā€™ve been going through it piece by piece, but mainly for cycle definitions and stuff like that, il have to just keep digging and il work it out :) thank you though, I appreciate it man
 
Here you go

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
CYCL DEF 1.0 PECKING
1.1 (0.05)
1.2 (-0.05)
1.3 (0.05)
1.4 (0)
F200
FN 0 : Q10 =+0 ; SETS PARAMETER TO ZERO
LBL 1 ; DOES FIRST ROW
L X+0.375 Y-0.500 FMAX M13
Z+0.05 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
LBL 2 ; NOW DOES SECOND ROW
FN 1 : Q0 =+Q10 + +2.559 ; INCREMENTS PARAMETER ON EACH PASS
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y-Q10
Call LBL 1
CYCL DEF 7.0 DATUM SHIFT ; RESETS DATUM SHIFT TO ZERO
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y+0
CALL LBL 2 REP3 ; NOW DOES NEXT 3 ROWS
LBL 0

NEXT TOOL CALL

SET NEXT CYCLE DEF

CALL LBL 1
CALL LBL 2

; etc
 
Hey Alastair19, is this the same program you are writing every time you do the same operation on the parts in the jig or are the parts/operation constantly changing? If itā€™s the same program you should be able to save the program into memory and reuse at anytime.
Can you upload programs to the machine? If so you could use a few free programs (notepad+ and TNCServer) to write your program and then upload.
The next progression would be using a low cost/free integrated CAD/CAM package (Fusion 360 for example) to model the assembly, create the toolpaths and post out the program to the machine. This approach does seem overkill for your hole ops but you would learn to use another toolset and other part configurations could be programmed quickly as well.
 
Hey Alastair19, is this the same program you are writing every time you do the same operation on the parts in the jig or are the parts/operation constantly changing? If itā€™s the same program you should be able to save the program into memory and reuse at anytime.
Can you upload programs to the machine? If so you could use a few free programs (notepad+ and TNCServer) to write your program and then upload.
The next progression would be using a low cost/free integrated CAD/CAM package (Fusion 360 for example) to model the assembly, create the toolpaths and post out the program to the machine. This approach does seem overkill for your hole ops but you would learn to use another toolset and other part configurations could be programmed quickly as well.

I do save the programs in, Itā€™s just that we get new parts in every so often with different holes and slots, and we would use the same jig for them, so I would have to re-write into the machine about datum shifts with new labels etc we probably have the guts of about 300 different programs atm and we should be getting a computer soon to get software stuff and try and sort out the files, il have to keep fusion 360 in mind, Iā€™ve used solid works and a few other cad systems before but they were quite the steep price šŸ˜‚ itā€™s not too bad writing it into the machine when you have done it for a while, but definitely the cam/cad package would be a good job šŸ‘šŸ»

Thank you sir
 
Here you go

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
CYCL DEF 1.0 PECKING
1.1 (0.05)
1.2 (-0.05)
1.3 (0.05)
1.4 (0)
F200
FN 0 : Q10 =+0 ; SETS PARAMETER TO ZERO
LBL 1 ; DOES FIRST ROW
L X+0.375 Y-0.500 FMAX M13
Z+0.05 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
LBL 2 ; NOW DOES SECOND ROW
FN 1 : Q0 =+Q10 + +2.559 ; INCREMENTS PARAMETER ON EACH PASS
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y-Q10
Call LBL 1
CYCL DEF 7.0 DATUM SHIFT ; RESETS DATUM SHIFT TO ZERO
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y+0
CALL LBL 2 REP3 ; NOW DOES NEXT 3 ROWS
LBL 0

NEXT TOOL CALL

SET NEXT CYCLE DEF

CALL LBL 1
CALL LBL 2

; etc

I would be able to call LBL 1&2 then after the next tool change and cycle definition? All of the holes will be the same size for the next cycle anyway, as the other 10 will use them for a pilot hole.

Thank you man šŸ‘šŸ»
 
If you can save them offline, then change them in the control and rename them to the new part
I haven't used the 430 but does it have a copy program function[530 does]

If the rows are evenly space, no need to get fancy, just put a IY-2.559 at the end of the LBL and call the label 5 times
 
If the rows are evenly space, no need to get fancy, just put a IY-2.559 at the end of the LBL and call the label 5 times[/QUOTE]

My label is going from the zero Datums for each row for one part, so when I shift the datum, the next row will be the repeated version of the first. If I change the IY will it not just move back to the first row again after because that is the label coordinates?
 
If you can save them offline, then change them in the control and rename them to the new part
I haven't used the 430 but does it have a copy program function[530 does]

It does indeed, it would just be a pain having to change the coordinates etc. I love a good challenge anyway sure haha
 
If you can save them offline, then change them in the control and rename them to the new part
I haven't used the 430 but does it have a copy program function[530 does]

It does indeed, it would just be a pain having to change the coordinates etc. I love a good challenge anyway sure haha

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
L X+ 0.375 Y-.5 FMAX M99
LBL 1;
L Z+0.05 FMAX
L X+ 0.375 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
IY-2.559 FMAX
LBL 0
CALL LBL 1 REP3

IF I have it right that should make 5 rows


TO change to entirely different program, one copies the program, tabs over to the X coordinates, and changes the value, down arrow to next

Would take me maybe 45 seconds to convert this to an entirely different program
 
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
L X+ 0.375 Y-.5 FMAX
LBL 1;
L X+ 0.375 FMAX M99
L Z+0.05 FMAX
CALL LBL 2
CALL LBL 2
CALL LBL 2
CALL LBL 2
CALL LBL 2
CALL LBL 2
CALL LBL 2
CALL LBL 2
CALL LBL 2
CALL LBL 2
CALL LBL 2
IY-2.559 FMAX
LBL 0
CALL LBL 1 REP3
STOP
STOP
STOP
LBL2
L IX+1.419 FMAX M99
LBL 0


you cannot call a label repeat multiple times or it does unpredictable things
 
and if you wanted to save run time or have slow rapids, you could make a label 3 which was Ix-1.419 and run that every other row......

program change is now down to about 15 seconds
 
Lots of ways to do this but personally I would make separate sub programs of the hole pattern and hole groups so its easier to read and edit

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 LBL 1
;
* - Drill
TOOL CALL xx
...
...
CALL LBL 1
M30 ;MAIN PGM END
;
LBL 1
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y+0
Call LBL2
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y-2.559
Call LBL2
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y-5.118
Call LBL2
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y-7.677
Call LBL2
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y-10.236
Call LBL2
CYCL DEF 7.0 DATUM SHIFT
CYCL DEF 7.1 X+0
CYCL DEF 7.2 Y+0
LBL 0
;
LBL 2;
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
END PGM -1009***-***ā€”Rev * Inch
 
Should also add that you should use 200 series cycles since they have prepositioning built in. Cycle 1 is legacy.

Also if the drill locations are always equal distance away it would be easier to just define as a pattern, Cycle 221.
 
Should also add that you should use 200 series cycles since they have prepositioning built in. Cycle 1 is legacy

That probably is a better idea. I normally only used them for the spot drills, but I suppose that doesnā€™t really make a difference.

Do you think the cycle 17 Rigid Tapping is okay for just a rough tap on aluminum, or would a floating tap holder be in need of purchase? (Random question, but Iā€™ve not used the tapping cycles yet)
 
Should also add that you should use 200 series cycles since they have prepositioning built in. Cycle 1 is legacy

That probably is a better idea. I normally only used them for the spot drills, but I suppose that doesnā€™t really make a difference.

Do you think the cycle 17 Rigid Tapping is okay for just a rough tap on aluminum, or would a floating tap holder be in need of purchase? (Random question, but Iā€™ve not used the tapping cycles yet)

If you have software version 280 476 or 280 477 then I prefer using Cycle 209 which is rigid tapping with chip break I use it even if I don't do a chip break.

But to answer your question directly.

If your machine is setup for rigid tapping and the Z axis has no backlash then Yes i would rigid tap without a floating head. May still want to use a synchro head to take up small errors http://www.emuge.com/sites/default/files/Emuge Softsynchro Brochure.pdf

Otherwise you will need to use a floating head and the appropriate cycle.
 








 
Back
Top