![background image](http://html1.mh-extra.com/html/omron/fz4-series/fz4-series_user-manual_1633222212.webp)
4
Using
Tool
210
Using Custom Command
FZ4 User's Manual
Description
The commands between For and Next are repeated and executed while changing from the initial value
of the variable to the ending value.
The commands between For and Next are repeated and executed while changing from the initial value
of the variable to the ending value.
The Step statement and <Increment> can be omitted, and when omitted, the Increment is set to +1.
The <Variable Name> after Next can be omitted.In this case it becomes equivalent to the <Variable
Name> after For.
For each time the For-Next loop is executed, the value specified by the initial value is added to and
assigned to the numeric variable.
The Exit For command is executed to forcefully exit the loop while the For ... To ... Step - Next is
executing.
Control is moved from outside the For block to within using the Goto command, etc. Moving control from
inside the block to outside it cannot be done.
Example
Output the Judgement Result of each processing unit(unit1-unit4).
DATA&=0
For I&=1 To 4
DATA&=UnitJudge(I&)
If DATA&=1 Then
DrawTextG "Unit"+Str$(I&)+" Result: OK",100,I&*100,0
Else
DrawTextG "Unit"+Str$(I&)+" Result: NG",100,I&*100,0
EndIf
Next
Input terminal all point input
GetAll(<ioIdent>)
Parameters
<ioIdent>
Identification name (string) of I/O module
Return Value
Returns the value of the integer.
The content of the value is the input binary data.
Description
Identification name (string) of I/O module that executes received processing is specified in
argument<ioIdent>.
The content of operation depends on the specification of the I/O module.
Reference:
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: ......