oscat.lib > oscat.lib fuer CoDeSys 3

DLOG_STORE_FILE_CSV

(1/2) > >>

Elko:
Hallo,

ich möchte Prozessdaten aus einer Produkttestanlage in einer Laborumgebung loggen.

Ich habe folgendes Problem.
Eine CSV Datei wird erzeugt nur nach jeder Minute geschlossen und eine neue begonnen. Leider geht der Testvorgang über mehrere Stunden wo alle 10 bis 15 Minuten einmal die aktuellen Daten geloggt werden.

Mach ich ein Fehler, oder gibt es ein Parameter in der diese Funktion eingestellt werden muss?

Danke im Voraus.


[gelöscht durch Administrator]

peewit:
hallo

deine mitteilung habe ich nicht so ganz verstanden
aber ich fang mal an...


durch das #r im dateinamen ergibt sich jede neue minute eine neue datei

trig_m dient zum manuellen auslösen einer Datenaufzeichnung
trigt_t dient zum automatischen aufzeichnen nach einer gewissen vergangenen zeit

wenn du innerhalb der minute keine datenaufzeichnung auslöst dann ist die datei logischerweise auch ohne daten

wann löst du denn nun trig_m aus und wie oft ?
 

Elko:
Hallo

danke für die Antwort, hat mich bereits weitergebracht.

Das Problem bestand darin, dass jede Minute eine Datei erzeugt wird. "trig_m" setze ich in einer Ablaufsteuerung. Aber es lag an dem #R im Dateiname, dass habe ich in der Bibliothek-Dokumentation überlesen.

Vielen Dank

juhataipale:
Hello,

from where I can find the demo for DLOG_STORE_FILE_CSV or how I can get it to my codesys 3?
I red somewhere that demos are hidden somehow, but I cannot find them anywhere.

Inside OSCAT Network, there is folder DEMO, but there is only demo of WEATHER station or so.

I can not get my CSV writing to work.

Attached is picture of my setup.
I have tried also other filepaths. Structs are there.

For my understanding it should create a csv-file when I trigg manually, but no file is created.

[gelöscht durch Administrator]

peewit:
hello

the oscat_network library of codesys store does not contain the demo programs
you can export the demo programs yourself from the codesys 2.x library or you take them from the attached zip file.


about your problem

did you connect a real running clock to DTI?
you never get an error with ERROR_T and ERROR_C?

the data is first collected in an internal buffer and only written to a file after certain criteria.

disable "enable" after some data recordings (trig_m).
the file should be written in any case

maybe the file will be written to a different location than you think?



[gelöscht durch Administrator]

Navigation

[0] Themen-Index

[#] Nächste Seite

Zur normalen Ansicht wechseln