Instruction 31- addition with carry – Maple Systems MAPware-7000 User Manual

Page 65

Advertising
background image

57

MAPware-7000 Ladder Logic Guide

1010-1041 rev. 00

Instruction 31- Addition with carry

Expression:

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

Function:

When the input is ON, the data of A, B and the carry flag (CF = S976) are added, and the result is
stored in C. If the carry occurs in the operation, the carry flag is set to ON. If the result is greater
than 32767 or smaller than -32768, the output is turned ON.

This instruction is used to perform unsigned addition or double-length addition.

Execution Condition:

Input

Operation

Output

ERF

OFF

No execution

OFF

---

Normal

No Carry

OFF

Reset

ON

Execution

Carry Occurred

OFF

Set

Overflow/

No Carry

ON

Reset

Underflow Carry Occurred

ON

Set

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

Augend

√ √

B

Addend

√ √

C

Sum

√ √

Example:

Advertising