Jump to content

Welcome to eMastercam

Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.

Use your display name or email address to sign in:

Need help with generic Haas TR series 5X Mill post


MSL
 Share

Recommended Posts

Hi,

I’m working on a post for a Haas TR-160Y Trunnion Table. I need to activate the A & B axis break when I’m doing a positioning cut and deactivate when operation is done. Also need to disable A & B axis break when I’m doing a 5 Axis drilling.

I'm using the generic Haas TR series 5X Mill post that comes with Mastercam.

Using X6MU2

Thanks in advance.

Ara.

Link to comment
Share on other sites
I need to activate the A & B axis break when I’m doing a positioning cut and deactivate when operation is doneI need to activate the A & B axis break when I’m doing a positioning cut and deactivate when operation is done.I need to activate the A & B axis break when I’m doing a positioning cut and deactivate when operation is done.

 

Are you referring to the M10 - M13 clamp codes?

If so there is a variable in the post called "use_clamp"

 

use_clamp : 1 #Use the automatic clamp Mcode <<< Make certain the value is set to one and it will be active.

  • Like 1
Link to comment
Share on other sites

Are you referring to the M10 - M13 clamp codes?

If so there is a variable in the post called "use_clamp"

 

use_clamp : 1 #Use the automatic clamp Mcode <<< Make certain the value is set to one and it will be active.

 

Thanks for the reply.

Yes, I'm referring to the M10 - M13 clamp codes. I have the auto clamp set to 1 now. I don’t want to have the clamp on when I’m doing 5 axis drilling. Only want them when I'm doing a positioning cut. I want my axises to be clamped so I can cut more rigid.

Thanks.

Link to comment
Share on other sites
I don’t want to have the clamp on when I’m doing 5 axis drilling.

 

That would require some custom post editing,...

 

Do a search for "use_clamp"

 

#Lock rotary axis

#if use_clamp & (cuttype = zero | opcode$ = three | opcode$ = 16), <<<< I copied this line of code below, the pound sign will cause the post to ignore it

 

if use_clamp & cuttype = zero, <<< to turn off the clamping for drilling remove the opcode$ 3 & 16 information

 

You will need to do a search for all instances of this, opcode 3 is for drilling toolpaths opcode 16 is for 5axis drilling.

 

In the punclamp post block you'll need to make changes as well.

 

punclamp #Unclamp the rotary axis

if use_clamp,

[

#Force both rotaries to unlock if multi-axis

#if cuttype <> zero & opcode$ <> three & opcode$ <> 16 & (p_lock = one | s_lock = one), <<< change this line to look like the one below

 

if cuttype <> zero & (p_lock = one | s_lock = one),

Link to comment
Share on other sites

That would require some custom post editing,...

 

Do a search for "use_clamp"

 

#Lock rotary axis

#if use_clamp & (cuttype = zero | opcode$ = three | opcode$ = 16), <<<< I copied this line of code below, the pound sign will cause the post to ignore it

 

if use_clamp & cuttype = zero, <<< to turn off the clamping for drilling remove the opcode$ 3 & 16 information

 

You will need to do a search for all instances of this, opcode 3 is for drilling toolpaths opcode 16 is for 5axis drilling.

 

In the punclamp post block you'll need to make changes as well.

 

punclamp #Unclamp the rotary axis

if use_clamp,

[

#Force both rotaries to unlock if multi-axis

#if cuttype <> zero & opcode$ <> three & opcode$ <> 16 & (p_lock = one | s_lock = one), <<< change this line to look like the one below

 

if cuttype <> zero & (p_lock = one | s_lock = one),

 

Thank you for the help.

That worked out pretty good. The only thing is I need to un clamp it when I'm done with cutting.

Thanks.

 

Original codes:

( 1/4 FLAT ENDMILL |TOOL .25)

(FACE POSITIONING 3)

M13

M11

T1 M6

G0 G54 G90 X-6.2431 Y.1209 A-12. B-45. S5000 M3

M12

M10

G43 H1 Z12.3159

Z7.5159

G1 Z7.3359 F10.

X-6.2443 Y.2816

G0 Z12.3159

(CONTOUR - POSITIONING 3)

X-6.3167 Y.535

Z12.2959

Z7.4959

G1 Z7.2959 F10.

X-6.3838 Y.0279 F30.

Y-.2916

X-6.2799 Y.4994

X-6.3167 Y.535

X-6.3193 Y.5151

G3 X-6.2548 Y.431 I.0744 J-.0098

G0 Z12.2959

M5

G0 G28 G91 Z0.

M30

%

 

Modified codes:

( 1/4 FLAT ENDMILL |TOOL .25)

(FACE POSITIONING 3)

M13

M11

T1 M6

G0 G54 G90 X-6.2431 Y.1209 A-12. B-45. S5000 M3

M12

M10

G43 H1 Z12.3159

Z7.5159

G1 Z7.3359 F10.

X-6.2443 Y.2816

G0 Z12.3159

(CONTOUR - POSITIONING 3)

X-6.3167 Y.535

Z12.2959

Z7.4959

G1 Z7.2959 F10.

X-6.3838 Y.0279 F30.

Y-.2916

X-6.2799 Y.4994

X-6.3167 Y.535

X-6.3193 Y.5151

G3 X-6.2548 Y.431 I.0744 J-.0098

G0 Z12.2959

M13 <-------- Add or move here

M11 <-------- Add or move here

M5

G0 G28 G91 Z0.

M30

%

Link to comment
Share on other sites

In pretract, you can call punclamp in the line before the optional stop. That way the post keeps track of the condition.

 

Hi CNC Apps Guy.

I just find out that it does unclamp only when I post multiple ops (when it see M01). If I only post one op. it won't unclamp in the end as I post out my codes above. Can you show me where to add the punclamp in the post please, I might placed it in a wrong place.

Thanks.

Link to comment
Share on other sites

Ara,

Instead of using the "pretract" there is a postblock called "protretinc",... it resets the C axis rev counter in the post. There is already logic in the post block that will output the M11 / M13, you may also want to shut down what was added in "pretract"

 

protretinc #Reset the C axis revolution counter

if frc_cinit,

[

p_abs = zero

p_inc = zero

s_abs = zero

s_inc = zero

pset_dlt_to_abs

# if use_clamp, #Unlock rotary axis <<<< you will need to remove the pound signs from these lines

# [

# p_lock = zero

# s_lock = zero

# pbld, n$, s_slock, e$

# pbld, n$, s_plock, e$

# ]

# pbld, n$, *sg28, p_out, s_out, e$ <<<< to here

p_wnd_ang = zero

s_wnd_ang = zero

!p_wnd_ang, !s_wnd_ang

]

 

##### Stop custom changes #####

Link to comment
Share on other sites

Hi CJep. Thanks for your help. I'm using "protretinc" it works good. The problem I have now is that when I'm machining in different plane, it looks like it's clamping and unclamping in every 1/2 degree until reaches to next position. This is only happening when I post all my operetions. If I post different operations from same plane it works fine. below you see what is happening. This has nothing to do with the changes I did in "protretinc".

Thanks.

 

From same plane:

%

O1234(WORM GEAR)

(DATE=DD-MM-YY - 27-11-12 TIME=HH:MM - 04:14)

(T1| 1/4 FLAT ENDMILL |H1)

G0 G17 G40 G49 G80 G90 G20

( 1/4 FLAT ENDMILL)

(CONTOUR - POSITIONING 3)

M13

M11

T1 M6

G0 G59 G90 X-6.7799 Y.535 A12. B-45. S5000 M3

M12

M10

G43 H1 Z12.7591

Z7.9591

G1 Z7.7591 F10.

X-6.8469 Y.0279 F30.

Y-.2916

X-6.7613 Y-.5175

X-6.7825 Y.5151

G3 X-6.7179 Y.431 I.0744 J-.0099

G0 X-6.718 Z12.7591

M5

M13

M11

G0 G28 G91 Z0.

G28 Y0

M30

%

 

 

From different plans:

%

O1234(WORM GEAR)

G0 G17 G40 G49 G80 G90 G20

( 1/4 FLAT ENDMILL .25)

(CONTOUR - POSITIONING 3)

M13

M11

T1 M6

G0 G59 G90 X-6.7799 Y.535 A12. B-45. S5000 M3

M12

M10

G43 H1 Z12.7591

Z7.9591

G1 Z7.7591 F10.

X-6.8469 Y.0279 F30.

Y-.2916

X-6.7613 Y-.5175

X-6.7825 Y.5151

G3 X-6.7179 Y.431 I.0744 J-.0099

G0 X-6.718 Z12.7591

(CONTOUR - POSITIONING 2)

Z12.7985

X-6.6413 Y.4307

M13

M11

A11. B-44.5

M12

M10

................

Z14.6912

X-2.9611 Y.4161

M12

M10

Z15.0855

X-2.1943 Y.4131

M13

M11

A-47. B-15.5

M12

M10

Z15.1249

X-2.1177 Y.4128

M13

M11

A-48. B-15.

M12

M10

Z10.3249

G1 Z10.1249 F10.

Y-.2126 F30.

X-1.8072 Y-.0151

X-1.8098 Y.0674

X-1.8837 Y.3523

X-2.1177 Y.4128

Y.3928

G3 X-2.0426 Y.3178 I.0751 J.0001

G0 X-2.0427 Z15.1249

M5

M13

M11

G0 G28 G91 Z0.

G28 Y0

M30

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

eMastercam - your online source for all things Mastercam.

Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.

Follow us

×
×
  • Create New...