hit counter script

Addition - Mitsubishi Electric Melsec Q Series Programming Manual

Motion controller (sv13/sv22)
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

5 OPERATION CONTROL PROGRAMS

5.4.2 Addition : +

Format
[Usable data]
Setting
16-bit
data
Bit device
integer
type
(S1)
(S2)
[Setting data]
Setting data
[Functions]
[Errors]
[Program examples]
(S1)+(S2)
Word device
64-bit
32-bit
floating
integer
point
type (L)
type (F)
(S1)
(S2)
(1) The data specified with (S2) is added to the data specified with (S1).
(2) When (S1) and (S2) differ in data type, the data of the smaller data type is
converted into that of the greater type before operation is performed.
(1) An operation error will occur if:
• (S1) or (S2) is an indirectly specified device and its device No. is outside the
range.
(1) Program which substitutes the result of adding K123 and #0 to W0
W0 = K123 + #0
W0
579
(2) Program which substitutes the result of adding #0F and #10 to D0L
D0L = #0F + #10
D1
D0
D0L
12468
The 64-bit floating-point type data are used for addition, and the result is
converted into the 32-bit integer type and then substituted.
Usable Data
Constant
16-bit
32-bit
Coasting
integer
integer type
timer
type (K/H)
(K/H, L)
Description
Augend data
Addend data
#0F
12468.789
5 - 15
F/FS
Number of basic steps
64-bit
Calculation
conditional
floating
expression
expression
point
type (K)
Data type of result
Data type of (S1) or (S2)
which is greater
123
#0
456
#3
#2
#1
12345.789
+
123
#10
G
4
Bit
Comparison
conditional
expression
: Usable
#0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents