# Thread: Video of my TC-22 peck tapping

1. ## Video of my TC-22 peck tapping

I have been wondering for a few months now if I could make this work, and tonight, I tried it with success. I'll post the post processor code that generated this for the adventurous to try. If you end up using it, the only thing I ask in return is to post some video of what you are doing with it.

Also, I won't be providing any how-to with respect to implementing the routine. Your on your own with it.

Brian
EFI-Unlimited

2. Here is the post code:

inches_per_rev : .1
step : 1
step_z : 0
step_depth : 0
step_degrees : 0
----
pparameter\$
if prmcode\$ = 20007, met_tool = rparsngl(sparameter\$,11) #Check for "Metric Tool" check box in tool dialog
----
fmt Z 1 refht\$ # reference height for drilling (where drilling starts from)
fmt Z 1 peck1\$ # peck value
fmt F 16 tap_feed # Tapping Feedrate.
fmt H 17 step_degrees #peck tapping degrees
fmt Z 1 step_z # holds the absolute Z value for peck tapping

----
pmisc2\$ # Canned Misc #2 Cycle - Pecktap cycle
n\$, "M19", e\$
n\$, "H0", e\$
if met_tool = 1,
inches_per_rev = n_tap_thds\$ * 0.0393700787
else,
inches_per_rev = 1 / n_tap_thds\$

tap_feed = inches_per_rev * ss\$

step = 1
step_z = z\$ + 1

while step_z > z\$,[
step_z = refht\$ - (peck1\$ * step)

if step_z < z\$, step_z = z\$

step_depth = refht\$ - step_z
step_degrees = (step_depth / inches_per_rev) * 360

n\$, *sg01, *tap_feed, *step_z, *step_degrees, e\$ #Feed down
step_degrees = 0
n\$, *sg01, *refht\$, *step_degrees, e\$ #feed back out
step = step + 1
]
n\$, "M05", e\$
n\$, *ss\$, "M03", e\$

Brian
EFI-Unlimited

3. Originally Posted by EFI-Unlimited
Here is the post code:

inches_per_rev : .1
step : 1
step_z : 0
step_depth : 0
step_degrees : 0
----
pparameter\$
if prmcode\$ = 20007, met_tool = rparsngl(sparameter\$,11) #Check for "Metric Tool" check box in tool dialog
----
fmt Z 1 refht\$ # reference height for drilling (where drilling starts from)
fmt Z 1 peck1\$ # peck value
fmt F 16 tap_feed # Tapping Feedrate.
fmt H 17 step_degrees #peck tapping degrees
fmt Z 1 step_z # holds the absolute Z value for peck tapping

----
pmisc2\$ # Canned Misc #2 Cycle - Pecktap cycle
n\$, "M19", e\$
n\$, "H0", e\$
if met_tool = 1,
inches_per_rev = n_tap_thds\$ * 0.0393700787
else,
inches_per_rev = 1 / n_tap_thds\$

tap_feed = inches_per_rev * ss\$

step = 1
step_z = z\$ + 1

while step_z > z\$,[
step_z = refht\$ - (peck1\$ * step)

if step_z < z\$, step_z = z\$

step_depth = refht\$ - step_z
step_degrees = (step_depth / inches_per_rev) * 360

n\$, *sg01, *tap_feed, *step_z, *step_degrees, e\$ #Feed down
step_degrees = 0
n\$, *sg01, *refht\$, *step_degrees, e\$ #feed back out
step = step + 1
]
n\$, "M05", e\$
n\$, *ss\$, "M03", e\$

Brian
EFI-Unlimited
I do the same thing using the canned cycle to prevent tap snapping and make the taps last a lot longer:

T5M6 '1/4" TAP '1/4-20 TAP IN TAP HOLDER
S615M3

G95M29 'G95 IS FEED/REV MOD...M29 IS RIGID TAP "ON"
G0X10.750Y-1.500Z.1

'Set G84 cycle for .100" each peck
'Simply copy/paste the G84 line as many times as needed:

G84X10.750Y-1.500Z.4F.05 'F = FEED/REV IN INCHES
G84X10.750Y-1.500Z.5F.05 'F = FEED/REV IN INCHES
G84X10.750Y-1.500Z.6F.05 'F = FEED/REV IN INCHES
G84X10.750Y-1.500Z.7F.05 'F = FEED/REV IN INCHES
G84X10.750Y-1.500Z.8F.05 'F = FEED/REV IN INCHES
G84X10.750Y-1.500Z.9F.05 'F = FEED/REV IN INCHES

M28G94 'M28 IS RIGID TAP CANCEL...G94 IS CANCEL FEED/MIN

BTW: Is that an LCD monitor?

4. MetalicGlow,

Wow, I had never even thought of doing multiple G84's. That is a lot cleaner way to get it done. I suppose the only advantage to doing it my way, is the feed overide works. Now that I am saying that, I am pretty sure it is disabled in G84. Regardless, I was pretty excited to see it actually working.

Yes, that is an ELO LCD touchscreen. You can find them for \$50-\$100 used on eBay. I still need to re-work the front panel to mount it. I am running Windows 98, which gives me network connectivity and USB support, in addition to the touch screen. The touch screen is more novelty than useful, but I thought it was cool. The USB is handy, but the network connectivity is the best feature. I can save NC files directly onto my machine. Very handy.

Brian
EFI-Unlimited

5. Originally Posted by EFI-Unlimited
MetalicGlow,

Wow, I had never even thought of doing multiple G84's. That is a lot cleaner way to get it done. I suppose the only advantage to doing it my way, is the feed overide works. Now that I am saying that, I am pretty sure it is disabled in G84. Regardless, I was pretty excited to see it actually working.

Yes, that is an ELO LCD touchscreen. You can find them for \$50-\$100 used on eBay. I still need to re-work the front panel to mount it. I am running Windows 98, which gives me network connectivity and USB support, in addition to the touch screen. The touch screen is more novelty than useful, but I thought it was cool. The USB is handy, but the network connectivity is the best feature. I can save NC files directly onto my machine. Very handy.

Brian
EFI-Unlimited
Yes, feed override is disabled during the tap cycle

Cool set up Brian. Best of luck.