Binary Operations; Substitution - Mitsubishi Electric Q173CPU Programming Manual

Q series motion controller
Hide thumbs Also See for Q173CPU:
Table of Contents

Advertisement

7 OPERATION CONTROL PROGRAMS

7.4 Binary Operations

7.4.1 Substitution : =

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S)
(D)
[Setting data]
Setting data
[Functions]
[Errors]
[Program examples]
(D)=(S)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
Word device/constant/calculation expression to be
(S)
(D)
Word device which will store the operation result
(1) The data value specified with (S) is substituted to the specified word device at (D).
(2) 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.)
(1) An operation error will occur if:
• The data at (S) is outside the data type range of (D); or
• (D) or (S) is an indirectly specified device and its device No. is outside the
range.
(1) Program which substitutes the D0 value to #0
#0 = D0
123
#0
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
substituted
7 - 10
F/FS
Number of basic steps
Bit
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
Data type of (D)
123
D0
G
4
Comparison
conditional
expression
: Usable

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Q173cpunQ172cpuQ172cpun

Table of Contents