Use the bulb mode for exposure longer than 30 seconds like astro or night photography
Set the shooting mode to "M"
Turn the electronic input dial until "bulb" (next to 30") displays
Set the aperture value by turning the electronic input dial while pressing the manual aperture set button