如下图所示,SecsLite 库由核心库(Core Library)和 GEM 库两部分组成。 核心库实现了 HSMS 和 SECS-II 标准的内容,但通常情况下,用户无需直接调用。如果设备软件仅支 持用 C/C++开发,则必须使用核心库。 SecsLite 库也提供了.NET 版本的核心库,当需要为设备开发非 GEM 通信功能时可以直接使用。 通常情况下,用户可使用 SecsLite 库中的 GemEquipment 类来实现设备的 SECS/GEM 功能。
.NET 版的 SecsLite 库为 SecsLiteNet.dll,在客户程序中引用即可。
HSMS 和 SECS-II 功能相关的定义,在 SecsLite 命名空间里。
using namespace SecsLite;
GEM 功能: using namespace SecsLite.Gem
系统需求
操作系统:
WIN7 以上版本 .NET Framework 版本:4.0 以上
开发工具 :Visual Studio 2015以上
-
基本定义.......................................................................................................................................................8
2.1 枚举值...........................................................................................................................................8
2.1.1 ACKC7.................................................................................................................................8
2.1.2 ACKC10...............................................................................................................................8
2.1.3 COMMACK......................................................................................................................... 8
2.1.4 DRACK................................................................................................................................ 8
2.1.5 EAC...................................................................................................................................... 9
2.1.6 HCACK................................................................................................................................ 9
2.1.7 HsmsMode......................................................................................................................... 9
2.1.8 LRACK.................................................................................................................................9
2.1.9 ONLACK........................................................................................................................... 10
2.1.10 SecsErrorCode............................................................................................................... 10
2.1.11 SecsFormat......................................................................................................................10
2.1.12 SecsResult....................................................................................................................... 11
2.1.13 SecsSendFlag................................................................................................................. 11
2.1.14 TIAACK..............................................................................................................................11
2.1.15 TIACK.................................................................................................................................11
2.1.16 ALCDCode........................................................................................................................11
2.1.17 ALCDState........................................................................................................................12
2.2 HsmsConfig 类........................................................................................................................13
2.3 SecsItem 类..............................................................................................................................13
2.3.1 构造函数............................................................................................................................ 13
2.3.2 成员变量............................................................................................................................ 14
2.3.3 成员函数............................................................................................................................ 14
2.4 SecsUtil 类................................................................................................................................15
2.4.1 成员函数............................................................................................................................ 15
2.5 AlarmItem 类............................................................................................................................15
2.6 EventItem 类............................................................................................................................ 15
2.7 DVItem 类..................................................................................................................................16
2.8 SVItem 类.................................................................................................................................. 16
2.9 ECItem 类..................................................................................................................................16
3 GEM 功能...................................................................................................................................................17
3.1 GEM 枚举值.............................................................................................................................. 17
3.1.1 FSMCommunicationState.State.................................................................................17
3.1.2 FSMControlState.State.................................................................................................。。。。。。