KiCadとBOM(マルツに発注2)

2つの抵抗を並列に用いることで、アッテネータの精度を改善することができます。

上の回路図に対応するBOMは;

% python xml2bom.py | nkf -s > BOM.csv
% cat BOM.csv | nkf -w
"型番","メーカー名","数量"
1/4WキンピR 8.2KΩ,KOA,1
1/4WキンピR 4.7Ω,KOA,1
1/4WキンピR 7.5Ω,KOA,1
1/4WキンピR 2.2KΩ,KOA,1
1/4WキンピR 6.8KΩ,KOA,1
1/4WキンピR 6.8Ω,KOA,1
1/4WキンピR 39Ω,KOA,1
1/4WキンピR 1KΩ,KOA,1
1/4WキンピR 2KΩ,KOA,1
1/4WキンピR 15Ω,KOA,1
1/4WキンピR 51Ω,KOA,1
1/4WキンピR 560Ω,KOA,1
1/4WキンピR 910Ω,KOA,1
1/4WキンピR 27Ω,KOA,1
1/4WキンピR 51Ω,KOA,1
1/4WキンピR 430Ω,KOA,1
1/4WキンピR 220Ω,KOA,1
1/4WキンピR 220Ω,KOA,1
1/4WキンピR 24Ω,KOA,1
1/4WキンピR 270Ω,KOA,1
1/4WキンピR 270Ω,KOA,1
1/4WキンピR 91Ω,KOA,1
1/4WキンピR 330Ω,KOA,1
1/4WキンピR 150Ω,KOA,1
1/4WキンピR 150Ω,KOA,1
1/4WキンピR 240Ω,KOA,1
1/4WキンピR 240Ω,KOA,1
1/4WキンピR 390Ω,KOA,1
1/4WキンピR 680Ω,KOA,1
1/4WキンピR 82Ω,KOA,1
1/4WキンピR 82Ω,KOA,1
1/4WキンピR 8.2KΩ,KOA,1
1/4WキンピR 2.2KΩ,KOA,1
1/4WキンピR 6.8KΩ,KOA,1
1/4WキンピR 1KΩ,KOA,1
1/4WキンピR 2KΩ,KOA,1
1/4WキンピR 560Ω,KOA,1
1/4WキンピR 910Ω,KOA,1
1/4WキンピR 430Ω,KOA,1

XMLファイルの中で、コンポーネントは番号順に現れません。多分、過去の編集履歴を反映しているのでしょうか?

% egrep 'comp.*R[0-9]+' RF-ATT.xml 
    <comp ref="R2">
    <comp ref="R3">
    <comp ref="R4">
    <comp ref="R1">
    <comp ref="R8">
    <comp ref="R9">
    <comp ref="R10">
    <comp ref="R7">
    <comp ref="R14">
    <comp ref="R15">
    <comp ref="R16">
    <comp ref="R13">
    <comp ref="R20">
    <comp ref="R21">
    <comp ref="R22">
    <comp ref="R19">
    <comp ref="R25">
    <comp ref="R27">
    <comp ref="R26">
    <comp ref="R29">
    <comp ref="R32">
    <comp ref="R30">
    <comp ref="R31">
    <comp ref="R28">
    <comp ref="R33">
    <comp ref="R35">
    <comp ref="R38">
    <comp ref="R36">
    <comp ref="R37">
    <comp ref="R34">
    <comp ref="R39">
    <comp ref="R5">
    <comp ref="R6">
    <comp ref="R11">
    <comp ref="R12">
    <comp ref="R17">
    <comp ref="R18">
    <comp ref="R23">
    <comp ref="R24">

このリストをソートすることは容易ですが、そのような手間をかけるべきかどうか良く分かりません。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.