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

Function Block Library
4–9
1336 FORCE — 5.9 August 1995
DEC2BIN
BLOCK TYPE 5 decimal 5 hexadecimal
Dec to Binary
ID =
Exec =
NODE 0
Input
Out Bit 15
NODE 16
Out Bit 14
NODE 15
Out Bit 13
NODE 14
Out Bit 12
NODE 13
Out Bit 11
NODE 12
Out Bit 10
NODE 11
Out Bit 9
NODE 10
Out Bit 8
NODE 9
Out Bit 7
NODE 8
Out Bit 6
NODE 7
Out Bit 5
NODE 6
Out Bit 4
NODE 5
Out Bit 3
NODE 4
Out Bit 2
NODE 3
Out Bit 1
NODE 2
Out Bit 0
NODE 1
BIN
DEC
DEFINITION
Takes 1 unsigned decimal input word Input and produces 16 logical
output words Out Bit 0 to Out Bit 15.
INPUT
Input — A decimal input word.
OUTPUT
Out Bit 0 – Out Bit 15 — Logical output words.
FUNCTION
If Input bit 0 = 0, Out Bit 0 = 0.
If Input bit 0 = 1, Out Bit 0 = 65535.
•
•
•
If Input bit 15 = 0, Out Bit 15 = 0.
If Input bit 15 = 1, Out Bit 15 = 65535.
PARAMETERS
DATA TYPE
LINKABLE
DEFAULT VALUE
RANGE
Input
Unsigned Integer
Yes
0
0 – 65535
Out Bit 0 – 15
Logic Output
No
—
True/False