An extensive list of all the available post processors can be found here: https://cam.autodesk.com/hsmposts
Before making modifications, I recommend download and installing Microsoft Visual Studio Code using this link: https://code.visualstudio.com/. It makes the editing process more efficient. You can also download the Fusion 360 Post Processor Utility here: https://marketplace.visualstudio.com/items?itemName=Autodesk.hsm-post-processor. The utility allows you to post directly from VS Code and quickly search for variables and functions.
In this example, I'll be modifying the Haas (pre-NGC) Post Processor to include an additional 4th axis configuration. The same process can be used on posts for other common controllers.
1. Open the CPS file with Visual Studio Code.
2. Using Ctrl-F, search for the function "onOpen"
3. Find the line with the comment "setup your machine here"
4. Activate the axis by changing the if statement from "if (false)" to if (true)"
You'll notice there are several parameters that can be changed. Here's some explanation:
- Coordinate: Specifies the coordinate used in the ABC vectors (e.g. X, Y, or Z). The number will define the letter for the axis. 0=A, 1=B, 2=C.
- Table: Specifies whether the axis is attached to the table or the head of the machine.
- Axis: Specifies the axis as a 3-element array. This defines which axis the new axis rotates about (e.g. A-axis rotating around the X-axis would be [1,0,0].
- Range: Specifies the angular range for the axis in degrees. (e.g. [-360, 360])
- Preference: Specifies the preferred angle (-1: negative angles, 0: don't care, 1: positive angles).
5. Adjust the machine configuration to include the axis you require.
The new axis can be activated by modifying the "machineConfiguration" line:
Use two forward slashes "//" to comment out any axis that won't be used. (e.g. remove the b-axis if the machine doesn't have one):
6. Adjust the coordinate, table, axis, range, and preference values to match the desired machine configuration.
4th Axis Setup, A rotates around X, table mounted, direction is negative:
4th Axis Setup, A rotates around X, table mounted, direction is positive:
7. Test the Post Processor using a sample CAM program.
As expected, the post processor translates the 4th axis motion to index the A-axis to 0 degrees.
If you'd like help customizing your post processor, reach out to IMAGINiT Technologies and our CAM posts team can assist you.
About the AuthorFollow on Linkedin More Content by Ed Gillman