大佬们后处理G74 G75PQ值不对下面的代码怎么改
global mom_template_subtypeglobal mom_feed_cut_value
global mom_operation_name
global mom_machine_control_motion_output
global mom_sys_output_cycle95
global mom_sys_output_contour_motion
global mom_sys_cycle_seq_num_on
global dpp_finish_feed
global dpp_turn_cycle_g_code
global dpp_record_rough_cycle_seq
global mom_cutcom_status
global mom_operation_name_list
global mom_machine_cycle_subroutine_name
global dpp_G70_output
global mom_level_step_angle
global mom_clearance_from_faces
global mom_clearance_from_diameters
global dpp_turn_cycle_g_code
global dpp_turn_cycle_retract
global dpp_turn_cycle_msg
global mom_motion_type
global mom_output_file_directory
global dpp_turn_cycle
global mom_start_status
if {$g7475 == 1 } {
# Initialize mom_sys_output_contour_motion.
#set mom_sys_output_contour_motion 0
#==========================================
# When output type set to machine cycle
#==========================================
#if { && $mom_machine_control_motion_output == 2} {
if {} {
MOM_output_literal "G74 R "0"]"
MOM_output_literal "G74 X] "0"] Z "0"] P "0"] Q "0"] F "0"]"
}
#-----------------------------------------------------------------
# Check operation type.
# Check postprocessor capability.
# Check user settings in CAM setup.
#-----------------------------------------------------------------
if {! || $mom_sys_output_cycle95 != 1} {
# MOM_output_to_listing_device "$mom_operation_name: Lathe Rough Cycle is not supported in Post Processor.\
#\nSwitch output mode from Machine-Cycle to Non-Machine-Cycle."
}
#--------------------------------------------
# Check whether a start point has been set.
#--------------------------------------------
if {(! || $mom_start_status != 1) && \
(! || $mom_motion_type != "APPROACH")} {
# MOM_output_to_listing_device "$mom_operation_name: None of start point or approach path is defined before turning cycle in this operation."
# set result "User Error"
}
#--------------------------------------------
# Detect level step angle
#--------------------------------------------
if { || ||} {
if { ||$mom_operation_description=="75N"|| $mom_operation_description=="75n"}{
MOM_output_literal "G75 R "0"]"
MOM_output_literal "G75 X] "0"] Z "0"] P"0" ] Q"0" ] F "0"]"
} else {
MOM_output_literal "G75 R "0"]"
MOM_output_literal "G75 X] "0"] Z "0"] P"0" ] Q "0"] F "0"]"
}
}
set g7475 0
#}
#--------------------------------------------
# Detect rough operation setting
#--------------------------------------------
##############################################################################
# Detect if rough and finish operation link together with subroutine name.
# "MOM_post_oper_path" is used to post linked finish operation.
# In this sub-post running, a tcl file is created. Contour data is setup into
# "dpp_turn_cycle(finish_contour_data)".
# Now with MOM_post_oper_path, contour data is not availabe. Motions between
# "MOM_generic_cycle" is used as contour data.
} ;##############################################################################
#--------------------------------------------
# Detect finish operation setting
#--------------------------------------------
#-----------------------------------------------------------------------------
# Notify NX/Post to process contour data, set "mom_sys_output_contour_motion" .
#
#-----------------------------------------------------------------------------
#
# If user adds cutcom UDE, save the status and notify NX/Post to process part contour data.
set g7475 1
MOM_disable_address X Z G_motion F dwell G
发给AI 喊AI给你改:)
页:
[1]