Program Control; Conditional Branch Control: If - Else - Iend - Mitsubishi Electric Melsec Q Series Programming Manual

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

5 OPERATION CONTROL PROGRAMS

5.17 Program Control

5.17.1 Conditional branch control: IF - ELSE - IEND

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S)
[Setting data]
Setting data
[Functions]
Ver.!
IF(S) - ELSE - IEND
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
(S)
Conditional data which controls the flow of program
(1) If the data specified with (S) is true, the block between IF and ELSE is executed.
(2) If the data specified with (S) is false, the block between ELSE and IEND is
executed.
(3) ELSE can be omitted. In that case, the block between IF and IEND is executed
only when the data specified with (S) is true.
(4) Maximum multiplicities of conditional branch control are eight including selective
branch control. (SELECT - CASE - SEND)
IF...
IF...
SELECT...
CASE...
CEND
SEND
IEND
IEND
Ver.!
: Refer to Section 1.3 for the software version that supports this function.
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
(3 level) (2 level) (1 level)
5 - 152
F/FS
Number of basic steps
Bit
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
G
IF
: 4
ELSE : 3
IEND : 1
Comparison
conditional
expression
: Usable

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents