Eeschema Chapter11 JA

提供: KiCad.jp Wiki
2012年7月15日 (日) 19:41時点におけるNenokuni (トーク | 投稿記録)による版
ナビゲーションに移動 検索に移動
印刷用ページはサポート対象外です。表示エラーが発生する可能性があります。ブラウザのブックマークを更新し、印刷にはブラウザの印刷機能を使用してください。

>>翻訳作業ページ‎ (前ページ次ページ

LibEdit - コンポーネント管理

ライブラリに関する一般情報

ライブラリ

回路図で使用するコンポーネントはすべてコンポーネントライブラリに保存されています。これらのコンポーネントを管理するシンプルな方法を持つことを可能にするため、ライブラリファイルは、トピック、機能または製造者によってグループ分けされています。

ライブラリ管理メニューによりライブラリを作成、コンポーネントを追加、削除あるいは移動させることができます。ライブラリ管理メニューはまた、ライブラリのすべてのコンポーネントをすぐに表示することができます。

管理メニュー

2つのライブラリ管理メニューが利用可能です。

  • ViewLib によりコンポーネントに素早くアクセスしてコンポーネントを見ることができます。ViewLibはアイコン[[Image:]]から使用可能です。
  • LibEdit によりすべてのコンポーネントとライブラリを管理することができます。LibEditはアイコン[[Image:]]から使用可能です。

コンポーネントの概要

ライブラリ内のコンポーネントは以下のものから構成されます

  • グラフィカルな型式(design)(ライン、円、テキストフィールド)。
  • ERCツールが使用する電気的なプロパティを記述している通常のグラフィック上の規格(通常の(regular)ピン、クロックピン、反転ピンまたはLowレベルアクティブ)を順守していなければならないピン。
  • リファレンス、値、PCB設計用の対応するモジュール名などのようなテキストフィールド。

コンポーネントはエイリアス、つまりいくつかの名前(例えば7400が74LS00、74HC00、7437とも言われ、そのためこれらすべてのコンポーネントは回路図の型式が同一である)を持つことが可能です。

エイリアスの使用は、完全であるがコンパクトにライブラリを作成する非常に興味深い方法で、また短期間でライブラリを構築するための方法を示しています。

コンポーネントを設計するということは以下のことを意味します

  • 通常のプロパティを定義する:ド・モルガン表現または変換表現として知られる可能な2通りの表現を持つ複数パーツを定義します。
  • ライン、矩形、円、ポリゴンおよびテキストを使用して設計する。
  • ピンを追加する。グラフィック要素、名前、ピン数、電気的プロパティ(入力、出力、3ステート、電源ポートなど)を慎重に定義します。
  • 他のコンポーネントの型式とピン配置が同じである場合、エイリアスを追加する。あるいは他のコンポーネントからコンポーネントを作成した場合、エイリアスを削除する。
  • 可能なフィールド(モジュール名はPCB設計ソフトウェアにより使用される)を追加したり、あるいはそれらの可視性を定義する。
  • テキストやデータシートのwwwリンクなどを使用してコンポーネントを記録する。
  • 適切な(desired)ライブラリにそれを保存する。

編集用コンポーネントの読み込み

アイコン[[Image:]]をクリックし、コンポーネント編集用のLibeditを開きます。Libeditは以下のように見えます。


[[Image:]]

Libedit - メインツールバー

[[Image:]]


[[Image:]] 現在のライブラリをハードディスクに保存する
[[Image:]] 現在のライブラリを選択する
[[Image:]] 現在のライブラリ内のコンポーネントを削除する
[[Image:]] 新規コンポーネントを作成する
[[Image:]] 現在のライブラリから編集用にコンポーネントを読み込む
[[Image:]] 読み込んだ現在のコンポーネントから新規コンポーネントを作成する。
[[Image:]] 現在のライブラリの現在のコンポーネントをRAMにのみ保存する。

ディスク上のライブラリファイルは変更されない。

[[Image:]] コンポーネントを1つインポートする。
[[Image:]] 現在のコンポーネントをエクスポートする。
[[Image:]] 現在のコンポーネントを使用して新規ライブラリファイルを作成する。
[[Image:]] 元に戻す/やり直しコマンド
[[Image:]] コンポーネントのプロパティを編集する。
[[Image:]] コンポーネントのフィールドを編集する:リファレンス、ライブラリでの値/名前および他のフィールド
[[Image:]] 表現を表示する:ノーマルまたは変換(ド・モルガン)表現
[[Image:]] 関連ドキュメント(が存在する場合)を表示する
[[Image:]] パーツ(多パーツコンポーネントの場合)を選択する
[[Image:]] エイリアス(現在のコンポーネントがエイリアスを持つ場合)を選択する
[[Image:]] ピンを編集する:ピンの形状と位置を個別に編集(多パーツおよびド・モルガン表現の場合)
[[Image:]]

ライブラリの選択および保守

アイコン[[Image:]]で現在のライブラリを選択することが可能です。それにより使用可能なすべてのライブラリを表示し、ライブラリを選択することができます。

コンポーネントを読み込んだり保存する場合、このライブラリに対して行われます。コンポーネントのライブラリ名はそのフィールド<<Value>>でもあります。

  • ライブラリの内容を使用するためには、Eeschemaでライブラリを読み込まなければなりません。
  • 現在のライブラリの内容は変更後に[[Image:]]をクリックして保存することが可能です。
  • [[Image:]]をクリックしてコンポーネントをライブラリから削除することが可能です。

コンポーネントの選択および保存

コンポーネントの編集時には、実際にライブラリ内のコンポーネントに対して作業しているのではなく、ローカルのメモリ内にあるそのコピーに対して作業しています。従って、どのような編集作業も容易に元に戻すことが可能です。また、コンポーネントはローカルのライブラリから、あるいは既存のコンポーネントから作成することもできます。

選択

アイコン[[Image:]]により、利用可能なコンポーネントのリストを表示します。そのコンポーネントは選択および読み込みが可能です。

コンポーネントのエイリアスを選択すると、メインのコンポーネントが読み込まれます。Eeschemaは実際に読み込んだコンポーネントの名前を常にウィンドウのタイトルに表示します。

  • コンポーネントのエイリアスのリストは常に各コンポーネントと共に読み込まれ、このため編集することができます。
  • あるエイリアスを編集したい場合、そのエイリアスはツールバーウィンドウ内で選択されていなければなりません:[[Image:]]。リストの最初の項目はルートコンポーネントです。

もう一つの方法として、エクスポートコマンド[[Image:]]で前回保存したコンポーネントを、インポートコマンド[[Image:]]により読み込むことができます。

コンポーネントの保存

変更後、コンポーネントを現在のライブラリかまたは新規ライブラリに保存することが可能です。あるいはバックアップファイルにエクスポートことが可能です。

現在のライブラリに保存するには、更新コマンド[[Image:]]を使用します。更新コマンドはローカルメモリ内にコンポーネントを保存するだけであるということを覚えておいて下さい。

コンポーネントを永続的に保存したい場合は、保存アイコン[[Image:]]を使用しなければなりません。それはローカルのハードディスク上のライブラリファイルに変更を加えます。

このコンポーネントで新規ライブラリを作成したい場合、NewLibコマンド[[Image:]]を使用して下さい。そのとき、新規ライブラリ名が必要となります。

自分で作成したコンポーネントを検索できるようにしたい場合、そのライブラリをEeschemaのライブラリのリストに追加するのを忘れないで下さい(Eeschemaの設定を参照)。

最後に、エクスポートコマンド[[Image:]]を使用して、そのコンポーネントだけを含むファイルを作成することが可能です。このファイルはコンポーネントを一つだけ含む標準ライブラリファイルになります。実際、NewLibコマンドとエクスポートコマンドは基本的に同じものです。1つ目のコマンドは、デフォルトライブラリのディレクトリ内にライブラリを作成するためのデフォルトのオプションです、2番目のコマンドは、ユーザーディレクトリにライブラリを作成するために使用します。

ライブラリ間のコンポーネントの移動

コピー元のライブラリからコピー先のライブラリに簡単にコンポーネントをコピーすることが可能です。それには次のコマンドを使用します

  • [[Image:]]ボタンでコピー元ライブラリを選択する。
  • [[Image:]]ボタンで移動するコンポーネントを読み込む。そのコンポーネントが表示されます。
  • [[Image:]]ボタンでコピー先のライブラリを選択する。
  • [[Image:]]ボタンで現在のコンポーネントをローカルメモリに保存する。
  • [[Image:]]ボタンでコンポーネントをローカルライブラリ(コピー先のライブラリ)に保存する。

コンポーネントの編集の取り消し

あるコンポーネントに対して作業している時には、その編集したコンポーネントというのは、単にそのライブラリ内の実際のコンポーネントの作業コピーです。このことはメモリ内にそのコンポーネントを保存しない限り、それをただ再読み込みして、行ったすべての変更を取り消ことが可能です。

ローカルのメモリ内にそれをすでに保存し、ハードディスク上のライブラリファイルには保存していない場合には、Eeschemaを終了、再起動して、全ての変更を元に戻すことが常に可能です。

Create a library component

Create a new component

A new component can be created with the NewPart command via the button [[Image:]]. You will be asked for a component name (this name is also the field value for Libedit and it is used as default value for the field 「綏alue「・in the schematic editor), the reference (U, IC, R。ト), the number of parts per package (for example a standard component 7400 A is made of 4 parts per package) and if a converted representation exists (de Morgan as standard).

If the field reference is left empty, the reference will default to 。ネU。ノ.

All this data can be set later, but it is preferable to set it at the creation of the component.

[[Image:]]

At the beginning, a component will look like this.

[[Image:]]

Create a component from an other component

Often, the component that you want to make is similar to one in the KiCad library. In this case it is quite usual to load and modify an already existing component. These are the steps to do so.

  • Load the component which will be used as a starting point.
  • Click on the icon [[Image:]] or modify its name (right click on the name and edit the text 「綏alue「・You will be prompted for a new component name.
  • If the model component has aliases, you will be prompted to remove aliases from the new component which conflict with the model. If the answer is no the new component creation will be aborted.
  • Modify the component name.
  • Edit the new component as you need.
  • Save in memory the new component with the button [[Image:]] or save to a new library with the button [[Image:]] or if you want to save this new component in an other existing library select the other library via the command [[Image:]] and save the new part.
  • Save the library file to disk with the file update command via the button [[Image:]].

Editing main component features

The main features of a component are.


  • The number of parts per package.
  • The presence of a converted representation.
  • The associated documentation.
  • The update of various fields.

These features should be carefully inserted during the component creation or, alternatively they come from the model component. Either way, it is necessary to use the edit command [[Image:]].

The editing window looks like this.

[[Image:]]

The important options that define the general properties are 1) the number of units to define the number of parts per package, 2) whether the component has a double representation.

It is very important that these two parameters are correctly set because when pins are edited or created the corresponding pins of all parts will be published or created together.

If you increase the number of parts after pin creation/editing, there will be additional work introduced by this increase. Nevertheless, it is possible to modify these parameters at any time.

Graphic options.

  • Show Pin Num
  • Show Pin Name

defines the visibility of the pin number and pin name text. This text will be visible if the corresponding options are active.

The option 。ネPin Inside。ノ defines the pin name position; this text will be displayed inside the component outline if the option is active). In this case the Pin Name Skew parameter defines the shift of the text towards the interior. A value from 30 to 40 (in 1/1000 inch) is reasonable.

The example below shows the same component, with the Pin Inside option unchecked. Notice the position of the names and pin numbers.


[[Image:]]


Multi-part components

During the editing of component elements, and if the component has multiple parts or representations, you will have to select the different parts or representations of this component.

For the representation selection click on the icon [[Image:]] or on the icon [[Image:]].

For the part selection.


[[Image:]]


Component design

The vertical toolbar on the right-hand side allows you to place all elements of a component.


[[Image:]] To draw a component, you can use the following graphic elements:
  • Lines (and polygons, simple or filled).
  • Rectangles
  • Circles
  • Arcs of circle.
  • Texts (others that fields and texts of pins).

Pins and text fields (value, reference) are treated differently, because they are not pure graphic elements.

Graphic elements membership options

Each graphic element can be defined as ordinary or specific, either to a type of representation (Normal or converted) or to the different parts of a component.

The options menu is accessible by the right click on the concerned element. Here you can see an example of a line.

[[Image:]]


or by a double-click on this element you can get the following menu.

[[Image:]]

The typical options of a graphic element are.

  • Shared by all parts in component checked, because generally the different parts of a component have the same graphic representation, and it is thus enough to draw one part only.
  • Shared by all body styles (DeMorgan) unchecked, because a double representation is introduced, to have a different graphic representation with each kind of representation.

It will then be necessary to draw each graphical representation.

For elements of the type 。ネpolygon。ノ (lines successively traced) the Fill background or Fill foreground option allow you to generate a filled polygon.

However, you can thus treat the case (fortunately rare) multi-parts components, designed with different graphic types, by uncheck Shared by all parts in component.

Each part will then have to be drawn, and if the option 。ネSpecific to the representations。ノ is checked, for each part it will be necessary to draw the two representations.

Finally it can be interesting to check the option Shared by all body styles (DeMorgan) for components drawn with the modern IEEE standard, since the graphics essentials are identical in the normal and converted representations.

Geometrical graphic elements

Their design is possible using the following tools.

  • Lines and polygons, simple or filled if the option is checked.
  • Rectangles defined by a diagonal.
  • Circles defined by the center and radius.
  • Arcs defined by the starting and ending point of the arc and its center. An arc goes from 0 deg to 180 deg.

Graphical elements of text type

The icon [[Image:]] allows for the creation of text. The text is always readable, even if the component is mirrored.

Pin creation and editing

You can click on the icon [[Image:]] to create and insert a pin. The editing of all pin features is done by double-clicking on the pin. Alternatively, you can right-click to open the fast editing menu.

Pins must be created carefully, because any error will have consequences on the PCB design. Any pin already placed can be re-edited, erased or moved.

Pins overview

A pin is defined by its form (length, graphic aspect), its name and its 。ネnumber。ノ which is not always a number. PGA socket pins are defined by a letter and a number, like A12 or AB45. In EEschema, the 。ネpin number。ノ is defined by a set of 4 letters or numbers.

For the ERC tool to work, the 。ネelectric。ノ type (input, output, 3states。ト) must also be defined. If this type is not well defined, ERC check will be inefficient.

Important Note

  • Avoid spaces in pin names and pin numbers.
  • A pin name with an inverted signal begins with the symbol 。ネ~。ノ.
  • If the pin name is reduced to this single symbol, the pin is regarded as unnamed.
  • Pin names starting with 。ネ#。ノ, are reserved for power port symbols.
  • A pin number consists of 1 to 4 letters or numbers. 1,2,..9999 are valid numbers, but also A1, B3。ト (standard PGA notation) or Anod, Gnd, Wine, etc.

Multi-part components - double representation

Let us recall that, particularly for logic gates, a symbol can have two representations (representation known as 。ネDe Morgan。ノ and that an IC can include several parts (e.g. several NOR gates).

For certain ICs, you may want several different graphic elements and pins.

For example a relay can be represented with different elements.

  • Coil
  • Switch contact 1
  • Switch contact 2

The management of the multi-part ICs, and the components with double representation is flexible.

Indeed, a pin can be.

  • Common or specific to different parts.
  • Common run to both representation or specific to each representation.

By default, pins are specific to each representation of each part, because their number differs for each part, and their design is different for each representation.

When a pin is common you just have to draw it once (e.g. in the case of power pins)

It is also the case of the design which is almost always identical for every part but differs between the normal and the converted representation.

Pins - basic option

Components with multiple parts and/or representations are particularly problematic for pin creation and editing. Insofar as the majority of the pins are specific to each part (because their pin number is specific to each part) and to each representation (because their form is specific to each representation), the creation and the editing of pins would thus be likely to be long and tiresome.

Eeschema allows the simultaneous handling of pins.

By default, for the multi-part components and/or double representations, these modifications are made for all pins corresponding to parts and representations when you create, edit (except for forms, and numbers) delete or move a pin (e.g. for all the pins placed at the same co-ordinate).

  • For the design, the modifications made for the current representation, are for all parts.
  • The pin numbers are modified for the current part, for the 2 representations.
  • Names are modified independently.

This dependency was established to allow fast modifications in most of the cases.

This dependency in the modifications can be disabled in the Options Menu, allowing you to create components with parts and representations of completely independent characteristics.

This dependence option is managed by the tool.

  • If the button [[Image:]] is not activated (not highlighted) the edit will apply to all parts and to all representations. This is the standard option.
  • If the button [[Image:]] is activated (highlighted) the edit will apply only to the current part and in the current representation (i.e. on what you see on the screen). This option is rarely used.

Pins - defining characteristics

The pin properties window allows you to edit all characteristics of a pin.

[[Image:]]

This menu pops up automatically as you create a pin, or while you double-click on an existing pin.

Via this menu you can define or modify.

  • The name and name size of a pin.
  • The number and size of a pin number.
  • Pin length.
  • Electrical type and design.
  • Its membership. Common to normal and "Morgan" representation.
  • Invisible pin. Used for power pins.

Also remember that

  • A pin name begins with a 。ネ~。ノ for inverted signals.
  • If the name is reduced to a character only, the pin is regarded as without name.
  • The pin number consists of 1 to 4 characters (letters or digits).- 1,2..9999 are valid numbers, but also A1, B3。ト (standard notation PGA) or Anod, Gnd, V.in, etc.

Pins shapes

You can see on the figure below different pin shapes.

[[Image:]]

The choice of the form has a purely graphic influence, and does not have any influence on the ERC checks or any netlist function.

Pins - electric types

The choice of the type is important, for the ERC tool. The choice is commonplace for input and output pins of IC's.

  • The BiDi type indicates bidirectional pins commutable between input and output (microprocessors data bus for example).
  • The type 3 states is the usual 3 states output.
  • The passive type is used for passive component pins, resistors, connectors, etc.
  • The unspec type (unspecified) can be used when ERC. check doesn't matter.
  • The power in type is to be used for the components power pins. In particular if the pin is a power in port, and is declared as "Invisible", it is not displayed in schematic diagram, and it is automatically connected to the other pins of the same type and same name ( Invisible Power In Pin).
  • Power out is for regulator outputs.
  • You can use open emitter and open collector types too.

Pins - global modifications

You can modify the length of all the pins, or the text sizes (name, part number), using the Global command of the pop up menu to set one of these three parameters.


[[Image:]]


Click on the parameter you want to modify and type the new value which will then apply to all component pins for the current representation.

Pins - multi-part components and double representations

Various parts or representation (such as the 7400, 7402, etc.) can need a complementary edition.

This complementary work will be limited if the following precautions are taken.

  • General option edit pin part per part [[Image:]] must remain unchecked.
  • The power pins will be created with the attribute common unit and common convert active (they can be also invisible (No Draw) ).

The correct setup is as follows.

When other pins have been created, they have been created for each part and each representation.

[[Image:]]

For example the output pin of part A of a 7400 will have been created by Eeschema in 8 specimens: 2 per part (there are 4 parts A, B, C, D and for each part, the normal representation, and the converted representation known as of Morgan.)

However it will have at the beginning correctly created the part A in its normal representation. It will thus be necessary for each part

  • To select the converted representation, and to edit the form and the length of each pin.
  • For the other parts, to edit the pin numbers.

Field editing

For the already existing fields, you can use the fast editing commands via right-click.

[[Image:]]

For a more complete editing or empty fields, it is necessary to call the editing fields window [[Image:]]

Its dialog window will look like this.

[[Image:]]

The folder reference is selected here. Fields are text sections associated to the component, not to be confused with the text belonging to the graphic representation of this component.

These fields are always available and are.

  • Value.
  • Reference.
  • Name of the associated module (footprint for the PCB).
  • link to a documentation file (mainly intended to be used in schematics).
  • Template fields defined in the schematic editor (for comments).

The value and reference fields are defined during the component creation, and can be modified here. It can possibly be useful to edit the name field of the associated module to directly generate netlists (for the PCB software) including the module (footprint) name.

The name field of the associated diagram is of particular use for some other electronic CAD software. For the library, the edition of the value and the reference fields allows the definition of their size and position.

Important remarks.

  • Modifying the text of the value field equals to create a new component starting from an old one used as a model. In fact this new component has the name contained in the value field when you save it in the library.
  • To edit an invisible field (i.e. empty, because even if the field has the Invisible attribute, it is displayed in LibEdit) you will have to use the general edition window above.

Create power port symbols

The power port symbols are created just like usual components. It may be useful to gather them in a dedicated library such as Power.lib. They consist of a graphical symbol (the desired form) and in a pin of the type "Power Invisible". Power port symbols will thus be handled like any other component in the schematic capture software. Some precautions are essential.

Here we can see a power + 5V symbol.

[[Image:]]


The symbol is created following these steps.

  • A pin "Invisible Power" named + 5V (important because this name will establish connection to the net + 5V), of pin number 1 (number of no importance) and null length.
  • The shape is of the type "Line", and obviously the type is "Power" and the attribute is "Invisible".
  • As graphics, a small circle and a segment from the pin to the circle is drawn.
  • The anchor of the symbol is on the pin.
  • The value is + 5V like the pin name, to display the value of this symbol (the pin being invisible by default, its name does not appear ).
  • The reference is # + 5V (thus displayed # + 5V) like the pin name. The reference text has no importance except the first character which must be "#". By convention, every component which reference starts with this symbol will appear neither in the components list nor in the netlist. Moreover, in option of symbol, the reference is declared invisible.

The creation of a new power port symbol is easy and fast if you use another symbol as model.

You just need to

  • Load the model.
  • Edit the pin name which takes the name of new power port.
  • Edit the field Value (same name as the pin, if you want to display the power port value).
  • Save the new component.