📄 experiment_watch.cpp
字号:
#include "StdAfx.h"
#include "PLC_DEMO.h"
#include "PLC_DEMODoc.h"
#include "PLC_DEMOView.h"
#include "MainFrm.h"
#include "Makesure_in_out_point.h"
#include "Fetch_communicate.h"
extern int signinput[8];//输入接口状态存储
extern int signoutput[10];//输出接口状态存储
extern int forautotruckinput[2];
extern int forautotruckoutput[7];
extern CPLC_DEMOView *forrun;
extern bool autotruckenable;
UINT Mywatch(LPVOID PHWndView)
{
int xx=1;
//while(xx)
{
if(autotruckenable)
{
Sleep(50);
if((signoutput[forautotruckoutput[1]])
&&(((!signoutput[forautotruckoutput[4]])
||(!signoutput[forautotruckoutput[5]]))
||(!signoutput[forautotruckoutput[6]])))
AfxMessageBox("have wrong");
}
}
return(0);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -