3/19/2024 8:56 AM | |
Joined: 10/6/2023 Last visit: 5/16/2024 Posts: 37 Rating:
|
Hello, I am now trying to figure out how i can read/write to a file in WinCC with Visual Basic. There are a few tags like FileName that don't seem to be recognised when i compile. In the example project i can see they just write the tag name in the code without a problem but i am not able to get it to work like in the project. My project does differ from the example because the example is in RT Advanced and i am using RT Profesionnal. Does anyone know what i have to do to make it recognise the tag in the code so it compiles and i can test it? |
Last edited by: Jen_Moderator at: 03/20/2024 09:27:28Link optimized. With kind regards, |
|
3/19/2024 11:13 AM | |
Joined: 7/19/2022 Last visit: 9/12/2024 Posts: 384 Rating:
|
Hello Creasu, You can use the code in WinCC Professional but there are certain aspects that differ from WinCC Advance to WinCC Professional. For example, access to a variable is done with HMIRuntime.Tags("variable name"). You should do something like this with the variables: dim tag Set tag = HMIRuntime.Tags("variable") tag.Read and to concatenate text with variable value: ts.WriteLine(tag.Value & " text " ..... |
If this Information really helps, you could use the Rate function |
|
3/20/2024 9:42 AM | |
Joined: 7/5/2013 Last visit: 9/10/2024 Posts: 3111 Rating:
|
Hi Creasu, have a look in the SIMATIC WinCC Engineering V19 - Programming reference. Regards, Frink |
Pi is exactly three! |
|
Follow us on