15 invert sign (inv), 1 ) operation, 2 ) format – Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 120: 3 ) programming example

Advertising
background image

5.3 Numeric Operation Instructions

5.3.15 Invert Sign (INV)

5-51

Instructions

5

5.3.15 Invert Sign (INV)

( 1 ) Operation

The sign of the input data is inverted and the result is stored in the output data.

( 2 ) Format

∗ C and # registers cannot be used.

( 3 ) Programming Example

In the following programming example, the INV instruction inverts the sign of 12,345 in input data A in MW00000
and stores the result in the output data in ML00002.
-1

×

MW00000 (12,345)

→ ML00002 = -12,345

When performing operations with different data types, the result of the operation will depend on the data type of the output reg-
ister.
Refer to 4.4.2 ( 3 ) Precautions When Using Local Registers within a User Function for details.

Output data

Input data

-1

×

Input data

Output data

Icon:

Key entry: INV

Parameter Name

Applicable Data Types

B

W

L

F

A

Index

Constant

Input data (Src)

×

{

{

{

×

{

{

Output data (Dest)

×

{

*

{

*

{

*

×

{

×

INFO

Advertising
This manual is related to the following products: