![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686198.webp)
WWW.NNC.IR
Basic Knowledge For Macro Customize Functions
196
Vision System FH/FZ5 Series
User’s Manual (Z340)
Standard IO commands
When the same command name / command id of standard IO commands are used for customize IO
commands, customize IO command has the priority and the standard IO commands are not executed.
If you execute the standard IO commands after execution of customize IO commands, please add the line as
below.
In this case, standard IO commands is executed just after executing customize IO command.
Calling the procedure defined on the other commands
It is possible to call the procedure defined on the other commands during the command execution.
Each command has "Function name", and it is used to call the procedure.
Example: When command is defined as the table below and we intend to call procedure of CMD0 from CMD1,
the codes for CMD1 should be like this:
This case, the behavior of the command like BUSY depends on the caller (CMD1), and BUSY stays ON until
the end of the procedure.
Define the different procedure according to I/O module
The variable IoIdent$ stores the IO module identification name, which received the current I/O command.
When you define the different procedure for each I/O modules, please make branch by the value of IoIdent$.
Example: The command which receives "Serial" for serial command, and "Ethernet" for UDP normal
CommandExecute&=False
Command No.
Command name
Busy
Function name
0
CMD0
False
FUNC0
1
CMD1
True
FUNC1
Gosub *FUNC0
Please be careful not to make the commands calling each other (In the case above, CMD0 also calls FUNC1), because
it makes infinite loop.
If IoIdent$ = "SerialNormal" Then
Response$ = "Serial"
Elseif IoIdent$ = "UdpNormal" Then
Response$ = "Ethernet"
Endif
IMPORTANT
Содержание 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...