Mitsubishi MELFA CR1D Instruction Manual page 266

Table of Contents

Advertisement

4MELFA-BASIC IV
Wait (Wait)
[Function]
Waits for the variable to reach the designated value.
[Format]
Wait[]<Numeric variable>=<Numeric constant>
[Terminology]
<Numeric variable>
<Numeric constant>
[Reference Program]
(1) Signal state
1 Wait M_In(1)=1
2 Wait M_In(3)=0
(2) Task slot state
3 Wait M_Run(2)=1
(3) Variable state
4 Wait M_01=100
[Explanation]
(1) This command is used as the interlock during signal input wait and during multitask execution.
(2) The Wait instruction allows the program control to continue to the next step once the specified condition
is met.
(3) In case the Wait instruction is executed in several tasks at one time in the multitask execution status, the
processing time (tact time) may become longer and affect the system. In such cases, use the If-Then
instruction instead of the Wait instruction.
Example) 50 Wait M_ABC=0 .... 4 *L5
4-253 Detailed explanation of command words
Designate a numeric variable. Use the input/output signal variable (in such cases
as M_In, M_Out) well.
Designate a numeric constant.
' The same meaning as "10 If M_In(1)=0 Then GoTo 10".
5 If M_ABC<>0 Then GoTo *L5

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melfa cr2dMelfa cr3d

Table of Contents