Comparison Operations; Equal To - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

4.13

Comparison Operations

Equal to: ==

Format
(S1)==(S2)
Setting data
■Usable Data
: Usable
Setting
Usable Data
data
Bit
device
(S1)
(S2)
■Description, data type of result
Setting data
Description
(S1)
Data which will be compared
(S2)
Processing details
• The data specified with (S1) and the data specified with (S2) are compared, and the result is true if they are equal.
• When (S1) and (S2) differ in data type, the data of the smaller data type is converted into that of the greater type before
comparison is performed.
Operation error
An operation error will occur if:
• (S1) or (S2) is an indirectly specified device and its device No. is outside the range.
Program example
■Program which compares whether #0 and D0 are equal or not
#0 == D0
(True)
4 OPERATION CONTROL PROGRAMS
188
4.13 Comparison Operations
Number of basic steps
7
Word device
16-bit
32-bit
64-bit
integer
integer
floating
type
type (L)
point
type (F)
#0
100
==
D0
100
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
Logical type (true/false)
Comparison
conditional
expression

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents