11 decrement (dec), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 111

Advertising
background image

5.3 Numeric Operation Instructions

5.3.11 Decrement (DEC)

5-42

5.3.11 Decrement (DEC)

( 1 ) Operation

A value of 1 is subtracted from the integer or double-length integer data. No overflow or underflow will occur for
either an integer or double-length integer. This operation handles overflows and underflows in the same way as the
SUBX instruction.

„

Output Data Behavior

Œ

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

( 2 ) Format

∗ C and # registers cannot be used.

Data

Data

− 1

Data

0

-1

32,767

-32,768

-1

-1

-2

32,767 (7FFF hex)

-32,768 (8000 hex)

Parameter Name

Applicable Data Types

B

W

L

F

A

Index

Constant

Data (Dest)

×

{

*

{

*

×

×

{

×

Data

Icon:

Key entry: DEC

Advertising
This manual is related to the following products: