Hi all,
I tried different thing to get this to work without success, done the machine configuration, machine configuration files but I don't see that this is related to my problem.
Basically I need that after each plane change that is not 0 degree of the B axis ( or rotation of the B axis) to do first a Z Cleareance positioning.
We are working with a swivel head that goes from -90 to +90 degree.
the post processor is the latest SINUMERIK 840D.
I found on the forum a pp that works exactly how I described but I need to put that information into our own post.
I attach both pps. and nc.
Here is a correct example from the Eco mill post, the order of x,y and Z changes according to plane angle.
Here is what our SINUMERIK840D pp is , the order of x,y and Z does not change according to plane angle.:
Solved! Go to Solution.
Solved by andrea.amilo. Go to Solution.
Solved by andrea.amilo. Go to Solution.
I found the problem when comparing the two posts.
If you download the latest Siemens SINUMERIK 840D pp, there is a missing "var" statement before the
Nearly there, after a few nc outputs I notice the following:
1. That the order Z retract is not consistent through the program.
2. When doing a tool change again to square 1, no more Z retract before x and y when at 90 degree.
Take a look at my nc ouput now:
I attach my project and pp again.
Hi @ifuASTJY ,
if you need to have first movement along Z after each plane change that is not 0 degree of the B axis, I think you could add this simple modification to your postprocessor ( lines 1303 and 1304 ) :
var initialPosition = getFramePosition(currentSection.getInitialPosition()); // if (!retracted && !insertToolCall) if (abcFormat.format(abc.y) != 0) { if (getCurrentPosition().z < initialPosition.z) { writeBlock(gMotionModal.format(0), zOutput.format(initialPosition.z)); zIsOutput = true; } }
It means that when B axis ( = rotation around Y ) is different from 0 postprocessor will write Z first.
Please test it carefully and let me know.
Hi,
Yes, this works now, very glad now, I will keep an eye on it but I see the code is good, I will output a more complex part and check it out.
I notice one thing ( this is a bit off topic) when I set machine.configuration "table= false" it outputs XYZ in a single line, when it's true I have XY on one line and Z on the next line.
In our case we do not have a table, we only have rotary B axis.
For now I just keep it on " true" and the code is fine.
Many thanks this will save us a tone of time.
!
Hello @andrea.amilo ,
So after a few tests I have the following.
All is good except when it makes a tool change and keeps the same angle. The second tool does not retract on Z anymore.
Can you please take another look?
Thanks
HI @ifuASTJY ,
could you please write exactly what you expects ?
...
N135 T="BU D12 LUNG" D1
N136 L6
N137 T="FR D10 Z4"
N138 S3000 M3
N139 G54
<--- Do you need G0 SUPA Z here ?
N140 CYCLE800(1,"",0,57,0,0,0,0,90,0,0,0,0,-1)
N141 G0 X21.946 Y-2.304
...
Thanks
Hey there 🙂
I think the problem that @ifuASTJY has is the order in wich the machine approaches the start position of the cycle.
In line 121/122 it's Z first and then X&Y.
In line 141/142 it's X&Y first and then Z.
He want's to approach Z first, because otherwise the spindle may crash with the workpiece. I would't set it up like this, in my opinion X&Y first and then Z ist much safer, but the solution could be to add a retract between the orientation of the b-axis and the approaching.
In Heidenhain this would be M140 MB MAX, I don't know the command for Siemens.
The line to change should be in the OnSection function.
There are a few lines wich define the approaching-strategy if the machineconfiguration is a HeadConfiguration.
Hopefully this helps a bit.
Greetings from Germany
Thank you for putting your time in my request.
I try to simplify my problem with a sketch drawing.
Basically there are two cases:
Case 1 when B angle is 0 degree. - here I always need first approach to be X and Y and the Z Clearance Plane ( This is already working)
Case 2 is when B angle is any other angle then 0 degree - here I always need first approach to be Z Clearance Plane and then XY approach.
Keep in mind that every time when the work plane changes I have a Z retract ( SUPA Z799 D0) so like this it is safe to do Z Clearance plane first
I hope with your help I explained my needs better than before.
Thank you for your effort
Hi @ifuASTJY ,
I think you could add a specific check for each tool changes ( at line 1318 ) :
if (abcFormat.format(abc.y) != 0) { if (getCurrentPosition().z < initialPosition.z || insertToolCall) { writeBlock(gMotionModal.format(0), zOutput.format(initialPosition.z)); zIsOutput = true; } }
Please test it carefully and let me know.
Can't find what you're looking for? Ask the community or share your knowledge.