Difference between revisions of "MC-Basic:ERRORHISTORY$"
(ErrorHistory$) |
(ErrorHistory$ Info) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
|SYNTAX= | |SYNTAX= | ||
− | ?ErrorHistory | + | ?ErrorHistory$(<format>) |
|AVAILABILITY= | |AVAILABILITY= | ||
Line 16: | Line 16: | ||
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). | ||
Line 27: | Line 27: | ||
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). | ||
|TYPE= | |TYPE= | ||
+ | <''return value''>: String<br> | ||
+ | <''format''>: Long<br> | ||
+ | |||
|RANGE= | |RANGE= | ||
− | + | <''format''>: 0 or 1<br> | |
|UNITS= | |UNITS= | ||
Line 47: | Line 52: | ||
|EXAMPLE= | |EXAMPLE= | ||
− | ?ErrorHistory | + | ?ErrorHistory$(0) |
− | -->?errorhistory | + | -->?errorhistory$(0) |
---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- | ||
Line 62: | Line 67: | ||
|SEE ALSO= | |SEE ALSO= | ||
+ | * [[MC-Basic:ERRORHISTORY|ERRORHISTORY]] | ||
* [[MC-Basic:ERROR|ERROR]] | * [[MC-Basic:ERROR|ERROR]] | ||
* [[MC-Basic:ERRORHISTORYCLEAR|ERRORHISTORYCLEAR]] | * [[MC-Basic:ERRORHISTORYCLEAR|ERRORHISTORYCLEAR]] | ||
Line 69: | Line 75: | ||
* [[MC-Basic:task.ERRORNUMBER|task.ERRORNUMBER]] | * [[MC-Basic:task.ERRORNUMBER|task.ERRORNUMBER]] | ||
− | [[Category:MC-Basic:Error Handling|ERRORHISTORY]] | + | [[Category:MC-Basic:Error Handling|ERRORHISTORY$]] |
}} | }} |
Latest revision as of 14:46, 28 January 2021
This query displays the log file containing the last 64 errors that occurred in the system. Each errol 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
?ErrorHistory$(<format>)
Availability
All versions
Type
<return value>: String
<format>: Long
Range
<format>: 0 or 1
Scope
Terminal
Limitations
Read only
Examples
?ErrorHistory$(0)
-->?errorhistory$(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"