A straight serial plug needs the hood's length plus one minimum bend radius of clear depth behind the panel. When the cabinet gives less, fit one straight-through male-to-female port-saver adapter in the port's exact shell size; it turns the cable 90 degrees so the bend happens beside the panel, not behind it, and never use a null-modem adapter or stacked gender changers.
When the clear depth behind an HMI's serial port is less than the plug's hood plus one minimum bend radius, the cable kinks against the enclosure wall and the fault shows up weeks later, usually when the door moves. The fix is one straight-through male-to-female port-saver adapter in the port's exact shell size. It turns the cable 90 degrees at the panel face, so the cable runs parallel to the panel and its bend happens sideways, where the cabinet has room. It must be straight-through: a null-modem adapter crosses the data pins and stops a cable that already works. This page gives the depth arithmetic, the part to order, the fitting steps and the continuity checks that prove the fit before you close the door.
When a straight plug stops fitting
A straight plug consumes two depths: the connector's hood and the cable's first bend. The hood on a typical 9-pin plug with jackscrews measures about 50 mm from the panel face to its back edge; measure the plug you actually use, because hoods vary. The bend is the cable's minimum bending radius. Cable makers set that radius at 4 to 10 times the cable's outside diameter, and structured cabling practice in ANSI/TIA-568 works on 4 times outside diameter for a basic cable and 10 times for multipair. So a straight fit needs:
Measure the clear depth with the door closed and the cable as routed. Below that figure the cable bends under its radius, which loads the solder cups or crimps, and the connection survives until vibration or a door swing finds it. Two shortcuts make things worse. Pulling off the hood or strain relief gains millimetres but hangs the cable's weight on the panel connector and drops shell contact. Stacking gender changers adds depth and one more mating pair per changer, so the clearance problem grows with every part you add.
Worked example: 70 mm of depth behind a DE-9 port with an 8 mm cable
Inputs, each measured on the job:
- Clear depth behind the panel face: 70 mm.
- Cable: one round shielded serial cable, outside diameter 8 mm, single jacket, so the 4 × OD radius applies. On multipair cable, use 10 × OD.
- Straight plug hood: 50 mm, measured on the hooded DE-9 plug in hand.
- Cabinet width beside the panel: 400 mm.
The rule in words: a straight plug fits only if the depth behind the panel covers the hood plus one bend radius.
Arithmetic: minimum bend radius = 4 × 8 mm = 32 mm. Depth a straight fit needs = 50 mm + 32 mm = 82 mm. The cabinet gives 70 mm, so the cable runs 12 mm short and kinks below its radius against the back wall. On multipair cable the same numbers are 10 × 8 mm = 80 mm and 50 mm + 80 mm = 130 mm, a 60 mm shortfall.
With the port-saver adapter fitted, the cable leaves the adapter parallel to the panel. The 32 mm bend now needs 32 mm of width beside the panel, and this cabinet has 400 mm, so the loop lies flat with room to spare. Behind the panel only the adapter's own profile remains; take that measurement from the part or its datasheet before you order.
Decision: at 70 mm of depth against a required 82 mm, fit the right-angle straight-through adapter. Above 82 mm, keep the straight plug and support the cable.
The adapter to order
- Shell size: match the port exactly, DE-9 (usually labelled DB9), DB15 or DB25. A near miss is what pushes people toward gender changers.
- Genders: read the port and the plug on your cable. The adapter is male where it meets a female port and female where it receives your plug; that male-to-female form is the port saver.
- Wiring: straight-through, every pin to its own number. On the 9-pin shell that is pin 1 to pin 1 through pin 9 to pin 9; on DB15 and DB25 the same rule runs to 15 and 25. If the listing does not say straight-through, ask before you order.
- Never a null-modem: on a DE-9 it crosses pin 2 and pin 3, the received and transmitted data lines, and often loops the handshake pins, so a cable that was commissioned working stops dead.
- One adapter only: it adds exactly one mating pair to the circuit, and that pair stays countable when you troubleshoot.
- Shield path: the adapter should carry shell contact through, shell to shell, so a shielded cable keeps its shield end to end.
- Form: look for a low-clearance, right-angle or flex version; these are standard connector-catalog items ordered by shell size, gender and wiring.
The same depth arithmetic applies to anything else mounted behind that shallow panel, including a shop-floor notice board or any panel display you fit into the same cabinet.
What you need
- The adapter: right shell size, right genders, straight-through wiring, low-clearance or 90-degree exit.
- A multimeter or continuity tester for the ring-out.
- A small screwdriver or nut driver for the jackscrews.
- A tape measure for depth, hood length and cable diameter.
- Cable ties and a tie point or bracket that can carry the cable's weight.
- Your site lockout kit.
Fitting the adapter
- Measure before you order: clear depth behind the panel, hood length, cable outside diameter. Apply the threshold from the worked example and buy the adapter that matches shell and genders.
- Remove power from the panel and its serial circuit per your site lockout procedure before you touch the port. If you are also running low-voltage supply wiring in the same cabinet, wiring 12 to 36 V DC power to a signage display covers that side of the job.
- Record what is fitted now: port, connector genders, cable. The commissioned wiring stays known only if somebody writes it down.
- Seat the adapter on the panel port and tighten both jackscrews finger-tight plus a light snug.
- Mate the cable plug to the adapter and secure its screws.
- Dress the cable: lay the loop flat beside the panel, put the weight on the tie point, leave a service loop, and let nothing hang on the adapter.
- Close the door slowly and confirm nothing pinches the cable or pushes on the adapter.
Proving the fit before you close the panel
- With power off, ring out every pin through the adapter from the panel side to the cable side. Each pin must show continuity to its own number only, never to a neighbor; on a DB9 that is nine checks, plus shell to shell if the cable is shielded.
- Power up and confirm the panel reports healthy communications with its controller, using the panel's own status indication.
- Wiggle the cable and adapter gently while watching the status. A dropout means a loose jackscrew or a damaged contact.
- Swing the door through its full travel with the panel running; communications must stay up through the whole swing.
- If communications are still down after a clean ring-out, remove the adapter and try the direct cable before blaming the panel; the added mating pair is the first suspect. A port that refuses to open after rework is its own fault, and fixing CODESYS COM.Open error 5004 on a serial port walks that diagnosis.
- Parts packed behind a panel also hold heat. Checking signage enclosure temperature in warm locations gives the measurement routine before you call the fit finished.
Mistakes that come back
- A bend forced at the hood: it holds until vibration or a door swing loads the terminations.
- A hood or strain relief removed for depth: the cable's weight then works the connector and the shield contact.
- Stacked gender changers: extra depth, extra mating pairs, extra contact resistance.
- A pigtail re-terminated from memory: a wrong wiring connection gives no communications or drives two outputs together; take the wiring diagram from the panel manual and the controller manual.
- A flex or ribbon adapter with no shield on a long differential run such as RS-422 or RS-485: keep the unshielded stretch short.
The decision
Recommendation: Keep the straight plug while the measured depth behind the panel is at least the hood length plus 4 times the cable's outside diameter, or 10 times for multipair. Below that figure, fit one straight-through male-to-female port-saver adapter in the port's exact shell size, support the cable on a tie point either way, and ring out every pin before the door closes.
Questions
Which pins pass through a straight-through DE-9 port saver?
All nine, one to one: pin 1 to pin 1 through pin 9 to pin 9, shell to shell as well. That includes the handshake pins 4, 6, 7 and 8 along with data pins 2 and 3 and ground pin 5, so hardware handshaking that worked before the adapter keeps working after it. Ring out all nine pins plus the shell before power-up.
The enclosure wall has to stay sealed. Can the adapter help?
No. A connector through a sealed wall needs a gasketed, panel-mount D-sub pass-through, and it must be the accessory your enclosure maker documents for that wall; any other hole costs the wall's rating. The port-saver adapter solves clearance behind the panel only.
Does a tight bend matter less at low baud rates?
No. The 4 to 10 times outside diameter figure is a mechanical limit that protects the conductors, the shield and the jacket. A low baud rate does not relax it. A cable bent below its radius usually fails as an intermittent fault that appears when the door moves or the cabinet is disturbed, at any speed.
Planning information, not legal or engineering advice. Rules differ by place: check codes and permits with your local authority and your licensed trades.