GXDN: Gurux Developer Network
Gurux DLMS/COSEM component
This guide shows you how to use Gurux DLMS/COSEM component in the Visual Basic environment.
Adding DLMS/COSEM component to the project
  1. Start Visual Basic
  2. Open the project where you want to add the Gurux DLMS/COSEM component, or create the new one
Creating component dynamically
To create component in runtime, select References in the Project menu. The dialog shows available components, select the one(s) to use (in this case Gurux DLMS component). Click OK to finish. The following example shows how to create a DLMS/COSEM component.
  Dim cosem1 As CGXCOSEM
  'Create new component
  Set cosem1= New CGXCOSEM()
Setting Properties
  'Initialize DLMS/COSEM settings.
  'Set client and server IDs. Server and client identifier values depend from manufacturer.
  cosem1.ClientID = (Byte) 3
  cosem1.ServerID = (Byte) 24
  cosem1.IntefaceType = InterfaceType.General
Using the components from development environment

Using from .NET | Using from Visual Basic | Using from C++