1/29/2016 5:59 PM | |
Posts: 3 Rating: (0) |
Hello , I need help:( I want to measurement a electric from analog input, so i need to registration that to csv file. How can i? |
1/29/2016 6:54 PM | |
Joined: 9/27/2006 Last visit: 10/11/2024 Posts: 12287 Rating: (2685) |
Hello Mateusz; The accuracy of our answers will depend on the family of Siemens CPU you plan to work with. Datalogging is available (in CSV format) in the S7-1200 family, for example:
From the S7-1200 System manual:
https://support.industry.siemens.com/cs/ww/en/view/36932465
Data logs
Your control program can use the Data log instructions to store run-time data values in persistent log files. The data log files are stored in flash memory (CPU or memory card). Log file data is stored in standard CSV (Comma Separated Value) format. The data records are organized as a circular log file of a pre-determined size.
The Data log instructions are used in your program to create, open, write a record, and close the log files. You decide which program values will be logged by creating a data buffer that defines a single log record. Your data buffer is used as temporary storage for a new log record. New current values must be programmatically moved into the buffer during run-time.
When all of the current data values are updated, you can execute the DataLogWrite instruction to transfer data from the buffer to a data log record.
Have a look at the following Application Example:
Process Data Acquisition and Monitoring with SIMATIC S7-1200 (Data Logging)
https://support.industry.siemens.com/cs/ww/en/view/64396156 Hope this helps, Daniel Chartier |
Follow us on