The out-of-the-box Fanuc post for the sim07 library machine outputs G68.2 code for multi axis work. How to make this output the alternate option of G68 machine mode?
Solution
The post has support for both modes built in, but only one is active at a time. This is controlled by manually setting variables in the "PB_CMD_customize_output_mode" custom command in the Start of Program event.
This custom command describes the machine modes supported and lets the type of output be predefined. There are three options presented, and one of these is to use "WCS_ROTATION" mode with G68 output vs "SWIVELING" mode with G68.2 output (which is the default). At the end of the custom command there is
a group of lines that set these preferences. Edit the lines as required to change the way the post works.
=============================================================================
global dpp_ge
## dpp_ge(sys_coord_rotation_output_type)
## "WCS_ROTATION" G68
## "SWIVELING" G68.2
## dpp_ge(sys_tcp_tool_axis_output_mode)
## "AXIS" output the rotation angle of axis (G43.4)
## "VECTOR" output tool axis vector(G43.5)
## dpp_ge(sys_output_coord_mode)
## "TCP_FIX_TABLE" use a coordinate system fixed on the table as the
programming coordinate system
## "TCP_FIX_MACHINE" use workpiece coordinate system fixed on machine as the
programming coordinate system
# Do customization here to get different output
set dpp_ge(sys_coord_rotation_output_type) "SWIVELING"
set dpp_ge(sys_tcp_tool_axis_output_mode) "AXIS"
set dpp_ge(sys_output_coord_mode) "TCP_FIX_MACHINE"; #this variable will be
force changed to "TCP_FIX_TABLE" in postprocessor if
dpp_ge(sys_tcp_tool_axis_output_mode) is set to "VECTOR"
=============================================================================
So, if G68 output is needed, change the default line of:
set dpp_ge(sys_coord_rotation_output_type) "SWIVELING"
TO:
set dpp_ge(sys_coord_rotation_output_type) "WCS_ROTATION"
in this command, Save the post, and verify the output.
Notes and References
Hardware/Software Configuration
Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: CAM
Version: V9.0.3
Function: POSTBUILDER
Ref: 001-7865116