Standard Arithmetic Functions; Addition - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

5.3

Standard Arithmetic Functions

Addition

ADD_E
High
Basic
Process
performance
Structured ladder/FBD
ADD_E
EN
ENO
s1
s2
to
s28
The following function(s) can go in the dotted squares.
ADD_E
■Argument
Input/output
argument
Input argument
Output argument
Processing details
■Operation processing
• Performs addition ((s1)+(s2)+  +(s28)) on word (signed), double word (signed), single-precision real or double-precision
real type data input to (s1) to (s28), and outputs the operation result from (d) in the same data type as that of (s1) to (s28).
Ex.
Word (signed) type data
s1
+
1234
Word (signed) type
• The values to be input to (s1) to (s28) are word (signed), double word (signed), single-precision real or double-precision
real type data.
• The number of pins of (s) can be changed in the range from 2 to 28.
• If an underflow/overflow occurs in the operation result, data is output from (d) as follows.
Word (signed) type data
No operation error occurs even if an underflow/overflow occurs.
In case of ADD_E, TRUE is output from ENO.
32767 +
2 = -32767
(7FFFH) (0002H) (8001H)
-32768 + (-2) = 32766
(8000H) (FFFEH) (7FFEH)
5 APPLICATION FUNCTIONS
126
5.3 Standard Arithmetic Functions
LCPU
Redundant Universal
ST
ENO:=
ADD_E
d
Name
Description
EN
Executing condition (TRUE: Execution, FALSE:
Stop)
s1 to s28(_IN)
Input
ENO
Execution result (TRUE: Normal, FALSE: Error)
d
Output
s2
5678
Word (signed) type
Since the highest-order bit is 1, the result value is negative.
Since the highest-order bit is 0, the result value is positive.
(EN, s1, s2 ... s28, d);
d
6912
Word (signed) type
Data type
Bit
ANY_NUM
Bit
ANY_NUM

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents