Files
LM-Middleware/HexcalMC/Program.cs
T
2025-03-29 16:20:59 +08:00

54 lines
1.6 KiB
C#

using HexcalMC.Base;
using System;
using System.Diagnostics;
using System.IO;
using System.Windows.Forms;
////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
//开发说明
// V0.1 2024/03/01
//---------------------------------------
//1、初版构建
//2、调用流程: 开启TCP服务端、连接到平台轴启用—》hexcal软件连接,开启校准通讯流程—》移动至到位后反馈—》hexcal逻辑处理—》hexcal校准完成关系—》软件关闭
//
//
// V0.2 2024/03/07
//---------------------------------------
//1、取消上电自动连接
//2、优化运动窗体间传递 运动平台对象
//3、增加平台位置动态显示
//4、修复运动到位判断逻辑
//5、增加演示模式按钮
//6、点击停止报错,运动测试界面问题?
//7、发现交互过程中,需要hexcal发送指令后,中间件再进行回应,主动回应,hexcal流程有问题
//
//
//
//
//
//
////////////////////////////////////////////////////////////////////////////////////////////////////
namespace HexcalMC
{
internal static class Program
{
[STAThread]
private static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
DebugDfn._strStartTime = DateTime.Now.ToString("yyyy-MM-dd HH-mm-ss");
TextWriter log = new StreamWriter(DebugDfn.StrDebugFile);
TextWriterTraceListener logger;
logger = new TextWriterTraceListener(log);
Trace.Listeners.Add(logger);
MyBase.TraceWriteLine("--软件Main函数开始");
Application.Run(new MainForm());
}
}
}