找回密码
 立即注册

QQ登录

只需一步,快速开始

微信扫码登录

搜索
楼主: 秋风5685

[分享] 支持六个系统共用后处理

  [复制链接]

0

主题

5

回帖

33

积分

列兵

积分
33
发表于 昨天 17:30 | 显示全部楼层
走圆弧不能输出JIK

0

主题

5

回帖

33

积分

列兵

积分
33
发表于 昨天 17:30 | 显示全部楼层
走圆弧不能输出 I J K

1

主题

56

回帖

3250

积分

中尉

积分
3250
 楼主| 发表于 昨天 20:22 | 显示全部楼层
本帖最后由 秋风5685 于 2026-1-17 20:31 编辑

#===============================================================================
# Exported Custom Commands created by Administrator
# on 2017Äê12ÔÂ22ÈÕ ÐÇÆÚÎå 23:36:03 中国标准时间
#===============================================================================



#=============================================================
proc PB_CMD_init_helix { } {
#=============================================================
uplevel #0 {
#
# This ommand will be executed automatically at the start of program and
# anytime it is loaded as a slave post of a linked post.
#
# This procedure can be used to enable your post to output helix.
# You can choose from the following options to format the circle
# block template to output the helix parameters.
#

set mom_sys_helix_pitch_type    "rise_radian"

#
# The default setting for mom_sys_helix_pitch_type is "rise_radian".
# This is the most common.  Other choices are:
#
#    "rise_radian"              Measures the rise over one radian.
#    "rise_revolution"          Measures the rise over 360 degrees.
#    "none"                     Will suppress the output of pitch.
#    "other"                    Allows you to calculate the pitch
#                               using your own formula.
#
# This custom command uses the block template circular_move to output
# the helix block.  If your post uses a block template with a different
# name, you must edit the line that outputs the helix block.

#
#  The following variable deines the output mode for helical records.
#
#  FULL_CIRCLE  -- This mode will output a helix record for each 360
#                  degrees of the helix.
#  QUADRANT  --    This mode will output a helix record for each 90
#                  degrees of the helix.
#  LINEAR  --      This mode will output the entire helix as linear gotos.
#  END_POINT --    This mode will assume the control can define an entire
#                  helix in a single block.

   set mom_kin_helical_arc_output_mode FULL_CIRCLE

   MOM_reload_kinematics



#=============================================================
proc MOM_helix_move { } {
#=============================================================
   global mom_pos_arc_plane
   global mom_sys_cir_vector
   global mom_sys_helix_pitch_type
   global mom_helix_pitch
   global mom_prev_pos mom_pos_arc_center
   global PI

   switch $mom_pos_arc_plane {
      XY { MOM_suppress once K ; set cir_index 2 }
      YZ { MOM_suppress once I ; set cir_index 0 }
      ZX { MOM_suppress once J ; set cir_index 1 }
   }

   switch $mom_sys_helix_pitch_type {
      none { }
      rise_revolution { set pitch $mom_helix_pitch }
      rise_radian { set pitch [expr $mom_helix_pitch / ($PI * 2.0)]}
      other {
#
#    Place your custom helix pitch code here
#
      }
      default { set mom_sys_helix_pitch_type "none" }
   }

   MOM_force once X Y Z

   if { [string compare "none" $mom_sys_helix_pitch_type] } {
      MOM_force once I J K

#<08-01-06 gsl>
      switch $mom_sys_cir_vector {
         "Vector - Arc Center to Start" {
            set mom_prev_pos($cir_index) $pitch
            set mom_pos_arc_center($cir_index) 0.0
         }
         "Vector - Arc Start to Center" -
         "Unsigned Vector - Arc Start to Center" {
            set mom_prev_pos($cir_index) 0.0
            set mom_pos_arc_center($cir_index) $pitch
         }
         "Vector - Absolute Arc Center" {
            set mom_pos_arc_center($cir_index) $pitch
         }
      }
   }


#
# You may need to edit this line if you output more than one block
# or if you have changed the name of your circular_move block template
#
   MOM_do_template circular_move


} ;# MOM_helix_move


} ;# uplevel
}

1

主题

56

回帖

3250

积分

中尉

积分
3250
 楼主| 发表于 昨天 20:34 | 显示全部楼层

更新UG六个主流数控系统后处理.rar (905.21 KB, 下载次数: 27) 更新组内多坐标混合使用方式问题!更新ijk输出问题!

1

主题

407

回帖

2728

积分

少尉

积分
2728
发表于 昨天 21:32 | 显示全部楼层
感谢楼主分享

0

主题

134

回帖

141

积分

上等兵

积分
141
发表于 13 小时前 来自手机 | 显示全部楼层
厉害了,一下解决了。

0

主题

24

回帖

554

积分

三级士官

积分
554
发表于 10 小时前 | 显示全部楼层
谢谢分享

0

主题

5

回帖

33

积分

列兵

积分
33
发表于 8 小时前 | 显示全部楼层
秋风5685 发表于 2026-1-17 20:34
更新组内多坐标混合使用方式问题!更新ijk输出问题!

您好,后处理自动打开CIMCOEdit后,如果不结束CIMCOEdit进程,UG会进入假死状态,除非关了CIMCOEdit,才能继续操作UG

0

主题

134

回帖

141

积分

上等兵

积分
141
发表于 7 小时前 | 显示全部楼层
那个高精代码是否可以给个设置,开启或者关闭

0

主题

27

回帖

529

积分

三级士官

积分
529
发表于 2 小时前 来自手机 | 显示全部楼层
攻牙怎么设置呢
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

咨询QQ:1359218528|发帖须知!|Archiver|手机版|小黑屋|UG爱好者论坛 ( 京ICP备10217105号-2 )

GMT+8, 2026-1-18 22:00

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表