Omron FZ4 Series User Manual page 220

Vision sensor
Table of Contents

Advertisement

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
4
Moves the processing to the specified subroutine.
Gosub <Label>
Parameters
<Label>
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
218
Using Custom Command
Label (Label) for the movement destination.
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents