EasyManua.ls Logo

Omron SYSMAC FH Series

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Other manuals for Omron SYSMAC FH Series

Related product manuals