> For the complete documentation index, see [llms.txt](https://www.opal-rt.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.opal-rt.com/docs/ehs/3.7/first-steps/choose-the-ehs-firmware/introduction-to-standard-ehs-firmware/op4512-and-op46xx/ehsx64-legacy-ioconfig2.md).

# PowerSystems Legacy IOConfig2

## Firmware specifications

<figure><img src="https://521571437-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fo99Izmvvw5eHT4ldzI4g%2Fuploads%2Fgit-blob-eb3e682e3b78cbd037570cc81f83710637d31caa%2FOP45x_eHS64_gen5_PMSM_ioconf2.png?alt=media" alt="" width="480"><figcaption></figcaption></figure>

* Compatible with Schematic Editor workflow and Simulink SPS workflow.
* Compatible with XG platforms
* Solver eHS x64 Gen4
* 4x Induction Machine SCIM/DFIM with Saturation
  * 1x Resolver and 1x encoder reserved per machine
* 1x Frequency Dependent Line (FD Line)

### FPGA ports mapping table

<details>

<summary>I/O mapping details table</summary>

| Port Number | LoadIn                      | DataIn                        | DataOut                       |
| ----------- | --------------------------- | ----------------------------- | ----------------------------- |
| 1           | Config eHS                  | Inputs eHS                    | eHS Averaged                  |
| 2           | Scenario / Rst eHS = Status | TSDO 1 - eHS 0 to 7           | eHS DownSample                |
| 3           | FD Line                     | TSDO 2 - eHS 8 to 15          | Digital In 1A - 0 to 7        |
| 4           | PWM 1A - 0 to 7             | TSDO 3 - eHS 16 to 23         | Digital In 1A - 8 to 15       |
| 5           | PWM 1A - 8 to 15            | TSDO 4 - eHS 24 to 31         | Digital In 1A - 16 to 23      |
| 6           | PWM 1A - 16 to 23           | TSDO 5 - eHS 32 to 39         | Digital In 1A - 24 to 31      |
| 7           | PWM 1A - 24 to 31           | TSDO 6 - eHS 40 to 47         | Analog In 2A - 8 to 15        |
| 8           |                             | TSDO 7 - eHS 48 to 55         | Analog In 2A - 0 to 7         |
| 9           |                             | TSDO 8 - eHS 56 to 63         | Quad Generic Machine with SAT |
| 10          |                             | TSDO 9 - eHS 64 to 71         | QEI 0                         |
| 11          |                             | Digital Out 1A - SDO 0 to 7   | QEI 1                         |
| 12          | Config AOMR                 | Digital Out 1A - SDO 8 to 15  | RMS and Power calculation     |
| 13          | eHS PWM 1 - eHS 0 to 7      | Digital Out 1A - SDO 16 to 23 |                               |
| 14          | eHS PWM 2 - eHS 8 to 15     | Digital Out 1A - SDO 24 to 31 |                               |
| 15          | eHS PWM 3 - eHS 16 to 23    |                               |                               |
| 16          | eHS PWM 4 - eHS 24 to 31    |                               |                               |
| 17          | Config AIR                  |                               |                               |
| 18          | Config QEI                  |                               |                               |
| 19          | Config IM with saturation   | AOMR/Analog Out 1B - 0 to 7   |                               |
| 20          | Config QEI                  | Analog Out 1B - 8 to 15       |                               |
| 21          | RMS and Power calculation   | AOMR Analog Out 2B - 0 to 7   |                               |
| 22          | Config QEO                  | Analog Out 2B - 8 to 15       |                               |
| 23          | Config SFP                  | eHS PWM 1 - 0 to 7            |                               |
| 24          | Config LUT                  | eHS PWM 2 - 8 to 15           |                               |
| 25          |                             | eHS PWM 3 - 16 to 23          |                               |
| 26          |                             | eHS PWM 4 - 24 to 31          |                               |
| 27          |                             | eHS SWG                       |                               |
| 28          |                             | Quad Generic Machine with SAT |                               |
| 29          |                             | LUT                           |                               |
| 30          |                             | SFP                           |                               |
| 31          |                             | TSDO 10 - eHS 72 to 79        |                               |
| 32          |                             | TSDO 11 - eHS 80 to 87        |                               |
| 33          |                             | TSDO 12 - eHS 88 to 95        |                               |
| 34          |                             | TSDO 13 - eHS 96 to 103       |                               |
| 35          |                             | TSDO 14 - eHS 104 to 111      |                               |
| 36          |                             | TSDO 15 - eHS 112 to 119      |                               |
| 37          |                             | TSDO 16 - eHS 120 to 127      |                               |
| 38          |                             | TSDO 17 - eHS 128 to 135      |                               |
| 39          |                             | TSDO 18 - eHS 136 to 143      |                               |
| 40          |                             | QEO                           |                               |

</details>

## Supported I/O modules

### IOConfig 2

| I/O Group 1A                                                                                                                                       | I/O Group 1B                                                                                                                                                                                             | I/O Group 2A                                                                                                               | I/O Group 2B                                                                                                                                                                                             |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <p><a href="https://www.opal-rt.com/docs/op53xx/digital-bidirectional-modules/op5369-description">OP5369</a><br>32 Digital Input/Output module</p> | <p><a href="https://www.opal-rt.com/docs/op53xx/analog-output-modules/op5330-description">OP5330-3</a><br>16 Analog Output at 1MSPS, or<br>8 Analog Output at 2MSPS</p>                                  | <p><a href="https://www.opal-rt.com/docs/op53xx/analog-input-modules/op5342-description">OP5342</a><br>16 Analog Input</p> | <p><a href="https://www.opal-rt.com/docs/op53xx/analog-output-modules/op5330-description">OP5330-3</a><br>16 Analog Output at 1MSPS, or<br>8 Analog Output at 2MSPS</p>                                  |
|                                                                                                                                                    | or [OP5330-1](https://www.opal-rt.com/docs/op53xx/analog-output-modules/op5330-description), [OP5330-2](https://www.opal-rt.com/docs/op53xx/analog-output-modules/op5330-description) (via polymorphism) |                                                                                                                            | or [OP5330-1](https://www.opal-rt.com/docs/op53xx/analog-output-modules/op5330-description), [OP5330-2](https://www.opal-rt.com/docs/op53xx/analog-output-modules/op5330-description) (via polymorphism) |

The configuration includes **6 TX and 6 RX RS‑422 digital I/O channels** accessible via **DB9 connectors**. These are mapped to **I/O** **Group 3**, managed by the [OP5969‑1 RS‑422 I/O module](https://www.opal-rt.com/docs/pcie-cards-and-connector-kits/connector-kits/op5969-1-rs-422-i-o-module).

## eHS Mapping

| Source Type | Source Index | Source Name              | Details                                                                                                                                                                                                                                 |
| ----------- | ------------ | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Input       | 0            | CPU Input                |                                                                                                                                                                                                                                         |
| Input       | 1            | eHS Analog In            | Slot 2A - Ch00-15                                                                                                                                                                                                                       |
| Input       | 2            | Quad Generic Machine     | <p>IM1 Stator Ia/IM1 Stator Ib/IM1 Rotor Ia/IM1 Rotor Ib<br>IM2 Stator Ia/IM2 Stator Ib/IM2 Rotor Ia/IM2 Rotor Ib<br>IM3 Stator Ia/IM3 Stator Ib/IM3 Rotor Ia/IM3 Rotor Ib<br>IM4 Stator Ia/IM4 Stator Ib/IM4 Rotor Ia/IM4 Rotor Ib</p> |
| Input       | 3            | Sine Wave Generator      |                                                                                                                                                                                                                                         |
| Input       | 4            | Look Up Table            |                                                                                                                                                                                                                                         |
| Input       | 5            | Data Stream from SFP #00 |                                                                                                                                                                                                                                         |
| Input       | 6            | Frequency Dependent Line |                                                                                                                                                                                                                                         |
| Gate        | 0            | CPU Gating Signal        |                                                                                                                                                                                                                                         |
| Gate        | 1            | PWM                      |                                                                                                                                                                                                                                         |
| Gate        | 2            | Digital Input 1A         | Slot 1A - Ch00-31                                                                                                                                                                                                                       |

To contextualize the Input and Gate Configuration table with this firmware configuration, the eHS firmware config tab must be configured with the following custom input source enumeration:

```
{'CPU Model',0,128;'Analog In',1,16;'GM',2,16;'Sine Wave Generator',3,32;}
```

And this custom gate sources enumeration:

```
{'CPU Model',0,72;'Digital Inputs',2,64;'PWM',1,32}
```

## Machines

### Communication port configuration for the Quad Generic Machine (GM) block

|                      | Quad Generic Machine |
| -------------------- | -------------------- |
| Machine label        | IMwithSAT 1, 2, 3, 4 |
| Data In Port Number  | 28                   |
| Load In Port Number  | 19                   |
| Data Out Port Number | 9                    |

The signals received could be used as external carrier for machine resolver module.

```
Analog In - Slot 2A - Ch00-01
```

### Encoder Output

Encoder outputs are sent to

```
Digital Out - Slot 2B
```

|   | Encoder 1 | Encoder 2 |
| - | --------- | --------- |
| A | Ch00      | Ch04      |
| B | Ch01      | Ch05      |
| Z | Ch02      | Ch06      |

## Power calculation Module

### Communication port configuration for the Power calculation block

|                      | RMS |
| -------------------- | --- |
| Load In Port Number  | 21  |
| Data Out Port Number | 12  |

## AOMR

### Communication port configuration for the Analog Output Mapping and Rescaling (AOMR) block

|                     | AOMR - Slot 2B |
| ------------------- | -------------- |
| Version             | V2             |
| Data In Port Number | 19             |
| Load In Port Number | 12             |

## IOs

### Communication port configuration for the Analog Input Differential Rescaling (AIR) block

|                     | AIR - Slot 2A |
| ------------------- | ------------- |
| Channels            | Ch00-15       |
| Load In Port Number | 17            |

### Communication port configuration for the Analog Input (AI) block

|                      | Slot 2A | Slot 2A |
| -------------------- | ------- | ------- |
| Channels             | Ch00-07 | Ch08-15 |
| Data Out Port Number | 7       | 8       |

### Communication port configuration for the Analog Output (AO) block

|                     | Slot 1B | Slot 1B | Slot 2B | Slot 2B |
| ------------------- | ------- | ------- | ------- | ------- |
| Channels            | Ch00-07 | Ch08-15 | Ch00-07 | Ch08-15 |
| Data In Port Number | 19      | 20      | 21      | 22      |

### Communication port configuration for the Digital Input (DI) block

|                      | Slot 1A | Slot 1A | Slot 1A | Slot 1A |
| -------------------- | ------- | ------- | ------- | ------- |
| Channels             | Ch00-07 | Ch08-15 | Ch16-23 | Ch24-31 |
| Data Out Port Number | 3       | 4       | 5       | 6       |

### Communication port configuration for the Digital Output (DO) block

|                     | Slot 1A | Slot 1A | Slot 1A | Slot 1A |
| ------------------- | ------- | ------- | ------- | ------- |
| Channels            | Ch00-07 | Ch08-15 | Ch16-23 | Ch24-31 |
| Data In Port Number | 11      | 12      | 13      | 14      |
| Load In Port Number | 4       | 5       | 6       | 7       |

### Communication port configuration for the SFP mapping and communication block

|                     | SFP - Channel 0 |
| ------------------- | --------------- |
| Data In Port Number | 30              |
| Load In Port Number | 23              |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://www.opal-rt.com/docs/ehs/3.7/first-steps/choose-the-ehs-firmware/introduction-to-standard-ehs-firmware/op4512-and-op46xx/ehsx64-legacy-ioconfig2.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
