![background image](http://html1.mh-extra.com/html/omron/fh-1-series/fh-1-series_user-manual_742686467.webp)
WWW.NNC.IR
Macro Reference
465
8
App
end
ice
s
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:
NUM& = 0
Rem Repeat the process
Do
NUM& = NUM& + 1
Loop While NUM& < 100
Print NUM&
Summary of Contents for fh-1 series
Page 8: ...WWW NNC IR 6 Vision System FH FZ5 Series User s Manual Z340...
Page 14: ...WWW NNC IR 12 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 22: ...WWW NNC IR 20 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 48: ...WWW NNC IR Initializing the Controller 46 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 68: ...WWW NNC IR Editing Scene Groups 66 Vision System FH FZ5 Series User s Manual Z340 MEMO...
Page 881: ...WWW NNC IR...