Hi, First, I’m a complete novice using datalogger and PLCnext(first project with this controller). I have a project, where I need to log a real variable(from a dail indicator by RS232) on a rising_edge detection of an input from the machine Overall data structure is „Ordernumber“=Filename. Under the order number I have 7 different rows. in each rows I have 27 different rounds or batches. In each round/batch I have to make xxxx numbers of logging the real variable. My first plan is to use the DATALOGGER function blocks to create a CSV file named ORDERNUMBER/ROW.CSV, and then have 27 colums with logged data. These 7 CSV files then need to be imported in an Excel macro template(that I also have to program, but have done something simular before so this doesnt scare me). Would the RT DATALOGGER be a better choise? and does anybody have a guide for a novice on how to set it up? Thanks in advance Kim
Hello kim_precht, RT DATALOGGER loggs the data into SQLite database. It is possible to export the logged data into .csv File manually, but I assume you need the data in .csv format. For your requirement, I would like to recommend you the DataLogger Library, this library can be used in IEC61131 program and the FB save the data in a csv file. Please find the library (with documentation and example) in PLCnext store: https://www.plcnextstore.com/919/ (https://www.plcnextstore.com/919) If you have additional questions, please don’t hesitate to ask. Best Regards Eduard
Hello Eduard Thank you for you reply. I will stay on my first plan then. Are there a functionblock for transfering the CSV file to a serverfolder when the order is done? Best regards Kim
Hello Kim, yes, example includes also the file transfer via FTP to the server. If you would like to know more about the RT-DataLogger Service, you can find the description in Plcnext InfoCenter under following link: https://www.plcnext.help/te/Service_Components/DataLogger/DataLogger_concept.htm The RT-DataLogger-Service offers more performance (number of logged variables (about 900), sample rate (1ms)) but it is neccessary to log the data in SQLite database (is more performant than writing to the csv file). If you have a few variables and the sample rate can be 2ms and more, then you can also use the DataLogger Library. Under following Link, you can find the „SimpleLogger Library“, I think it can be also used in your application: https://www.plcnextstore.com/884/ Best Regards, Eduard


