
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
Содержание FZ4 Series
Страница 1: ...User s Manual Cat No Z318 E1 02B Vision Sensor FZ4 Series...
Страница 12: ...1 Before Operation 10 Operation Flow FZ4 User s Manual Operation Flow Here describes the operation flow...
Страница 38: ...1 Before Operation 36 Setting Operation Mode FZ4 User s Manual 1 CPU 2 CPUs FZ4 11 H11 only...
Страница 112: ...3 Performing Test Measurement Starting Operation 110 Useful Functions for Operation FZ4 User s Manual...
Страница 326: ...4 Using Tool 324 Remotely Operating the Controller Remote Operation FZ4 User s Manual Enter the IP address...
Страница 330: ...4 Using Tool 328 Remotely Operating the Controller Remote Operation FZ4 User s Manual...
Страница 351: ...6 Changing the System Environment FZ4 User s Manual Setting the System Operation Environment 349 Communication...
Страница 566: ......
Страница 648: ...8 Appendixes 646 Manual Revision History FZ4 User s Manual...
Страница 654: ...652 FZ4 User s Manual...
Страница 655: ......