FSServer OPC Server DLL说明

  • 格式:doc
  • 大小:175.00 KB
  • 文档页数:30

OPC Server DLL, by FactorySoft, Inc. 1 Table of Contents Table of Contents ........................................................................................................................................... 1 Introduction ................................................................................................................................................... 2 When should the FSServer DLL be used? ................................................................................................. 2 The Application’s Responsibility ............................................................................................................... 3

How to make a Server using the FSServer DLL ......................................................................................... 3 Create a CLSID .......................................................................................................................................... 4 Override the Callback classes .................................................................................................................... 5

FSServer DLL Functions .............................................................................................................................. 6 StartFSServer() .......................................................................................................................................... 6 StopFSServer() .......................................................................................................................................... 6 RegisterServer() ......................................................................................................................................... 7 UnregisterServer() ..................................................................................................................................... 7 SetCallbackObject() ................................................................................................................................... 7 FSServerInUse() ........................................................................................................................................ 8 MatchPattern() ........................................................................................................................................... 8

Class Reference .............................................................................................................................................. 9 The CTag class .......................................................................................................................................... 9 The COPCCallback class ......................................................................................................................... 10 CreateBrowser().................................................................................................................................... 11 SetUpdateRate() .................................................................................................................................... 11 AddTag() ............................................................................................................................................... 12 ValidateTag() ........................................................................................................................................ 13 Remove() ............................................................................................................................................... 14 GetTagAccessPath() ............................................................................................................................. 14 GetTagName()....................................................................................................................................... 15 GetTagLimits() ...................................................................................................................................... 15 Scan() .................................................................................................................................................... 16 Read() ................................................................................................................................................... 17 ReadTag() ............................................................................................................................................. 18 Write() ................................................................................................................................................... 19 WriteTag() ............................................................................................................................................. 20 GetErrorString() ................................................................................................................................... 21 GetVendorString()................................................................................................................................. 21 QueryNumProperties () ......................................................................................................................... 22 QueryAvailableProperties () ................................................................................................................. 23 GetItemProperties () ............................................................................................................................. 24 LookupItemIDs () .................................................................................................................................. 25 The COPCBrowser class.......................................................................................................................... 26 ~COPCBrowser() .................................................................................................................................. 26 QueryOrganization() ............................................................................................................................. 26 MoveUp() .............................................................................................................................................. 26 MoveDown() ......................................................................................................................................... 27 GetNames() ........................................................................................................................................... 28 GetItemID() ........................................................................................................................................... 29 Next() .................................................................................................................................................... 29 Reset() ................................................................................................................................................... 29