4MELFA-BASIC V
Detailed explanation of Robot Status Variable 4-333
M_ErCode
[Function]
Returns the detailed error number of the error currently generated.
[Format]
[Terminology]
<Numeric Variable> Specifies a 32-bit long-precision integer number.
(Specifying a 16-bit long-precision integer number will cause an out-of-range
error when substituted.)
Refer to (2) in [Explanation] for the meaning of the read value.
[Reference Program]
1 *LBL: If M_Err=0 Then *LBL ' Waits until an error is generated.
2 MD&=M_ErCode ' Reads the detailed error number (substitutes for the long-preci-
sion integer number).
3 MS%=Int(MD&/1000) Mod 100 ' Obtains two digits of the detailed error number.
[Explanation]
(1) If two or more errors occur, returns the information on the highest level error. (Only one error)
(2) The detailed error number is a number with a maximum of nine digits.
XXXXYYYYY............. XXXX: Four-digit error number displayed by the O/P and T/B
YYYYY: Detailed error number (Content determined by error.)
Example) <Numeric Variable>=M_ErCode