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

Page 78

Advertising
background image

Function Block Library

4–16

1336 FORCE — 5.9 August 1995

DOUBLE WORD VALUES

Both the Most Significant Word and the Least Significant Word are
interpreted together by the function algorithm as one word when
using 32 bit values. The range of a double word value is

±

2,147,483,647. The range of the more common, signed single-word

16 bit node is

±

32767.

31

16 15

0

Most Significant Word

Least Significant Word

Node 1

Node 0

Bit 31 is the sign bit, the most significant bit for 32 bit values. For 16
bit values, bit 15 (the sign bit) is the most significant bit.

EXAMPLES

EXAMPLE 1

EXAMPLE 2

Example 3

Example 4

LSW In

15

20

65535

65511

MSW In

0

0

2

– 1

INPUT VALUE

15

20

196607

– 25

Div

4

0

42

5

Output

3

0

4681

– 5

Example 3 — Double Word Input Value = + 196607

dec

= 0002 FFFF

hex

2

dec

65535

dec

0002

hex

FFFF

hex

Most Significant Word

Node 1

Least Significant Word

Node 0

Example 4 — Double Word Input Value = – 25

dec

= FFFF FFE7

hex

– 1

dec

65511

dec

FFFF

hex

FFE7

hex

Most Significant Word

Node 1

Least Significant Word

Node 0

DIVIDE

(continued)

Advertising