Omron FZ4 Series User Manual page 212

Vision sensor
Table of Contents

Advertisement

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
4
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>
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:
210
Using Custom Command
Identification name (string) of I/O module
List of IO modules (p.299)
FZ4 User's Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fz4 series

Table of Contents