programming cable for V5 is 6ED1057-1AA00-0BA0
programming cable for V6 is 6ED1057-1AA00-0BA0 (which is RS232)
or 6ED1057-1AA01-0BA0 (which is USB)
V7 and V8 use an ethernet cable only.
I am not sure if the 6ED1057-1AA01-0BA0 works with the logo 5 , and the manuals do not say. the manuals recommend using a usb to serial converter for logo 5.