# Max IEC Gateway - fact sheet Max IEC Gateway is gateway software for Windows 10/11 (64-bit) and Linux (x64) by Max Energic Apps that converts Modbus TCP/RTU to IEC 60870-5-104 and IEC 60870-5-101. It polls Modbus TCP and RTU devices, maps coils and registers to IEC type IDs with information object addresses (IOA) and common addresses (CA), sends changes spontaneously, answers general interrogation and writes IEC commands back to Modbus. It is configured in a web browser and has a traffic monitor and a historian. Current version: 1.3.0. Pricing: $75 one-time lifetime license (one computer, movable; lifetime free updates; 30-day money-back guarantee); free 30-day trial with 15-minute sessions. Publisher: Max Energic Apps (Maxenergic), https://maxenergic.com/ - support: support@maxenergic.com Developer: Mohammad Ba'ra, electrical engineer and SCADA/SAS specialist (https://iec.maxenergic.com/about.html) Website: https://iec.maxenergic.com/ ## What it does - Modbus client: polls any number of Modbus TCP, Modbus RTU (RS-485/RS-232 serial, several devices per line) and Modbus RTU over TCP devices (unit ID, poll interval, timeout, retries per device). - IEC 60870-5-104 server on TCP port 2404 (configurable), up to 10 client connections, configurable k, w, t0, t1, t2, t3. - IEC 60870-5-101 outstation on a serial COM port: balanced or unbalanced link mode, configurable baud rate, parity, stop bits, link address, master link address and COT/CA/IOA field sizes. - Both IEC servers can run at the same time from the same point list. - Changes are sent spontaneously (COT 3); general interrogation (C_IC_NA_1) is answered with all mapped points. - Modbus addresses are 0-based protocol addresses (register 40001 = address 0). ## Features (version 1.3.0) - IEC 60870-5-104 server (TCP port 2404) with configurable k, w and t0-t3 and up to 10 client connections - IEC 60870-5-101 serial server, balanced or unbalanced link mode, 8E1, configurable baud rate and link address - Configurable COT, common address and IOA field sizes - Modbus TCP client for multiple devices with per-device poll interval, timeout and retries - Reads coils, discrete inputs, input registers and holding registers (FC01-FC04) - UInt16, Int16, UInt32, Int32, Float32 and Float64 register values in ABCD, CDAB, BADC or DCBA order - Per-point scale factor and offset - Monitoring types M_SP_NA_1, M_DP_NA_1, M_ST_NA_1, M_BO_NA_1, M_ME_NA_1, M_ME_NB_1, M_ME_NC_1 and time-tagged M_SP_TB_1, M_DP_TB_1, M_ME_TF_1 (CP56Time2a) - Spontaneous transmission on change and general interrogation (C_IC_NA_1) - IEC commands to Modbus: C_SC_NA_1 and C_DC_NA_1 to coils (FC05), C_SE_NB_1 (FC06) and C_SE_NC_1 (FC16) to holding registers - Direct execute or select-before-operate command mode with optional ACT_TERM - Invalid and not-topical quality flags when a Modbus device stops answering - Web-based configuration with a live dashboard and apply-and-reload without restarting - Traffic monitor for Modbus, IEC, command and connection events - Built-in historian (default 72 hours) with trend charts and CSV export - JSON configuration export and import - Local SQLite configuration database, no external database server - Modbus RTU (RS-485/RS-232) and Modbus RTU over TCP devices in addition to Modbus TCP, several devices per serial line - Integrated totals (energy counters, M_IT_NA_1/M_IT_TB_1) with counter interrogation: read, freeze, freeze and reset, reset, groups 1-4, sequence number and carry; optional periodic counter reports - Deadband per measured value (absolute or percent) and cyclic transmission (COT 1) - Event buffering while no IEC master is connected - Single and double points from register bits (all four double-point states) - Int64 and UInt64 register values - Time-tagged types M_ST_TB_1, M_BO_TB_1, M_ME_TD_1, M_ME_TE_1 and M_IT_TB_1 - Time tags in UTC or local time (SU bit), invalid-until-synchronized option; clock synchronization (C_CS_NA_1) is logged and can optionally set the PC clock - IEC 104 master IP allow-list, applied live - IEC 101 parity, stop bits and master link address settings - Configurable select-before-operate timeout (1-60 s, default 10 s) - Time-tagged commands (C_SC_TA_1, C_DC_TA_1, C_SE_TA_1, C_SE_TB_1, C_SE_TC_1) and read command (C_RD_NA_1) - CSV import and export of mappings with a validated preview and all-or-nothing import - 9 device templates: Eastron SDM120 and SDM630, Schneider PM5xxx and Altivar, Carlo Gavazzi EM24, SMA, SunSpec, Growatt, ABB ACS580 - Every change applies live without restarting the service; only the affected part restarts - Secure web interface login: administrator password, CSRF protection, lockout after failed logins, optional HTTPS and an allowed-networks list - Runs as a Windows service or a Linux systemd service; Linux (x64) build - Deactivating the license frees the computer on the license server (one computer per license) ## IEC type IDs Monitoring direction: - M_SP_NA_1 (1): Single-point information - M_DP_NA_1 (3): Double-point information - M_ST_NA_1 (5): Step position information - M_BO_NA_1 (7): Bitstring of 32 bits - M_ME_NA_1 (9): Measured value, normalized - M_ME_NB_1 (11): Measured value, scaled - M_ME_NC_1 (13): Measured value, short float - M_SP_TB_1 (30): Single point with CP56Time2a time tag - M_DP_TB_1 (31): Double point with CP56Time2a time tag - M_ME_TF_1 (36): Short float with CP56Time2a time tag - M_IT_NA_1 (15): Integrated totals (energy counter) - M_ST_TB_1 (32): Step position with CP56Time2a time tag - M_BO_TB_1 (33): Bitstring of 32 bits with CP56Time2a time tag - M_ME_TD_1 (34): Normalized value with CP56Time2a time tag - M_ME_TE_1 (35): Scaled value with CP56Time2a time tag - M_IT_TB_1 (37): Integrated totals with CP56Time2a time tag Control direction: - C_SC_NA_1 (45): Single command (FC05 Write Single Coil) - C_DC_NA_1 (46): Double command (FC05 Write Single Coil) - C_SE_NA_1 (48): Set-point, normalized value (FC06/FC16 to the mapped holding register(s)) - C_SE_NB_1 (49): Set-point, scaled value (FC06 Write Single Register) - C_SE_NC_1 (50): Set-point, short float (FC16 Write Multiple Registers (2 registers)) - C_IC_NA_1 (100): General interrogation (Answered from the latest polled values) - C_SC_TA_1 (58), C_DC_TA_1 (59): Single and double command with CP56Time2a time tag (Same writes as C_SC_NA_1 / C_DC_NA_1) - C_SE_TA_1 (61), C_SE_TB_1 (62), C_SE_TC_1 (63): Set-points with CP56Time2a time tag (Same writes as the untagged set-points) - C_CI_NA_1 (101): Counter interrogation (Read, freeze, freeze and reset, reset; groups 1-4) - C_RD_NA_1 (102): Read command (Answered with the latest value (COT 5)) - C_CS_NA_1 (103): Clock synchronization (Offset logged; optionally sets the PC clock) Not supported in version 1.3.0: file transfer, parameter (P_*) types, protection-equipment types, CP24Time2a (TA) monitoring types. ## IEC 104 defaults in the gateway t0 10 s, t1 15 s, t2 10 s, t3 20 s, k 12, w 8 (standard IEC 104 defaults: t0 30 s, t1 15 s, t2 10 s, t3 20 s, k 12, w 8). ## Licensing and pricing - Free trial: 30 days, all features, 15-minute sessions (restart to begin a new session), no credit card. - Lifetime license: $75 one-time via PayPal; activated on one computer at a time (move it by releasing the old computer in the license portal); lifetime free updates; email support. - 30-day money-back guarantee: email support@maxenergic.com within 30 days of purchase (https://iec.maxenergic.com/terms.html#refund). - Activation needs internet; the gateway works offline for up to 30 days between online checks. - Self-service device management: https://iec.maxenergic.com/api/customer-portal.php ; lost key: https://iec.maxenergic.com/api/resend-license.php ## Download - Version 1.3.0 installer: https://iec.maxenergic.com/downloads/MaxIECGateway_Setup_1.3.0.exe (about 49 MB), SHA-256 a66e531a66d4c3acb8346c5c4a92906933736759c8ef42564a294cd6430f4553 - Portable ZIP (Windows): https://iec.maxenergic.com/downloads/MaxIECGateway_Portable_1.3.0.zip (about 48 MB), SHA-256 bda32f9554d111eaee96a6cf34cd4a5861293a43847a9f2c36c7b6fb81238b61 - Linux x64 (systemd): https://iec.maxenergic.com/downloads/maxiec-gateway_1.3.0_linux-x64.tar.gz (about 47 MB), SHA-256 723ecff5d79131cc9116c21f1ac693b83ba0fb6425c69973f600a86cc8222efb - Requirements: Windows 10 or 11 (64-bit) or Linux x64 with systemd; .NET 8 runtime included; web browser for configuration; ports 2404 (IEC 104) and 5000 (web interface) inbound. ## Guides - [Modbus to IEC 104 mapping guide](https://iec.maxenergic.com/modbus-to-iec-104-mapping.html): Choose IEC type IDs for coils and registers, plan IOAs and common addresses, scale values and map commands. - [IEC 104 type IDs and cause of transmission](https://iec.maxenergic.com/iec-104-asdu-types-cot.html): ASDU structure, the common type IDs, every important COT code, quality bits and typical message sequences. - [IEC 104 vs IEC 101](https://iec.maxenergic.com/iec-104-vs-iec-101.html): Serial FT1.2 vs TCP/IP, balanced and unbalanced mode, field sizes, time tags and when to use each. - [IEC 104 t0-t3, k and w troubleshooting](https://iec.maxenergic.com/iec-104-timeouts-troubleshooting.html): What each timer and window parameter does, safe defaults and a symptom-by-symptom troubleshooting table. - [Modbus float byte order for IEC 104](https://iec.maxenergic.com/modbus-float-byte-order-iec-104.html): ABCD, CDAB, BADC and DCBA explained with a worked example, and how to send the value as M_ME_NC_1.