01-26-2018 02:16 PM
Hello,
would not someone know how to modify the "default" setting in SetKinematicTransformation in the GMe_Set5AxisTransformation method? I need "default" to set the channel name for two channel strings.
Thank you
01-29-2018 04:59 AM
01-29-2018 07:56 AM
Hello Thomas,
it is a machine that has two portals, but each portal is managed separately. In order to simulate the two portals on one project, I created the machine as a two channel. I used the cse driver from sim05_mill_5ax Heidenhain simulation. In kinematics, I set the axes for the first channel X1-Y1-Z1-B1-C1 and for the second X2-Y2-Z2-B2-C2. I set the kinematic strings on the machine model to CHAIN1 and CHAIN2. In CSE I set GV_strSwivelingChainName - "CHAIN" + getChannelName (). For 3ax milling and for simultaneous 5-axis machining, everything works, but it reports that the index is not setKinematicTransformation "default".
Since setKinematikTransformation is set in GMe_Set5AxisTransformation and it is locked, I created my own GMe_Set5AxisTransformation. No message is displayed and the simulation runs, but B and C are not positioned.
So I do not have to edit the names of axes in CSE because they are fixed to XYZCB, so I used the ini setJointAlias for all axes in ini.
01-29-2018 09:39 AM
If you get the message that "default" was not found, when using the mthod GMe_Set5AxisTransformation, this indicates that the given chain could not be found in the kinematic model. Please check this by testing a "hardcoded" string as parameter in TRAORI. Also ensure that the underlaying kinematic model in CAM is up to date (chain names). You can display the chain name in Setup Configurator to verify this.
Within the GMe-5AxisTransformation method there is no big magic in. Simply use the method as in the OOTB samples.
If there are required information missing let us know.
Thomas
01-29-2018 11:17 AM - edited 01-29-2018 11:21 AM
01-29-2018 11:52 AM - edited 01-29-2018 11:52 AM
This is also what I expect ;-) You never mentioned that you struggle with the PLANE. The GMe_Set5AxisTransformation is not used by PLANE. This story is a bit different.
Attached is a snapshot from the sim09 sample where we use different kinematic chains in PLANE. In this case to change the chain if a head is mounted. We introduced (with NX11 or NX1003) a method (GMe_GetActiveChain) where you can easily handle the chain names based on a number. This method is used in TNC, Sinumerik, and Fanuc CCF files. Initially this method returns without any modifications "default" to have an basic return value and to ensure no legacy regressions. In your case I guess this is the problem. You never called this method and in additon you didn´t changed the code in there.
You have to adapt the PLANE metacode in MCF file to be able to set the current active chain in there based on a number. In your case you can use the channel number. Either by a simple IF case within PLANE or with the mentioned method. This is up to you.
Thomas
01-29-2018 01:40 PM - edited 01-29-2018 01:42 PM
01-30-2018 02:48 AM
There are some mistakes inside.
At first, please don´t make a simple copy paste from the PLANE sample in Sim09. It doesn´t make sense in your case to evaulate if a head is mounted! Adapt it for your machine. You have to evaluate the current channel and set depending on this information the chain. Either by calling the method or directly within the PLANE code.
Second, you forgot to add the parameter "Value" in the method GMe_GetActiveChainName.
Thomas
02-01-2018 02:17 PM
Can you give me 4 axis video + 5 axis NX? i am Vietnamese thank you
03-06-2018 05:46 AM
After a long time, I came back to this problem and managed to adjust the CSE to position B and C, but I encountered another problem that the axes are offset, but they are working in the wrong place. The tracks are offset and offset. It takes the wrong plane.
Everything went through PLANE, but I can not think of what might be wrong.
Thank you