AI. - Error Handling

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > ! AI - Error Handling >

AI. - Error Handling

AIC.Show Error

Previous Top Next


MiniRobotLanguage (MRL)

 

AIC.Show Error

Read the Internal Error-Register for multiple AI-Services and Display it

 

 

Intention

 

The AIC.Show Error command reads the internal Error-Register and displays the error message in a Command-Line Window.

This is useful for debugging and understanding what went wrong during the execution of AIC. and all other AI-Commands. commands.

If there is no error recorded, the Command-Line Window will be empty.

 

 

 

Syntax

 

 

AIC.Show Error[|P1]

AIC.Ser[|P1]

 

 

 

 

Parameter Explanation

 

P1: Optional. The variable where the error text will be stored. If omitted, the error text is pushed onto the Top of Stack (TOS).

 

 

 

Example

 

'***********************************

' AIC.-Sample

'***********************************

AIC.Show Error|$$ERR

MBX.$$ERR

ENR.

 

 

 

 

 

Remarks

 

-

 

 

Limitations:

 

-

 

 

See also:

 

    1.6.1. Program Flow Control

    ! Smart Package Robot 's Parallel Robot Operations

    1.5. Features and Hints