2/11/2025 11:30 AM | |
Joined: 5/29/2024 Last visit: 9/12/2025 Posts: 123 Rating:
|
Hi Faabsen! This FAQ can help you! -> Tips and tricks for creating scripts in WinCC (TIA Portal) |
If this Information really helps, you could use the Rate function |
|
8/17/2025 1:05 PM | |
Joined: 7/5/2021 Last visit: 9/11/2025 Posts: 221 Rating:
|
I have taken a look at the exmple posted on the forum: Simple Sample and TIPs - Reading and writing of array as a block It looks like the only difference is how these tags are interfaced to the PLC, using it inside the Wincc runtime seems equivalent to a normal array, besides the fact that you are forced to read it in its entirety. "USB_Name_Rezept is an Array[0..1999] of byte" I believe after doing Tags("USB_Name_Rezept").Read(); you will get a 2000 elements array, I suspect you are violating the length of a valid system folder path and/or filename length, if the string is even being generated at all. I higly doubt that the implicit conversion of doing "string"+array will get you your desired end result. I would decode and trim the data before stringifying it explicitly. are you getting any trace output while executing this script? Spend the 2 minutes it takes to set up traceViewer, it is a fundamental tool while developing scripts. |
Follow us on