# Schneider Electric ComPacT NSX (MicroLogic E)

Source: https://docs.evcc.io/en/meters/schneider-electric-compact-nsx-micrologic-e

The trip unit has to be reachable over Modbus through a communication module: IFM (Modbus RTU) or IFE (Modbus TCP), or EIFE on MasterPacT MTZ. IFE and EIFE always use Modbus ID 255, the IFM uses the address set on its rotary switches.

4-pole versions measure the neutral directly. 3-pole versions need an external neutral voltage tap (ENVT) for this, connected and declared in the trip unit (system type 40 or 41). Without ENVT, power values are wrong whenever current flows in the neutral.

The power flow sign has to be set with "EcoStruxure Power Commission" so that the normal direction of flow counts as positive. Factory setting: from the top terminals to the bottom ones.

## Parameters

| Name | Description | Default / example | |
| --- | --- | --- | --- |
| modbus | Modbus Type (tcpip, rs485) |  |  |

## Configuration example for evcc.yaml

```yaml
meters:
    - name: my_grid
      type: template
      template: schneider-micrologic
      usage: grid
      
      # RS485 via adapter (Modbus RTU)
      modbus: rs485serial
      id: 255
      device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
      baudrate: 19200 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
      comset: "8E1" # Kommunikationsparameter für den Adapter
      
      # RS485 via TCP/IP (Modbus RTU)
      modbus: rs485tcpip
      id: 255
      host:  # Hostname
      port: 502 # Port
      
      # Modbus TCP
      modbus: tcpip
      id: 255
      host:  # Hostname
      port: 502 # Port
```

```yaml
meters:
    - name: my_pv
      type: template
      template: schneider-micrologic
      usage: pv
      
      # RS485 via adapter (Modbus RTU)
      modbus: rs485serial
      id: 255
      device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
      baudrate: 19200 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
      comset: "8E1" # Kommunikationsparameter für den Adapter
      
      # RS485 via TCP/IP (Modbus RTU)
      modbus: rs485tcpip
      id: 255
      host:  # Hostname
      port: 502 # Port
      
      # Modbus TCP
      modbus: tcpip
      id: 255
      host:  # Hostname
      port: 502 # Port
```

```yaml
meters:
    - name: my_charger
      type: template
      template: schneider-micrologic
      usage: charge
      
      # RS485 via adapter (Modbus RTU)
      modbus: rs485serial
      id: 255
      device: /dev/ttyUSB0 # USB-RS485 Adapter Adresse
      baudrate: 19200 # Prüfe die Geräteeinstellungen, typische Werte sind 9600, 19200, 38400, 57600, 115200
      comset: "8E1" # Kommunikationsparameter für den Adapter
      
      # RS485 via TCP/IP (Modbus RTU)
      modbus: rs485tcpip
      id: 255
      host:  # Hostname
      port: 502 # Port
      
      # Modbus TCP
      modbus: tcpip
      id: 255
      host:  # Hostname
      port: 502 # Port
```
