Siemens Industry Online Support
Siemens AG
Entry type: Application example Entry ID: 8731755, Entry date: 09/07/2001

Dynamic setup of a connection between a VB object and a process variable

  • Entry
  • Associated product(s)

How in a VB application can I set up a connection for a specific object to a WinLC process variable?

In your program you can create an object of the type "S7 Number", for which a modifiable connection to various process variables can then be set up. The process variable whose value is to be determined (e.g. a marker byte) is written by the user in an input field during runtime. The program then sets up a connection from the "S7 Number Control" to this process variable and outputs its current value.

The download contains the program described above. The project has been created with Microsoft Visual Basic V6.0 SP4.


Copy the "oper_and.exe" file into a separate directory and then start the file with a double-click. The Visual Basic project then unpacks automatically with all the associated files. You can then use the Visual Basic to open and process the unpacked project.

Process coupling, Indirect variable access

Security information
In order to protect technical infrastructures, systems, machines and networks against cyber threats, it is necessary to implement – and continuously maintain – a holistic, state-of-the-art IT security concept. Siemens’ products and solutions constitute one element of such a concept. For more information about cyber security, please visit
Rate entry
no rating
Requests and feedback
What do you want to do?
Note: The feedback always relates to the current entry / product. Your message will be forwarded to our technical editors working in the Online Support. In a few days, you will receive a response if your feedback requires one. If we have no further questions, you will not hear from us.