PLC BCD to Decimal, Hex & Binary Converter
Simulate PLC FRD (From BCD) and TOD (To BCD) instructions across 16-bit INT and 32-bit DINT words with per-nibble fault checking.
FRD Source (BCD Register Hex)
Enter the raw hex pattern stored in your BCD thumbwheel input word (e.g., 2489 or test invalid 2A89)
Valid 4-Bit BCD Nibble Table (0–9)
Frequently Asked Questions
How does Binary-Coded Decimal (BCD) differ from standard hexadecimal or binary?+
In standard binary, a 16-bit unsigned word represents 0–65535 using all nibble combinations 0–F. In 16-bit BCD, each 4-bit nibble represents strictly one decimal digit (0–9, binary 0000–1001), giving a range of 0000 to 9999.
What happens if a PLC FRD (From BCD) instruction encounters hex digits A through F?+
In Allen-Bradley RSLogix 500 and Studio 5000, bit patterns 1010 (A) through 1111 (F) are illegal in BCD. Executing FRD on a word containing A–F triggers an arithmetic overflow / minor fault unless masked out first with an MVM instruction.
Why are MVM and FRD almost always paired together on BCD thumbwheel inputs?+
A 3-digit BCD thumbwheel uses only 12 bits (bits 0–11) of a 16-bit discrete input card, while bits 12–15 might wire to pushbuttons. Engineers execute MVM with mask 0FFFh first to isolate the 3 thumbwheel nibbles, then pass the clean word into FRD.
Where else is BCD still common in industrial PLCs?+
Beyond panel thumbwheels and 7-segment LED displays, Siemens S7 legacy S5TIME presets, Omron C-series timers/counters, and Koyo/AutomationDirect DirectLOGIC math instructions rely heavily on 4-digit and 8-digit BCD registers.
Complete PLC & Industrial Automation Calculator Suite
Bitwise & Data Formats
Simulate 16-bit INT and 32-bit DINT Masked Move instructions bit-by-bit with clickable mask gates and Structured Text output.
Decode or encode two 16-bit Holding Registers across all 4 endian byte orders (ABCD, CDAB, BADC, DCBA) for 32-bit REAL floats.
Convert between 16/32-bit Binary-Coded Decimal (BCD) thumbwheel words and integer values with invalid A–F nibble fault detection.
Analog I/O & Sensors
Convert raw ADC counts (4000–20000, 6241–31206, 0–27648) and 4–20 mA signals into engineering units with 5-point calibration tables.
Bidirectional Callendar–Van Dusen (°C/°F ↔ Ohms) calculator for PT100 and PT1000 RTDs with Class AA, A, and B tolerance bands.
Convert thermocouple millivolt (mV) readings to process temperature and back with live Cold Junction Compensation (CJC).
Estimate cabinet temperature rise, conductive heat transfer, required cooling fan airflow (CFM), and AC capacity (BTU/hr) for enclosures.
Fieldbus, Motion & Control
Compute polynomial 0xA001 CRC-16 checksums in Little-Endian Lo-Byte / Hi-Byte wire order and validate captured RS-485 frames.
Calculate maximum RS-485 trunk length, Modbus RTU 3.5-character silent interval (t3.5), frame duration, and max polling rate.
Compute synchronous speed, motor slip %, output shaft RPM after gearbox reduction, and target VFD command frequency in Hz.
Verify PLC High-Speed Counter (HSC) kHz input limits from encoder PPR, 1x/2x/4x quadrature decoding, shaft RPM, and linear travel.
Convert Independent (Kp, Ki, Kd) vs. ISA Dependent (Kc, Ti, Td) PID gains and compute FOPDT / Ultimate Gain starting parameters.