Message 1 of 4
Please help -- TinyG postprocessor flipping Z axis

Not applicable
04-01-2015
06:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm setting up a Sherline mill with a TinyG controller and experimenting with Inventor HSM for generating toolpaths. Something weird is happening: all the Z-axis moves in the .gcode files I'm getting are negative signed, so that the tool moves up when it's supposed to move down and vice versa. There's no problem with X and Y, but where the simulation shows the tool moving down, the actual file tells my tool to move up. But my Z axis on my machine is normal -- machine zero is the top of the column, and when I send positive Z commands to it over serial, it moves down toward the workpiece like you would expect.
I can't figure out why the files are being generated with negative Z signs. X and Y are fine, and the simulation in HSM looks good - but for some reason, HSM apparently thinks my controller is running an inverted Z axis (when in fact it isn't) and it seems to be trying to compensate by flipping the Z direction. How do I tell it not to do that?
I have been running tests using a simple program to mill the top face off a block of wax. It works correctly when I manually go through the .gcode file and multiply all the Z coordinates by -1. I'm attaching both the original file and the modified one, along with the .cps config for TinyG (which I have not modified).
I feel like one line of code in the config should be able to fix this, but I'm a newbie and I am scared of breaking things -- can anyone tell me what mod to try? Thanks!!
I'm setting up a Sherline mill with a TinyG controller and experimenting with Inventor HSM for generating toolpaths. Something weird is happening: all the Z-axis moves in the .gcode files I'm getting are negative signed, so that the tool moves up when it's supposed to move down and vice versa. There's no problem with X and Y, but where the simulation shows the tool moving down, the actual file tells my tool to move up. But my Z axis on my machine is normal -- machine zero is the top of the column, and when I send positive Z commands to it over serial, it moves down toward the workpiece like you would expect.
I can't figure out why the files are being generated with negative Z signs. X and Y are fine, and the simulation in HSM looks good - but for some reason, HSM apparently thinks my controller is running an inverted Z axis (when in fact it isn't) and it seems to be trying to compensate by flipping the Z direction. How do I tell it not to do that?
I have been running tests using a simple program to mill the top face off a block of wax. It works correctly when I manually go through the .gcode file and multiply all the Z coordinates by -1. I'm attaching both the original file and the modified one, along with the .cps config for TinyG (which I have not modified).
I feel like one line of code in the config should be able to fix this, but I'm a newbie and I am scared of breaking things -- can anyone tell me what mod to try? Thanks!!