找回密码 注册 QQ登录
开思网工业级高精度在线3D打印服务

iCAx开思网

CAD/CAM/CAE/设计/模具 高清视频【积分说明】如何快速获得积分?快速3D打印 手板模型CNC加工服务在线3D打印服务,上传模型,自动报价
查看: 16141|回复: 4
打印 上一主题 下一主题

UG_POST circular_move "R" instead of "I J"

[复制链接]
跳转到指定楼层
1
发表于 2004-4-7 20:57:56 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

马上注册,结交更多同行朋友,交流,分享,学习。

您需要 登录 才可以下载或查看,没有帐号?注册

x
Hi, experts
  
    I am developing a postprocessor for FANUC 18M ....and got the following problems:
  
   for moom_circular_move, I want to output the "R" instead of "I J", I am using R[$mom_arc_radius], and the output in correct format. but the problem is:
  
   When I am doing a cicular movement whose sweep angle (A) is greater than 180, then the machine will just go along the small arc (360 -A), which will cause serious problem, and hurt the part.
  
  so, in this case, it is better to use R = -$R, using the negative R value.
  
  Then the problem comes: How can i decide the sweep angle is greater or smaller than 180?  I can not find a parameter available, and how can I do the calculation?
  
  In CLSF file of IDEAS, we can see the Sweep angle for a circular move, is there a similar one in UG ?
  
  Here is BLOCK:
  
  BLOCK_TEMPLATE circular_move  
  {
       G_cutcom[$mom_sys_cutcom_code($mom_cutcom_status)]\opt
       G_motion[$mom_sys_circle_code($mom_arc_direction)]\opt
       G_mode[$mom_sys_output_code($mom_output_mode)]
       X[$mom_pos(0)]
       Y[$mom_pos(1)]
       Z[$mom_pos(2)]
       R[$mom_arc_radius]
#        I[$mom_pos_arc_center(0) - $mom_prev_pos(0)]
#       J[$mom_pos_arc_center(1) - $mom_prev_pos(1)]
#       K[$mom_pos_arc_center(2) - $mom_prev_pos(2)]
       F[$feed]
#      S[$mom_spindle_speed]
  }
  
  
  
   I amm so worrying about this problem, Please advise as soon as possible!
  
  Thanks and have a nice day!
  
Best regards
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 赞一下!赞一下!
2
发表于 2004-4-7 22:00:25 | 只看该作者
Try   mom_kin_arc_output_mode  "QUADRANT"
3
发表于 2004-4-8 09:59:50 | 只看该作者
Thanks, I tried, but it will cause even more unpredictable problems....
4
发表于 2004-4-8 11:10:48 | 只看该作者
Someone give me this solution, is there any better solution, thanks:
  
Hi Jin,
  
     You have the previous position, present position, center point and radius of
the arc. You can easily create two vectors and find the dot product of the vectors
to find out the included angle.
  
   a.b = ab cos(theta)
  
to calculate the dot product use the proc VEC3_dot {u v}.
  
Regards
  
Vasanth.SN.
Tata Consultancy Services
Lynn, MA.
5
发表于 2004-4-10 17:35:02 | 只看该作者
顶一下这个问题!
圆弧输出时用R是比较难以判断的,用I、J、K就容易了!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3D打印手板模型快速制作服务,在线报价下单!

QQ 咨询|手机版|联系我们|iCAx开思网  

GMT+8, 2025-2-23 18:02 , Processed in 0.023781 second(s), 11 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2025 www.iCAx.org

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