Community
HSM Post Processor Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing retract to safe plane in post.

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
weber63
809 Views, 9 Replies

Changing retract to safe plane in post.

I have been modifying a Haas UMC-750 post to work on our Mazak 530 with 5 axis trunnion. I am stuck on how to get the post to output specific code. The code below in black is the current form of the post and in red is what i would like it to due. 

 

O1000 (OPERATION 1)
(T8 D=0.375 CR=0.03 - BULLNOSE END MILL)
(T13 D=0.3937 CR=0.0394 - BULLNOSE END MILL)
N100 G90 G0 G94 G17 G80 G40 G49
N101 G20
N102 G53 G0 Z-10. (REMOVE THIS BLOCK)

G53 G0 Z0

G53 X-29. Y-8.

(ROUGH BETWEEN FINS 1)
N104 T13 M6
N105 T8
N106 S12000 M3
N107 G54
N108 G53 G0 Z-10. 
N110 G0 A90. C6.506
N111 M8
N113 G0 G43.4 X4.349 Y0.4619 Z0.0945
N114 M46 M43

 

(NO CHANGE HERE)

 

N212 X4.4636 Y-0.0771 F650.
N213 G49 (TCPC OFF)
N214 M47 M44
N215 G53 G0 Z-10.    (KEEP THIS HERE)

 

(ROUGH BETWEEN FINS 2)
N217 G0 A90. C6.506
N219 G0 G43.4 X4.3422 Y0.4941 Z0.1028
N220 M46 M43

 

I am only looking to have this change to the beginning of the program and still use the Z-10. safe plane throughout the rest of the code. Attached is the post I have been modifying. 

9 REPLIES 9
Message 2 of 10
ivan.stanojevic
in reply to: weber63

Hello,

 

In order to get the desired output you have to change the properties: forceHomeOnIndexing to NO and useMaximumMachineZRetract to YES.

Please test the modified post carefully.



Ivan Stanojevic


Message 3 of 10
weber63
in reply to: weber63

The code listed above has those properties changed as you have described, however when I posted that code I was changing the properties manually. The code would not have generated that way otherwise. At the beginning of the program I would like to have the spindle go to Z home and then preposition above the trunnion. This is a safety factor due to the fact we occupationally run other parts in the machine and do not want to crash. The trunnion sets in the machine like it is a B/C rotary but  the controller is set up to only read A/C rotation. This allows us to run 3 axis jobs in the machine at the same time. 

Message 4 of 10
ivan.stanojevic
in reply to: weber63

I understand, did you test the postprocessor which I have attached in the previous post?


Ivan Stanojevic


Message 5 of 10
weber63
in reply to: weber63

I have been running parts with those properties changed for several weeks now. However I am having to manually edit the code with blocks in red. 

Message 6 of 10
ivan.stanojevic
in reply to: weber63

I think that we have misunderstood each other.

I have modified the postprocessor according to your needs.

Please test it and update me if it is ok.

I will attach the post again.

 

 



Ivan Stanojevic


Message 7 of 10
weber63
in reply to: weber63

Sorry for the misunderstanding. I think I need to slow down on the coffee and read a little better.  I have tried the modified post. It fixes my needs at the beginning of the code but now when the tool finishes an operation and moves to the next it is sent to retract safe plane, then to Z home, then to preposition location. I would like it to only move to retract safe plane between tool operations.

 

O1000 (SETUP 1)
(T8 D=0.375 CR=0.03 - BULLNOSE END MILL)
(T13 D=0.3937 CR=0.0394 - BULLNOSE END MILL)
N100 G90 G0 G94 G17 G80 G40 G49
N101 G20
N102 G53 G0 Z0.          (THIS IS GREAT)
N103 G53 X-29. Y-8.     (THIS IS GREAT)

(ROUGH BETWEEN FINS 1)
N105 T13 M6
N106 T8
N107 S12000 M3
N108 G54
N109 G53 G0 Z-10.
N111 G0 A90. C6.506
N112 M8
N114 G0 G43.4 X4.349 Y0.4619 Z0.0945
N115 M46 M43

 

(NO CHANGE HERE)

 

N213 X4.4636 Y-0.0771 F650.
N214 G49 (TCPC OFF)
N215 M47 M44
N216 G53 G0 Z-10.
N217 G53 G0 Z0.          (REMOVE THIS BLOCK)
N218 G53 X-29. Y-8.     (REMOVE THIS BLOCK)

 

(ROUGH BETWEEN FINS 2)
N220 G0 A90. C6.506
N222 G0 G43.4 X4.3422 Y0.4941 Z0.1028
N223 M46 M43

Message 8 of 10
ivan.stanojevic
in reply to: weber63

@weber63

 

No problem at all. 

I have modifed the post and now

 

N217 G53 G0 Z0.      
N218 G53 X-29. Y-8.

 

will be printed out only at the beginning of the program and after on tool changes.

 

Please test it carefully.

 

 



Ivan Stanojevic


Message 9 of 10
weber63
in reply to: weber63

Everything runs great on machine. Thank you for your help. 

Message 10 of 10
ivan.stanojevic
in reply to: weber63

Cheers


Ivan Stanojevic


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report