* SPICE netlist
D1 IN P001 MURS120
D2 P001 P002 MURS120
D3 P002 P003 MURS120
D4 P003 P004 MURS120
D5 P004 P005 MURS120
D6 P005 N001 MURS120
D7 N001 P006 MURS120
D8 P006 P007 MURS120
D9 P007 P008 MURS120
D10 P008 P009 MURS120
D11 P009 P010 MURS120
D12 P010 N002 MURS120
D13 N002 P011 MURS120
D14 P011 P012 MURS120
D15 P012 P013 MURS120
D16 P013 P014 MURS120
D17 P014 P015 MURS120
D18 P015 N003 MURS120
D19 N003 P016 MURS120
D20 P016 P017 MURS120
D21 P017 P018 MURS120
D22 P018 P019 MURS120
D23 P019 P020 MURS120
D24 P020 0 MURS120
I1 0 IN 350m
V1 NC_01 0 6
Q1 IN BASE N005 0 2N2222
D25 0 N006 UDZV6_8B
R1 IN N004 10k
R2 BATT 0 110k
R3 N004 BASE {(x-1)*Rv}
R4 BASE N006 {x*Rv}
D26 N005 BATT 10MQ060N
.op
.param Rv 1k
.step param x 0.01 0.99 0.01

* LTspice schematic (.asc)
Version 4
SHEET 1 1584 704
WIRE -104 -352 -776 -352
WIRE 360 -352 -104 -352
WIRE 488 -352 360 -352
WIRE 360 -336 360 -352
WIRE -776 -240 -776 -352
WIRE -648 -240 -712 -240
WIRE -520 -240 -584 -240
WIRE -392 -240 -456 -240
WIRE 360 -208 360 -256
WIRE 488 -160 488 -352
WIRE 360 -112 360 -128
WIRE 424 -112 360 -112
WIRE -104 -80 -104 -352
WIRE 360 -48 360 -112
WIRE 488 -16 488 -64
WIRE 488 96 488 48
WIRE 792 96 488 96
WIRE -712 144 -712 -240
WIRE -712 144 -776 144
WIRE -584 144 -584 -240
WIRE -584 144 -648 144
WIRE -456 144 -456 -240
WIRE -456 144 -520 144
WIRE 360 176 360 32
WIRE 792 176 792 96
WIRE -392 320 -392 144
WIRE -104 320 -104 0
WIRE -104 320 -392 320
WIRE 360 320 360 240
WIRE 360 320 -104 320
WIRE 488 320 488 272
WIRE 488 320 360 320
WIRE 792 320 792 256
WIRE 792 320 488 320
WIRE -104 352 -104 320
FLAG -104 352 0
FLAG -104 -352 IN
FLAG 488 96 BATT
FLAG 360 -112 BASE
SYMBOL diode -792 -240 R0
SYMATTR InstName D1
SYMATTR Value MURS120
SYMBOL diode -792 -176 R0
SYMATTR InstName D2
SYMATTR Value MURS120
SYMBOL diode -792 -112 R0
SYMATTR InstName D3
SYMATTR Value MURS120
SYMBOL diode -792 -48 R0
SYMATTR InstName D4
SYMATTR Value MURS120
SYMBOL diode -792 16 R0
SYMATTR InstName D5
SYMATTR Value MURS120
SYMBOL diode -792 80 R0
SYMATTR InstName D6
SYMATTR Value MURS120
SYMBOL diode -664 -240 R0
SYMATTR InstName D7
SYMATTR Value MURS120
SYMBOL diode -664 -176 R0
SYMATTR InstName D8
SYMATTR Value MURS120
SYMBOL diode -664 -112 R0
SYMATTR InstName D9
SYMATTR Value MURS120
SYMBOL diode -664 -48 R0
SYMATTR InstName D10
SYMATTR Value MURS120
SYMBOL diode -664 16 R0
SYMATTR InstName D11
SYMATTR Value MURS120
SYMBOL diode -664 80 R0
SYMATTR InstName D12
SYMATTR Value MURS120
SYMBOL diode -536 -240 R0
SYMATTR InstName D13
SYMATTR Value MURS120
SYMBOL diode -536 -176 R0
SYMATTR InstName D14
SYMATTR Value MURS120
SYMBOL diode -536 -112 R0
SYMATTR InstName D15
SYMATTR Value MURS120
SYMBOL diode -536 -48 R0
SYMATTR InstName D16
SYMATTR Value MURS120
SYMBOL diode -536 16 R0
SYMATTR InstName D17
SYMATTR Value MURS120
SYMBOL diode -536 80 R0
SYMATTR InstName D18
SYMATTR Value MURS120
SYMBOL diode -408 -240 R0
SYMATTR InstName D19
SYMATTR Value MURS120
SYMBOL diode -408 -176 R0
SYMATTR InstName D20
SYMATTR Value MURS120
SYMBOL diode -408 -112 R0
SYMATTR InstName D21
SYMATTR Value MURS120
SYMBOL diode -408 -48 R0
SYMATTR InstName D22
SYMATTR Value MURS120
SYMBOL diode -408 16 R0
SYMATTR InstName D23
SYMATTR Value MURS120
SYMBOL diode -408 80 R0
SYMATTR InstName D24
SYMATTR Value MURS120
SYMBOL current -104 0 R180
SYMATTR InstName I1
SYMATTR Value 350m
SYMBOL voltage 488 176 R0
SYMATTR InstName V1
SYMATTR Value 6
SYMBOL npn 424 -160 R0
SYMATTR InstName Q1
SYMATTR Value 2N2222
SYMBOL zener 376 240 R180
SYMATTR InstName D25
SYMATTR Value UDZV6_8B
SYMATTR Description Diode
SYMATTR Type diode
SYMBOL res 344 -352 R0
SYMATTR InstName R1
SYMATTR Value 10k
SYMBOL res 776 160 R0
SYMATTR InstName R2
SYMATTR Value 110k
SYMBOL res 344 -224 R0
SYMATTR InstName R3
SYMATTR Value {(x-1)*Rv}
SYMBOL res 344 -64 R0
SYMATTR InstName R4
SYMATTR Value {x*Rv}
SYMBOL schottky 472 -16 R0
SYMATTR InstName D26
SYMATTR Value 10MQ060N
SYMATTR Description Diode
SYMATTR Type diode