Program Control; Conditional Branch Control: If - Else - Iend - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

4.14

Program Control

Conditional branch control: IF - ELSE - IEND

Format
IF(S) - ELSE - IEND
Setting data
■Usable Data
: Usable
Setting
Usable Data
data
Bit
device
(S)
■Description, data type of result
Setting data
Description
(S)
Conditional data which controls the flow of program
Processing details
• If the data specified with (S) is true, the block between IF and ELSE is executed.
• If the data specified with (S) is false, the block between ELSE and IEND is executed.
• ELSE can be omitted. In that case, the block between IF and IEND is executed only when the data specified with (S) is true.
• Maximum multiplicities of conditional branch control are eight including selective branch control. (SELECT - CASE - SEND)
IF...
IF...
SELECT...
CASE...
CEND
SEND
IEND
IEND
Operation error
In the following case, an operation error will occur, and the corresponding Motion SFC program No. execution will be stopped.
For the subroutine called program, the call source program also stops to execute.
• (S) is indirectly specified device, and the device No. is outside the range.
4 OPERATION CONTROL PROGRAMS
194
4.14 Program Control
Number of basic steps
IF: 8
ELSE: 5
IEND: 1
Word device
16-bit
32-bit
64-bit
integer
integer
floating
type
type (L)
point
type (F)
(3 level) (2 level) (1 level)
Usable steps
F/FS
Constant
16-bit
32-bit
64-bit
integer
integer
floating
type
type
point
(K/H)
(K/H, L)
type (K)
G
Calculation
Bit
expression
conditional
expression
Data type of result
Comparison
conditional
expression

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents