-
Notifications
You must be signed in to change notification settings - Fork 0
/
PMSM_Control_Stalled.asc
244 lines (244 loc) · 5.55 KB
/
PMSM_Control_Stalled.asc
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
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
Version 4
SHEET 1 2208 736
WIRE -528 -512 -672 -512
WIRE -304 -512 -400 -512
WIRE -528 -480 -576 -480
WIRE -1200 -464 -1232 -464
WIRE -1136 -464 -1200 -464
WIRE -96 -464 -176 -464
WIRE -32 -464 -96 -464
WIRE -928 -448 -1008 -448
WIRE -848 -448 -928 -448
WIRE -1200 -432 -1232 -432
WIRE -1136 -432 -1200 -432
WIRE -672 -432 -672 -512
WIRE -672 -432 -720 -432
WIRE -304 -432 -304 -512
WIRE -96 -432 -304 -432
WIRE -32 -432 -96 -432
WIRE -928 -416 -1008 -416
WIRE -848 -416 -928 -416
WIRE -1200 -400 -1232 -400
WIRE -1136 -400 -1200 -400
WIRE -528 -400 -720 -400
WIRE -304 -400 -400 -400
WIRE -32 -400 -80 -400
WIRE -848 -384 -912 -384
WIRE 224 -384 96 -384
WIRE 416 -384 352 -384
WIRE -576 -368 -576 -480
WIRE -528 -368 -576 -368
WIRE -32 -368 -80 -368
WIRE 224 -352 176 -352
WIRE -32 -336 -80 -336
WIRE -1104 -304 -1136 -304
WIRE -992 -304 -1024 -304
WIRE -32 -304 -80 -304
WIRE 176 -224 176 -352
WIRE 176 -224 64 -224
WIRE -992 -208 -992 -304
WIRE -912 -208 -992 -208
WIRE -800 -208 -912 -208
WIRE -912 -176 -1024 -176
WIRE -800 -176 -912 -176
WIRE -800 -144 -848 -144
WIRE -528 -128 -672 -128
WIRE -224 -128 -400 -128
WIRE -32 -128 -224 -128
WIRE -800 -112 -848 -112
WIRE -576 -96 -576 -368
WIRE -528 -96 -576 -96
WIRE -304 -96 -304 -400
WIRE -224 -96 -304 -96
WIRE -32 -96 -224 -96
WIRE -800 -80 -848 -80
WIRE -32 -64 -80 -64
WIRE -800 -48 -848 -48
WIRE 224 -48 96 -48
WIRE 400 -48 352 -48
WIRE -32 -32 -80 -32
WIRE 176 -16 176 -224
WIRE 224 -16 176 -16
WIRE -32 0 -80 0
WIRE -576 32 -576 -96
WIRE -576 32 -704 32
WIRE -32 32 -80 32
WIRE -448 144 -720 144
WIRE -448 176 -640 176
WIRE -112 176 -160 176
WIRE -1152 192 -1184 192
WIRE -720 192 -720 144
WIRE -720 192 -784 192
WIRE -960 208 -1024 208
WIRE -912 208 -960 208
WIRE -112 208 -160 208
WIRE -1152 224 -1184 224
WIRE -448 224 -784 224
WIRE -960 240 -1024 240
WIRE -912 240 -960 240
WIRE 128 240 96 240
WIRE 192 240 128 240
WIRE 352 240 320 240
WIRE 400 240 352 240
WIRE -1152 256 -1184 256
WIRE -720 256 -784 256
WIRE -448 256 -560 256
WIRE -48 272 -160 272
WIRE 16 272 -48 272
WIRE 16 288 16 272
WIRE -720 304 -720 256
WIRE -448 304 -720 304
WIRE -96 304 -160 304
WIRE -448 336 -480 336
WIRE 128 336 96 336
WIRE 192 336 128 336
WIRE 352 336 320 336
WIRE 400 336 352 336
WIRE -640 352 -640 176
WIRE -560 352 -560 256
WIRE -480 352 -480 336
WIRE -640 368 -640 352
WIRE -560 368 -560 352
WIRE -480 368 -480 352
WIRE -352 384 -352 352
WIRE -304 384 -304 352
WIRE -256 384 -256 352
WIRE 16 416 16 368
WIRE 128 432 96 432
WIRE 192 432 128 432
WIRE 352 432 320 432
WIRE 400 432 352 432
WIRE -640 480 -640 448
WIRE -560 480 -560 448
WIRE -560 480 -640 480
WIRE -480 480 -480 448
WIRE -480 480 -560 480
WIRE -560 512 -560 480
FLAG -928 -448 ALFA
FLAG -928 -416 BETA
FLAG -1184 192 D
FLAG -1184 224 Q
FLAG -912 -384 THETA
FLAG -960 208 ALFA1
FLAG -960 240 BETA1
FLAG -912 -208 C_Speed
FLAG -912 -176 shaft
FLAG -560 512 0
FLAG 16 416 0
FLAG -48 272 shaft
FLAG -1184 256 THETA
FLAG -640 352 U
FLAG -560 352 V
FLAG -480 352 W
FLAG -1136 -304 0
FLAG -176 -464 0
FLAG -96 -464 I_REF_D
FLAG -96 -432 I_FBK_D
FLAG -224 -128 I_REF_Q
FLAG -224 -96 I_FBK_Q
FLAG -96 304 THETA
FLAG 128 240 U
FLAG 128 336 V
FLAG 128 432 W
FLAG 352 240 UU
FLAG 352 336 VV
FLAG -1200 -432 VV
FLAG 352 432 WW
FLAG -1200 -400 WW
FLAG -1200 -464 UU
FLAG 416 -384 Q
FLAG 400 -48 D
FLAG -848 -80 0
FLAG -80 -336 0
FLAG -80 0 0
SYMBOL clarke -1040 -448 R0
SYMATTR InstName X1
SYMBOL park -752 -432 R0
SYMATTR InstName X2
SYMBOL inv_park -1056 208 R0
SYMATTR InstName X3
SYMBOL inv_clarke -816 208 R0
SYMATTR InstName X4
SYMBOL constant_module -896 -160 R0
SYMATTR InstName X8
SYMATTR SpiceLine K=1
SYMBOL motor_3_R_H -320 240 R0
SYMATTR InstName X24
SYMATTR SpiceLine L_Leak=.05 R={R} Kt=1 IP=0.06 Inertia=100m VHALL=5
SYMBOL res -496 352 R0
SYMATTR InstName R1
SYMATTR Value 1
SYMBOL res -576 352 R0
SYMATTR InstName R2
SYMATTR Value 1
SYMBOL res -656 352 R0
SYMATTR InstName R3
SYMATTR Value 1
SYMBOL res 0 272 R0
SYMATTR InstName R4
SYMATTR Value 0
SYMBOL constant_module -896 -128 R0
SYMATTR InstName X9
SYMATTR SpiceLine K=0
SYMBOL constant_module -128 -416 R0
SYMATTR InstName X13
SYMATTR SpiceLine K=1
SYMBOL constant_module -128 -384 R0
SYMATTR InstName X14
SYMATTR SpiceLine K=0
SYMBOL constant_module -128 -80 R0
SYMATTR InstName X19
SYMATTR SpiceLine K=1
SYMBOL constant_module -128 -48 R0
SYMATTR InstName X20
SYMATTR SpiceLine K=0
SYMBOL voltage -1008 -304 R90
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
WINDOW 0 -43 -12 VRight 2
WINDOW 3 48 -1 VRight 2
SYMATTR InstName V1
SYMATTR Value PULSE(0 200 0 2000m 2000m 30 100)
SYMBOL kmult_module 288 224 R0
SYMATTR InstName X25
SYMATTR SpiceLine K=1
SYMBOL kmult_module 288 320 R0
SYMATTR InstName X26
SYMATTR SpiceLine K=1
SYMBOL kmult_module 288 416 R0
SYMATTR InstName X27
SYMATTR SpiceLine K=1
SYMBOL limit_module 320 -400 R0
SYMATTR InstName X11
SYMBOL limit_module 320 -64 R0
SYMATTR InstName X12
SYMBOL constant_module 16 -240 R0
SYMATTR InstName X16
SYMATTR SpiceLine K=300
SYMBOL PID_WU_Diff -704 -208 R0
SYMATTR InstName X17
SYMBOL PID_WU_Diff 64 -464 R0
SYMATTR InstName X5
SYMBOL PID_WU_Diff 64 -128 R0
SYMATTR InstName X6
SYMBOL constant_module -896 -64 R0
SYMATTR InstName X7
SYMATTR SpiceLine K=20
SYMBOL constant_module -128 -320 R0
SYMATTR InstName X18
SYMATTR SpiceLine K=20
SYMBOL constant_module -128 16 R0
SYMATTR InstName X22
SYMATTR SpiceLine K=20
SYMBOL limit_module -432 -144 R0
SYMATTR InstName X28
SYMBOL constant_module -752 16 R0
SYMATTR InstName X29
SYMATTR SpiceLine k=60
SYMBOL limit_module -432 -528 R0
SYMATTR InstName X10
SYMBOL limit_module -432 -416 R0
SYMATTR InstName X21
TEXT -712 592 Left 2 !.tran 100
TEXT -336 80 Left 0 !.param R=1
TEXT -336 96 Left 0 !.ic V(shaft)=0