找回密码 注册 QQ登录
一站式解决方案

iCAx开思网

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

[求助] 请教一个关于solidcam后处理的问题

[复制链接]
跳转到指定楼层
1
发表于 2016-8-23 20:28:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
希望大家可以参考参考 是关于侧铣头的一些后置代码
Description:
@home_data contains information about the part home number, machine home number, planes, angles, shifts and transformation matrix.

@home_data location depends on VMID variable Home Data at Start:
if "YES", it appears after @def_tool
if "NO" appears after @end_program.

Parameters:
home_number:1 home_id:9

clearance_plane:50.000 tool_start_plane:70.000
work_upper_plane:0.000 zero_plane:-40.000
rotate_angle_x:0.000T rotate_angle_y:0.000T rotate_angle_z:0.000T
rotate_angle_x_dir:cw rotate_angle_y_dir:cw rotate_angle_z_dir:cw
x_angle_const_z:0.000T y_angle_const_z:0.000T dev_angle_z:0.000T
x_angle_const_z_dir:cw y_angle_const_z_dir:cw dev_angle_z_dir:cw
x_angle_const_y:0.000T z_angle_const_y:0.000T dev_angle_y:0.000T
x_angle_const_y_dir:cw z_angle_const_y_dir:cw dev_angle_y_dir:cw
y_angle_const_x:0.000T z_angle_const_x:0.000T dev_angle_x:0.000T
y_angle_const_x_dir:cw z_angle_const_x_dir:cw dev_angle_x_dir:cw
angle_4x_around_x:0.000T angle_4x_around_y:0.000T
angle_4x_around_x_dir:cw angle_4x_around_y_dir:cw
shift_x:0.000T shift_y:0.000T shift_z:0.000T
part_home_number:1 tool_z_level:500.000
tmatrix_I_1:1.000T tmatrix_I_2:0.000T tmatrix_I_3:0.000T tmatrix_I_4:0.000T
tmatrix_I_5:0.000T tmatrix_I_6:1.000T tmatrix_I_7:0.000T tmatrix_I_8:0.000T
tmatrix_I_9:0.000T tmatrix_I_10:0.000T tmatrix_I_11:1.000T tmatrix_I_12:0.000T
. tmatrix_I_13:0.000T tmatrix_I_14:0.000T tmatrix_I_15:0.000T tmatrix_I_16:1.000T
. x = cosy*cosz*x - sinz*cosy*y + siny*z
.. y = (-sinx*siny*cosz + cosx*sinz)*x + (sinx*siny*sinz + cosx*cosz)*y - sinx*cosy*z
z = (cosx*cosz*siny + sinx*sinz)*x + (-sinz*cosx*siny + sinx*cosz)*y - cosx*cosy*z
around Z
x = x*cos(dev_angle) - y*sin(dev_angle)
y = x*sin(dev_angle) + y*cos(dev_angle)
around Y
z = z*cos(dev_angle) - x*sin(dev_angle)
x = z*sin(dev_angle) + x*cos(dev_angle)
around X
y = y*cos(dev_angle) - z*sin(dev_angle)
z = y*sin(dev_angle) + z*cos(dev_angle)

This contains the same information as in @tmatrix .

This command is used at the end of the program to generate a sub-program for each home; you can later call this sub-program from the main program whenever you have to change the home position. If at some later point you need to change anything, you can easily do it only in one place (in the home sub-program).


tmatrix_I_1, tmatrix_I_2, tmatrix_I_3,
...
tmatrix_I_16 这个东西该怎么用呢
type: numeric
If the prepared rotation values are not good, you can use this rotation matrix to make your own position calculations.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 分享淘帖 赞一下!赞一下!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

GMT+8, 2024-11-22 12:42 , Processed in 0.020121 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.3

© 2002-2024 www.iCAx.org

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