4
Using
Tool
FZ4 User's Manual
Using Custom Command
245
Example
*MEASUREPROC
A&=3
On A& Gosub *A, *B, *C
Return
*A
Print "A"
Return
*B
Print "B"
Return
*C
Print "C"
Return
Branches processing in accordance with the specified condition.
On <Expression> Goto <Label>[,<Label>...]
Parameters
<Expression>
The condition expression that controls branching (integer).
<Label>
Label name for the migration (label).
Return Value
None.
Description
The flow of the program processing moves to the <Label> that corresponds to the value given in
<Expression>.
When the value given by the <Expression> is 1, branching is done to the location specified by the 1st
<Label>. When it is "n", branching is done to the location specified by the nth <Label>.
When the value given by the <Expression> is 0, or when the <Label> has been omitted, program
processing moves to the next line.
When the value of the <Expression> becomes negative, it becomes an error.
Example
Migrate to each label using the current Unit No.
Acesst 1.0 6251194
Summary of Contents for FZ4 Series
Page 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Page 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Page 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Page 566: ......
Page 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Page 654: ...652 FZ4 User s Manual...
Page 655: ......