Read BCD Pushwheel Switches Reliably: Digit Codes, Stable Values and Apply Rules
A row of pushwheel switches is a useful way to set a value that remains visible when the power is off. A user can enter a timer duration, station number or test parameter without navigating a screen. The challenge is turning several mechanical contact patterns into one trustworthy setting.
The PMD Way BCD or decimal pushwheel switches are offered in several sizes and output types. Each switch quantity is described as five individual digits; end plates are selected separately. Confirm the actual output option and assembly parts before designing the input circuit. Related choices are in the thumbwheel switch collection.
Identify the output code before counting wires
A pushwheel is a mechanical setting device, not automatically a serial sensor or rotary encoder. Its contacts present a pattern associated with the displayed digit. Different output types can look similar from the front while requiring different wiring and decoding.
In ordinary 8421 binary-coded decimal, four bits represent one decimal digit using weights of 8, 4, 2 and 1. The digit 6 therefore corresponds to 0110 when written in that order. Only codes for zero through nine are valid decimal digits.
Omron's explanation of BCD provides a manufacturer reference for the weighted code. Be careful about column order: a table printed as 1, 2, 4, 8 looks reversed compared with the usual written binary order 8, 4, 2, 1.
A decimal-output switch commonly selects one of ten contacts. Confirm its actual truth table rather than applying a BCD decoder to it. Also check for complementary codes, built-in diodes or other variant features before deciding how to bias or scan the contacts.
Build a contact table on one digit first
Use the selected part's terminal drawing and confirm the contact pattern with power removed. Identify the common and each output, then step through every displayed digit. Record which contacts connect in each position.
Do not assume that connector pin numbers equal bit weights. Omron's thumbwheel technical guide illustrates model-dependent output arrangements and connector numbering. It also documents variants with internal diodes, a reminder that similar-looking switches need their own circuit information.
Compare the measured table with the expected code before attaching a controller. If the table does not agree, resolve the variant or viewing-direction error now. A software lookup table can represent a documented unusual code; it should not conceal uncertain wiring.
Separate electrical level from logical bit value
A contact closing to ground through a suitable input circuit may produce a low voltage, while the code table uses a logical one to mean that contact is closed. Convert the measured electrical states into code bits explicitly.
For example, if a verified BCD digit uses contact closure as one and each output is pulled up to the controller's permitted logic rail, an asserted contact reads electrically low. The decoder must invert that sense before applying the bit weights. This example depends on the verified contact circuit; it is not a universal pinout for the PMD Way product.
Choose pull-up or pull-down values, protection and filtering from the controller's thresholds, switch contact requirements and cable environment. The listing does not supply a complete electrical rating, so obtain the selected switch's specification before setting the sensing current.
Decode digits before combining the number
Validate each digit independently. In conventional four-bit BCD, values ten through fifteen are invalid. Report or reject them rather than silently treating them as decimal digits or reducing them modulo ten.
For three valid digits, calculate the number using decimal place values: hundreds times 100, tens times 10, plus units. If the displayed digits are 2, 5 and 7, the result is 257. Simply concatenating the three four-bit fields creates a packed representation, not the ordinary binary integer 257.
Keep leading zeros meaningful where appropriate. A station identifier “007” may need three displayed characters even though its numeric value is seven. Decide whether the setting is a number, an identifier or a collection of independent digits before choosing its internal representation.
Expect intermediate states during adjustment
Mechanical contacts need not all change simultaneously as a digit advances. A transition from seven to eight changes several BCD bits. A quick read during movement can therefore capture a transient pattern, and a valid-looking pattern is not proof that the wheel has settled.
Sample the complete set of digits, then require a consistent result according to a tested stability rule. Avoid accepting each digit at a different moment and assembling a number that never appeared on the front panel.
For a scanned interface, allow the selected input circuit to settle and prevent unintended current paths between digits. Begin with direct, independently readable inputs where practical; reduce wire count only after the basic truth table works. Do not assume that tying several commons and outputs together creates a valid matrix.
Use an Apply action when intermediate values matter
Debouncing cannot solve the fact that a person changes several digits one at a time. Changing 129 to 130 may pass through 139 or 120, depending on which wheel is moved first. Those can be perfectly stable, valid numbers while still being unintended operating settings.
For a timer or test fixture, keep a pending value separate from the active value. Show or record the pending value, validate its allowed range, and copy it to the active setting only when the user presses Apply or starts the next operation.
For example, a running countdown can retain the duration captured at Start while the wheels prepare the next round. Label that behaviour so users do not expect a mid-count wheel change to alter the current countdown. On power-up, decide whether the visible setting is accepted immediately or awaits confirmation.
Test the interface as a complete setting system
| Test | What it reveals |
|---|---|
| Every digit from zero to nine | Bit order, polarity and contact mapping |
| Seven-to-eight transition | Handling of multi-bit changes |
| Different values in every position | Digit order and decimal weighting |
| Change wheels while operating | Pending-versus-active setting policy |
| Disconnect an input wire | Fault visibility and misleading valid codes |
Some wiring failures can produce valid BCD values, so invalid-code checking is useful but incomplete. Document that limitation. Save the verified contact table, input polarity, digit order, stability rule and Apply behaviour with the panel drawing. The result is a visible mechanical setting whose meaning remains consistent from the user's fingers to the controller's active value.