Mitsubishi Electric CR750-Q Instruction Manual page 306

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

Advertisement

4MELFA-BASIC V
Select Case (Select Case)
[Function]
Executes one of multiple statement blocks according to the condition expression value.
[Format]
Select[] <Condition>
Case[]<Expression>
[<Process>]
Break
Case[]<Expression>
[<Process>]
Break
:
Default
[<Process>]
Break
End[]Select
[Terminology]
<Condition>
<Expression>
<Process>
[Reference Program]
1 Select MCNT
2 M1=10
3 Case Is <= 10
4 Mov P1
5 Break
6 Case 11
6 Case 12
7 Mov P2
8 Break
9 Case 13 To 18
10 Mov P4
11 Break
12 Default
13 M_Out(10)=1
14 Break
15 End Select
4-286 Detailed explanation of command words
Describe a numeric operation expression.
Describe an expression using the following format. The type must be the same as the
condition expression.
*IS <Comparison operator> <Constant>
*<Constant>
*<Constant> To <Constant>
Writes any command (other than the GoTo command) provided by MELFA-BASIC V.
' This line is not executed
' MCNT <= 10
'MCNT=11 OR MCNT=12
'13 <= MCNT <= 18
' Other than the above.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cr750Cr751-qCr751-dCr760-dCr760-qCr750-d

Table of Contents