r/CNCmachining • u/squeedink • 3d ago
Programming PAMA Speedmill
Hi everyone, this is my first time programming on this machine
I'm programming a PAMA Speedmill 2000 equipped with a HEIDENHAIN TNC 640 control. I'm currently using the universal milling head with A- and C-axis capability because the other head is down for maintenance.
I'm using the B-axis rotary table to drill a hole and then index the table to the next position.
My issue is that after drilling the first hole and rotating the B-axis, the machine moves the tool along with the table instead of keeping the machine X-axis at 0.
How can I program the B-axis rotation so that the table indexes to the next position while the tool remains at the same machine X coordinate?
Here is the current program:
%TESTABC G70
;POST PROCESSOR: PAMA5XB
;MACHINE: PAMA
;CONTROL: HEIDENHAIN TNC640
;THIS POST IS FOR 5-AXIS PROGRAM
N1 G247 Q339=10
N2 T3 G17 S1000
N3 G00 G40 G90 Z+0 M91
N4 M128
N5 ; TOOL# 3 | T3 = .104 DIA. CARBDIE DRILL, STICK OUT 1.50"
N6 S1500 M3
N7 G0 Y+6 Z+86,2474 A-90 B+0
N8 Y+0,2
N9 G18
N10 G203 UNIVERSAL DRILLING ~
Q200=+0,2 ;SET-UP CLEARANCE ~
Q201=-0,25 ;DEPTH ~
Q206=+10 ;FEED RATE FOR PLNGNG ~
Q202=+0,0197 ;PLUNGING DEPTH ~
Q210=+0 ;DWELL TIME AT TOP ~
Q203=+0 ;SURFACE COORDINATE ~
Q204=+6 ;2ND SET-UP CLEARANCE ~
Q212=+0 ;DECREMENT ~
Q213=+0 ;NR OF BREAKS ~
Q205=+0 ;MIN. PLUNGING DEPTH ~
Q211=+0 ;DWELL TIME AT DEPTH ~
Q208=+1500 ;RETRACTION FEED RATE ~
Q256=+0 ;DIST FOR CHIP BRKNG
N11 M99
N12 B+45 M99
N13 B+90 M99
N14 B+135 M99
N15 B+180 M99
N16 B+225 M99
N17 B+270 M99
N18 B+315 M99
N19 M129
N20 G00 G40 G90 Z+0 M91
N21 M2
; TOOL LIST
; ---------------------------
; TOOL# 3 | T3 = .104 DIA. CARBDIE DRILL, STICK OUT 1.50"
;***********************
;***** INFORMATION *****
;***********************
;MAX X: ,000
;MAX Y: 6,000
;MAX Z: 86,247
;MAX A: -90,00
;MAX C: ,00
;MIN X: ,000
;MIN Y: ,200
;MIN Z: 86,247
;MIN A: -90,00
;MIN C: ,00
;***********************
;( EST. RUN TIME: ,34 HRS )
N99999999 %TESTABC G70