Difference between revisions of "MC-Basic:ERRORHISTORYDELTA$"

From SoftMC-Wiki
Jump to: navigation, search
(ErrorHistoryDelta$)
 
(ErrorHistoryDelta$ Info)
 
Line 18: Line 18:
 
Time
 
Time
  
Severity:         Note, Error, Fault or Fatal Fault.
+
Severity: Note, Info, Error, Fault or Fatal Fault.
  
Code:             The specific error ID (described in the Error Code List of the Installation Manual document).
+
Code: The specific error ID (described in the Error Code List of the Installation Manual document).
  
Task:             The program in which the error happened.
+
Task: The program in which the error happened.
  
File:             The name of the program or library, including the code/function, that returns the error.
+
File: The name of the program or library, including the code/function, that returns the error.
  
Module:           Interpreter, Language, System, Motion, etc.
+
Module: Interpreter, Language, System, Motion, etc.
  
Message:         The short error description.
+
Message: The short error description.
  
 
The type of display is determined by the value of the format parameter. 0 for regular format and 1 for JSON (JavaScript Object Notation).
 
The type of display is determined by the value of the format parameter. 0 for regular format and 1 for JSON (JavaScript Object Notation).
Line 58: Line 58:
 
----------------------------------------------------------------------------------------------------
 
----------------------------------------------------------------------------------------------------
  
Date         Time   Severity Code Task             File   Line/Addr. Module Message
+
Date Time Severity Code Task File Line/Addr. Module Message
  
 
-------------------------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------------------------
  
21/01/200712:56:01 Error     3183 TPJOG.PRG TP.LIB 775     Motion "In group SCARA. Settling time expired"
+
21/01/200712:56:01 Error 3183 TPJOG.PRG TP.LIB 775 Motion "In group SCARA. Settling time expired"
  
 
----------------------------------------------------------------------------------------------------
 
----------------------------------------------------------------------------------------------------

Latest revision as of 14:45, 28 January 2021

This query displays the logs of the last errors that occurred in the system since the former call of ErrorHistoryDelta.ErrorHistoryClear command and system rebootalso clear the ErrorHistoryDelta log.

Each error log includes the next fields:

Date

Time

Severity: Note, Info, Error, Fault or Fatal Fault.

Code: The specific error ID (described in the Error Code List of the Installation Manual document).

Task: The program in which the error happened.

File: The name of the program or library, including the code/function, that returns the error.

Module: Interpreter, Language, System, Motion, etc.

Message: The short error description.

The type of display is determined by the value of the format parameter. 0 for regular format and 1 for JSON (JavaScript Object Notation).

Syntax

?ErrorHistoryDelta$(<format>)

Availability

Since Version 4.5.25

Type

<return value>: String
<format>: Long

Range

<format>: 0 or 1

Scope

Terminal

Limitations

Read only, relates only to ErrorHistoryDelta calls in current boot.

Examples

?ErrorHistoryDelta$(0)


Date Time Severity Code Task File Line/Addr. Module Message


21/01/200712:56:01 Error 3183 TPJOG.PRG TP.LIB 775 Motion "In group SCARA. Settling time expired"


See Also