# Configuration IEC60870

##### DIP switch configuration

This is DIP switch functions diagram for Modbus RTU configuration. For enable IEC60870 protocol 1 switch should be in ON position.

[![AMB-8I-4O-DIP-2.png](https://docs.atreyo.in/uploads/images/gallery/2025-03/scaled-1680-/amb-8i-4o-dip-2.png)](https://docs.atreyo.in/uploads/images/gallery/2025-03/amb-8i-4o-dip-2.png)

##### Parity configuration

Parity configuration for both Modbus and IEC.

<table border="1" id="bkmrk-parity-function-00-n" style="border-collapse: collapse; width: 35.3571%;"><colgroup><col style="width: 38.4316%;"></col><col style="width: 61.5684%;"></col></colgroup><thead><tr><td>Parity</td><td>Function</td></tr></thead><tbody><tr><td>00  
</td><td>NONE</td></tr><tr><td>01  
</td><td>ODD  
</td></tr><tr><td>10  
</td><td>EVEN  
</td></tr><tr><td>11  
</td><td>NONE</td></tr></tbody></table>

---

##### Baudrate configuration

Baudrate configuration for both Modbus and IEC

<dl id="bkmrk-switch-baudrate-0000"><dd><table border="1" style="border-collapse: collapse; width: 35.4762%;"><thead><tr><td>Switch</td><td>Baudrate</td></tr></thead><tbody><tr><td>0000  
</td><td>9600</td></tr><tr><td>0001  
</td><td>1200</td></tr><tr><td>0010  
</td><td>2400</td></tr><tr><td>0011  
</td><td>4800</td></tr><tr><td>0100  
</td><td>14400</td></tr><tr><td>0101  
</td><td>19200</td></tr><tr><td>0110  
</td><td>28800</td></tr><tr><td>0111</td><td>38400</td></tr><tr><td>1000  
</td><td>57600</td></tr><tr><td>1001  
</td><td>76800</td></tr><tr><td>1010  
</td><td>115200</td></tr><tr><td>1011  
</td><td>230400</td></tr><tr><td>1100  
</td><td>256000</td></tr><tr><td>1101  
</td><td>460800</td></tr><tr><td>1110  
</td><td>576000</td></tr><tr><td>1111  
</td><td>921600</td></tr></tbody></table>

---

</dd></dl>##### Address configuration for IEC

<table border="1" id="bkmrk-switch-value-iec-add" style="border-collapse: collapse; width: 44.5238%; height: 547.4px;"><thead><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">Switch</td><td style="height: 32.2px; width: 33.2394%;">Value</td><td style="width: 33.2394%;">IEC Address</td></tr></thead><tbody><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">0000  
</td><td style="height: 32.2px; width: 33.2394%;">0</td><td style="width: 33.2394%;">1  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">0001  
</td><td style="height: 32.2px; width: 33.2394%;">1</td><td style="width: 33.2394%;">2  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">0010  
</td><td style="height: 32.2px; width: 33.2394%;">2</td><td style="width: 33.2394%;">3  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">0011  
</td><td style="height: 32.2px; width: 33.2394%;">3</td><td style="width: 33.2394%;">4  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">0100  
</td><td style="height: 32.2px; width: 33.2394%;">4</td><td style="width: 33.2394%;">5  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">0101  
</td><td style="height: 32.2px; width: 33.2394%;">5</td><td style="width: 33.2394%;">6  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">0110  
</td><td style="height: 32.2px; width: 33.2394%;">6</td><td style="width: 33.2394%;">7  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">0111</td><td style="height: 32.2px; width: 33.2394%;">7</td><td style="width: 33.2394%;">10  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">1000  
</td><td style="height: 32.2px; width: 33.2394%;">8</td><td style="width: 33.2394%;">20  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">1001  
</td><td style="height: 32.2px; width: 33.2394%;">9</td><td style="width: 33.2394%;">30  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">1010  
</td><td style="height: 32.2px; width: 33.2394%;">10</td><td style="width: 33.2394%;">40  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">1011  
</td><td style="height: 32.2px; width: 33.2394%;">11</td><td style="width: 33.2394%;">50  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">1100  
</td><td style="height: 32.2px; width: 33.2394%;">12</td><td style="width: 33.2394%;">60  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">1101  
</td><td style="height: 32.2px; width: 33.2394%;">13</td><td style="width: 33.2394%;">70  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">1110  
</td><td style="height: 32.2px; width: 33.2394%;">14</td><td style="width: 33.2394%;">80  
</td></tr><tr style="height: 32.2px;"><td style="height: 32.2px; width: 33.2394%;">1111  
</td><td style="height: 32.2px; width: 33.2394%;">15</td><td style="width: 33.2394%;">90  
</td></tr></tbody></table>

---

#### EC60870-5-101 Implementation Guide  


##### Protocol Overview

The device implements IEC60870-5-101 protocol with the following key functions:

##### Reading States (Interrogation)

- C\_IC\_NA\_1 (100)
- Reading all inputs and outputs states 
    - Inputs: 1000-1007
    - Outputs: 2000-2003

##### Controlling Outputs

- Function: C\_SC\_NA\_1 (45)
- Purpose: Setting individual output states
- IOA range: 2000-2003
- Values: ON (1) / OFF (0)

#### Command Structure

##### General Interrogation Command

```
Type ID: 100 (C_IC_NA_1)
Qualifier: 20
Cause of Transmission: 6 (Activation)
Common Address: 1
```

##### Single Command (Output Control)

```
Type ID: 45 (C_SC_NA_1)
Cause of Transmission: 6 (Activation)
Common Address: 1
IOA: 2000-2003
Value: 0/1
```

#### SCADA system configuration

##### IEC60870-5-101 Protocol Configuration

- Common Address (ASDU): 1
- Frame format: FT1.2
- Link Layer Address: according to device configuration

##### I/O Points Configuration:

For inputs (8 channels):

- Type: Single Point Information (M\_SP\_NA\_1)
- IOA addresses: 1000-1007
- Direction: Monitoring (read)

For outputs (4 channels):

- Type: Single Command (C\_SC\_NA\_1)
- IOA addresses: 2000-2003
- Direction: Control (write)

Verification:

- Check if input states are correctly read (IOA 1000-1007)
- Confirm control operation for each output (IOA 2000-2003)
- Verify device responds to General Interrogation

<dl id="bkmrk-%C2%A0-1"><dd></dd></dl>