EasyManuals Logo

Omron SYSMAC FH Series User Manual

Omron SYSMAC FH Series
882 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #467 background imageLoading...
Page #467 background image
WWW.NNC.IR
Macro Reference
465
8
Appendices
Vision System FH/FZ5 Series
User’s Manual (Z340)
Do Loop While
Repeatedly executes the statements between Do and Loop while the specified condition meets.
Format
Do
<statement>
Loop While <expression>
Parameter
Return value
None.
Description
The statement is repeatedly executed if the specified logical expression by the <expression> parameter is
true as a result of the specified Do block execution by the <statement> parameter.
If the Exit Do statement is used in the Do block statement, the statement force stops the repeating execution
of the program immediately.
If the program process is jumped into or out of the Do block statement using the Goto or Gosub function,
unexpected operation may occur.
If neither the Do statement nor the Loop While statement is used, either the "DO without LOOP", "LOOP
without DO", or "EXIT without DO" error will occur depending on the statement that is used.
If the format is written incorrectly, such as writing the macro function name incorrectly, omitting a comma, or
omitting a half-width space, a "Syntax error" error will occur.
Usage Cautions
• None.
Example
Repeats the process until the loop counter reaches a constant value.
Useable Modules
Unit Calculation Macro / Scene Control Macro / Communication Command Macro / Unit Macro
Parameter
name
Data type Description
<statement> --- Statement to be executed repeatedly
<expression> ---
Conditional logical expression for which gets a repetition of operation (Reference:
XOperator (p.213))
NUM& = 0
Rem Repeat the process
Do
NUM& = NUM& + 1
Loop While NUM& < 100
Print NUM&

Table of Contents

Other manuals for Omron SYSMAC FH Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC FH Series and is the answer not in the manual?

Omron SYSMAC FH Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC FH Series
CategoryIndustrial Equipment
LanguageEnglish

Related product manuals