Dlog (Data Log) - IDEC MICROSmart FC6A Series Ladder Programming Manual

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

25: D
L
ATA
Introduction
This chapter describes the data log instructions that save the log data of specified devices to the SD memory card.
The Plus CPU module can switch between two save methods: basic mode and advanced mode. In basic mode, the file name is
automatically determined.
In advanced mode, you set the file name, and the file name is changed at the desired time.

DLOG (Data Log)

DLOG
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:
For the name of the CSV file, set the desired name in WindLDR. A device value and the date can be added to the set file name.
Example: If the file name is "LOG", the value is "12345" (zero suppression: 5 digits), and the date is 2017/4/1 23:59:01, then the
file name is "LOG_12345_170401_235901.csv".
When a file with the same date does not exist in the folder designated by S1, the CSV file is created and the header and the log
data is output.
Output example
Time
2015/12/30 08:30:23
When a file with the same date already exists in the folder designated by S1, only the log data is appended to the CSV file.
Output example
Time
2015/12/30 08:30:23
2015/12/30 17:30:23
When the execution of DLOG instruction finishes, the device designated by D1 is turned on and the status code is stored to the device
designated by D2 according to the execution result. For status codes, see "3. D2 (destination 2): Execution Status" on page 25-4.
I
OG
NSTRUCTIONS
S1
D1
D2
*****
*****
*****
D0010
Header
12345
Log data
D0010
12345
1212
Appended log data
FC6A S
MICROS
ERIES
MART
The DLOG instruction saves the values of the specified devices in the specified
data format as a CSV file on the SD memory card.
When the input is on, the date and time and the values of the specified devices
are output to the CSV file in the folder assigned by S1. When the execution of the
instruction finishes, the device assigned by D1 is turned 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, that
folder is created. The folder path is "FCDATA01\DATALOG\User specified folder."
L
P
M
ADDER
ROGRAMMING
ANUAL
FC9Y-B1726
25-1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents