DIN rails

Top hat

roll
MB1
pan
MB2
zoom
MB3
rotate
shift+MB1

DIN rail (IEC 60715 – 35 × 7.5 mm).

"""Example usage of CadQuery Electronics top hat DIN rail."""

from cq_electronics.mechanical.din_rail import TopHat

top_hat = TopHat(100, slots=True)
result = top_hat.cq_object

if "show_object" in locals():
    show_object(result, name="din_rail")  # type: ignore[name-defined] # noqa: F821
class mechanical.din_rail.TopHat(length: float, depth: float = 7.5, slots: bool = True)

Top hat DIN rail.

Standard:

IEC 60715

The IEC 60715 standard specifies both a 7.5 mm (default) and a 15 mm deep version, which are designated:

  • IEC 60715 – 35 × 7.5

  • IEC 60715 – 35 × 15

Parameters:
  • length (float) – Rail length.

  • depth (float, optional, Defaults to 7.5 mm.) – Rail height. Typically, 7.5 mm or 15 mm.

  • slots (bool, optional, Defaults to True.) – Add mounting slots.

THICKNESS = 1

Material thickness.

WIDTH = 35

Width of rail.