diff --git a/examples/ex07.bom.tsv b/examples/ex07.bom.tsv new file mode 100644 index 0000000..1d7275e --- /dev/null +++ b/examples/ex07.bom.tsv @@ -0,0 +1,3 @@ +Item Qty Unit Designators +Connector, Stewart Connector SS-37000-002, male, 8 pins 2 X1, X2 +Cable, 8 x 24 AWG 1 m W1 diff --git a/examples/ex07.gv b/examples/ex07.gv new file mode 100644 index 0000000..fd13951 --- /dev/null +++ b/examples/ex07.gv @@ -0,0 +1,34 @@ +graph { +// Graph generated by WireViz +// https://github.com/formatc1702/WireViz + graph [bgcolor="#fffbf8" fontname=arial nodesep=0.33 rankdir=LR ranksep=2] + node [fillcolor=white fontname=arial shape=record style=filled] + edge [fontname=arial style=bold] + X1 [label="X1|{Stewart Connector SS-37000-002|male|8-pin}|{{DA+|DA-|DB+|DC+|DC-|DB-|DD+|DD-}|{1|2|3|4|5|6|7|8}}"] + X2 [label="X2|{Stewart Connector SS-37000-002|male|8-pin}|{{1|2|3|4|5|6|7|8}|{DB+|DB-|DA+|DD+|DD-|DA-|DC+|DC-}}"] + edge [color="#000000:#ffffff:#00ff00:#ffffff:#000000"] + X1:p1r:e -- W1:w1:w + W1:w1:e -- X2:p3l:w + edge [color="#000000:#00ff00:#000000"] + X1:p2r:e -- W1:w2:w + W1:w2:e -- X2:p6l:w + edge [color="#000000:#ffffff:#ff8000:#ffffff:#000000"] + X1:p3r:e -- W1:w3:w + W1:w3:e -- X2:p1l:w + edge [color="#000000:#0066ff:#000000"] + X1:p4r:e -- W1:w4:w + W1:w4:e -- X2:p7l:w + edge [color="#000000:#ffffff:#0066ff:#ffffff:#000000"] + X1:p5r:e -- W1:w5:w + W1:w5:e -- X2:p8l:w + edge [color="#000000:#ff8000:#000000"] + X1:p6r:e -- W1:w6:w + W1:w6:e -- X2:p2l:w + edge [color="#000000:#ffffff:#a52a2a:#ffffff:#000000"] + X1:p7r:e -- W1:w7:w + W1:w7:e -- X2:p4l:w + edge [color="#000000:#a52a2a:#000000"] + X1:p8r:e -- W1:w8:w + W1:w8:e -- X2:p5l:w + W1 [label=<
W1
8x24 AWG1 m
 
X1:1WHGNX2:3
X1:2GNX2:6
X1:3WHOGX2:1
X1:4BUX2:7
X1:5WHBUX2:8
X1:6OGX2:2
X1:7WHBNX2:4
X1:8BNX2:5
 
> fillcolor=white margin=0 shape=box style=""] +} diff --git a/examples/ex07.html b/examples/ex07.html new file mode 100644 index 0000000..a616265 --- /dev/null +++ b/examples/ex07.html @@ -0,0 +1,298 @@ +

Diagram

+ + + + + +%3 + + +X1 + +X1 + +Stewart Connector SS-37000-002 + +male + +8-pin + +DA+ + +DA- + +DB+ + +DC+ + +DC- + +DB- + +DD+ + +DD- + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 + + +W1 + + +W1 + +8x + +24 AWG + +1 m +  +X1:1 +WHGN +X2:3 + + + + + + + + + +X1:2 +GN +X2:6 + + + +X1:3 +WHOG +X2:1 + + + + + + + + + +X1:4 +BU +X2:7 + + + +X1:5 +WHBU +X2:8 + + + + + + + + + +X1:6 +OG +X2:2 + + + +X1:7 +WHBN +X2:4 + + + + + + + + + +X1:8 +BN +X2:5 + + + +  + + +X1:p1r:e--W1:w1:w + + + + + + + +X1:p2r:e--W1:w2:w + + + + + +X1:p3r:e--W1:w3:w + + + + + + + +X1:p4r:e--W1:w4:w + + + + + +X1:p5r:e--W1:w5:w + + + + + + + +X1:p6r:e--W1:w6:w + + + + + +X1:p7r:e--W1:w7:w + + + + + + + +X1:p8r:e--W1:w8:w + + + + + +X2 + +X2 + +Stewart Connector SS-37000-002 + +male + +8-pin + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 + +DB+ + +DB- + +DA+ + +DD+ + +DD- + +DA- + +DC+ + +DC- + + +W1:w1:e--X2:p3l:w + + + + + + + +W1:w2:e--X2:p6l:w + + + + + +W1:w3:e--X2:p1l:w + + + + + + + +W1:w4:e--X2:p7l:w + + + + + +W1:w5:e--X2:p8l:w + + + + + + + +W1:w6:e--X2:p2l:w + + + + + +W1:w7:e--X2:p4l:w + + + + + + + +W1:w8:e--X2:p5l:w + + + + + + +

Bill of Materials

ItemQtyUnitDesignators
Connector, Stewart Connector SS-37000-002, male, 8 pins2X1, X2
Cable, 8 x 24 AWG1mW1
\ No newline at end of file diff --git a/examples/ex07.png b/examples/ex07.png new file mode 100644 index 0000000..949acde Binary files /dev/null and b/examples/ex07.png differ diff --git a/examples/ex07.svg b/examples/ex07.svg new file mode 100644 index 0000000..28eb9bf --- /dev/null +++ b/examples/ex07.svg @@ -0,0 +1,297 @@ + + + + + + +%3 + + +X1 + +X1 + +Stewart Connector SS-37000-002 + +male + +8-pin + +DA+ + +DA- + +DB+ + +DC+ + +DC- + +DB- + +DD+ + +DD- + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 + + +W1 + + +W1 + +8x + +24 AWG + +1 m +  +X1:1 +WHGN +X2:3 + + + + + + + + + +X1:2 +GN +X2:6 + + + +X1:3 +WHOG +X2:1 + + + + + + + + + +X1:4 +BU +X2:7 + + + +X1:5 +WHBU +X2:8 + + + + + + + + + +X1:6 +OG +X2:2 + + + +X1:7 +WHBN +X2:4 + + + + + + + + + +X1:8 +BN +X2:5 + + + +  + + +X1:p1r:e--W1:w1:w + + + + + + + +X1:p2r:e--W1:w2:w + + + + + +X1:p3r:e--W1:w3:w + + + + + + + +X1:p4r:e--W1:w4:w + + + + + +X1:p5r:e--W1:w5:w + + + + + + + +X1:p6r:e--W1:w6:w + + + + + +X1:p7r:e--W1:w7:w + + + + + + + +X1:p8r:e--W1:w8:w + + + + + +X2 + +X2 + +Stewart Connector SS-37000-002 + +male + +8-pin + +1 + +2 + +3 + +4 + +5 + +6 + +7 + +8 + +DB+ + +DB- + +DA+ + +DD+ + +DD- + +DA- + +DC+ + +DC- + + +W1:w1:e--X2:p3l:w + + + + + + + +W1:w2:e--X2:p6l:w + + + + + +W1:w3:e--X2:p1l:w + + + + + + + +W1:w4:e--X2:p7l:w + + + + + +W1:w5:e--X2:p8l:w + + + + + + + +W1:w6:e--X2:p2l:w + + + + + +W1:w7:e--X2:p4l:w + + + + + + + +W1:w8:e--X2:p5l:w + + + + + + diff --git a/examples/ex07.yml b/examples/ex07.yml new file mode 100644 index 0000000..3d0a1b7 --- /dev/null +++ b/examples/ex07.yml @@ -0,0 +1,24 @@ +# Example 7: Crossover Cable +connectors: + X1: + type: Stewart Connector SS-37000-002 + subtype: male + pinout: [DA+,DA-,DB+,DC+,DC-,DB-,DD+,DD-] # pincount is implicit in pinout + X2: + type: Stewart Connector SS-37000-002 + subtype: male + pinout: [DB+,DB-,DA+,DD+,DD-,DA-,DC+,DC-] + +cables: + W1: + color_code: T568A # auto-color wires based on a standard + wirecount: 8 # need to specify number of wires explicitly when using a color code + gauge: 24 AWG # also accepts AWG as unit + length: 1 # length in m + shield: false + type: CAT5e + +connections: + - - X1: [1-8] + - W1: [1-8] + - X2: [3,6,1,7,8,2,4,5] # crossover diff --git a/examples/readme.md b/examples/readme.md index 5330f73..1b19d4d 100644 --- a/examples/readme.md +++ b/examples/readme.md @@ -34,4 +34,8 @@ [Source](ex06.yml) - [Bill of Materials](ex06.bom.tsv) +## Example 07 +![](ex07.png) + +[Source](ex07.yml) - [Bill of Materials](ex07.bom.tsv)