Skip to content

DRAW-41 Wire bending right at a pin or a power symbol

Severity Status Implementation
suggestion runs in better_erc mid, depends on NET-26

Data it needs: drawing geometry.

Looks at. The schematic drawing (geometry).

A wire leaves a pin, and enters a pin or a power symbol's pin, along that pin's axis for at least drawing.pin_lead (default 1.27 mm, 50 mil) before it bends: the pin's direction stays readable and the corner is not mistaken for a junction. Found from the wire segment that ends at the pin: shorter than the setting, or perpendicular to the pin's axis (the pin's direction after the symbol's rotation and mirror). The pin's end point decides, whatever its length; a pin ending on the middle of a wire is a tee, not a bend (no finding), but a tee right at the pin tip counts. A test point (part class from its library symbol) is not checked across its axis: its tip may touch a wire from any side, since it marks a place on the net and leads nowhere. Mounting holes, antenna feeds and other one-pin parts are checked like any part; a wire through a one-pin symbol's body is DRAW-7.

Settings

Set them in the project file under [checks."DRAW-41"], or for one run with --set DRAW-41.NAME=VALUE. A name that starts with drawing. is shared by several checks and is set under that name alone.

Setting Default Meaning
drawing.pin_lead 1.27 mm straight wire at a pin or power symbol before the first bend

Test schematics

Each schematic below is in test_schematics/sources. The block under it is what berc check --only DRAW-41 reports on it.

draw-41_pin_lead

The test schematic draw-41_pin_lead The test schematic draw-41_pin_lead

  suggestion DRAW-41 #afm   R2.1 pin at x 83.82 y 45.72 leaves across its axis (up)
                            sheet /, item R2.1 pin
                            fix: run the wire straight out of the pin before the first bend
  suggestion DRAW-41 #9cy   R4.2 pin at x 66.04 y 78.74 leaves across its axis (right)
                            sheet /, item R4.2 pin
                            fix: run the wire straight out of the pin before the first bend
  suggestion DRAW-41 #qk3   R5.2 pin at x 106.68 y 78.74 leaves across its axis (right)
                            sheet /, item R5.2 pin
                            fix: run the wire straight out of the pin before the first bend
  suggestion DRAW-41 #2n1   R6.1 pin at x 137.16 y 45.72 bends 0.64 mm out
                            sheet /, item R6.1 pin
                            fix: run the wire straight out of the pin before the first bend

draw-41_test_points

The test schematic draw-41_test_points The test schematic draw-41_test_points

  suggestion DRAW-41 #4g1   H1.1 pin at x 50.8 y 101.6 leaves across its axis (down)
                            sheet /, item H1.1 pin
                            fix: run the wire straight out of the pin before the first bend

DRAW-41 also fires on the test schematics of other checks: draw-28_label_off_wire, draw-35_small_part_horizontal, draw-40_sideways_symbol.