![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686423.webp)
WWW.NNC.IR
Macro Reference
421
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
Call
Executes the registered user-defined function.
Format
Call <subroutineIdent>[; | , <argument>...]
Parameter
Return value
None.
Description
Calls a user-defined function with the specified identification name by the <subroutineIdent> parameter and
executes the function. If the user-defined function has arguments, the specified data by the <argument>
parameter is passed to the user-defined function. In the <argument> parameter, specify an argument
according to the user-defined function definition.
Register a user-defined function with the SetUserSubroutine function before executing this function.
How user-defined functions work depends on the defined processes in external DLL files.
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
If a user-defined function that is not registered is specified for a parameter, an "Illegal function call" error will
occur.
If a character string longer than 255 characters is specified for a character string parameter, a "String too
long" error will occur.
In case an error is returned as a result of the user-defined function execution, this Call function will return one
of the following errors.
• Syntax error
• Illegal function call
• Out of memory
• Type missmatch
If this macro function calls a user-defined function that has not been programmed with a supported interface,
an error occurs during the user-defined function processing.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Parameter
name
Data type
Description
<subroutineIdent>
Character
string type
Identification name of the user-defined function that has been registered
<argument>
Integer type
Double
precision real
number data
type
Character
string type
Argument of the user-defined function that has been registered
Summary of Contents for fh-1 series
Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 881: ...WWW NNC IR...