![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222220.webp)
4
Using
Tool
218
Using Custom Command
FZ4 User's Manual
dim figure&(10)
'Gets the figure data of processing unit 2
GetUnitFigure 2, 1, figure&()
'A figure is an wide arc
If figure&(0) = 256 Then
'Switch to the wide circle.
figure&(0) = 64
figure&(4) = figure&(6)
SetUnitFigure 2, 1, figure&()
Endif
Moves the processing to the specified subroutine.
Gosub <Label>
Parameters
<Label>
Label (Label) for the movement destination.
Return Value
None.
Description
After processing has been moved to the specified subroutine, it is returned using the Return command
and the processing is moved to the next line after the line the Gosub command had moved processing
to.
Specify the Label name to attach to the starting line of the subroutine to be called in <Label>.
When processing is moved using the Gosub command, always be sure to allow it to return using Return.
In processing where Return is not used, use the Goto statement.
Example
Define a Subroutine (*INITPROC) that will be executed at Macro Program load time.
*MCRINIT
Gosub *INITPROC
Return
*INITPROC
' Initialization processing
Return
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: ......