This is the diagnostic module for the Samsung MIM-B19N Modbus RTU gateway. It monitors the gateway error register and outdoor unit error code, and provides an indoor unit discovery service that scans all 48 IU slots with automatic type detection.
This template does not contain controllable devices. For controlling indoor units, use the Samsung MIM-B19N (IU) template. For heat pump control (EHS/HE/HT units), use the Samsung MIM-B19N (EHS) template.
Hardware connection
The hardware connection is identical for all three MIM-B19N templates. See the Samsung MIM-B19N (EHS) page for full wiring instructions, DIP/rotary switch addressing, and RS-485 configuration.
Quick reference
- Power supply: DC 12 V from CN12 on outdoor unit main board
- Protocol: Modbus RTU Slave, RS-485
- Baud rate: 9600, even parity, 1 stop bit, 8 data bits
- Max units: 48 indoor units + 1 outdoor unit per gateway
- Max bus length: 1000 m (RS-485)
Module capabilities
Error monitoring
The module ReadScript continuously monitors two registers:
- H:0 – Error register (bitfield) – detects three error conditions:
- Bit 0: Address error
- Bit 1: R1/R2 communication error
- Bit 2: Tracking error
- H:1 – Outdoor unit error code – reports the outdoor unit error code number; any non-zero value triggers an error in TapHome
These errors appear in the TapHome module status, allowing immediate notification when the gateway or outdoor unit encounters a problem.
Units Found (service attribute)
The “Units Found” service attribute performs a discovery scan across all 48 indoor unit slots. For each slot, it reads:
- H:base+0 – Communication status bitfield (Exist, Type OK, Ready, Communication error)
- H:base+1 – Unit type register
Where base = 50 + IU x 50 (IU = 0..47).
The attribute decodes the unit type byte into a human-readable label:
| Type byte range | Detected unit type |
|---|---|
| 0x6E | HE |
| 0x78 | HT |
| 0x73–0x75 | EHS |
| Upper byte = 10 | FCU |
| 0x64–0x65 | ERV |
| 0x6C | ERV+ |
| 0x5A–0x63 | AHU |
| 0x8C–0x95 | Chiller |
| 0xA0–0xA9 | FCU kit |
| 0xFFFF | Not defined |
The output lists each found unit with its slot index, detected type, and status flags – for example: IU 0 Exist (EHS), Type OK, Ready.
When to use this template
Use this gateway diagnostic template when you need to:
- Monitor gateway health – track R1/R2 bus errors and outdoor unit faults
- Discover connected units – identify how many and what type of indoor units are on the Samsung bus before configuring control templates
- Diagnose installation issues – verify that all expected units are found and in “Ready” state
After discovery, import the appropriate control template for each unit type:
- Samsung MIM-B19N (EHS) – for HE, HT and EHS heat pump units
- Samsung MIM-B19N (IU) – for indoor air conditioning units (FCU, ERV, AHU)
Troubleshooting
No units found in discovery
- Verify the MIM-B19N is powered (DC 12 V from CN12 on outdoor unit)
- Check that indoor units are powered on and connected to the Samsung F1/F2 bus
- Wait up to 10 minutes for tracking to complete after power-on
- If the error register shows a tracking error (bit 2), reset the MIM-B19N module
Error register shows R1/R2 communication error
- Check the F1/F2 bus wiring between the MIM-B19N and the outdoor unit
- Verify the MIM-B19N is installed on the correct outdoor unit PCB connector
- Check for bus conflicts with other Samsung accessories
No Modbus communication with TapHome
- Check RS-485 wiring polarity (A to A+, B to B-)
- Verify the gateway address using DIP and rotary switches
- Confirm TapHome is set to: 9600 baud, even parity, 1 stop bit, 8 data bits
