![]() |
omdl
v1.0
OpenSCAD Mechanical Design Library
|
Electrical receptacle power strip generator. More...
Collaboration diagram for Power Strip:Files | |
| file | power_strip.scad |
| A power strip maker for electrical receptacles and/or devices. | |
Configuration | |
| power_strip_box_default | |
| <map> A single gang electrical device box configuration. More... | |
| power_strip_mount_default | |
| <map> A single gang electrical device mount configuration. More... | |
| power_strip_cover_default | |
| <map> A single gang duplex receptacle cover configuration. More... | |
Modules | |
| module | power_strip_sg (cols=1, rows=1, mode=7, verb=1, cm_box=power_strip_box_default, cm_mount=power_strip_mount_default, cm_cover=power_strip_cover_default) |
| A power strip generator for single gang electrical receptacles. More... | |
Electrical receptacle power strip generator.
| Requires: |
|---|
| include <omdl-base.scad>; |
| include <transforms/base_cs.scad>; |
| include <models/3d/misc/omdl_logo.scad>; |
| include <models/3d/fastener/screws.scad>; |
| include <parts/3d/fastener/clamps.scad>; |
| include <parts/3d/fastener/mounts.scad>; |
| include <parts/3d/enclosure/project_box_rectangle.scad>; |
| include <parts/3d/enclosure/power_strip.scad>; |
| module power_strip_sg | ( | cols | = 1, |
| rows | = 1, |
||
| mode | = 7, |
||
| verb | = 1, |
||
| cm_box | = power_strip_box_default, |
||
| cm_mount | = power_strip_mount_default, |
||
| cm_cover | = power_strip_cover_default |
||
| ) |
A power strip generator for single gang electrical receptacles.
| cols | <integer> device column count. |
| rows | <integer> device row count. |
| mode | <integer> part mode. |
| verb | <integer> console output verbosity {0|1|2}. |
| cm_box | <map> box configuration map. |
| cm_mount | <map> device mount configuration map. |
| cm_cover | <map> cover configuration map. |
This module constructs a power strip grid of standard NEMA electrical power receptacles. The number of columns and rows in the power strip are configurable as well as most aspects of the power strip enclosure box, receptacle device mounts, and device cover. The default configuration of the enclosure box, device mount, and device cover are specified in global variable maps.
Integer value is binary encoded.
| b | description |
|---|---|
| 0 | generate enclosure box |
| 1 | generate clamp top |
| 2 | generate enclosure cover |
The default configuration maps can be completely replaced with a user supplied maps or may be partially updated as shown in the following example.
Custom power strip example script
| bottom | front | diag |
|---|---|---|
![]() | ![]() | ![]() |
Definition at line 881 of file power_strip.scad.
Here is the call graph for this function:| power_strip_box_default |
<map> A single gang electrical device box configuration.
The default electrical device box configuration map.
Default device box configuration map table
| key | value | description |
|---|---|---|
| boxd | 25 | Box internal depth |
| cdms | false | Cover uses device mount screws: {true|false} |
| dlogo | true | Detail logo on box rear: {true|false} |
| dlts | 108 | Device length tab-to-tab space |
| drimb | true | Detail rim on box rear: {true|false} |
| drimc | true | Detail rim on cover top: {true|false} |
| evr | 4 | Box & cover rounding radius |
| evrm | 2 | Box & cover rounding mode: {0|1|2} |
| fins | [3, 270, 3, 0.75] | Post fins: [number, angle, width, length] |
| iscl | 15 | Input space: cord, switch, surge, etc |
| iwdo | true | Internal wall divisions on: {true|false} |
| iwpd | 10 | Internal wall wire pass diameter |
| iwps | 1 | Internal wall wire pass side: {+1|-1} |
| lefb | 2 | Box lid edge finish: {0|1|2|3|4} |
| lefc | 2 | Cover lid edge finish: {0|1|2|3|4} |
| lscl | 0 | Left-side extra space |
| mpc2b | true | Mirror cover post additions in box: {true|false} |
| mphda | 0 | Mirrored post hole diameter adjustment |
| mslot | [4, [1, 1, 4]] | Mount slot: [screw, cover, size, scale, wth]: see mount_screw_slot() |
| mslots | undef | Mount slot instances: [[move, rotate, align], ...] |
| mtab | [4, 25, 4] | Mount tab: [screw, brace, vrm, vr, wth, size]: see mount_screw_tab() |
| mtabs | undef | Mount tab instances: [[edge, zero, move], ...] |
| oscl | 0 | Output space: wire-nuts, led, aux board, etc |
| piab | undef | Box post instance additions: see project_box_rectangle() |
| piac | undef | Cover post instance additions: see project_box_rectangle() |
| pmode | 138 | Box post mode (b7=1 required): see project_box_rectangle() |
| pwcd | 7 | Power cord dimensions: {d|[w,h]} |
| pwco | [0, 0] | Power cord connections offset: [x, z] |
| pwcp | undef | Power cord clamp pinch bar percentage: [h, w] |
| pwcs | 0 | Power cord clamp side: {0|1} |
| pwct | 10.5 | Power cord clamp tab width |
| pwsd | 3.5 | Power cord clamp screw diameter |
| pwsh | [6, 3.5] | Power cord clamp screw head spec: see screw_bore() |
| pwsn | [5.75, 2.5] | Power cord clamp screw nut spec: see screw_bore() |
| ribs | [0, 1.75] | Box ribs configuration: see project_box_rectangle() |
| roww | 50 | Receptacle row width |
| rscl | 0 | Right-side extra space |
| wiab | undef | Box wall instance additions: see project_box_rectangle() |
| wmode | 426 | Box wall mode: see project_box_rectangle() |
| wth | 2 | Box wall thickness |
Map key description is available in source. See the map
Definition at line 331 of file power_strip.scad.
| power_strip_mount_default |
<map> A single gang electrical device mount configuration.
The default electrical device mount configuration map.
Default device mount configuration map table
| key | value | description |
|---|---|---|
| mss | 83.3438 | Device mount screw separation |
| rmsd | 3.175 | Mount screw hole diameter |
| rmsh | 2.38125 | Mount screw head height |
| rmth | 1.5875 | Mount tab height |
| rshc | 7.9375 | Mount screw head clearance |
Map key description is available in source. See the map
Definition at line 520 of file power_strip.scad.
| power_strip_cover_default |
<map> A single gang duplex receptacle cover configuration.
The default electrical device cover configuration map.
Default device cover configuration map table
| key | value | description |
|---|---|---|
| drpo | 38.1 | Receptacle offset |
| rcsd | [3.51, 7.5, 2.5, 0.5] | Cover center hole screw: [diameter, head-diameter, head-height, tolerance] |
| rpd | 34.925 | Receptacle diameter |
| rpfl | 29.3688 | Receptacle flat-to-flat height |
Map key description is available in source. See the map
Definition at line 654 of file power_strip.scad.