iCAx开思工具箱
标题:
cam开发 操作余量获取
[打印本页]
作者:
LIUCHANGLIN
时间:
2010-9-9 15:25
标题:
cam开发 操作余量获取
double stock_part;
UF_PARAM_ask_double_value(group,UF_PARAM_STOCK_PART,&stock_part);
char stock[133];
sprintf(stock,"程序余量是:%0.2f",tool_diam);
uc1601(stock,1);
作者:
LIUCHANGLIN
时间:
2010-9-9 15:26
得出的数据很大,根本就不对,为何 !那位兄弟知道!
作者:
LIUCHANGLIN
时间:
2010-9-9 15:27
char stock[133];
sprintf(stock,"程序余量是:%0.2f",stock_part);
uc1601(stock,1);
上面写错了,不好意思!
作者:
LIUCHANGLIN
时间:
2010-9-10 18:27
己解决,现在主轴转速和进给没找到,有知道的说一声,谢谢!
作者:
zmhcnc
时间:
2010-9-10 20:30
行不行啊楼主哥哥
作者:
qingkongaaa
时间:
2012-12-6 13:16
楼主 求学习
作者:
icaxhjy88
时间:
2012-12-10 14:58
我来告诉你:
转速是4005。进给是17
UF_PARAM_ask_double_value(oper,4003,&double_t); //UF_PARAM_SURFACE_SPEED 4003
sprintf(temp,"UF_PARAM_SURFACE_SPEED=:%0.3f",double_t);
list_w(temp);
UF_PARAM_ask_double_value(oper,4004,&double_t); //UF_PARAM_FEED_PER_TOOTH 4004
sprintf(temp,"UF_PARAM_FEED_PER_TOOTH=:%0.3f",double_t);
list_w(temp);
UF_PARAM_ask_double_value(oper,4005,&double_t); //UF_PARAM_SPINDLE_RPM 4005
sprintf(temp,"Speed RPM=:%0.3f",double_t);
list_w(temp);
UF_PARAM_ask_int_value(oper,4013,&int_t); //UF_PARAM_SPINDLE_RPM_TOG 4013* 0 -- Inactive 1 -- Active
sprintf(temp,"使用RPM(1:激活):%d",int_t);
list_w(temp);
UF_PARAM_ask_int_value(oper,4008,&int_t); //UF_PARAM_SPINDLE_MODE 4008
sprintf(temp,"UF_PARAM_SPINDLE_MODE:%d",int_t);
list_w(temp);
UF_PARAM_ask_str_value(oper,4009,char_t); //UF_PARAM_SPINDLE_RANGE_TEXT 4009
sprintf(temp,"Spindle Range text:%s",char_t);
list_w(temp);
UF_PARAM_ask_str_value(oper,4010,char_t); //UF_PARAM_SPINDLE_TEXT 4010
sprintf(temp,"Spindle text:%s",char_t);
list_w(temp);
/* Second Page */
UF_PARAM_ask_subobj_ptr_value(oper,UF_PARAM_FEED_RAPID,&h_feed); //UF_PARAM_FEED_RAPID 10
sprintf(temp,"RAPID:%0.1f",h_feed.value);
list_w(temp);
UF_PARAM_ask_subobj_ptr_value(oper,UF_PARAM_FEED_APPROACH,&h_feed); //UF_PARAM_FEED_APPROACH 13
sprintf(temp,"APPROACH:%0.1f",h_feed.value);
list_w(temp);
UF_PARAM_ask_subobj_ptr_value(oper,UF_PARAM_FEED_ENGAGE,&h_feed); //UF_PARAM_FEED_ENGAGE 11
sprintf(temp,"ENGAGE:%0.1f",h_feed.value);
list_w(temp);
UF_PARAM_ask_subobj_ptr_value(oper,UF_PARAM_FEED_FIRST_CUT,&h_feed); //UF_PARAM_FEED_FIRST_CUT 18
sprintf(temp,"FIRST_CUT:%0.1f",h_feed.value);
list_w(temp);
UF_PARAM_ask_subobj_ptr_value(oper,UF_PARAM_FEED_STEPOVER,&h_feed); //UF_PARAM_FEED_STEPOVER 19
sprintf(temp,"STEPOVER :%0.1f",h_feed.value);
list_w(temp);
UF_PARAM_ask_subobj_ptr_value(oper,UF_PARAM_FEED_CUT,&h_feed); //UF_PARAM_FEED_CUT 17
sprintf(temp,"FEED_CUT:%0.1f",h_feed.value);
list_w(temp);
UF_PARAM_ask_subobj_ptr_value(oper,UF_PARAM_FEED_TRAVERSAL,&h_feed); //UF_PARAM_FEED_TRAVERSAL 16
sprintf(temp,"TRAVERSAL:%0.1f",h_feed.value);
list_w(temp);
UF_PARAM_ask_subobj_ptr_value(oper,UF_PARAM_FEED_RETRACT,&h_feed); //UF_PARAM_FEED_RETRACT 12
sprintf(temp,"RETRACT:%0.1f",h_feed.value);
list_w(temp);
UF_PARAM_ask_subobj_ptr_value(oper,UF_PARAM_FEED_RETURN,&h_feed); //UF_PARAM_FEED_RETURN 15
sprintf(temp,"RETURN:%0.1f",h_feed.value);
list_w(temp);
//Third Page
作者:
qingkongaaa
时间:
2012-12-10 20:54
icaxhjy88 发表于 2012-12-10 14:58
我来告诉你:
转速是4005。进给是17
我拜你为师好不
作者:
蓝摩羯
时间:
2012-12-28 21:25
楼主威武。。向楼主学习。。
欢迎光临 iCAx开思工具箱 (https://t.icax.org/)
Powered by Discuz! X3.3