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?
Problem with writing data on USB/SD card TP700
-
- Posts: 24
- Joined: Thu Sep 23, 2010 9:24 am
- Location: SK
-
- Posts: 104
- Joined: Sat Jun 13, 2009 12:25 pm
- Location: Europe
Re: Problem with writing data on USB/SD card TP700
Hello,
What is the trigger of the script?
If you use smartTag, this smartTag must be continually read...(look at data properties)
What is the trigger of the script?
If you use smartTag, this smartTag must be continually read...(look at data properties)
-
- Posts: 24
- Joined: Thu Sep 23, 2010 9:24 am
- Location: SK
Re: Problem with writing data on USB/SD card TP700
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 ...
-
- Posts: 24
- Joined: Thu Sep 23, 2010 9:24 am
- Location: SK
Re: Problem with writing data on USB/SD card TP700
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
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
-
- Posts: 104
- Joined: Sat Jun 13, 2009 12:25 pm
- Location: Europe
-
- Posts: 24
- Joined: Thu Sep 23, 2010 9:24 am
- Location: SK
Re: Problem with writing data on USB/SD card TP700
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
----------------------------------------------
----------------------------------------------
Run-time error '-2147024893 (800070003)'
Automation Error
The system cannot find the path specified
----------------------------------------------
-
- Posts: 104
- Joined: Sat Jun 13, 2009 12:25 pm
- Location: Europe
Re: Problem with writing data on USB/SD card TP700
I think that your file name must contain the path :
StoragePath ="\Storage Card USB\"
FName = StoragePath & "GDI_" & SmartTags("DMC") & ".csv"
StoragePath ="\Storage Card USB\"
FName = StoragePath & "GDI_" & SmartTags("DMC") & ".csv"