Publication 1766-RM001A-EN-P - October 2008
244 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 1400 4.6300 µs 0.2720 µ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