Maple Systems MAPware-7000 User Manual

Page 53

Advertising
background image

45

MAPware-7000 Ladder Logic Guide

1010-1041 rev. 00

Expression:

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

Function:

When the input is ON, the double-word data of B+1× B is subtracted from A+1× A, and the result
is stored in C+1× C. The data range is -2147483648 to 2147483647.

If the result is greater than 2147483647, the upper limit value 2147483647 is stored in C+1× C,
and the output is turned ON. If the result is smaller than -2147483648, the lower limit value -
2147483648 is stored in C+1× C, and the output is turned ON.

Execution Condition:

Input

Operation

Output

OFF

No execution

OFF

ON

Execution (normal)

OFF

Execution (overflow or underflow condition)

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

Minuend

√ √

B

Subtrahend

√ √

C

Difference

√ √

Example:

When B005 is ON, the double-word data of BW25×BW24 is subtracted from the double-word
data of D0101×D0100, and the result is stored in D0103×D0102.

If the data of D0101×D0100 is 1580000 and the data of BW25×BW24 is 80000, the result
1500000 is stored in D0103×D0102, and B010 is turned OFF. (No overflow/underflow).

Advertising