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

Page 68

Advertising
background image

Function Block Library

4–6

1336 FORCE — 5.9 August 1995

EXAMPLES

EXAMPLE 1

Example 2

EXAMPLE 3

In Bit 0

False

False

False

In Bit 1

True

True

True

In Bit 2

False

False

False

In Bit 3

False

False

True

In Bit 4

False

False

False

In Bit 5

False

False

True

In Bit 6

False

False

True

In Bit 7

False

False

True

In Bit 8

False

False

True

In Bit 9

False

True

True

In Bit 10

False

False

True

In Bit 11

False

False

True

In Bit 12

False

False

True

In Bit 13

False

False

True

In Bit 14

False

False

True

In Bit 15

False

False

True

Output

2

514

– 22

Example 2 — Output = 514

dec

= 0202

hex

= 0000 0010 0000 0010

binary

0

0

0

0

0

0

1

0

0

0

0

0

0

0

1

0

8

15

14

12

11

10

9

7

6

5

4

3

2

1

0

13

In Bit 0 (NODE 0)

False

In Bit 1 (NODE 1)

True

In Bit 2 (NODE 2)

False

In Bit 3 (NODE 3)

False

D

D

D

D

D

D

D

D

D

D

In Bit 14 (NODE 14)

False

In Bit 15 (NODE 15)

False

Bit #

hex

0

2

0

2

Binary

Output decimal value (NODE 16) = 514

BIN2DEC

(continued)

Advertising