Problem with writing data on USB/SD card TP700

ProTool, WinCC flexible, WinCC, PP/OP/TP/TD/MP
Post Reply
JanRigo
Posts: 24
Joined: Thu Sep 23, 2010 9:24 am
Location: SK

Problem with writing data on USB/SD card TP700

Post by JanRigo » Tue Jul 21, 2015 7:37 am

Hi,


Im finding solution for fixing problem with writing data to .csv on USB or SD card with TP700 comfort panel.

I prepare script which was testing by simulation. It is working and writing data on hard drive to PC . When I modify script for TP700 and after download the problem start. Via breakpoint i see that script is correctly working in TP700 but nothing is writing on USB or SD cards.All what i try is ->

1. Use USB and SD, format with FAT32 on 2GB allocation unit size

2. PC path was defined like : Cesta ="C:\archiv\" - it was writting

USB path was defined like : Cesta ="\Storage Card USB\" - not writting

SD path was defined like : Cesta ="\Storage Card SD\" - not writting


3. Try to historical logging and it was writting data to USB/SD


Can you help me?

dehell
Posts: 104
Joined: Sat Jun 13, 2009 12:25 pm
Location: Europe

Re: Problem with writing data on USB/SD card TP700

Post by dehell » Tue Jul 21, 2015 10:03 am

Hello,
What is the trigger of the script?
If you use smartTag, this smartTag must be continually read...(look at data properties)

JanRigo
Posts: 24
Joined: Thu Sep 23, 2010 9:24 am
Location: SK

Re: Problem with writing data on USB/SD card TP700

Post by JanRigo » Tue Jul 21, 2015 10:06 am

all its good with script, because i read INT like a breakpoint that means script its ok .... i have only problem with writing on USB/SD ...

JanRigo
Posts: 24
Joined: Thu Sep 23, 2010 9:24 am
Location: SK

Re: Problem with writing data on USB/SD card TP700

Post by JanRigo » Tue Jul 21, 2015 10:08 am

this is some of examples like i try to define path ....


Cesta = "\Storage Card USB"
NazovSuboru = "GDI_" & SmartTags("DMC") & ".csv"
If SmartTags("#OP302_HMI.Production.Reset_Req_Production") Then
NazovSuboru = "GDI_" & SmartTags("DMC") & ".csv"
End If

or

Cesta = "\Storage Card USB\"
NazovSuboru = "GDI_" & SmartTags("DMC") & ".csv"
If SmartTags("#OP302_HMI.Production.Reset_Req_Production") Then
NazovSuboru = "GDI_" & SmartTags("DMC") & ".csv"
End If

or

Cesta = "\Storage Card USB\cln"
NazovSuboru = "GDI_" & SmartTags("DMC") & ".csv"
If SmartTags("#OP302_HMI.Production.Reset_Req_Production") Then
NazovSuboru = "GDI_" & SmartTags("DMC") & ".csv"
End If

or

Cesta = "\Storage Card USB\cln\"
NazovSuboru = "GDI_" & SmartTags("DMC") & ".csv"
If SmartTags("#OP302_HMI.Production.Reset_Req_Production") Then
NazovSuboru = "GDI_" & SmartTags("DMC") & ".csv"
End If

dehell
Posts: 104
Joined: Sat Jun 13, 2009 12:25 pm
Location: Europe

Re: Problem with writing data on USB/SD card TP700

Post by dehell » Tue Jul 21, 2015 11:27 am


JanRigo
Posts: 24
Joined: Thu Sep 23, 2010 9:24 am
Location: SK

Re: Problem with writing data on USB/SD card TP700

Post by JanRigo » Tue Jul 21, 2015 11:42 am

I try this example and the same problem .... cannot find path ... error -2147024893

----------------------------------------------
Run-time error '-2147024893 (800070003)'
Automation Error
The system cannot find the path specified
----------------------------------------------

dehell
Posts: 104
Joined: Sat Jun 13, 2009 12:25 pm
Location: Europe

Re: Problem with writing data on USB/SD card TP700

Post by dehell » Tue Jul 21, 2015 12:20 pm

I think that your file name must contain the path :
StoragePath ="\Storage Card USB\"
FName = StoragePath & "GDI_" & SmartTags("DMC") & ".csv"

Post Reply