To keep your screen from turning off, do the following:
Open System Preferences and click Battery.
Go to the Power Adapter section.
Disable automatic sleeping of your Mac.
On the “Turning display off” line, move the slider to Never.