In the Settings -> Developer Options* there is an entry “Set USB configuration” (or similar, in german localization settings “USB Konfiguration auswählen”). There you can set the default setting for the USB connection mode, like charge only, MTP mode, PTP mode, and more.
*) To enable Developer Options, tap Settings -> About phone about 9 times or so