does anyone here know some FANUC or have experience with CNCsimulator that can help me troubleshoot problems with a program?
>>1002564
There's a lot of cnc people here, stick around though they tend to have jobs and not post until the weekend
post your fanuc issues
>>1002564
What's up?
oh good, this is still here.
i'm trying to write a program to cut out a crank handle, i'm not done it yet, but as i try and simulate the cut, as the cutter makes its first pass, the Z axis steadily climbs out of the piece until it hits the reference zero, instead of staying put.
give me a few minutes and i will post screens of the program, and what the simulator is doing.
this is the simulation as it starts, cutter is where it should be.
and this is the simulation near the end of the rough pass, note the Z has crept up out of the part and has returned to zero.
this is my program thus far, if you want me to just copypasta it, i can.
>>1002972
You have a subprogram located in the main program so it finishes the subprogram call and then it enters the subprogram without being called, this is probably where your problem lies.
>>1003021
To solve this, just put an M30 after the subprogram call I guess.
>>1003021
that doesn't solve the problem of my wandering Z axis. the program isn't fully finished yet either.
the 2 day bump.
Ok, background, haas programmer, so i dont know if this applies but i would make the following changes:
Remove line N50
Change line N100 to read:
N100 M97 P120 L10
Add line:
N105 G01 Z1.
Change line N110 to read:
N110 M30
Hope that helps.
>>1003738
it doesn't.
i need the N100 line to call the subroutine.
this is giving me a headache, i'm gonna stop dicking with this for a while until i get back in class.
>>1002564
I programmed FANUC robots for a while. Also have done quite a bit of CNC but it was not fanuc cnc was 3m and milltronics.
Only time I've seen weird shit like that is with CAM software and the post processor. But, writing raw machine code I guess that isn't applicable.
If you change the program slightly, like made some slightly different geometry, does it still do it?
Pic unrelated.
Your G40 cancels all cutter comp, including the tool height comp,
Put all the comp shit in the main program, have the sub loop back to the main program, and turn off the comp after it loops back.
>>1002564
>CNCsimulator
whats the difference between free and platinum?
>>1004164
Not op, but probally because it loops 10 times, and saves space in the controller. I subprogram all the time if I am writing shit by hand
>>1003749
The edited N100 does call a sub....a local sub. Are you even trying some of these suggestions, or do you know more than 20 yr veterans?