M2RT-04-R2
AI

The **M2RT-04-R2** is a specific model within the **M2RT series** of rotary DIP switches, typically manufactured by companies like **Copale (Nidec)**. These components are designed for PCB mounting and are used to set binary or decimal configurations manually.
---
### 1. General Specifications
This part belongs to the sub-miniature rotary switch category, known for high reliability and space-saving design.
| Parameter | Specification |
| :--- | :--- |
| **Switch Type** | Rotary DIP Switch |
| **Number of Positions** | 4 Positions (Real Code) |
| **Actuator Style** | Recessed (Screwdriver slot) |
| **Contact Rating** | 100mA at 5V DC (Switching), 100mA at 50V DC (Non-switching) |
| **Terminal Type** | Through-hole (PC Pin) |
| **Operating Temperature** | -25°C to +70°C |
---
### 2. Electronic Architecture
The "04" in the part number indicates the logic configuration. In the M2RT-04, the internal logic is usually simplified for specific logic selection.
* **Logic Output:** It typically provides a binary-coded output or a simple 1-of-4 selection depending on the internal trace layout.
* **Contact Mechanism:** It utilizes a **wiping contact** mechanism. This ensures that the oxidation layer on the metal is "wiped" away during rotation, maintaining low contact resistance over the component's lifespan.
* **Sealing:** The "R" in the suffix often denotes a sealed construction (washable), meaning it can withstand wave soldering and subsequent board washing processes without internal contamination.
---
### 3. Circuit Configuration Example
The device acts as a manual interface to a microcontroller or logic circuit. Below is a conceptual representation of how it interfaces with a system.
```cpp
// Typical logic implementation for a 4-position DIP switch
int readSwitchPosition() {
bool bit0 = digitalRead(PIN_A);
bool bit1 = digitalRead(PIN_B);
// Convert binary pins to a decimal value (0-3)
return (bit1 << 1) | bit0;
}
```
---
### 4. Key Applications
* **Address Setting:** Setting the ID of a device on a communication bus (like RS-485 or CAN).
* **Mode Selection:** Choosing between different operating modes (e.g., Test Mode vs. Normal Mode).
* **Configuration:** Adjusting hardware parameters without needing a digital interface or display.
- ⤷
What are the physical dimensions and footprint for the M2RT-04-R2?
- ⤷ Does this switch come in a Surface Mount (SMD) variant?
- ⤷ What is the difference between 'Real Code' and 'Complement Code' in these switches?