Components & the Codex
Device tags, Codex parts, connectors, how many wires a terminal takes, and part functions with terminal roles.
A component is a device tag in this project. It points at a Codex part: manufacturer, part number, category, description and a list of terminals. Several components can share one part. The example's three shutdown buttons S2, S3 and S4 are all the same 40mm 1NC button, and F1–F3 are the same blade fuse holder.
- Change which part a tag uses on the Components tab. Edit parts, terminals, manufacturers and logos in the Codex.
- Right-click a block on the canvas and choose Duplicate to add another component with the same part and the next free tag (
S4→S5). The copy has no wires. - Hover a block's header to see its tag, part name, manufacturer and part number. Hover a terminal to see its name, connection type, signal and whether it's wired.
Parts are only created and edited in the Codex, and they must be complete before they save: name, manufacturer, part number, category, description, and at least one terminal with a name, connection type and default signal. That rule keeps every drawing and BOM line meaningful.
- Connector column: give terminals the same connector name (
X1) to group them into a multi-pin connector. Pin names only need to be unique within their connector, so the VCU's four sensor ports can all have pins A, B and C. Add terminal after a pin continues the same connector with the next pin. Use the label printed on the device in uppercase with no spaces (TB1,CN100,TELEM1),X1,X2… for a plug with no printed label, and no connector at all for terminals simply numbered 1, 2, 3. - Each connector records its gender (male pins or female sockets) and keying. The VCU's sensor ports are female, keying A, to mate with the sensors' male plugs. The rear harness X5 is male, keying B, so it can't be plugged into a sensor port by mistake.
- Each terminal sets how many wires it accepts (Wires, e.g. 2 for a two-level terminal). Leave it at 1 and Ohmstead will route fan-outs through terminal strips.
Function and terminal roles
Section titled “Function and terminal roles”A part's Function says what it does, beside its category: analog or digital input or output, relay, contactor, solid-state relay, optocoupler, switch, pushbutton, e-stop, fuse, breaker, power supply, battery, motor, VFD, safety relay or overload relay. Plain block means the part has been checked and has no symbol of its own (a BMS, a CAN HAT, an interface board). Choose it under Category, then open Roles in the terminal table and give each terminal its Role. Ohmstead checks that the part has every role its function needs, and won't save it until it does, naming the role that's missing.
| Function | Needs |
|---|---|
| Relay | Coil A1 and Coil A2 (or a Coil input on a relay board), and at least one contact: COM with NO or NC |
| Contactor | Coil A1, Coil A2 and its poles, each a COM (line side) with an NO (load side) |
| Analog or digital input or output | One Channel terminal per channel, numbered in No.; channel commons and supply are optional |
| Solid-state relay | LED anode and cathode on the input, and COM + NO or Collector + Emitter on the output |
| Optocoupler | LED anode, LED cathode, Collector and Emitter, per channel |
| Switch, pushbutton | A contact: COM with NO or NC |
| E-stop | A contact with an NC |
| Fuse, breaker | Its terminals in pairs. A breaker-category part (or a fuse terminal block) with an even number of terminals pairs them in order, first half to second half, the way wire sizing does. Anything else needs two terminals joined to each other (Joined to, under DC details) |
| Power supply, battery | Supply + and Supply − |
| Safety relay | Supply + and Supply − on A1 and A2, and at least one output contact: COM with NO (13–14, 23–24). Safety inputs (S11, S12…) take the Channel role |
| Overload relay | Its auxiliary contacts: 95–96 (COM with NC) and 97–98 (COM with NO). The main poles need no role |
| Motor, VFD, plain block | Nothing beyond the function |
- No. is the channel number for channel terminals and the pole number for contacts. A relay with two changeover contacts has
11COM,12NC and14NO on pole 1, and21,22,24on pole 2. A contactor's main poles1/L1–2/T1are poles 1–3, so its auxiliary13–14takes the next free number. - A relay board's
INpin drives a coil the board doesn't bring out: give it the Coil input role. On a board with several relays, number each Coil input like the pole it switches (IN1withCOM1,NO1,NC1). - Terminal groups are for parts that do more than one thing, like a PLC CPU with onboard inputs and outputs. Type a group name (
DI,AI) in a terminal's Group column, then choose the group's function in the Terminal groups table below. Each group's terminals are checked against its own function. - Leave Function empty for anything else; the part works exactly as before.
validate_projectlists relays, I/O, e-stops, breakers, power supplies and motors whose part has no function yet, so you can fill them in.
Free plan: everything you add to the Codex is public. Pro and Student: new parts and signal types are private until you publish them. Built-in parts are read-only; fork one to change it.