beautypg.com

Instruction 70- double-word 2’s complement – Maple Systems MAPware-7000 User Manual

Page 119

background image

111

MAPware-7000 Ladder Logic Guide

1010-1041 rev. 00

Instruction 70- Double-word 2’s Complement

Expression:

Space Requirement: 1 line x 5 column Location Requirement: Middle, Right rail

Function:

When the input is ON, this instruction finds the 2’s complement value of double-word data
A+1×A, and stores it in B+1×B..

Execution Condition:

Input

Operation

Output

OFF

No execution

OFF

ON

Execution

ON

Operand:

Coil or Bit

Register

Constant

Index

Name

X

Y B

S

T.

C.

M

X
W

Y
W

B
W

S
W

T C

D

I

J

K

M
W

A

Source

√ √

B

Destination

√ √

Example:

When X007 is ON, the 2’s complement value (sign inverted data) of double-word register
BW41×BW40 is stored in double-word register D0051×D0050.

For example, if BW41×BW40 is -1234567890, the 2’s complement value 1234567890 is stored in
D0051×D0050.

Note:

-

The data range of A+1× A is -2147483648 to 2147483647. If the data of A+1× A is -
2147483648, the same data -2147483648 is stored in B+1× B.