SetPrefferedAngle

This method is used in multi-axis CNC milling machibes and millturns to reorient “Rotary Axis 2” when “Rotary Axis 2”rotation does not change cutting tool vector orientation.

This happens on millturns and multi axis CNCs, when you perform 3 axis milling operations. In this case, “Rotary Axis 1” becomes zero and you can give any value to “Rotary Axis 2”.

This is mostly needed when you can not machine a part in a 3 axis operation due to axis limit problems. You have to reorient “Rotary Axis 2” to overcome this problem.

This method gets one parameter as double.

Normally we don’t use this method in scripts. This method is automatically called with “$$UDE: MANUSPOST_ROTATE_TABLE/ANGLE=90.000000” line in the APTCL file. You can add this UDE (User Defined Event) line at any operation start inside CAM systems. Note that 90 degrees is just an example. You can give any value you want for “Rotary Axis 2”. Also note that although we use the term “Table” in this UDE, you can also use this UDE to re-orient the “Rotary Axis 2” on rotary head 5-axis CNCs.

In addition to calling this method with the UDE, if you want to use it in your custom applications, you can use this method inside your own scripts.

Example usage:

a=90 SetPrefferedAngle(a)

Here “a” is the rotary axis new value.