From c8173fa96f226ff88412d07955fb340de4681ffc Mon Sep 17 00:00:00 2001 From: LAPTOP-SNT8I5JK\Boounion <Chenluhua@qq.com> Date: 星期四, 06 三月 2025 11:21:34 +0800 Subject: [PATCH] 1.实现 CIM model change指令下发到机器。与之前的从CC link读数据逻辑稍有不同,下发指令为写数据,因此,从原CStep派生两个类,CReadStep(用于读数据),CWriteStep(用于写数据),然后根据使用场景选择合适的基数做应用层逻辑。已完成待测试验证 --- SourceCode/Bond/Servo/stdafx.h | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/SourceCode/Bond/Servo/stdafx.h b/SourceCode/Bond/Servo/stdafx.h index 9b9a811..d63dafa 100644 --- a/SourceCode/Bond/Servo/stdafx.h +++ b/SourceCode/Bond/Servo/stdafx.h @@ -33,10 +33,35 @@ #include <afxcontrolbars.h> // 功能区和控件条的 MFC 支持 + // GDI+ #include <gdiplus.h> using namespace Gdiplus; +// CC-LINK模块 +#include "..\MELSECSDK\include\Mdfunc.h" +#pragma comment(lib, "..\\MELSECSDK\\lib\\MdFunc32.lib") + +// 数据库模块 +#include "..\DatabaseSDK\include\Database.h" +#include "..\DatabaseSDK\include\MySQLDatabase.h" +#include "..\DatabaseSDK\include\SQLiteDatabase.h" + +#if defined(_WIN64) +#if defined(_DEBUG) +#pragma comment(lib, "..\\DatabaseSDK\\lib\\x64\\Debug\\DatabaseEx.lib") +#else +#pragma comment(lib, "..\\DatabaseSDK\\lib\\x64\\Release\\DatabaseEx.lib") +#endif +#else +#if defined(_DEBUG) +#pragma comment(lib, "..\\DatabaseSDK\\lib\\Win32\\Debug\\DatabaseEx.lib") +#else +#pragma comment(lib, "..\\DatabaseSDK\\lib\\Win32\\Release\\DatabaseEx.lib") +#endif +#endif + + #include "..\RxWindows1.0\include\RxWindowsLib.h" #include "..\HSMSSDK\Include\HSMSSDK.h" -- Gitblit v1.9.3