I'm working on the millturn machine on fanuc controller. I have builded kinematics and it works good. I have problem only if I want to add an adapter to mill from the forehead. The problem lies on the wrong correction of the tool (see pic.1).
I add, that I change vectors in CSE DisplaceOrigins by the H99, because its the one pocket once with adapter or without. The zero without tool correction is OK, like on the pic.2.
I try get the head vector changing by read the kinematic chain in CSE (G37), but the tool correction is always wrong with the same value.
When I enter in MachineToolBuilder and click on the adapter, then tool correction is OK (pic.3) but orientation of whole kinematic is incorrect, for ex. pic.4 (inversion angle C and other problem with drilling cycles).
Can anyone know what's goin on in this problem? When I add adapter my postprocessor output wrong values? Why?
The adapter in always in the same position, it is not angled.
could you share how the ONT and KIM looks like with the adapter?
Please have a look into the method GMe_SetToolLengthCorrection, this might be have a special case for the adapter assigning the values of LQZ length to the appropriate geo axis.
Another alternative could be to introduce a new transformaiton for the adapter head part only.
Thanks for reply. I attach pics. with kinematic chain in machine and in adapter only.
This is only in adapter part.
I try create new transformation, but without results .
For transformation I set name HEAD, and activate it with G37.
Maybe I do something wrong, but I don't know what...
I can show GMe_SetToolLengthCorrection where I assign H99 to adapter correction, but the results is always the same wrong numbers in LQZ.
I try with variable #4111 and without, but it did not give any effect.
Best regards, Jack
all that looks not bad, but hard to say where the problem is.
Are the transformation not working as expected with correct correction values
are the values from getL/Q/Z Correction are not correct?
One question is you have two option how to handle the offsets.
1. Both (from the adapter + tool) in one transformation $TOOL
You may need to assign the values e.g. L to a different geo axis
In this case it is important to check what is the active tool (getCurrentTool(Spindle))
this should be the name of the adapter. check tool change subprogram.
2. two individual transformations.
one for the tool in $TOOL
and one for the adapter - in that case it is need to work with getHeadCorrection()