Rockwell Automation 1336T Function Block Prog. Manual, Series A/B User Manual

Page 113

Advertising
background image

Function Block Library

4–51

1336 FORCE — 5.9 August 1995

2ADD

BLOCK TYPE 26 decimal 1A hexadecimal

Two Input Add

ID =

Exec =

Output

NODE 0

Input #1

NODE 1

Input #2

NODE 2

DEFINITION

Sums two signed numbers Input #1 and Input #2. The output Output
is clamped to

±

32767 should the sum exceed these limits.

INPUT

Input #1 — A signed integer between

±

32767.

Input #2 — A signed integer between

±

32767.

OUTPUT

Output — A signed integer between

±

32767.

FUNCTION

Output = Input #1 + Input #2.

PARAMETERS

DATA TYPE

LINKABLE

DEFAULT VALUE

RANGE

Input #1

Signed Integer

Yes

0

±

32767

Input #2

Signed Integer

Yes

0

±

32767

Output

Signed Integer

No

±

32767

EXAMPLES

EXAMPLE 1

EXAMPLE 2

EXAMPLE 3

Input #1

1

32767

– 32767

Input #2

2

4

– 10

Output

3

32767

– 32767

Advertising