您的位置:首页 > 新闻 > 会展 > 衡阳网站优化教程_微信分销系统源码_优化大师的三大功能_关键词优化课程

衡阳网站优化教程_微信分销系统源码_优化大师的三大功能_关键词优化课程

2024/12/7 13:14:54 来源:https://blog.csdn.net/weixin_42350092/article/details/143698331  浏览:    关键词:衡阳网站优化教程_微信分销系统源码_优化大师的三大功能_关键词优化课程
衡阳网站优化教程_微信分销系统源码_优化大师的三大功能_关键词优化课程

  启动按钮夹紧 密闭,时间0到平衡 进气,时间1到进气关,时间2到平衡关 检测,时间3到平衡 排气,时间4到夹紧开、密闭开、排气关。

 相关代码

void CSEAL_PRESSUREDlg::OnTimer_2(UINT nIDEvent_2)
{// if (nIDEvent_2==1 && t_time_2<=theApp.m_sys_data.m_fMaxTime*10)if (nIDEvent_2==1 ){t_time_1++;			YRandom = rand()%3; // Generate Random data  m_ctrlPlot_1.GetChannel(0).AddXY(t_time_1/10, YRandom );} if (nIDEvent_2==1 && t_time_2<theApp.m_edit_time0*10){t_time_2++;DO6408Bit(theApp.nAddr_1,theApp.O_1[0],1);//夹紧		DO6408Bit(theApp.nAddr_1,theApp.O_1[1],1);//密闭SetDlgItemText(IDC_EDIT_MESSAGE,"夹紧\密闭");} else if ( t_time_2<theApp.m_edit_time1){t_time_2++;DO6408Bit(theApp.nAddr_1,theApp.O_1[3],1);//平衡开DO6408Bit(theApp.nAddr_1,theApp.O_1[2],1);//进气			  SetDlgItemText(IDC_EDIT_MESSAGE,"夹紧\密闭\r\n平衡\进气");}else if ( t_time_2<theApp.m_edit_time2){ t_time_2++;DO6408Bit(theApp.nAddr_1,theApp.O_1[2],0);//进气关SetDlgItemText(IDC_EDIT_MESSAGE,"夹紧\密闭\r\n平衡\进气\r\n进气关");}else if (t_time_2<theApp.m_edit_time3){t_time_2++;DO6408Bit(theApp.nAddr_1,theApp.O_1[3],0);//平衡关\检测SetDlgItemText(IDC_EDIT_MESSAGE,"夹紧\密闭\r\n平衡\进气\r\n进气关\r\n平衡关\检测");}else if (t_time_2<theApp.m_edit_time4){t_time_2++;DO6408Bit(theApp.nAddr_1,theApp.O_1[3],1);//平衡开DO6408Bit(theApp.nAddr_1,theApp.O_1[4],1);//排气开SetDlgItemText(IDC_EDIT_MESSAGE,"夹紧\密闭\r\n平衡\进气\r\n进气关\r\n平衡关\检测\r\n平衡\排气");}else {DO6408Bit(theApp.nAddr_1,theApp.O_1[4],0);//排气关DO6408Bit(theApp.nAddr_1,theApp.O_1[3],0);//排气关DO6408Bit(theApp.nAddr_1,theApp.O_1[0],0);//夹紧松DO6408Bit(theApp.nAddr_1,theApp.O_1[1],0);//密闭松SetDlgItemText(IDC_EDIT_MESSAGE,"结束");theApp.m_edit_time1= theApp.m_allPara[theApp.m_nProductSel].m_edit_time1;theApp.m_edit_time2= theApp.m_allPara[theApp.m_nProductSel].m_edit_time2;theApp.m_edit_time3= theApp.m_allPara[theApp.m_nProductSel].m_edit_time3;theApp.m_edit_time4= theApp.m_allPara[theApp.m_nProductSel].m_edit_time4;DestroyTimer();DestroyTimer_2();} }

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com