FC6A SERIES MICROS MART L ADDER PROGRAMMING M ANUAL FC9Y-B172625-1525: D ATA L OG INSTRUCTIONSTRACE (Data Trace)The filename of created CSV files is as follows:• All-in-One CPU module:The CSV file name is "DATE.csv." The date when the DLOG instruction is turned on is used as DATE.Example: When the date is December 30, 2015, the file name is "20151230.csv".• Plus CPU module:A new folder "YYYYMMDD" (Year, Month, and Date) is created and csv files are stored in the folder. Underscore "_" and 2-digitnumber "00 to 99" are appended to the csv filenames. When the file size exceeds the log data file size, a new file is created and2-digit number is incremented and appended to the filename.Example: When the date is April 1, 2017 and the first file in the day is created, the file is "20170401\20170401_00.csv."When a CSV file with the same date does not exist in the folder designated by S1, the CSV file is created and the trace data isoutput. The oldest data is output at the top of the trace data, and the latest data is output at the bottom of the trace data.Output exampleWhen a CSV file for the same date already exists in the folder designated by S1, the header and trace data are appended to theCSV file.Output exampleWhen the execution of the TRACE instruction finishes, the device designated by D1 is turned on and the status code is stored tothe device designated by D2 according to the execution result. For status codes, see "3. D2 (destination 2): Execution Status" onpage 25-17.The TRACE instruction saves the values for the previous number of scans for thespecified device in the specified data format as a CSV file on the SD memory card.When the input is turned on, the date and time and the values of the previousscans for the specified device are output to the CSV file in the folder assigned byS1. When the execution of the instruction finishes, the device assigned by D1 isturned on and the execution status is stored to the device assigned by D2.When the folder assigned by S1 does not exist on the SD memory card, thatfolder is created. The folder path is "FCDATA01\TRACE\User specified folder." Fordetails on the folder structure, see Chapter 11 "SD Memory Card" in the "FC6ASeries MICROSmart User’s Manual".D1*****S1*****TRACE D2*****Triggered at: 2012/02/06 08:30:23 Header row 1Scan D0010 Header row 2Old 12345 Data 2 scans before12345 Data 1 scan beforeNew 12345 Latest dataTriggered at: 2012/02/06 08:30:23Scan D0010Old 1234512345New 12345Triggered at: 2012/02/06 17:16:15 Appended header row 1Scan D0010 Appended header row 2Old 1212 Appended data 2 scans before1212 Appended data 1 scan beforeNew 1212 Appended latest data