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

Mach3 4th Axis post gives wrong Z and Y coordinates after rotation around A

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
444 Views, 1 Reply

Mach3 4th Axis post gives wrong Z and Y coordinates after rotation around A

Hi everyone,

I have recently mounted an A-axis (along X) on our mill and modified the Mach3 post according to the this post (https://forums.autodesk.com/t5/hsm-post-processor-forum/how-to-set-up-a-4-5-axis-machine-configurati...).

 

Long story short: I lost my post and now I am trying to recreate what I did before to make it work. Unfortunately, I must be missing something. I remember that I had to change the value for var tcp in addition to the above, but when I tried that it didn't get me the desired results. 

 

- Below attached are my post and the file I am using to prove the code as a zip-file - 

 

What I am expecting: The part is a block (100mm X 50mm X 50mm) and I want a single straight toolpath along the middle of two of the faces, therefore I am expecting something like this (code shortened, not actual machine code):


G54                                      //cut along first face

A0.
M9
G0 X0. Y0.
G43 Z15. H1
Z5.
G1 Z0. F250.
X100.
Z5.
G0 Z15.
G28 G91 Z0.
G90

                             
A90.                                         //turn to second face and exactly same cut on here
M9
G0 X0. Y0.
G43 Z15. H1
Z5.
G1 Z0. F250.
X100.
Z5.
G0 Z15.
G28 G91 Z0.
G90

 

Here is the error I am seeing for var tcp = true: the entire Coordinate System is rotated whenever A moves, additionally it seems to want to go to the projected "pre-rotation" coordinates.

 

G54                                   //first cut, everything seems fine
G0 A0.
M9
G0 X0. Y0.
G43 Z15. H1
Z5.
G1 Z0. F250.
X100.
Z5.
G0 Z15.
G28 G91 Z0.
G90

(TRACE2)
A90.                                             //rotation works fine
M9
G0 X0. Y-40.                               //wrong y value
G43 Z-25. H1                               // z seems to now be y
Y-30.                                           // y seems to now be negative z
G1 Y-25. F250.
X100.
Y-30.
G0 Y-40.

 

Here is the error I am seeing for var tcp = false: The coordinate system stays put (which is a success I guess) but the Z and Y values are still wrong.

 

G54
G0 A0.                                           //first cut all fine
M9
G0 X0. Y0.
G43 Z15. H1
Z5.
G1 Z0. F250.
X100.
Z5.
G0 Z15.
G28 G91 Z0.
G90

(TRACE2)
A90.                                //rotates just fine
M9
G0 X0. Y-25.                  // y assumes the "pre-rotation" position of the cut (a negative 25mm offset)
G43 Z40. H1                  // z assumes a positive 25mm offset
Z30.
G1 Z25. F250.               
X100.
Z30.
G0 Z40.

 

Thanks for sticking with me until now. 

As mentioned above the post and the part are attached to make recreation easier. Any ideas are welcome as I have run out of them by now.

 

I am using SolidWorks2019 and HSM2020.

 

All the best,

Felix

 

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

Turns out the post is all perfectly fine. 

The mistake was in my model as my job WCS was not coincident with the rotational axis (through the middle of the part) but set along the first face that I was machining on.

I shall now walk away in shame...

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

Post to forums  

Autodesk Design & Make Report