Omron SYSMAC FH Series User Manual page 560

Vision sensor vision system
Hide thumbs Also See for SYSMAC FH Series:
Table of Contents

Advertisement

Goto
Move the process to the statement line with a specified label.
Format
Goto <label>
Parameter
Parameter
Data type
name
Integer type
<label>
Character
string type
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.
*MEASUREPROC
Rem Move the process to another line
Goto *PROC2
*PROC1
Goto *PROC3
*PROC2
Print "PROC1"
*PROC3
Return
558
Macro Reference
Move destination line number or move destination label name
WWW.NNC.IR
Description
Vision System FH/FZ5 Series
User's Manual (Z340)

Advertisement

Table of Contents
loading

Table of Contents