6 How to Use Operation Logs
6-14
NJ/NX-series Database Connection CPU Units User’s Manual (W527)
6-3-6 Checking the Debug Log
Refer to 6-6 Checking the Operation Logs for how to check the Debug Log.
6-3-7 Debug Log File Specifications
This section describes the specifications of Debug Log files.
ï‚– Each Debug Log file is composed of multiple records.
ï‚– The maximum size of each Debug Log file is set in Sysmac Studio.
ï‚– The size of each record is 58 KB max.
ï‚– The following table shows the file name and type.
Latest log file of the log
DB_DebugLog_[year_month_date_hours_minutes_seconds_milliseconds].log*
Example:
DB_DebugLog_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/DebugLog/
- Log control file:
/packages/DB_Connection/System/
ï‚– The record format is shown below.
Each record is expressed in one line and composed of multiple parameters. The parameters are
separated from each other by a tab.
[Serial number]<tab>[Date]<tab>[Time]<tab>[Millisecond]<tab>[Category]<tab>[Log code]<tab>[Log name]<tab>
[Result]<tab>[DB Connection name]<tab>[Serial ID]<tab>[Details]<CR><LF>
Serial number 1 to 5 bytes 0 to 65535
When exceeding 65535, this value returns to 0.
The serial number is given across multiple files. (Even if a new file is
created, the serial number is not reset to 0.)
Date 10 bytes (Fixed) Displays year, month, and date when the log was recorded.
*1
YYYY-MM-DD
Time 8 bytes (Fixed) Displays hours, minutes, and seconds when the log was recorded.
*1
hh:mm:ss
Millisecond 3 bytes (Fixed) Displays 3-digit decimal integer (000 to 999) that shows millisecond of
the time when the log was recorded.
*1
Example: 10 ms: 010
Log code 4 bytes (Fixed) Displays a 4-digit decimal code that is a unique identification code in
Displays a name that shows the contents of the log.
*4