EasyManuals Logo

Mitsubishi MELFA CR1D User Manual

Mitsubishi MELFA CR1D
458 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 #266 background imageLoading...
Page #266 background image
4-253 Detailed explanation of command words
4MELFA-BASIC IV
Wait (Wait)
[Function]
Waits for the variable to reach the designated value.
[Format]
[Terminology]
<Numeric variable> Designate a numeric variable. Use the input/output signal variable (in such cases
as M_In, M_Out) well.
<Numeric constant> Designate a numeric constant.
[Reference Program]
(1) Signal state
1 Wait M_In(1)=1 ' The same meaning as "10 If M_In(1)=0 Then GoTo 10".
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
5 If M_ABC<>0 Then GoTo *L5
Wait[]<Numeric variable>=<Numeric constant>

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Mitsubishi MELFA CR1D and is the answer not in the manual?

Mitsubishi MELFA CR1D Specifications

General IconGeneral
BrandMitsubishi
ModelMELFA CR1D
CategoryController
LanguageEnglish

Related product manuals