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 <<<<<<<
Solved! Go to Solution.
Solved by Arun.rs. Go to Solution.
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, 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.
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
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)
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
Can't find what you're looking for? Ask the community or share your knowledge.