
LM317 works with DC only.I have delved further into the power pack which I would be using, and discovered that its output voltage is 27.3V AC not 24VAC. I'm attaching a jpg of the circuit.
I got this circuit from a post on All About Circuits entitled "16v Power Supply from 24V one?" From what I can gather it was posted on April 3 2010. It was the 10th reply on that particular post, with further comments after that post. So I thought it would help if I attached my larger size version.
I hope that this may help, as I was assuming the output of the power pack was DC and not AC.View attachment 356254