Starting with the 80-wire cable defined for use in ATAPI5/UDMA4, the Device 0 device goes at the end of the 18 inches cable—the black connector—and the slave Device 1 goes on the middle connector—the gray one—and the blue connector goes onto the motherboard.