![]() |
omdl
v0.9.8
OpenSCAD Mechanical Design Library
|
Electrical receptacle power strip generator. More...
Files | |
file | power_strip.scad |
A power strip maker for electrical receptacles and/or devices. | |
Functions | |
module | power_strip_sg (cols=1, rows=1, mode=7, verb=1, cm_box=power_strip_sg_default_box, cm_mount=power_strip_sg_default_mount, cm_cover=power_strip_sg_default_cover) |
A power strip generator for single gang electrical receptacles. More... | |
Maps | |
power_strip_sg_default_box | |
<map> A single gang electrical device box configuration. More... | |
power_strip_sg_default_mount | |
<map> A single gang electrical device mount configuration. More... | |
power_strip_sg_default_cover | |
<map> A single gang duplex receptacle cover configuration. More... | |
Electrical receptacle power strip generator.
Requires: |
---|
include <omdl-base.scad>; |
include <tools/operation_cs.scad>; |
include <models/3d/misc/omdl_logo.scad>; |
include <models/3d/fastener/screws.scad>; |
include <parts/3d/enclosure/clamps.scad>; |
include <parts/3d/enclosure/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_sg_default_box , |
||
cm_mount | = power_strip_sg_default_mount , |
||
cm_cover | = power_strip_sg_default_cover |
||
) |
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 811 of file power_strip.scad.
power_strip_sg_default_box |
<map> A single gang electrical device box configuration.
The default electrical device box configuration map.
Default device box configuration map table
key | value |
---|---|
wth | 2 |
roww | 50 |
dlts | 108 |
boxd | 25 |
evrm | 2 |
evr | 4 |
cdms | false |
lefb | 2 |
lefc | 2 |
dlogo | true |
drimb | true |
drimc | true |
fins | [3, 270, 3, 0.75] |
ribs | [0, 1.75] |
wmode | 426 |
wiab | undef |
pmode | 138 |
piab | undef |
piac | undef |
mpc2b | true |
mphda | 0 |
iscl | 15 |
oscl | 0 |
lscl | 0 |
rscl | 0 |
iwdo | true |
iwpd | 10 |
iwps | 1 |
pwco | [0, 0] |
pwcd | 7 |
pwcs | 0 |
pwct | 10.5 |
pwcp | undef |
pwsd | 3.5 |
pwsh | [6, 3.5] |
pwsn | [5.75, 2.5] |
mtab | [4, 25, 4] |
mtabs | undef |
mslot | [4, [1, 1, 4]] |
mslots | undef |
Map key description is available in source. See the map
Definition at line 285 of file power_strip.scad.
power_strip_sg_default_cover |
<map> A single gang duplex receptacle cover configuration.
The default electrical device cover configuration map.
Default device cover configuration map table
key | value |
---|---|
drpo | 38.1 |
rpd | 34.925 |
rpfl | 29.3688 |
rcsd | [3.51, 7.5, 2.5, 0.5] |
Map key description is available in source. See the map
Definition at line 587 of file power_strip.scad.
power_strip_sg_default_mount |
<map> A single gang electrical device mount configuration.
The default electrical device mount configuration map.
Default device mount configuration map table
key | value |
---|---|
mss | 83.3438 |
rmsd | 3.175 |
rmsh | 2.38125 |
rshc | 7.9375 |
rmth | 1.5875 |
Map key description is available in source. See the map
Definition at line 463 of file power_strip.scad.