Binary Operations; Substitution - Mitsubishi Electric R16MTCPU Programming Manual

Hide thumbs Also See for R16MTCPU:
Table of Contents

Advertisement

4.5

Binary Operations

Substitution: =

Format
(D)=(S)
Setting data
■Usable data
: Usable
Setting
Usable Data
data
Bit
Word device
device
16-bit
integer
type
(S)
(D)
■Description, data type of result
Setting data
Description
(S)
Word device/constant/calculation expression to be substituted
(D)
Word device which will store the operation result
Processing details
• The data value specified with (S) is substituted to the specified word device at (D).
• When (S) and (D) differ in data type, the data at (S) is converted into the data type of (D) and the resultant data is
substituted. (When (D) is a 16- or 32-bit integer type and (S) is a 64-bit floating-point type, the fraction part of (S) is
discarded.)
Operation error
An operation error will occur if:
• The data at (S) is outside the data type range of (D).
• (D) or (S) is an indirectly specified device and its device No. is outside the range.
Number of basic steps
8
Constant
32-bit
64-bit
16-bit
integer
floating
integer
type (L)
point
type
type (F)
(K/H)
Usable steps
F/FS
Calculation
expression
32-bit
64-bit
integer
floating
type
point
(K/H, L)
type (K)
Data type of result
Data type of (D)
4 OPERATION CONTROL PROGRAMS
G
Bit
Comparison
conditional
conditional
expression
expression
131
4.5 Binary Operations
4

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

R64mtcpuMelsec iq-r seriesR32mtcpu

Table of Contents