![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686560.webp)
WWW.NNC.IR
Macro Reference
558
Vision System FH/FZ5 Series
User’s Manual (Z340)
Goto
Move the process to the statement line with a specified label.
Format
Goto <label>
Parameter
Return value
None.
Description
Move the process to the specified line number or label name in the <label> parameter.
To return to the calling subroutine where the Return statement is used, use the Gosub function.
If the specified label does not exist for a parameter, an "Undefined label" error will occur.
If the specified line number does not exist for a parameter, an "Undefined line number" error will occur.
If the specified data type in the parameter is incorrect, a "Syntax error" error will occur.
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.
Usage Cautions
• None.
Example
Uses the *MEASUREPROC subroutine in the Unit Macro processing unit to move the programming process
to the *PROC2 labeled line and output the text string to the system status console window. If the first Goto
statement is rewritten to jump the process to the *PROC1 labeled line or the *PROC3 labeled line, the
process ends without taking any action. Similarly, if the first Goto statement is skipped, the process moves to
the *PROC3 labeled line and the process ends without taking any action.
Parameter
name
Data type
Description
<label>
Integer type
Character
string type
Move destination line number or move destination label name
*MEASUREPROC
Rem Move the process to another line
Goto *PROC2
*PROC1
Goto *PROC3
*PROC2
Print "PROC1"
*PROC3
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...