• 博士控制器添加91号程序(截图为97号,现场使用是91号),主要设置内容是压力和电流。
• 电极(无要求)
• 压力为0.4bar(400n)
• 电流设为1ka(也可不设,焊枪调用91号程序只是为了检测通讯)
def vwtimerhandshakesteps(commstep:out, point_data:in, timeoutextension:in) 与焊接控制器通讯的程序号99
decl sgg_point_t point_data
decl int commstep
decl real timeoutextension
switch commstep
case resetweldstart 重置焊接启动
sgl_setout(sg_startwelding_wt[sg_activeweldtimer],false) a785 开始焊接关闭
sgl_setout(sg_withcurrent_wt[sg_activeweldtimer],false) 带电流焊接
commstep = userpresetchecknumb
sg_setnumbertooutput(sg_programnumber_wt_s[sg_activeweldtimer]+pointtotypeoffset,sg_programnumber_wt_s[sg_activeweldtimer] + pointtotypeoffset+fzgtypwidth - 1,0)
sg_setnumbertooutput(sg_programnumber_wt_s[sg_activeweldtimer],sg_programnumber_wt_e[sg_activeweldtimer],sg_checkprognum_wt[sg_activeweldtimer]) a801-a816检查程序号发出 sg_checkprognum_wt[1]=99
commstep = getcheckvalues 获取检查值
sgl_timercontrol(sg_timerwtcomm,#trestart) 时间监控
case getcheckvalues 获取检查值
checkforcevalue =sg_getnumberfrominputs(sg_force_wt_s[sg_activeweldtimer], sg_force_wt_e[sg_activeweldtimer]) 获得力值
checkforcevalue = (checkforcevalue *sg_checkfactor_wt[sg_activeweldtimer]) +
sg_checkoffset_wt[sg_activeweldtimer]
if ( (checkforcevalue= (sg_checkvalue_wt[sg_activeweldtimer]* 0.95)) ) then 检查力反馈值为400上下5%
commstep = checkprognumberrange 检查程序编号范围
else
continue
if (($timer[sg_timerwtcomm] >= sg_timeouttimewtcom + timeoutextension)) then
sg_checkprogwrong_wter = true
commstep = errorstep
sgl_timercontrol(sg_timerwtcomm,#tstop)
else
commstep = getcheckvalues
endif
endif
case checkprognumberrange 检查程序编号范围
if ((sgw_chckprognumbrange(point_data)) == 1) then 焊点号范围正常
commstep = setnewprogramnumb
else
sg_prognumbbigerio_wter = true
commstep = errorstep
endif
case setnewprogramnumb 设置新程序编号
if (devprocon) then
sg_devpreprognum()
endif
if (vwtimercommand == 1) then 控制器号1
sg_setnumbertooutput(sg_programnumber_wt_s[sg_activeweldtimer]+pointtotypeoffset,sg_programnumber_wt_s[sg_activeweldtimer] + pointtotypeoffset+fzgtypwidth - 1,vwtimerfzgtyp) 发出类型号
else
sg_setnumbertooutput(sg_programnumber_wt_s[sg_activeweldtimer]+pointtotypeoffset,sg_programnumber_wt_s[sg_activeweldtimer] + pointtotypeoffset+fzgtypwidth - 1,0)
endif
sg_setnumbertooutput(sg_programnumber_wt_s[sg_activeweldtimer],sg_programnumber_wt_e[sg_activeweldtimer],sg_programnumber) 发出程序号
if (devprocon) then
sg_devpostprognum()
endif
sg_userpostprognum()
commstep = getpointvalue 获取点值
sgl_timercontrol(sg_timerwtcomm,#tstop) 关闭接口程序
default
endswitch
end
索引表添加91号索引号(截图是97号)
91号程序名称按同服务程序相同(如31、41、51)
• workvisual中焊机已经正确设置了握手程序为91号程序
•手动调用91号程序(截图是97号),查看压力反馈是否为400n
• 91号程序会在每次执行焊接类的指令时先进行调用,检测接收到的压力是否为400,目的是确认同焊机的信号交互是否正常
现代小型化卫星通信设计方案
高效率具有小占用空间的转换器
美颜黑科技!美图M6s自拍出美出新高度
如何在触摸屏组态软件上实时监控农村污水处理PLC
红米Note4X高配版明日开卖:售价1299,来看看性价比如何
关于电伺服焊钳的通讯号设置步骤
Microchip 2021年度新产品汇总(1)
关于视频电缆SYV-75-3技术指标的解析
ThinkStation P620与AMD 的安全处理器之间的差异
HTC对两个现役VR产品进行了更新
如何将物联网真正的运用到社区运营?
国内成熟的AR应用案例有哪些?
一种基于BOC信号的导航发射信道预失真方案
使用合适的高电压运算放大器安全、高效地控制和放大高电压
科创板铂力特董事张凯介绍、履历信息
Fitbit在北京举办了新闻发布会推出了旗下最新的智能手表FitbitVersa™
解决计算机视觉深度学习应用的性能瓶颈问题
茂捷半导体:电源变换器IC可提供100W的功率输出!
汽车照明的四大设计维度
听筒防水透气膜是什么,它的三个优势特点是什么