Publication 1763-RM001C-EN-P - October 2009
202 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
Execution Time for the DCD Instruction
Controller When Rung Is:
True False
MicroLogix 1100 25.68 μs 0.87 μs
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
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive