![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686741.webp)
WWW.NNC.IR
Macro Reference
739
8
App
end
ice
s
Vision System FH/FZ5 Series
User’s Manual (Z340)
SetUserSubroutine
Register a user-defined function that has been defined in the external DDL file.
Format
SetUserSubroutine <subroutineIdent>, <dllFileName>, <functionName>
Parameter
Return value
None.
Description
Registers the function that is defined in the specified DLL file by the <dllFileName> and has a specified
function name by the <functionName> parameter as the specified identification name by the
<subroutineIdent> parameter. If registered by this macro function, the user-defined functions can be called
using the Call function and specify the identification names.
In the <dllFileName> parameter, specify the file name without the file extension ".dll".
Normally use the SetUserSubroutine statement in the *MCRINIT subroutine and execute the subroutine to
perform this macro function, or execute this macro function before executing the Call function.
User-defined functions can only be registered by executing this the SetUserSubroutine function using the
macro customize function. Execute this command on all processing units, all scene control macros in all
scene, and all communications commands in all communications command macros that call and execute
user-defined functions.
If an incorrect data type is specified for a parameter, a "Type mismatch" error will occur.
If a non-existent number, numerical value, or combination of data types or values is specified for a parameter,
an "Illegal function call" error will occur.
If a character string longer than 255 characters is specified in the <subroutineIdent> parameter or the
<functionName> parameter, a "String too long" error will occur.
If a character string of a file name (including the absolute path name) longer than 255 characters is specified
in the <dllFileName> parameter, a "String too long" error will occur.
If a registered user-defined function by this macro function has not been programmed with the supported
interfaces, an error will not occur. In this case, an error will occur at the execution of the user-defined function
processing with this Call function.
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 to the user-defined function to be registered
<dllFileName>
Character
string type
DLL file name
<functionName>
Character
string type
User-defined function name to be registered
Содержание 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...