![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686515.webp)
WWW.NNC.IR
Macro Reference
513
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
Errcmnd$
Get the function name of the macro where an error occurred.
Format
Errcmnd$
Parameter
None.
Return value
Returns the character string type value of the upper case letters that represents the macro function name
where the error occurred.
Description
Gets the character string of the macro function name where the error occurred at error occurrence in the
program.
If there is no error in the program or an error occurred as a result of the unrelated operations to the macro
functions such as a division by zero operation, a null string is returned.
Use this macro function in the Try-Catch-End Try statement.
If a value is assigned to the return value variable or the variable is not used in an expression, a "Syntax error"
error will occur.
Usage Cautions
• None.
Example
Outputs the error information to the system status console window only if the error is occurred in the
GetUnitData statement process in the *MEASUREPROC subroutine within the Unit Macro processing unit. If
an error is occurred in other macro function statement in the subroutine, the measurement processing ends
without taking any action.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
*MEASUREPROC
Try
GetUnitData 5, 5, CR#
SetUnitData 6, 143, CR#
Catch
If Errcmnd$ = "GetUnitData" Then
Print Errcmnd$
Endif
End Try
Return
Содержание fh-1 series
Страница 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Страница 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 132: ...WWW NNC IR Useful Functions for Operation 130 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 172: ...WWW NNC IR Saving Scene Groups in External Memory 170 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 254: ...WWW NNC IR Basic Knowledge For Macro Customize Functions 252 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Страница 650: ...WWW NNC IR Macro Reference 648 Vision System FH FZ5 Series User s Manual Z340 Related Items None...
Страница 881: ...WWW NNC IR...