Publication 1762-RM001C-EN-P
11-2 Conversion Instructions
DCD - Decode 4 to
1-of-16
Instruction Type: output
The DCD instruction uses the lower four bits of the source word to set
one bit of the destination word. All other bits in the destination word are
cleared. The DCD instruction converts the values as shown in the table
below:
DCD
Decode 4 to 1 of 16
Source N7:0
0000h<
Dest N7:1
0000000000000000<
DCD
Table 11.2 Execution Time for the DCD Instruction
Controller When Rung Is:
True False
MicroLogix 1200 1.9
µ
s0.0
µ
s
MicroLogix 1500 0.9
µ
s0.0
µ
s
Table 11.3 Decode 4 to 1-of-16
Source Bits Destination Bits
15 to 04 03 02 01 00 15 14 13 12 11 10 09 08 07 06 05 04 03 02 01 00
x 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
x 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
x 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0
x 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0
x 01000000000000010000
x 01010000000000100000
x 01100000000001000000
x 01110000000010000000
x 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
x 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
x 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0
x 1 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0
x 11000001000000000000
x 11010010000000000000
x 11100100000000000000
x 11111000000000000000
x = not used