3/4/2024 1:15 PM | |
Joined: 8/3/2009 Last visit: 5/17/2024 Posts: 12970 Rating: (1651)
|
Hello To build a string in Javascript use + and not a & (you would use in VB). so your lines should look like this: let path = "/media/simatic/X61/" + tag1.Read() let path2 = path + ".jpg" And path2.Read() is also not correct, because a script internal variable do not have a Read method like a HMI Tag. Only use it by its name. If you are not sure what you get in these lines then use the Trace function for diagnose These and other information you can see in this FAQ: https://support.industry.siemens.com/cs/de/en/view/109758536 bye Murof |
Last edited by: Murof at: 03/04/2024 13:18:10If this Information really helps, you could use the Rate function |
|
Follow us on