Skip to main content
3-Newcomer
June 11, 2023
Solved

Interface between OPC server and VB6.0

  • June 11, 2023
  • 1 reply
  • 1573 views

OPC Software: KEPserverEX (Kepware OPC server software)

Third party software: VB6.0 (Visual Basic 6.0) (OPC Client)

 

There is a channel, device and tag items are available in Kepware OPC server and would like to read value of OPC tags into VB6.0 software using OPC DA or any other easy method. I would like to read/write value of OPC tag from VB6.0 software. Could you please help me providing the source code and supported files so that I can assemble in my computer without any issue. Thank you.

 

 

Best answer by rjanardan

Probably the easiest method would be to interact with the Kepware REST server in the IoTGateway. You should be able to use WinHTTP library in VB code to make REST calls to read or write tag values. For more details, refer the section "Working with a REST Server" in the IoT Gateway Manual.

Please note that I am not a VB programmer. Hence, neither do I have sample code nor have I tested this myself. 

1 reply

rjanardan16-PearlAnswer
16-Pearl
June 21, 2023

Probably the easiest method would be to interact with the Kepware REST server in the IoTGateway. You should be able to use WinHTTP library in VB code to make REST calls to read or write tag values. For more details, refer the section "Working with a REST Server" in the IoT Gateway Manual.

Please note that I am not a VB programmer. Hence, neither do I have sample code nor have I tested this myself.