beautypg.com

Bin dec, Bin2dec – Rockwell Automation 1336T Function Block Prog. Manual, Series A/B User Manual

Page 67

background image

Function Block Library

4–5

1336 FORCE — 5.9 August 1995

BIN2DEC

BLOCK TYPE 3 decimal 3 hexadecimal

Binary to Dec

ID =

Exec =

Output

NODE 0

In Bit 0

NODE 1

In Bit 1

NODE 2

In Bit 2

NODE 3

In Bit 3

NODE 4

In Bit 4

NODE 5

In Bit 5

NODE 6

In Bit 6

NODE 7

In Bit 7

NODE 8

In Bit 8

NODE 9

In Bit 9

NODE 10

In Bit 10

NODE 11

In Bit 11

NODE 12

In Bit 12

NODE 13

In Bit 13

NODE 14

In Bit 14

NODE 15

In Bit 15

NODE 16

BIN

DEC

DEFINITION

Combines 16 logical input words In Bit 0In Bit 15 into 1 decimal
output word Output.

INPUTS

In Bit 0In Bit 15 — Logical input words.

OUTPUT

Output — A decimal output word.

FUNCTION

If In Bit 0 = 0, Output bit 0 = 0.
If In Bit 0

0, Output bit 0 = 1.

If In Bit 15 = 0, Output bit 16 = 0.
If In Bit 15

0, Output bit 16 = 1.

PARAMETERS

DATA TYPE

LINKABLE

DEFAULT VALUE

RANGE

In Bit 0 15

Logic Input

Yes

0

True/False

Out Output

Signed Integer

No

±

32767