优胜模具资料网

标题: 优胜UG通用后处理G82孔底停留时间自动优化 [打印本页]

作者: 优胜模具    时间: 2023-2-23 11:14
标题: 优胜UG通用后处理G82孔底停留时间自动优化
(, 下载次数: 17)

一、孔底停留时间设为0.3秒,FANUC默认输出毫秒为P300
G98 G82 X-77.075 Y8.541 Z-.803 R1. P300 F300.


二、孔底停留时间设为3秒,新代系统输出为P3
G98 G82 X-77.075 Y8.541 Z-.803 R1. P3 F300.

记事本打开YSUG3.def,停留时间:/1000
  BLOCK_TEMPLATE cycle_drill_dwell
  {
       G_plane[$mom_sys_cutcom_plane_code($mom_cutcom_plane)]\opt
       G_return[$mom_sys_cycle_ret_code($mom_cycle_retract_mode)]\opt
       G_motion[$mom_sys_cycle_drill_dwell_code]
       X[$mom_cycle_feed_to_pos(0)]
       Y[$mom_cycle_feed_to_pos(1)]
       Z[$mom_cycle_feed_to_pos(2)]
       R[$mom_cycle_rapid_to_pos($mom_cycle_spindle_axis)]
       cycle_dwell[$mom_cycle_delay/1000]\opt
       F[$feed]
  }


三、自动优化孔底停留时间,孔底停留时间过长,磨损刀尖;时间过短,孔底不平;最佳停留时间为刀具刚好转一圈半


转速S=2000,自动输出孔底停留时间为45毫秒
G98 G82 X-77.075 Y8.541 Z-.803 R1. P45 F300.


记事本打开YSUG3.def修改如下
  BLOCK_TEMPLATE cycle_drill_dwell
  {
       G_plane[$mom_sys_cutcom_plane_code($mom_cutcom_plane)]\opt
       G_return[$mom_sys_cycle_ret_code($mom_cycle_retract_mode)]\opt
       G_motion[$mom_sys_cycle_drill_dwell_code]
       X[$mom_cycle_feed_to_pos(0)]
       Y[$mom_cycle_feed_to_pos(1)]
       Z[$mom_cycle_feed_to_pos(2)]
       R[$mom_cycle_rapid_to_pos($mom_cycle_spindle_axis)]
       cycle_dwell[90000/$mom_spindle_speed*0.01]\opt
       F[$feed]
  }

如果想强制输出指定停留时间
%
(2026/05/21 11:40 星期4)
(TIME=0.28 MIN)
(==========TOOL LIST START=========)
(刀号--刀补--径补--切削深度--刀具名称)
(T12 | H12 | D00 | -5.200 | D6倒角刀)
(==========TOOL LIST END===========)
G17 G40 G49 G80
G91 G28 Z0.
N1 T12 M06
S4000 M03
(D6倒角刀  D=6.000  R=0.00
G17 G00 G90 G54 X-66. Y-30.
G43 Z30. H12 M08
G99 G82 X-66. Y-30. Z-5.2 R-3. P0.5 F250.
G80
G00 Z30.
X-26.
G00 Z-3.
G99 G82 Z-5.2 R-3. P0.5 F250.
G80
G00 Z30.
Y30.
G00 Z-3.
G99 G82 Z-5.2 R-3. P0.5 F250.
G80
G00 Z30.
X-66.
G00 Z-3.
G99 G82 Z-5.2 R-3. P0.5 F250.
G80
G00 Z30.
M05
M09
G91 G28 Z0.
M30
%

请按以下参数设置,搜索块BLOCK_TEMPLATE cycle_drill_dwell
BLOCK_TEMPLATE cycle_drill_dwell
  {
       G_plane[$mom_sys_cutcom_plane_code($mom_cutcom_plane)]\opt
       G_return[$mom_sys_cycle_ret_code($mom_cycle_retract_mode)]\opt
       G_motion[$mom_sys_cycle_drill_dwell_code]
       X[$mom_cycle_feed_to_pos(0)]
       Y[$mom_cycle_feed_to_pos(1)]
       Z[$mom_cycle_feed_to_pos(2)]
       R[$mom_cycle_rapid_to_pos($mom_cycle_spindle_axis)]
       Text[P0.5]
       #cycle_dwell[0.5/100]\opt
       F[$feed]
  }

华中P3000等于暂停3秒
Text[P3000]



(, 下载次数: 3)

P参数输出格式修改为两位小数
  FORMAT Dwell_SECONDS "&__5_20" P参数格式
  FORMAT Dwell_SECONDS "&__5.2_"  两位小数



【drill攻丝孔底停留】记事本打开YSUG3.def

  BLOCK_TEMPLATE cycle_tap_5
  {
       G_plane[$mom_sys_cutcom_plane_code($mom_cutcom_plane)]\opt
       G_return[$mom_sys_cycle_ret_code($mom_cycle_retract_mode)]\opt
       tap_string[$final_tap_mode]
       X[$mom_cycle_feed_to_pos(0)]
       Y[$mom_cycle_feed_to_pos(1)]
       Z[$mom_cycle_feed_to_pos(2)]
       R[$mom_cycle_rapid_to_pos($mom_cycle_spindle_axis)]
       Q_cutcom[$mom_cycle_delay]\opt
       Text[P3]   (新代系统默认3毫秒,FANUC系统P300为0.3秒)
       F_fanuc[$feed]
  }




欢迎光临 优胜模具资料网 (https://www.mjzl.cn/) Powered by Discuz! X3.5