6 How to Use Operation Logs
6-5
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
6
6-2-3 Setting the Execution Log
6-2-3 Setting the Execution Log
Double-click DB Connection Service Settings under Configurations and Setup - Host
Connection Settings - DB Connection in the Multiview Explorer. Then, set the following in the
Service Setting.
Item Description Values
Execution log Set whether to record the Execution Log. - Record (Default)
Number of files Set the maximum number of files of the Execution Log.
When the maximum number of files is reached, the
oldest file is deleted and a new file is created.
2 to 100 files
(Default: 48)
Number of records Set the number of log records that can be contained in
each Execution Log file.
When the maximum number of records is reached, a
100 to 65536 records
(Default: 7200)
You can record a specified log as Execution Log using a DB_PutLog (Record Operation Log)
instruction. The logs recorded by a DB_PutLog (Record Operation Log) instruction are called
“user-specified log”.
To record a user-specified log, set Log Type to Execution Log and specify the log code, log name,
and log message in a DB_PutLog (Record Operation Log) instruction and execute the instruction.
Refer to Appendix DB Connection Instructions for details of the DB_PutLog (Record Operation
Log) instruction.
6-2-4 Checking the Execution Log
Refer to 6-6 Checking the Operation Logs for how to check the Execution Log.
6-2-5 Execution Log File Specifications
This section describes the specifications of Execution Log files.
Each Execution Log file is composed of multiple records.
Each record is expressed in one line.
The maximum number of records to be contained in each Execution Log file is set in Sysmac
Studio.
The size of each record is 256 bytes max.
The following table shows the file name and type.
Latest log file of the log
DB_ExecutionLog_[year_month_date_hours_minutes_seconds_milliseconds].log*
Example:
DB_ExecutionLog_20120724220915040.log
* The system time of the CPU Unit is used for the time information included in the file name.
The files are stored in the following directory (of the SD Memory Card).
Log files:
/packages/DB_Connection/ExecutionLog/
Log control file:
/packages/DB_Connection/System/