增加导出DLL工程。
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
// TestDll.cpp : 定义控制台应用程序的入口点。
|
||||
//
|
||||
|
||||
#include "stdafx.h"
|
||||
#include "..\MachineInterfaceDll\MachineInterfaceDll.h"
|
||||
|
||||
int _tmain(int argc, _TCHAR* argv[])
|
||||
{
|
||||
SSI_STATUS_MOTION status=Machine_Startup(false,false);
|
||||
double dPos(0.0);
|
||||
bool bb;
|
||||
status=Motion_GetPositionR(dPos);
|
||||
status=Motion_SetPositionR(dPos,true);
|
||||
status=Motion_IsHomed(bb);
|
||||
status=Motion_IsFinished(bb);
|
||||
status=Motion_MoveR(1);
|
||||
status=Machine_Sutdown();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user