Yes! entered the code and that was it changed USB setting to MTP thanks a lot this was killing me!
See Tazmania's post above:
When connected to a PC via USB, my S5 would charge but the device was not recognised. My USB drivers were up-to-date and I was using the original Samsung USB provided...