Dynamic setup of a connection between a VB object and a process variable
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
- You have a technical question / problem: Ask the Technical Support
- You want to discuss in our forum and exchange experiences with other users
- You want to create CAx data for one or more products
- You would like to send us feedback on this Entry