DIP switch address settings translate a controller’s documented switch positions into a device address. For a straight binary arrangement, add the weights of the positions defined as binary one. Before moving any switch, check the equipment manual: switch numbering, ON/OFF interpretation, reserved addresses and the point at which settings are read can differ between devices.
The switch bank supplies physical contact states; the controller determines what those states mean. An eight-position package does not automatically provide eight address bits, and ON does not universally mean one. Treat a calculator result as arithmetic to check against the manual, rather than an instruction that applies to every board.
Separate the switch package from the address rule
A DIP switch consists of several small switches in one package. Their positions can configure an address, operating mode or another board function. The same physical package can therefore serve completely different purposes on two controllers. The general DIP switch guide explains the component; this guide focuses on interpreting an address bank without reversing its meaning.
Start with the board identifier and revision. A label such as SW1 is a reference designation, not proof that the bank handles addressing. Match the physical board to its own manual and find the table for that designation. Record which positions contribute to the address and which control other functions. Photograph the original positions before making an authorized change, with the board label and ON marking visible.
For buyers designing a new board, the distinction matters just as much. The ONPOW HS-series DIP switch page provides a real component reference for discussing the switch package. It does not establish the firmware mapping of a controller that uses it. Ask for the exact component drawing and specify the mapping separately in the board documentation.
Read weights before using a binary calculator
In a conventional unsigned binary number, successive bit weights are powers of two. A hypothetical four-bit address bank might use 1, 2, 4 and 8. Its numerical value is the sum of the selected weights. However, the printed switch numbers might run in the opposite direction, and the controller may invert the electrical input before interpreting it.
A useful illustration of that last point appears in the PC-TIO-10 user manual hosted by UC San Diego. Its particular address configuration assigns a binary one to a switch position marked OFF. This is evidence that the convention varies, not a wiring rule for an ONPOW component or a modern controller.
Write a mapping line before doing any arithmetic: physical position, documented weight, and the position representing one. If a bank includes a mode selector, exclude that position from the address sum. A ten-position bank can contain fewer than ten address bits. Equally, a manufacturer may define a lookup code instead of a direct binary value, in which case its table takes priority over a generic calculator.

Worked example with an explicit mapping
Consider a fictional controller whose manual assigns positions 1 through 8 the weights shown below and explicitly states ON equals one. To request address 73, select 64, 8 and 1. The arithmetic is 73 = 64 + 8 + 1. Positions 7, 4 and 1 are therefore ON in this example; all other address positions are OFF.
| Physical position | Assumed weight | Position for example address 73 | Contribution |
|---|---|---|---|
| 1 | 1 | ON | 1 |
| 2 | 2 | OFF | 0 |
| 3 | 4 | OFF | 0 |
| 4 | 8 | ON | 8 |
| 5 | 16 | OFF | 0 |
| 6 | 32 | OFF | 0 |
| 7 | 64 | ON | 64 |
| 8 | 128 | OFF | 0 |
This is an original arithmetic example, not an instruction for an identified product. If position 1 carries the highest weight on the actual controller, the physical pattern changes. If OFF represents one, the physical states change again. The target number remains 73, but neither photographed slider positions nor a copied string of zeros and ones is sufficient without its mapping.
Check the result in the reverse direction. Read the physical positions independently, translate them back through the documented rules and calculate the value again. This catches errors that remain hidden when the same mistaken left-to-right assumption is used twice. Where practical, have a second person read the bank before reconnecting it to an operating network.
Check the protocol and controller address range
Eight binary bits can represent 256 combinations, but a device does not necessarily accept all of them as ordinary addresses. Some combinations select a software-controlled address, a special mode or a reserved condition. An all-OFF bank can therefore have a defined special meaning rather than simply identifying device zero.
For a protocol example, the Modbus serial-line specification distinguishes broadcast address zero from ordinary individual serial addresses 1 through 247. That protocol range does not tell you how a particular manufacturer’s DIP bank encodes an address. Confirm both the protocol rules and the controller’s own supported settings before choosing a value.
Avoid assigning an address merely because it appears unused in a spreadsheet. Check the equipment list for the actual network segment and the approved commissioning plan. Two devices with the same address can create confusing responses or communication failures. Address uniqueness is a system decision, while setting the individual switch bank is only one step in implementing it.
Change positions without creating a new problem
Follow the equipment manufacturer’s shutdown and isolation instructions before accessing a board. Internal electronics can contain hazardous energy even when the external interface looks like a low-voltage control. Only qualified personnel should open and work on equipment that requires electrical isolation or access to protected compartments.
Use the adjustment method and tool specified for the package. Do not press sideways with a large screwdriver or treat a small actuator as a lever for moving the board. Move each position fully to its intended detent and inspect it under adequate light. A half-position is not a reliable third logic state for an ordinary two-state switch.
Consider access when specifying a board enclosure. A switch that is easy to set on an open bench can become difficult to read behind a cable bundle. Provide a view of the position numbers and ON marking in the installed orientation. The ONPOW BI-series page offers another package reference to compare with the HS series; obtain current dimensions and operating instructions before selecting either for a layout.

Confirm when the controller reads the bank
A correct physical pattern may not change the active address immediately. Some controllers sample settings at startup, while others require a documented acceptance action or use a separate configuration mode. Do not repeatedly toggle a live bank to discover its behavior. Read the applicable instructions and use the authorized commissioning sequence.
After acceptance, verify the address reported by the device or its commissioning interface. Then confirm communication at the intended address using a permitted test. Record the observed result rather than merely recording the planned number. If communication fails, check the port settings and physical network separately instead of changing the address again without evidence.
A configuration label should identify the address and the board function in terms a technician can understand. Keep the position diagram in the equipment record with the board revision. This makes a later replacement easier to verify and prevents an old photograph from silently becoming the standard for a different board revision.
Troubleshoot a setting that appears correct
First compare the actual bank designation against the manual. Next check position numbering, ON marking and whether the document’s illustration is shown from the component side. A board installed upside down can make a visually familiar pattern misleading. Rotate the document for readability, but do not change the assigned weights simply to match the reader’s preferred direction.
If only certain values fail, check reserved settings and whether an offset or lookup table is specified. If every value fails, investigate whether the bank is enabled and whether the controller is using software configuration instead. These are interpretation checks; they do not prove a defective contact. A component should be investigated electrically only through an approved procedure that avoids backfeeding a populated board. The contact resistance measurement guide explains why test conditions and connected circuitry can affect a reading.
For a new design, avoid assuming that a switch input can float safely. The board circuit must define an input state for both open and closed contacts. The switch input debouncing guide discusses a related input-design issue; use the actual hardware documentation to determine how configuration inputs are conditioned and sampled.
Frequently asked questions
Does ON always mean binary one?
No. The controller circuit and firmware determine the meaning of the contact state. Use the exact manual’s table, including any inverted logic, rather than a general DIP switch calculator convention.
Can I change an address while the controller is powered?
Only if the equipment instructions explicitly permit the procedure. Access requirements and sampling behavior vary. A physically changed bank may also remain inactive until a documented restart or acceptance action.
Why does my eight-position bank not allow address 255?
The device may reserve combinations, use some positions for other functions or restrict addresses to a protocol range. The number of physical switches does not establish the number of ordinary usable addresses.
Should replacement switches be supplied in the final address pattern?
That can simplify assembly only when the pattern, orientation and verification method are explicitly controlled. The equipment still needs a commissioning check; a pre-set component does not establish the active address reported by the controller.
References
- National Instruments, hosted by UC San Diego — PC-TIO-10 User Manual, configuration and installation
- Modbus Organization — MODBUS over Serial Line Specification and Implementation Guide
Prepare the component and the configuration together
Before ordering a DIP switch, provide the required package, position count, board layout and adjustment access to the supplier. Before commissioning the equipment, provide the separate address mapping and verification procedure to the installer. Keeping those two decisions connected prevents a suitable physical switch from being mistaken for a universal address-setting rule.
Further learning
Professor Brailsford explains binary representation. This conceptual lesson does not replace the address table for your controller.





