The “pcbStandoffs” defines the distance between the top of the “base plane” and the bottom of the printed circuit board. Opposite the “standoffs” are automatically made “pushdowns” on the “lid” that are exactly so long that the circuit board is neatly clamped between them.
The pcbStands can be fitted with “pins” so that the printed circuit board is also fixed on the X and Y axes. How many “pcb standoffs” should come and where they should be is specified in the array “pcbStands”. The position of each pcbStand and it's dimensions are specified in one line. This is how you use the pcbStands array:
//-- pcb_standoffs -- origin is pcb[0,0,0]
// (0) = posx
// (1) = posy
// (2) = flangeHeight (Rev. 1.7)
// (3) = flangeDiameter (Rev. 1.7)
// (4) = { yappBoth | yappLidOnly | yappBaseOnly }
// (5) = { yappHole, YappPin }
pcbStands = [
[5, 5, 3, 11, yappBoth, yappPin]
,[5, pcbWidth-5, 4, 10, yappBoth, yappPin]
,[pcbLength-5, 5, 4, 11, yappBoth, yappPin]
,[pcbLength-15, pcbWidth-15, 4, 12, yappBoth, yappPin]
Each line in the array provides one standoff.
The fourth element has the following meaning:
yappBoth: place a pcbStand both on the Base and on the Lid.
yappLidOnly: the pcbStand is only printed above (lidHalf)
yappBaseOnly: the pcbStand will only be printed at the base (baseHalf).
The meaning of the fifth element is:
yappHole: the pcbStand is provided with a “hole”
yappPin: the pcbStand is provided with a “pin”
If the fourth element is “yappBoth” and the fifth element is specified as “yappPin” then the pin will be printed on the baseHalf and a hole on the lidHalf.
It is possible to print a hole both on the Base (below) and on the Lid (above) by specifying “yappHole” as the fifth element:
[3, 12, 5, 8, yappBoth, yappHole]
A flange is a structure to strengthen the connectors by providing extra mass.