Community
Fusion Manufacture
Talk shop with the Fusion (formerly Fusion 360) Manufacture Community. Share tool strategies, tips, get advice and solve problems together with the best minds in the industry.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

New 4th Axis sends tool below part then moves up to cut.

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
myk
Participant
417 Views, 8 Replies

New 4th Axis sends tool below part then moves up to cut.

This will probably make sense to someone here. I have a new Okuma machine with a 4th axis on the table rotating around X. I have modified the post (see below) for it. On the first cut everything is fine. When the part flips over 180 ° is where things go wrong. The code generated sends the tool below the stock then moves up to the cut. It appears that it thinks the clearance plane is below the stock. Things are right in CAM and simulation looks fine. I moved the Z plane for each rotation and I have tried it with the Z zero on top of the part and with the Z zero in the center of the part with similar results. I have also tried using "WCS Origin" for each side and a "Model Box Point" on top of the stock but get the same result each time. Anybody know what is going on here?

 

>>>>> PROBLEM CODE BELOW <<<<<<<

N270 G30 P1
N272 A180.
N273 M08
N274 X1.0924 Y2.8586
N275 G56 Z-1.35 H05 (THIS IS PAST THE BOTTOM OF THE STOCK)
N276 Z-0.95
N277 Z-0.365
N278 G01 Z-0.315 F50 (THIS IS THE CUTTING PLANE)
N279 X1.0921 Y2.8585 Z-0.3094
 
 
>>>>> MODIFIED POST BELOW <<<<<<<<<
function onOpen() {

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

    setMachineConfiguration(machineConfiguration);
    optimizeMachineAngles2(1); // TCP mode
  }
 
Thanks for any help.
8 REPLIES 8
Message 2 of 9
Arun.rs
in reply to: myk

HI @myk 

 

Thanks for raising your concern via Forum.

 

Could you please share your model file and the .cps file? so that I can have a look on it.  

 

File>Export>.F3d save the file and attach the file to this thread.   Make sure .zip the file before attaching.

 

Regards



Arun.RS
Technical Consultant - Post Processor
Message 3 of 9
myk
Participant
in reply to: Arun.rs

Arun, files are attached. I didnt bother zipping the Fusion file since it is just a test and is only 153KB. Hope that is helpful in trying to figure this out.

Message 4 of 9
myk
Participant
in reply to: Arun.rs

Hey @Arun.rs 

 

Any luck with the file and .cps I sent over?

Message 5 of 9
Arun.rs
in reply to: myk

HI @myk 

 

Apologies for delay.

 

Open post file in a 'Visual Studio Code' or 'Notepad++' to do the required modifications.

 

1. Go to line number 343 or search 'var tcp'

2. Make 'var tcp' as 'false'

 

  var tcp = false;
  if (tcp) {
    setRotation(W); // TCP mode
  } else {
    var O = machineConfiguration.getOrientation(abc);
    var R = machineConfiguration.getRemainingOrientation(abc, W);
    setRotation(R);
  }

 

Save the file.

 

For detail info about the post editing please refer the  FAQ link

 

Regards

 



Arun.RS
Technical Consultant - Post Processor
Message 6 of 9
myk
Participant
in reply to: Arun.rs

Thanks @Arun.rs . I used Visual Studio to make the changes and fixed the problem. Now the part can rotate and the tool goes to the right location above the part for the next toolpath.

 

My next question is about swarf. I put an angle along the X axis on this sample part to try a swarf cut. No errors in CAM and everything works right in simulation but it will not allow me to post the toolpath. I get the following error. Is this another change that needs to be made to the post?

(Picture of model and toolpath attached)

 

Information: Configuration: Generic OKUMA
Information: Vendor: HSMWorks ApS
Information: Posting intermediate data to 'G:\try1.min'
Error: Failed to post process. See below for details.
...
Code page changed to '1252  (ANSI - Latin I)'
Start time: Thursday, September 242020 3:40:31 PM
Code page changed to '20127 (US-ASCII)'
Post processor engine: 4.5718.0
Configuration path: E:\OTB_Prototypes\HSM-Fusion\Posts\GX1000\okuma-VMC_P3_G116B_4thAs_A.cps
Security level: 1000
Include paths: E:\OTB_Prototypes\HSM-Fusion\Posts\GX1000
Configuration modification date: Thursday, September 242020 1:23:15 PM
Output path: G:\try1.min
Checksum of intermediate NC data: ed8f9a6b1e15f9c69e6150baf9ac2cd4
Checksum of configuration: 314854ff7644341a9acc62c82f085d14
Legal: Copyright (C) 2007-2011 HSMWorks ApS
Generated by: Fusion 360 CAM 2.0.9006
...

###############################################################################
ErrorError: Direction is not supported for machine configuration.
Error at line: 1

Stack dump:
("Direction is not supported for machine configuration.")@:0
onOpen()@E:\OTB_Prototypes\HSM-Fusion\Posts\GX1000\okuma-VMC_P3_G116B_4thAs_A.cps:137
Failed while processing onOpen().
###############################################################################

Error: Failed to invoke function 'onOpen'.
Error: Failed to invoke 'onOpen' in the post configuration.
Error: Failed to execute configuration.
Stop time: Thursday, September 242020 3:40:31 PM
Post processing failed.
Message 7 of 9
Arun.rs
in reply to: myk

HI @myk 

 

Could you please attach the corresponding project?

 

Regards

 



Arun.RS
Technical Consultant - Post Processor
Message 8 of 9
myk
Participant
in reply to: Arun.rs

Its the same as before with a couple of 61° angles. I have attached it here. Same post processor as before but with the edits you had me do..

Thanks

Myk

Message 9 of 9
Arun.rs
in reply to: myk

HI @myk 

 

Thanks for sharing the project.

 

The operation done in attached project is not an 4 axis tool path its an 5 axis toolpath so you can't generate a post file for this operation. Use 2D contour for the same.

 

Regards



Arun.RS
Technical Consultant - Post Processor

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

Post to forums  

Autodesk Design & Make Report