M_ErCode
[Function]
Returns the detailed error number of the error currently generated.
[Format]
Example) <Numeric Variable>=M_ErCode
[Terminology]
<Numeric Variable>
[Reference Program]
1 *LBL: If M_Err=0 Then *LBL
2 MD&=M_ErCode
3 MS%=Int(MD&/1000) Mod 100
[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
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.
' Waits until an error is generated.
' Reads the detailed error number (substitutes for the long-preci-
sion integer number).
' Obtains two digits of the detailed error number.
YYYYY: Detailed error number (Content determined by error.)
Detailed explanation of Robot Status Variable 4-333
4MELFA-BASIC V