Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
hoptownhandles
916 Views, 6 Replies

Help with setup 3+1 Tool Orientations

So, my setup goes through the simulation properly, but when it runs on the router, the first two toolpaths cut properly, but then the remaining toolpaths run perpendicular to the workpiece.  My router is setup for 4th axis with the workpiece running in the y direction.  I have attached the post processor, my file, and the gcode output.  Any ideas on how to get this running properly?

 

Machine is a Laguna IQ CNC with HHC (I believe it runs a version of LinuxCNC)

Steinwerks
in reply to: hoptownhandles

The post appears to be set up so the A axis is rotating around X.

 

Find this section:

 

  if (true) { // note: setup your machine here
    var aAxis = createAxis({coordinate:0, table:false, axis:[1, 0, 0], range:[-360,360], preference:1});
    var cAxis = createAxis({coordinate:2, table:false, axis:[0, 0, 1], range:[-360,360], preference:1});
    machineConfiguration = new MachineConfiguration(aAxis, cAxis);


    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(0); // TCP mode
  }

It's directly after 'function onOpen'

 

Change this line:

 

    var aAxis = createAxis({coordinate:0, table:false, axis:[1, 0, 0], range:[-360,360], preference:1});

to this:

    var aAxis = createAxis({coordinate:0, table:false, axis:[0, 1, 0], range:[-360,360], preference:1});

 You can do this in any text editor. That specific line is 157 in Notepad++

Neal Stein

New to Fusion 360 CAM? Click here for an introduction to 2D Milling, here for 2D Turning.

Find me on:
Instagram and YouTube
hoptownhandles
in reply to: Steinwerks

Agh!  I thought that might be the solution but was too afraid to change the post with my limited knowledge.  I'll change it and attempt to run it in the morning.  Thanks!!

Thanks!  After a few tweaks, to get everything oriented along the Y axis, the correction to the post worked great.  There's a steep learning curve to this CAM/CNC stuff, but I'm getting there slowly but surely.  Thanks again!

rsreed
in reply to: hoptownhandles

Hi,

 

I know this is a post from last year, but could you share the Post Processor you are currently using on your IQ HHC w/4th axis?

 

I just added a 4th axis to my Laguna IQ, and the PP from Laguna (for Vectric Aspire, V-Carve) is works correctly, as it just substitutes the "X" values with "A" when wrapping geometry.

 

However, I tried the PP that you shared at the start of this thread and I keep getting "X" values in the NC. Everything else appears correct but shouldn't the X-axis stay at the origin? And should it even be showing in the NC unless a G0 X0.0 Y0.0 Z20.0 line is needed to go to the origin at the start of the job?

daniel_lyall
in reply to: rsreed

The X or Y indicates what axis the 4th is along for wrapping if it has X the Y is changed to A and its along the X axis, if its Y the X is changed to A.

 

 


Win10 pro | 16 GB ram | 4 GB graphics Quadro K2200 | Intel(R) 8Xeon(R) CPU E5-1620 v3 @ 3.50GHz 3.50 GHz

Daniel Lyall
The Big Boss
Mach3 User
My Websight, Daniels Wheelchair Customisations.
Facebook | Twitter | LinkedIn

rsreed
in reply to: daniel_lyall

Thank you for the quick input, but just changing axis values wasn't working. Then I ran into this thread. > https://forums.autodesk.com/t5/hsm-post-processor-forum/updating-cps-code-for-laguna-hhc-4th-axis-co.... Once I made all of the changes shown in red below my generated g-code looked like it should.

 

if (true) { // note: setup your machine here
    var aAxis = createAxis({coordinate:0, table:true, axis:[0, 1, 0], range:[-360, 360], preference:1});
    // var cAxis = createAxis({coordinate:2, table:false, axis:[0, 0, 1], range:[-360, 360], preference:1});
    machineConfiguration = new MachineConfiguration(aAxis);

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // TCP mode

Here you can see that all of the values are now Y, Z, and A, with the exception of the initial positioning of the X axis at the part origin.

 

N10 M03
(2D POCKET1)
N20 G0 X0.000 Y138.472 Z58.824
N30 G0 A-11.905
N40 G0 Z48.824
N50 G1 Z46.324 F2336.8
N60 G1 Y182.965 Z42.431
N70 G1 Y183.191 Z42.409 A-11.77
N80 G1 Y183.285 Z42.387 A-11.444
N90 G1 Z42.269 A-9.5
N100 G1 Z42.151 A-7.556

 

Frustrating to say the least but once it was tweaked and generating G-code that looked like it should, I realized there were values in my DSP that were also complicating my results. I had been jumping from Post Process to testing on the cnc without looking at the g-code carefully enough. It was only after I spent a good amount of time scratching my head that I went back to trouble-shoot each step to see where the problems lie. Without these forums I'd have given up on Fusion since I don't know Java and don't have the time to learn for this one instance where I really needed it.