I make a mistake!!
I want to step-down my supply from 24vDC to 5vDC.

Dear Mat I try to use LM317 from 24V TO 8V and then with lm7805 from 8v to 5V but the LM is getting too much hot.I do not understand the reason why!!
The LM has output current 1,5A.My current consuption is 300mA.