3 extended add (addx (++)), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 95

Advertising
background image

5.3 Numeric Operation Instructions

5.3.3 Extended Add (ADDX (++))

5-26

5.3.3 Extended Add (ADDX (++))

( 1 ) Operation

Input data A and input data B are added and the result is stored in the output data.
Overflows are not treated as operation errors. Operation continues from the maximum value in the negative direction.
Underflows are not treated as operation errors. Operation continues from the maximum value in the positive direction.

„

Output Data Behavior

Œ

In the example shown above, the output data is integer data. With double-length integers, adding 1 to
2,147,483,647 (7FFFFFFF hex) results in -2,147,483,648 (80000000 hex).

Œ

Unlike operations for the ADD, SUB, or EXPRESSION instructions, overflows and underflows do not occur.

( 2 ) Format

∗ C and # registers cannot be used.

Input data A

Output data

Input data B

Extended Add

++

Output data (See notes.)

0

32,767 (7FFF hex)

−32,768 (8000 hex)

+1

32,767

-32,768

+1

Input data B

Output data

Input data A

Icon:

Key entry: ++

Parameter Name

Applicable Data Types

B

W

L

F

A

Index

Constant

Input data A (SrcA)

×

{

{

×

×

{

{

Input data B (SrcB)

×

{

{

×

×

{

{

Output data (Dest)

×

{

*

{

*

×

×

{

×

Advertising
This manual is related to the following products: