新增C# CONSOLE测试DLL功能.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Sys;
|
||||
namespace ConsoleTestDll
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
MACHINEINTERFACEDLL.SSI_STATUS_MOTION rStatus;
|
||||
Console.WriteLine("Machine_Startup.");
|
||||
rStatus = MACHINEINTERFACEDLL.Machine_Startup(false, MACHINEINTERFACEDLL.EHOME_MACHINE_MODE.HOME_XYZ);
|
||||
Console.WriteLine("RStatus:{0}\n",rStatus);
|
||||
Console.WriteLine("Machine_Shutdown");
|
||||
rStatus = MACHINEINTERFACEDLL.Machine_Shutdown();
|
||||
Console.WriteLine("RStatus:{0}\n", rStatus, ".\n");
|
||||
Console.WriteLine("Press enter key to exit...");
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user