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

From SoftMC-Wiki
Jump to: navigation, search
(ErrorHistory$ examples)
(ErrorHistory$ examples)
Line 1: Line 1:
{{MC-Basic
+
{{MC-BasicfckLR|SHORT FORM=fckLRfckLRfckLR|SYNTAX=fckLR?ErrorHistory$(<format>)fckLRfckLR|AVAILABILITY=fckLRAll versionsfckLRfckLR|DESCRIPTION=fckLRThis query displays the log file containing the last 64 errors that occurred in the system. Each errol log includes the next fields :fckLRfckLRDatefckLRfckLRTimefckLRfckLRSeverity: Note, Error, Fault or Fatal Fault.fckLRfckLRCode: The specific error ID (described in the Error Code List of the Installation Manual document).fckLRfckLRTask: The program in which the error happened.fckLRfckLRFile: The name of the program or library, including the code/function, that returns the error.fckLRfckLRModule: Interpreter, Language, System, Motion, etc.fckLRfckLRMessage: The short error description.fckLRfckLRThe type of display is determined by the value of the format parameter. 0 for regular display and 1 for JSON (JavaScript Object Notation).fckLRfckLR|TYPE=fckLR<''return value''>: String<br>fckLR<''fromat''>: Long<br>fckLRfckLRfckLR|RANGE=fckLR<''format''>: 0 or 1<br>fckLRfckLRfckLR|UNITS=fckLRfckLRfckLR|DEFAULT=fckLRfckLRfckLR|SCOPE=fckLRTerminalfckLRfckLR|LIMITATIONS=fckLRRead onlyfckLRfckLR|EXAMPLE=fckLR?ErrorHistory$(0)fckLRfckLR-->?errorhistory$(0)fckLRfckLR-----------------------------------------------------------------------------------------------------------fckLR Date Time Severity Code Task File Line/Addr. Module MessagefckLR-----------------------------------------------------------------------------------------------------------fckLR28/01/2021 11:55:34.696 Error 8001 B101085C.PRG B101085C.PRG 9 Interpreter "Division by zero.", uuid: 6c25dddf-3e78-47c4-9079-fc30f58eae11, sernum: 1fckLRfckLR-->?errorhistory$(1)<br>fckLR{"error":[fckLR{"date": "28/01/2021","time": "11:55:34.696","severity": "Error","code": 8001,"task": "B101085C.PRG","file": "B101085C.PRG","line": 9,"module": "Interpreter","message": "Division by zero.","uuid": "6c25dddf-3e78-47c4-9079-fc30f58eae11","sernum": 1}fckLRfckLR|SEE ALSO=fckLR* [[MC-Basic:ERRORHISTORY|ERRORHISTORY]]fckLR* [[MC-Basic:ERROR|ERROR]]fckLR* [[MC-Basic:ERRORHISTORYCLEAR|ERRORHISTORYCLEAR]]fckLR* [[MC-Basic:ERRORHISTORYDELTA|ERRORHISTORYDELTA]]fckLR* [[MC-Basic:ERRORNUMBER|ERRORNUMBER]]fckLR* [[MC-Basic:task.ERROR|task.ERROR]]fckLR* [[MC-Basic:task.ERRORNUMBER|task.ERRORNUMBER]]fckLRfckLR[[Category:MC-Basic:Error Handling|ERRORHISTORY]]fckLR}}
|SHORT FORM=
 
 
 
 
 
|SYNTAX=
 
?ErrorHistory$(<format>)
 
 
 
|AVAILABILITY=
 
All versions
 
 
 
|DESCRIPTION=
 
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, 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 display and 1 for JSON (JavaScript Object Notation).
 
 
 
|TYPE=
 
<''return value''>: String<br>
 
<''fromat''>: Long<br>
 
 
 
 
 
|RANGE=
 
<''format''>: 0 or 1<br>
 
 
 
 
 
|UNITS=
 
 
 
 
 
|DEFAULT=
 
 
 
 
 
|SCOPE=
 
Terminal
 
 
 
|LIMITATIONS=
 
Read only
 
 
 
|EXAMPLE=
 
?ErrorHistory$(0)
 
 
 
-->?errorhistory$(0)
 
 
 
-----------------------------------------------------------------------------------------------------------
 
  Date     Time       Severity   Code Task         File         Line/Addr. Module         Message
 
-----------------------------------------------------------------------------------------------------------
 
28/01/2021 11:55:34.696 Error       8001 B101085C.PRG B101085C.PRG         9 Interpreter   "Division by zero.", uuid: 6c25dddf-3e78-47c4-9079-fc30f58eae11, sernum: 1
 
 
 
-->?errorhistory$(1)
 
{"error":[
 
{"date": "28/01/2021","time": "11:55:34.696","severity": "Error","code": 8001,"task": "B101085C.PRG","file": "B101085C.PRG","line": 9,"module": "Interpreter","message": "Division by zero.","uuid": "6c25dddf-3e78-47c4-9079-fc30f58eae11","sernum": 1}
 
 
 
|SEE ALSO=
 
* [[MC-Basic:ERRORHISTORY|ERRORHISTORY]]
 
* [[MC-Basic:ERROR|ERROR]]
 
* [[MC-Basic:ERRORHISTORYCLEAR|ERRORHISTORYCLEAR]]
 
* [[MC-Basic:ERRORHISTORYDELTA|ERRORHISTORYDELTA]]
 
* [[MC-Basic:ERRORNUMBER|ERRORNUMBER]]
 
* [[MC-Basic:task.ERROR|task.ERROR]]
 
* [[MC-Basic:task.ERRORNUMBER|task.ERRORNUMBER]]
 
 
 
[[Category:MC-Basic:Error Handling|ERRORHISTORY]]
 
}}
 

Revision as of 12:14, 28 January 2021