-
Notifications
You must be signed in to change notification settings - Fork 4
/
PhotovoltaicRelay.lib
213 lines (205 loc) · 6.27 KB
/
PhotovoltaicRelay.lib
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<Qucs Library 2.0.0 "PhotovoltaicRelay">
<Component CPC1018>
<Description>
CPC1018 phtovoltaic relay.
</Description>
<Model>
.Def:PhotovoltaicRelay_CPC1018 _net0 _net1 _net2 _net3
Sub:X1 _net0 _net1 _net2 _net3 gnd Type="CPC1018N_sub_cir"
.Def:End
</Model>
<ModelIncludes "CPC1018N_sub.cir.lst">
<Spice>* Qucs 2.0.0 PhotovoltaicRelay_CPC1018.sch
* IXYS-Clare CPC1018N Photovoltaic AC/DC Relay
* Helmut Sennewald 2008
.subckt CPC1018N A K D1 D2
*.param IFON=1m RON=0.65 TOFF=250u COUT=25p CIO=1p
.PARAM IFON=1m
.PARAM RON=0.65
.PARAM TOFF=250u
.PARAM COUT=25p
.PARAM CIO=1p
D1 A N003 LED
C1 A K 10p
V1 N003 K 0
R2 gs 0 1k
C2 gs 0 {2*TOFF/1000}
B1 0 gs I=7m*atan(abs(0.8*I(V1)/IFON))
C4 A D2 {CIO/2}
C5 K D1 {CIO/2}
C7 D2 D1 {COUT}
M1 D2 N001 N004 N004 NMOS1
M2 D1 N005 N004 N004 NMOS1
G1 N004 N001 gs 0 1m
R1 N001 N004 1k
G2 N004 N005 gs 0 1m
R3 N005 N004 1k
V2 N002 0 6
D2 gs N002 DD
.model LED D(Is=1e-16 Rs=3 N=1.5 Eg=1.8 CJO=18p TT=100n)
.model NMOS1 NMOS(Vto=3.5 Kp={0.65/RON})
.model DD D(Is=1e-14 N=1)
.ends
.SUBCKT PhotovoltaicRelay_CPC1018 gnd _net0 _net1 _net2 _net3
X1 _net0 _net1 _net2 _net3 CPC1018N
.ENDS
</Spice>
<Symbol>
<Line -30 -40 -30 0 #000080 2 1>
<Line -40 -20 20 0 #000080 2 1>
<Line -40 -20 10 20 #000080 2 1>
<Line -40 0 20 0 #000080 2 1>
<Line -30 20 0 -20 #000080 2 1>
<Line -30 -40 0 20 #000080 2 1>
<Line -30 0 10 -20 #000080 2 1>
<Rectangle -50 -70 120 120 #000080 2 1 #c0c0c0 1 0>
<Line 26 -43 0 26 #000080 3 1>
<Line 30 -41 10 0 #000080 2 1>
<Line 30 -19 10 0 #000080 2 1>
<Line 30 -30 10 0 #000080 2 1>
<Line 31 -30 5 -5 #000080 2 1>
<Line 31 -30 5 5 #000080 2 1>
<Line 26 -3 0 26 #000080 3 1>
<Line 30 -1 10 0 #000080 2 1>
<Line 30 21 10 0 #000080 2 1>
<Line 30 10 10 0 #000080 2 1>
<Line 31 10 5 -5 #000080 2 1>
<Line 31 10 5 5 #000080 2 1>
<Line 30 -6 0 32 #000080 3 1>
<Line 30 -46 0 32 #000080 3 1>
<Line 16 10 10 0 #000080 2 1>
<Line 16 -30 10 0 #000080 2 1>
<Line 16 10 0 -40 #000080 2 1>
<Line 40 10 0 -40 #000080 2 1>
<Line 40 -41 0 -19 #000080 2 1>
<Ellipse 38 -12 4 4 #000080 1 1 #000080 1 1>
<Line -6 -10 4 -4 #000080 2 1>
<Line -12 -16 6 6 #000080 2 1>
<Arrow -2 -14 10 10 9 3 #000080 2 1 1>
<Arrow -4 -4 10 10 9 3 #000080 2 1 1>
<Line -8 0 4 -4 #000080 2 1>
<Line -14 -6 6 6 #000080 2 1>
<Line -60 20 30 0 #000080 2 1>
<.PortSym -60 -40 1 0>
<.PortSym -60 20 2 0>
<.ID -30 -116 SUB>
<.PortSym 80 -60 3 180>
<.PortSym 80 40 4 180>
<Line 80 -60 -40 0 #000080 2 1>
<Line 80 40 -40 0 #000080 2 1>
<Line 40 40 0 -19 #000080 2 1>
<Ellipse 52 38 4 4 #000080 1 1 #000080 1 1>
<Line 54 12 0 28 #000080 2 1>
<Line 54 -34 -6 6 #000080 2 1>
<Line 60 -34 -12 0 #000080 2 1>
<Line 54 -60 0 26 #000080 2 1>
<Line 54 -34 6 6 #000080 2 1>
<Line 60 -28 -12 0 #000080 2 1>
<Ellipse 54 -12 0 1 #000080 1 1 #c0c0c0 1 1>
<Line 54 12 6 -6 #000080 2 1>
<Line 54 12 -6 -6 #000080 2 1>
<Line 60 6 -12 0 #000080 2 1>
<Line 60 12 -12 0 #000080 2 1>
<Line 54 -10 -14 0 #000080 2 1>
<Line 54 -28 0 18 #000080 2 1>
<Line 54 -10 0 16 #000080 2 1>
<Ellipse 52 -12 4 4 #000080 1 1 #000080 1 1>
<Ellipse 52 -62 4 4 #000080 1 1 #000080 1 1>
</Symbol>
</Component>
<Component VOR14642>
<Description>
Vishay VO14642 photovoltaic relay
</Description>
<Model>
.Def:PhotovoltaicRelay_VOR14642 _net0 _net1 _net2 _net3 _net4
Sub:X1 _net0 _net1 _net2 _net3 _net4 gnd Type="VO14642_sub_cir"
.Def:End
</Model>
<ModelIncludes "VO14642_sub.cir.lst">
<Spice>* Qucs 2.0.0 PhotovoltaicRelay_VOR14642.sch
* Vishay VO14642 SSR SPICE MODEL
*
* LED ANODE
* | LED Cathode
* | | Pin 4 SSR contact
* | | | Pin 5 CT
* | | | | Pin 6 SSR contact
* | | | | |
.SUBCKT VO14642 A C S1 DC S2
W1 DC S2 Vsensor SSR_switch
R2 DC C1 100Meg
W2 S1 DC Vsensor SSR_switch
F1 C C1 V1 1
V1 A C 0
Vsensor C1 DC 0
.model SSR_Switch CSW(Ron=0.125 Roff=500Meg It=2mA Ih=0.5ms)
.ENDS
.SUBCKT PhotovoltaicRelay_VOR14642 gnd _net0 _net1 _net2 _net3 _net4
X1 _net0 _net1 _net2 _net3 _net4 VO14642
.ENDS
</Spice>
<Symbol>
<Line -30 -40 -30 0 #000080 2 1>
<Line -40 -20 20 0 #000080 2 1>
<Line -40 -20 10 20 #000080 2 1>
<Line -40 0 20 0 #000080 2 1>
<Line -30 20 0 -20 #000080 2 1>
<Line -30 -40 0 20 #000080 2 1>
<Line -30 0 10 -20 #000080 2 1>
<Rectangle -50 -70 120 120 #000080 2 1 #c0c0c0 1 0>
<Line 26 -43 0 26 #000080 3 1>
<Line 30 -41 10 0 #000080 2 1>
<Line 30 -19 10 0 #000080 2 1>
<Line 30 -30 10 0 #000080 2 1>
<Line 31 -30 5 -5 #000080 2 1>
<Line 31 -30 5 5 #000080 2 1>
<Line 26 -3 0 26 #000080 3 1>
<Line 30 -1 10 0 #000080 2 1>
<Line 30 21 10 0 #000080 2 1>
<Line 30 10 10 0 #000080 2 1>
<Line 31 10 5 -5 #000080 2 1>
<Line 31 10 5 5 #000080 2 1>
<Line 30 -6 0 32 #000080 3 1>
<Line 30 -46 0 32 #000080 3 1>
<Line 16 10 10 0 #000080 2 1>
<Line 16 -30 10 0 #000080 2 1>
<Line 16 10 0 -40 #000080 2 1>
<Line 40 10 0 -40 #000080 2 1>
<Line 40 -41 0 -19 #000080 2 1>
<Ellipse 38 -12 4 4 #000080 1 1 #000080 1 1>
<Line -6 -10 4 -4 #000080 2 1>
<Line -12 -16 6 6 #000080 2 1>
<Arrow -2 -14 10 10 9 3 #000080 2 1 1>
<Arrow -4 -4 10 10 9 3 #000080 2 1 1>
<Line -8 0 4 -4 #000080 2 1>
<Line -14 -6 6 6 #000080 2 1>
<Line -60 20 30 0 #000080 2 1>
<.PortSym -60 -40 1 0>
<.PortSym -60 20 2 0>
<.ID -30 -116 SUB>
<.PortSym 80 -60 3 180>
<Line 80 -60 -40 0 #000080 2 1>
<Line 80 40 -40 0 #000080 2 1>
<Line 40 40 0 -19 #000080 2 1>
<Ellipse 52 38 4 4 #000080 1 1 #000080 1 1>
<Line 54 12 0 28 #000080 2 1>
<Line 54 -34 -6 6 #000080 2 1>
<Line 60 -34 -12 0 #000080 2 1>
<Line 54 -60 0 26 #000080 2 1>
<Line 54 -34 6 6 #000080 2 1>
<Line 60 -28 -12 0 #000080 2 1>
<Ellipse 54 -12 0 1 #000080 1 1 #c0c0c0 1 1>
<Line 54 12 6 -6 #000080 2 1>
<Line 54 12 -6 -6 #000080 2 1>
<Line 60 6 -12 0 #000080 2 1>
<Line 60 12 -12 0 #000080 2 1>
<Line 54 -28 0 18 #000080 2 1>
<Line 54 -10 0 16 #000080 2 1>
<Ellipse 52 -12 4 4 #000080 1 1 #000080 1 1>
<Ellipse 52 -62 4 4 #000080 1 1 #000080 1 1>
<.PortSym 80 -10 4 180>
<.PortSym 80 40 5 180>
<Line 80 -10 -40 0 #000080 2 1>
</Symbol>
</Component>