Beiträge anzeigen

Diese Sektion erlaubt es ihnen alle Beiträge dieses Mitglieds zu sehen. Beachten sie, dass sie nur solche Beiträge sehen können, zu denen sie auch Zugriffsrechte haben.


Nachrichten - juhataipale

Seiten: [1]
1
oscat.lib fuer CoDeSys 3 / Re: DLOG_STORE_FILE_CSV
« am: 23. August 2018, 19:43:21 »
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?

Thank you for the programs and quick response!
I got the programs work with codesys 2.3.

The DTI is ticking yes, though the time is not real time. I have not found yet a way to get systemtime, since Raspberry does not have RTC.
I am now using RTC function block and fixing the time with PDT.

The location.
Oh yes, I found couple files in PlcLogic folder, even I am using only '/' for path.

So, after many try and error I found combination of parameters that made it write.
But now, I changed only the filename and tried again and it is not working again.

TRIG_M I only need to trig, not keep it TRUE all the time?
Will the program write the file immediately, or once the buffer is full?

Do I need the STRUCTS: DLOG_DATA, NW_BUF_LONG, UNI_CIRCULAR_BUFFER_DATA, inside my Application? Or is it enough they just exist in the library and OSCAT NETWORK library is there?

What about GVL Constants (NETWORK_BUFFER_LONG_SIZE, variable). Does it need to be in project or it is enough it is inside library?

-Juha

[gelöscht durch Administrator]

2
BECKHOFF / Re: DLOG_STORE_FILE_CSV
« am: 22. August 2018, 21:19:22 »
open the library as a project and see the folder "demo".

Please, how is this done? Can this be done also codesys 3?

Zitat
take a look at the example DLOG_FILE_CSV


use the parameter "auto_close" so that the data is written regularly to the file and the file is also closed so that you can read it.

3
oscat.lib fuer CoDeSys 3 / Re: DLOG_STORE_FILE_CSV
« am: 22. August 2018, 16:53:43 »
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]

Seiten: [1]