Subversion Repositories wimsdev

Rev

Rev 9965 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
# Basic electronic component data definitions.
2
 
3
########## Basic definitions. #############
4
 
9966 bpr 5
comp_all=acsrc,ammeter,ammeterN,and,arrow,_Arrow,bat,buf,cap,\
6
chas,close,close2,coil,del,diode,_Diode,fuse,gen,\
7
gnd,iarrow,_iArrow,inv,isrc,lamp,lampN,meter,motor,nand,nor,npn,npn2,\
8
open,open2,or,pnp,pnp2,res,res2,rheostat,src,\
9
term,term2,voltmeter,voltmeterN,wire,xnor,xor,zener,_Zener
20 reyssat 10
 
11
comp_notext=wire num color
12
 
9966 bpr 13
comp_norotate=acsrc ammeter ammeterN lamp lampN meter motor num voltmeter voltmeterN
20 reyssat 14
 
15
############### Subroutines ##################
16
 
17
comp_transistor=lines _color_,-1,0,-0.9,0,-0.1,0.8,0.1,0.8,0.9,0,1,0\
9965 bpr 18
segment 0,1,0,0.8,_color_\
19
segment -0.6,0.8,0.6,0.8,_color_
20 reyssat 20
comp_transistor2=lines _color_,-1,0,-0.9,0,-0.1,-0.8,0.1,-0.8,0.9,0,1,0\
9965 bpr 21
segment 0,-1,0,-0.8,_color_\
22
segment -0.6,-0.8,0.6,-0.8,_color_
20 reyssat 23
 
24
######## Start of component drawing data. ###########3
25
 
26
comp_acsrc=ellipse 0,0,2,2,_color_\
27
curve _color_,-0.6+1.2*t,0.4*sin(2*pi*t)
28
 
9966 bpr 29
comp_ammeter=ellipse 0,0,2,2,_color_\
30
segment 0,0.45,0.35,-0.4,_color_\
31
segment 0,0.45,-0.35,-0.4,_color_\
32
segment -0.2,0,0.2,0,_color_
33
 
34
comp_ammeterN=ellipse 0,0,2,2,_color_\
35
segment -0.2,0.45,0.1,-0.4,_color_\
36
segment -0.2,0.45,-0.5,-0.4,_color_\
37
segment -0.35,0,-0.05,0,_color_
38
 
20 reyssat 39
comp_and=lines _color_,0,0.7,-1,0.7,-1,-0.7,0,-0.7\
40
plot _color_,0.65*sin(pi*t),0.7*cos(pi*t)\
9965 bpr 41
segment 0.65,0,1,0,_color_
20 reyssat 42
 
43
comp_arrow=triangle -1,0.4,-1,-0.4,-0.1,0,_color_
44
 
4926 bpr 45
comp__Arrow=ftriangle -1,0.4,-1,-0.4,-0.1,0,_color_
20 reyssat 46
 
47
comp_bat=parallel -1,0,-0.6,0,1.6,0,2,_color_\
48
parallel 0.6,-0.7,0.6,0.7,-0.8,0,2,_color_\
49
parallel 0.2,-0.3,0.2,0.3,-0.8,0,2,_color_
50
 
51
comp_buf=triangle -0.55,0.5,-0.55,-0.5,0.55,0,_color_\
9965 bpr 52
segment -1,0,-0.55,0,_color_\
53
segment 0.55,0,1,0,_color_
20 reyssat 54
 
55
comp_cap=parallel -1,0,-0.2,0,1.2,0,2,_color_\
56
parallel -0.2,-0.7,-0.2,0.7,0.4,0,2,_color_
57
 
9965 bpr 58
comp_chas=segment 1,0,0.6,0,_color_\
20 reyssat 59
triangle 0.6,-0.6,0.6,0.6,0.1,0,_color_
60
 
61
comp_close=parallel -1,0,-0.7,0,1.7,0,2,_color_\
62
ellipse -0.5,0,0.4,0.4,_color_\
63
ellipse 0.5,0,0.4,0.4,_color_\
9965 bpr 64
segment -0.7,0.2,0.7,0.2,_color_
20 reyssat 65
 
9966 bpr 66
comp_close2=parallel -1,0,-0.7,0,1.7,0,2,_color_\
67
ellipse -0.5,0,0.4,0.4,_color_\
68
fill -0.5,0,_color_\
69
ellipse 0.5,0,0.4,0.4,_color_\
70
fill 0.5,0,_color_\
71
segment -0.5,0.2,0.5,0.2,_color_
72
 
20 reyssat 73
comp_coil=parallel -1,0,-0.875,0,1.875,0,2,_color_\
74
curve _color_,-0.15*cos(7*pi*t)+1.44*t-0.72,0.3*sin(7*pi*t)
75
 
76
comp_color=!nosubst frect -1,-1,1,1,$slib_text
77
 
78
comp_diode=parallel -1,0,-0.3,0,1.3,0,2,_color_\
9965 bpr 79
segment 0.3,-0.5,0.3,0.5,_color_\
20 reyssat 80
triangle 0.3,0,-0.3,0.5,-0.3,-0.5,_color_
81
 
4926 bpr 82
comp__Diode=parallel -1,0,-0.3,0,1.3,0,2,_color_\
9965 bpr 83
segment 0.3,-0.5,0.3,0.5,_color_\
20 reyssat 84
ftriangle 0.3,0,-0.3,0.5,-0.3,-0.5,_color_
85
 
4926 bpr 86
comp_del=parallel -1,0,-0.3,0,1.3,0,2,_color_\
9965 bpr 87
segment 0.3,-0.5,0.3,0.5,_color_\
4926 bpr 88
triangle 0.3,0,-0.3,0.5,-0.3,-0.5,_color_\
89
arrow -0.15,0.55,0.1,0.9,7,_color_\
90
arrow 0.1,0.4,0.35,0.75,7,_color_
91
 
92
comp_gen=parallel -1,0,-0.2,0,1.2,0,2,_color_\
9965 bpr 93
segment -0.2,-0.7,-0.2,0.7,_color_\
94
segment 0.2,-0.3,0.2,0.3,_color_
4926 bpr 95
 
9966 bpr 96
comp_fuse=parallel -1,0,-0.75,0,1.75,0,2,_color_\
97
rectangle -0.75,-0.3,0.75,0.3,_color_\
98
segment -0.75,0,0.75,0,_color_
99
 
9965 bpr 100
comp_gnd=segment 1,0,0.6,0,_color_\
101
segment 0.6,-0.7,0.6,0.7,_color_\
102
segment 0.35,-0.4,0.35,0.4,_color_\
103
segment 0.1,-0.1,0.1,0.1,_color_
20 reyssat 104
 
9965 bpr 105
comp_iarrow=segment -1,0,1,0,_color_\
20 reyssat 106
lines _color_,-0.4,0.25,0.4,0,-0.4,-0.25
107
 
9965 bpr 108
comp__iArrow=segment -1,0,1,0,_color_\
20 reyssat 109
ftriangle -0.4,0.25,0.4,0,-0.4,-0.25,_color_
110
 
111
comp_inv=triangle -0.55,0.5,-0.55,-0.5,0.55,0,_color_\
9965 bpr 112
segment -1,0,-0.55,0,_color_\
20 reyssat 113
ellipse 0.75,0,0.4,0.4,_color_\
9965 bpr 114
segment 0.95,0,1,0,_color_
20 reyssat 115
 
116
comp_isrc=ellipse 0,0,2,2,_color_\
117
arrow -0.6,0,0.6,0,$slib_dotwidth,_color_
118
 
119
comp_lamp=ellipse 0,0,1.42,1.42,_color_\
9965 bpr 120
segment -0.5,-0.5,0.5,0.5,_color_\
121
segment -0.5,0.5,0.5,-0.5,_color_\
20 reyssat 122
parallel -1,0,-0.71,0,1.71,0,2,_color_
123
 
9966 bpr 124
comp_lampN=ellipse 0,0,2,2,_color_\
125
segment -0.70,-0.70,0.70,0.70,_color_\
126
segment -0.70,0.70,0.70,-0.70,_color_\
127
 
20 reyssat 128
comp_meter=ellipse 0,0,2,2,_color_\
9965 bpr 129
segment -0.8,-0.55,0.8,-0.55,_color_\
20 reyssat 130
arrow -0.1,-0.5,0.4,0.5,$slib_dotwidth,_color_
131
 
9966 bpr 132
comp_motor=ellipse 0,0,2,2,_color_\
133
segment -0.32,-0.4,-0.32,0.42,_color_\
134
segment -0.32,0.42,0,-0.4,_color_\
135
segment 0,-0.4,0.33,0.42,_color_\
136
segment 0.33,0.42,0.33,-0.4,_color_\
137
 
20 reyssat 138
comp_nand=lines _color_,0,0.7,-1,0.7,-1,-0.7,0,-0.7\
139
plot _color_,0.65*sin(pi*t),0.7*cos(pi*t)\
140
ellipse 0.825,0,0.35,0.35,_color_
141
 
142
comp_nor=curve _color_,-0.15*(2*t-1)^2-0.85,0.7-1.4*t\
143
curve _color_,t*1.65-1,0.7-0.7*t^3\
144
curve _color_,t*1.65-1,-0.7+0.7*t^3\
145
ellipse 0.825,0,0.35,0.35,_color_
146
 
147
comp_num=!nosubst text _color_,-0.15,0.3,$slib_textsize,$slib_i
148
 
149
comp_npn=$comp_transistor\
150
arrow -0.1,0.8,-0.9,0,$slib_dotwidth,_color_
151
 
152
comp_npn2=$comp_transistor2\
153
arrow -0.1,-0.8,-0.9,0,$slib_dotwidth,_color_
154
 
155
comp_open=parallel -1,0,-0.7,0,1.7,0,2,_color_\
156
ellipse -0.5,0,0.4,0.4,_color_\
157
ellipse 0.5,0,0.4,0.4,_color_\
9965 bpr 158
segment -0.7,0.6,0.7,0.6,_color_
20 reyssat 159
 
9966 bpr 160
comp_open2=parallel -1,0,-0.7,0,1.7,0,2,_color_\
161
ellipse -0.5,0,0.4,0.4,_color_\
162
fill -0.5,0,_color_\
163
ellipse 0.5,0,0.4,0.4,_color_\
164
fill 0.5,0,_color_\
165
segment -0.5,0,0.4,0.6,_color_
166
 
20 reyssat 167
comp_or=curve _color_,-0.15*(2*t-1)^2-0.85,0.7-1.4*t\
168
curve _color_,t*1.65-1,0.7-0.7*t^3\
169
curve _color_,t*1.65-1,-0.7+0.7*t^3\
9965 bpr 170
segment 0.65,0,1,0,_color_
20 reyssat 171
 
172
comp_pnp=$comp_transistor\
173
arrow 0.9,0,0.1,0.8,$slib_dotwidth,_color_
174
 
175
comp_pnp2=$comp_transistor2\
176
arrow 0.9,0,0.1,-0.8,$slib_dotwidth,_color_
177
 
178
comp_res=lines _color_,-1,0,-0.75,0,-0.625,-0.3,-0.375,0.3,-0.125,-0.3,0.125,0.3,0.375,-0.3,0.625,0.3,0.75,0,1,0
179
 
180
comp_res2=parallel -1,0,-0.75,0,1.75,0,2,_color_\
181
rectangle -0.75,-0.3,0.75,0.3,_color_
182
 
9966 bpr 183
comp_rheostat=parallel -1,0,-0.75,0,1.75,0,2,_color_\
184
rectangle -0.75,-0.3,0.75,0.3,_color_\
185
arrow 0,0.9,0,0.3,$slib_dotwidth,_color_
186
 
20 reyssat 187
comp_src=ellipse 0,0,2,2,_color_
188
 
9965 bpr 189
comp_term=segment 0.5,0,1,0,_color_\
20 reyssat 190
ellipse 0.3,0,0.4,0.4,_color_
191
 
192
comp_term2=ellipse -0.8,0,0.4,0.4,_color_\
193
ellipse 0.8,0,0.4,0.4,_color_
194
 
9966 bpr 195
comp_voltmeter=ellipse 0,0,2,2,_color_\
196
segment 0,-0.45,0.35,0.4,_color_\
197
segment 0,-0.45,-0.35,0.4,_color_
198
 
199
comp_voltmeterN=ellipse 0,0,2,2,_color_\
200
segment -0.2,-0.45,0.15,0.4,_color_\
201
segment -0.2,-0.45,-0.55,0.4,_color_\
202
 
9965 bpr 203
comp_wire=segment -1,0,1,0,_color_
20 reyssat 204
 
205
comp_xnor=curve _color_,-0.15*(2*t-1)^2-0.85,0.7-1.4*t\
206
curve _color_,-0.15*(2*t-1)^2-0.65,0.7-1.4*t\
207
curve _color_,t*1.45-0.8,0.7-0.7*t^3\
208
curve _color_,t*1.45-0.8,-0.7+0.7*t^3\
209
ellipse 0.825,0,0.35,0.35,_color_
210
 
211
comp_xor=curve _color_,-0.15*(2*t-1)^2-0.85,0.7-1.4*t\
212
curve _color_,-0.15*(2*t-1)^2-0.65,0.7-1.4*t\
213
curve _color_,t*1.45-0.8,0.7-0.7*t^3\
214
curve _color_,t*1.45-0.8,-0.7+0.7*t^3\
9965 bpr 215
segment 0.65,0,1,0,_color_
20 reyssat 216
 
217
comp_zener=parallel -1,0,-0.3,0,1.3,0,2,_color_\
218
lines _color_,0.5,0.6,0.3,0.4,0.3,-0.4,0.1,-0.6\
219
triangle 0.3,0,-0.3,0.5,-0.3,-0.5,_color_
220
 
4926 bpr 221
comp__Zener=parallel -1,0,-0.3,0,1.3,0,2,_color_\
20 reyssat 222
lines _color_,0.5,0.6,0.3,0.4,0.3,-0.4,0.1,-0.6\
223
ftriangle 0.3,0,-0.3,0.5,-0.3,-0.5,_color_
224
 
225
############# End of definitions ##################