Visual Basic .NET (.NET Framework)


Create Project

 

Launch Visual Studio, select [New]-[Project] from [File] menu.
From the [Templates] of [New Project] dialog box, select [Windows Form Application] of [Visual Basic],
and specify the name and location of the project to be created.
When click the [OK] button, the project will be created.

* Item names and commands may differ depending on the version of Visual Studio.

 

Include Header File

 

In order to use the libmodbus functions in Visual Basic .NET, the following files are required.

 

- For ModbusTCP

  MODBUS.vb

  MODBUSTCP.vb

 

- For ModbusRTU

  MODBUS.vb

  MODBUSRTU.vb

 

Add each file from [Project]-[Add Existing Item].