David_
Advanced Member level 2

Hello.
Here is a circuit from LM317's datasheet to increase the output current, however I don't know on what basis the resistors values is choose.
Here is the circuit:

The idea comes from a LM317 datasheet that does not offer a single word about what the resistors do but I have marked the resistors of interest with a red dot and it is only the 3resistor/PNP/NPN part of the circuit that this concerns.
I would think that the resistors would work something as:
1, one resistor to limit the current through the regulator.
2, one resistor to control turn on/off of the PNP through its voltage drop exceeding Vbe.
3, one resistor to manage the turn on/off of the NPN transistor.
But I found a LM317 model for LTspice and simulated the circuit with strange results, I did set the LM317 with a 30V input and resistors to result in a 25V output, but the output never was 25V.
Adjusting the three resistor values(those with the red dot) adjusted the output voltage and I got a output of 10V to 22V depending on value of the 3 R's.
That did not help and I think the LM317 model might be flawed or something not obvious I had done.
This is a annoying step in a design process and I have spent enough hours on this to think to ask for help, the voltage regulator should never output more than 50mA and the hole circuit will deliver up to 5A.
Regards
- - - Updated - - -
In the LTspice simulation output voltage varied with load resistor value also.
Here is a circuit from LM317's datasheet to increase the output current, however I don't know on what basis the resistors values is choose.
Here is the circuit:

The idea comes from a LM317 datasheet that does not offer a single word about what the resistors do but I have marked the resistors of interest with a red dot and it is only the 3resistor/PNP/NPN part of the circuit that this concerns.
I would think that the resistors would work something as:
1, one resistor to limit the current through the regulator.
2, one resistor to control turn on/off of the PNP through its voltage drop exceeding Vbe.
3, one resistor to manage the turn on/off of the NPN transistor.
But I found a LM317 model for LTspice and simulated the circuit with strange results, I did set the LM317 with a 30V input and resistors to result in a 25V output, but the output never was 25V.
Adjusting the three resistor values(those with the red dot) adjusted the output voltage and I got a output of 10V to 22V depending on value of the 3 R's.
That did not help and I think the LM317 model might be flawed or something not obvious I had done.
This is a annoying step in a design process and I have spent enough hours on this to think to ask for help, the voltage regulator should never output more than 50mA and the hole circuit will deliver up to 5A.
Regards
- - - Updated - - -
In the LTspice simulation output voltage varied with load resistor value also.