rules module#

class JLCPCBRules[source]#

Bases: FabricationConstraints

JLCPCB Fabrication Constraints for 1oz Copper on 4-6 layer boards.

min_copper_width: float = 0.09#

Minimum permissible copper width. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as trace width.

min_copper_copper_space: float = 0.09#

Minimum permissible copper-to-copper spacing. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as clearance.

min_copper_hole_space: float = 0.254#

Minimum permissible copper-to-hole spacing. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as clearance.

min_copper_edge_space: float = 0.3#

Minimum permissible copper-to-board-edge spacing. This constraint will be enforced by the engine for generated copper shapes and will take precedence over other constraints and rules, such as clearance.

solder_mask_registration: float = 0.05#

Minimum distance between soldermask and the edge of a copper pad.

min_soldermask_opening: float = 0.0#

Minimum size of a soldermask opening shape.

min_soldermask_bridge: float = 0.08#

Minimum distance between two soldermask features.

min_silkscreen_width: float = 0.153#

Minimum width of silkscreen.

min_silk_solder_mask_space: float = 0.15#

Minimum distance between silkscreen and soldermask features.

min_silkscreen_text_height: float = 1.0#

Minimum height of silkscreen text.

min_annular_ring: float = 0.13#

Minimum annular ring around a hole or via.

min_drill_diameter: float = 0.3#

Minimum diameter of a hole either in a pad or a via.

min_pitch_leaded: float = 0.217#

Minimum distance between pad centers for leaded packages.

min_pitch_bga: float = 0.377#

Minimum distance between pad centers for BGA packages.

min_hole_to_hole: float = 0.5#

Minimum distance between two holes, such as through-hole pads or vias.

min_pth_pin_solder_clearance: float = 0#

Minimum distance from the outer edge of a through-hole pad to the soldermask.

min_th_pad_expand_outer: float = 0.2#

Minimum through-hole pad expansion on outer layers.

max_board_width: float = 500#

Maximum width of a board.

max_board_height: float = 400#

Maximum height of a board.