omdl  v0.9.8
OpenSCAD Mechanical Design Library

Clamps, bushings, and grips for wires and hoses. More...

+ Collaboration diagram for Clamps:

Files

file  clamps.scad
 Clamps, bushings, and grips for wires and hoses.
 

Functions

module clamp_cg (size, clamp, cone, grip, wth=0, gap=10, mode)
 A clamp, bushing, and/or grip for wire/hose wall penetrations. More...
 

Detailed Description

Clamps, bushings, and grips for wires and hoses.

Requires:
include <omdl-base.scad>;
include <models/3d/fastener/screws.scad>;
include <parts/3d/enclosure/clamps.scad>;

Function Documentation

◆ clamp_cg()

module clamp_cg ( size  ,
clamp  ,
cone  ,
grip  ,
wth  = 0,
gap  = 10,
mode   
)

A clamp, bushing, and/or grip for wire/hose wall penetrations.

Parameters
size<decimal-list-2 | decimal> wire size; a list [w, h] or a single decimal to set the wire diameter.
clamp<datastruct | integer> screw clamp; structured data or a single integer to set the clamp wall side {0|1}.
cone<datastruct | integer> bushing cone; structured data or a single integer to set the cone wall side {0|1}.
grip<datastruct | integer> zip tie grip; structured data or a single integer to set the grip wall side {0|1}.
wth<decimal> wall thickness.
gap<decimal> wire/hose gap percentage.
mode<integer> operation mode {0=hole, 1=part-a, 2=part-b, 3=parts-a and b}.

Construct a clamp, cone bushing, and/or a grip as a stand alone part or as a wall penetration hole finish that can secure or provide strain relief for passing wires and/or hoses. The penetration can be circular or rectangular dependent on the size specification.

Multi-value and structured parameters

clamp

Data structure fields: clamp

e data type default value parameter description
0 <integer-list-2 | integer> required wall side
1 <decimal> wire height base height
2 <datastruct | decimal> (see below) screw bore
3 <decimal> d*3 clamp depth
4 <decimal-list-2 | decimal> 15 pinch bar size

clamp[0]: wall side

The clamp can be placed on either side of the wall by assigning 0 or 1. To place a clamp on both sides of the wall, assign the value list [0, 1].

clamp[2]: screw bore
e data type default value parameter description
0 <decimal> max(size)/4 d : bore diameter
1 <decimal> base height l : bore length
2 (see below) [d*2, d/3, d/3] h : screw head
3 (see below) undef n : screw nut
4 (see below) undef s : nut slot cutout

See screw_bore() for documentation of the data types for the screw bore parameters h, n, and s.

clamp[4]: pinch bar size

The pinch bar size, [h, w], is specified as a percentage of the penetration size height and the clamp depth. When a single decimal is specified, the height and width percentage are the same.

cone

e data type default value parameter description
0 <integer-list-2 | integer> required wall side
1 <decimal> max(size)/2 cone base width
2 <decimal> max(size)/3 cone height

cone[0]: wall side

The cone can be placed on either side of the wall by assigning 0 or 1. To place a cone on both sides of the wall, assign the value list [0, 1].

grip

e data type default value parameter description
0 <integer-list-2 | integer> required wall side
1 <decimal> max(size)/2 zip tie width
2 <decimal> max(size)/6 zip tie height
3 <decimal> max(size)*3/7 grip base width
4 <decimal> max(size)*3/2 grip height
5 <integer> 4 cut count
6 <decimal> 4/5 cut height fraction
7 <decimal> min(size)/5 cut width
8 <decimal> 0 cut rotational offset

grip[0]: wall side

The grip can be placed on either side of the wall by assigning 0 or 1. To place a grip on both sides of the wall, assign the value list [0, 1].

Clamp example script

include <omdl-base.scad>;
include <models/3d/fastener/screws.scad>;
include <parts/3d/enclosure/clamps.scad>;
$fn = 36;
d = 7.00;
head = undef;
nut = [3.5, 1.5, 0, 4, 45, 1.25];
slot = [undef, -3];
bore = [3, undef, head, nut, slot];
clamp_cg(size=d, clamp=[0, undef, bore], mode=3);
// end_include
module clamp_cg(size, clamp, cone, grip, wth=0, gap=10, mode)
A clamp, bushing, and/or grip for wire/hose wall penetrations.
Definition: clamps.scad:743

Clamp example diagram
topbackdiag
expand topexpand backexpand diag

Cone example script

include <omdl-base.scad>;
include <models/3d/fastener/screws.scad>;
include <parts/3d/enclosure/clamps.scad>;
$fn = 36;
w = 2;
d = 7.00;
difference()
{
translate(-[d*2,d*2,w/2]) cube([d*4,d*4,w]);
clamp_cg(size=d, wth=w, mode=0);
}
clamp_cg(size=d, cone=[[0, 1]], mode=1);
// end_include
module cone(r=1, h, d, vr)
A cone.
Definition: basic_3d.scad:461

Cone example diagram
topbackdiag
expand topexpand backexpand diag

Grip example script

include <omdl-base.scad>;
include <models/3d/fastener/screws.scad>;
include <parts/3d/enclosure/clamps.scad>;
$fn = 36;
w = 2;
d = [7.00, 3.50];
e = max(d);
difference()
{
translate(-[e*2,e*2,w/2]) cube([e*4,e*4,w]);
clamp_cg(size=d, wth=w, mode=0);
}
clamp_cg(size=d, grip=0, mode=1);
// end_include

Grip example diagram
topbackdiag
expand topexpand backexpand diag

Definition at line 742 of file clamps.scad.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: