wireviz / WireViz

Easily document cables and wiring harnesses.
GNU General Public License v3.0
4.23k stars 218 forks source link

[feature] Add option to use DEF-STAN cable color code #337

Open scottbouch opened 2 months ago

scottbouch commented 2 months ago

Hi all,

It would be nice to be able to call up the DEF-STAN (defence standard) color codes if possible? Clearly this is possible by setting cusom colours, but to access a default colour library would be good.

See reference: https://www.fscables.com/footer/links/colour_codes/def-stan-colour-codes.html

I'm not sure which DEF-STAN standard number defines the colours and numbering/order, be good to find this specific reference to title the colour code correctly. I have written to FS Cables to hopefully find out.

Cheers, Scott

kvid commented 2 months ago

It seems the 36 color codes listed at FS Cables are equal to Table 4 in UK Defence Standard 61-12 Wires, Cords, and Cables, Electrical Part 4: Cables, Special Purpose, Electrical (Sub-Miniature Electric Cables) Issue 4 (2005-12-19) Reprinted 2008-06-13 Incorporating amendment 1, labeled DEF STAN 61-12 Part 4 Issue 4 at each page.

The "Note: The colour code of 25 core cables has core colours 23 & 24 replaced with colours 26 & 28" at FS Cables is described a bit differently in the standard document: A 25 core cable has cores 1-3 in the center, 4-11 in first layer, and 12-22,25,26,28 in second layer, i.e. cores 23, 24, and 27 are skipped. Both descriptions end up with the same set of colors, but the order of the last 3 cores will not be the same if I understand it correctly. Please correct me and explain why if I'm wrong!

Larger cables with 50, 60, 85, 108, and 162 cores are also described, but they have only one red and one blue core adjacent to each other in each layer with all remaining cores being white.

scottbouch commented 2 months ago

Hi @kvid ,

Thanks for that research; I have now found from Scribd a copy of DEF-STAN 61-12 Part 4 Issue 3, but I imagine the colour tables will be the same as your copy at Issue 4.

For comparison, I had a look at Eland Cables datasheets, but these don't go into this level of detail about the two rogue colours.

I think that FS Cables wording is slightly misleading, making it sound like a swap over of 23 & 24 for 26 & 28.

However, DEF-STAN 61-12 Part 4 states the cores of a 25 way cable listed out in the following order: Centre: (1 to 3) First layer: (4 to 11) Second layer: (12 to 22, 25, 26, 28) in numerical order but with omissions of 23 and 24 (and actually 27 too)

FS Cables choice of wording makes it sound like the order is: (12 to 22, 26, 28, 25), but DEF-STAN 61-12 Part 4 appears much clearer about the listed order. I'm tempted to say the DEF-STAN order is likely to be the most correct, and worth following.

Cheers, Scott

scottbouch commented 2 months ago

PS, here is an example of a 12 way DEF-STAN 61-12 Part 5 cable (16 strands of 0.2 mm).

1715261989821

Interesting to note that Plessey Mk4 plugs and sockets were made with 2, 3, 4, 6, 12, 18, 25 way variants. These connectors first appeared circa 1950, and the relationship of connector ways to standardised numbers of cable cores may have been by design rather than chance. The DEF-STAN terminology seems to appear in the 70's and replace earlier terminology for similar constructed cables, refer to pages 26 and 33 of this 1973 document: https://scottbouch.com/mcfs/docs/reme-emer-ws-f100-iss1-dec73-chap123-terminating-jointing-wires-cables.pdf#page=26

More info on Mk4 connectors: https://scottbouch.com/mcfs/lightningt5t55/connector-104-pattern-plessey-mk4.htm

Update:

I have just found that Parts 4 and 5 of DEF-STAN 61-12 (both define multicore cables) share the same colour code. It may make sense to title this colour code just "DEF-STAN 61-12 cables" to not be specific to just Part 4 we have been discussing, but to refer agnosticly to multicore cables, as opposed to the single core equipment wires detailed in Part 6 and Part18.

DEF-STAN 61-12 observations:

Part 4 = 7 strands of 0.1 mm (250 V r.m.s. rating) or 7 strands of 0.2 mm (440 V r.m.s. rating)

Part 5 = 16 strands of 0.2 mm (440 V r.m.s. rating)