4 OPERATION CONTROL PROGRAMS
4.5 Binary Operations
131
4
4.5 Binary Operations
Substitution: =
■Usable data
: Usable
■Description, data type of result
• 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.)
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.
Format Number of basic steps Usable steps
F/FS G
(D)=(S) 8
Setting
data
Usable Data
Bit
device
Word device Constant Calculation
expression
Bit
conditional
expression
Comparison
conditional
expression
16-bit
integer
type
32-bit
integer
type (L)
64-bit
floating
point
type (F)
16-bit
integer
type
(K/H)
32-bit
integer
type
(K/H, L)
64-bit
floating
point
type (K)
(S)
(D)
Setting data Description Data type of result
(S) Word device/constant/calculation expression to be substituted Data type of (D)
(D) Word device which will store the operation result