Repetition - Mitsubishi Electric CR750-Q Instruction Manual

Cr750/cr751/cr760 series
Hide thumbs Also See for CR750-Q:
Table of Contents

Advertisement

4MELFA-BASIC V
*Related functions

Repetition ...........................................................................................

Interrupt..............................................................................................
Subroutine..........................................................................................
External signal input...........................................................................
(2) Repetition
Multiple command statements can be repeatedly executed according to the designated conditions.
*Command word
Command word
For Next
While WEnd
*Statement example
Statement example
For M1=1 To 10 ................................................................
:
Next
For M1=0 To 10 Step 2 .....................................................
:
Next
While (M1 >= 1) And (M1 <= 10) ......................................
:
WEnd
*Related functions
Unconditional branching, branching...................................................
Interrupt..............................................................................................
Input signal wait .................................................................................
4-114 MELFA-BASIC V functions
Function
Repeat between For statement and Next statement until designated conditions are satisfied.
Repeat between While statement and WEnd statement while designated conditions are
satisfied.
Repeat between For statement and Next statement 10 times.
The initial numeric variable M1 value is 1, and is incremented by one with each
repetition.
Repeat between For statement and Next statement 6 times.
The initial numeric variable M1 value is 0, and is incremented by two with each
repetition.
Repeat between While statement and WEnd statement while the value of the numeric
variable M1 is 1 or more and less than 10.
Function
Explanation page
Page 114, "(2) Repetition"
Page 115, "(3) Interrupt"
Page 116, "(4) Subroutine"
Page 118, "(1) Input signals"
Explanation
Explanation
Explanation page
Page 113, "(1) Unconditional branching, conditional branching,
waiting"
Page 115, "(3) Interrupt"
Page 118, "(1) Input signals"

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents