2/17/2025 4:32 PM | |
Joined: 4/28/2015 Last visit: 3/27/2025 Posts: 70 Rating:
|
Hello dear colleagues.
It seems not very hard to do: see this tips Check access and exactly this code:
I supposed i can use the same mechanism to check if our network directory is available or not. In parallel i created the similar check by trying to read file TEST.txt from the same directory using this code:
So, the logic is simple - if after try to access to file or to discover the directory we have an error - so they are not accessible. You will be surprised - but this script is working
|
Last edited by: Moderator_Lan at: 02/18/2025 07:43:21link optimized |
|
7/22/2025 11:07 AM | |
Joined: 8/3/2009 Last visit: 9/4/2025 Posts: 16323 Rating:
|
Hello oep88 What does not work exactly in your script? Use the systemfunction "ShowSystemAlarm" or count up an internal tag to check in which linke your script crashes. then send us your script and where the problem is? Where do you want to store the file? Here is a basic example: https://support.industry.siemens.com/cs/ww/en/view/59604194 But you cannot simulate this!!!!! because on the Panel there are different functinos and objects as on the PC RTSystem (Where also the simulation runs). Bye Murof |
If this Information really helps, you could use the Rate function |
|
7/31/2025 5:37 AM | |
Joined: 8/3/2009 Last visit: 9/4/2025 Posts: 16323 Rating:
|
Hello So the Objects for filehandling are different on WIndows PCs and WinCE Systems like the Comfort Panel. So you cannot use the same Objects in Simulation and on the Panel (or in other words you cannot simulate the code for the panel 1:1) Here are two examples for file handling, one for PC RT/Simulation and one for Comfort Panel(WinCE):
Bye Murof |
If this Information really helps, you could use the Rate function |
|
Follow us on