Explainer
Why a 17th EtherNet/IP device fails to compile in Machine Expert
Short answer
Machine Expert reports a maximum of 16 configured EtherNet/IP devices per project at compile time; Modbus TCP endpoints do not count, and splitting devices across scanners does not bypass the limit. Keep the EtherNet/IP device count at 16 or fewer by moving endpoints that support Modbus TCP to that protocol, and reserve explicit-message clients for cases where the device entry cannot be added.

On this page
- Why does the 17th EtherNet/IP device stop the project compiling?
- Which devices count toward the 16?
- Does splitting the devices across two scanners help?
- Can I do explicit messages to an IP address without a device entry?
- How do I count the devices in my project?
- When should I move an endpoint to Modbus TCP?
- What if all 17 devices must stay on EtherNet/IP?
- How do I verify the fix before commissioning?
- Questions asked
Machine Expert stops compiling when the project holds more than 16 configured EtherNet/IP devices; the compiler message states the maximum outright. The count covers every EtherNet/IP device entry in the project, whatever scanner it sits under, while Modbus TCP endpoints are not counted. The fix is to keep the EtherNet/IP count at 16 or fewer, usually by moving endpoints that also speak Modbus TCP onto that protocol; writing a raw explicit-message client does not work because EtherNet/IP services in Machine Expert are bound to device entries that must exist in the project. This article shows what counts, how to count it, and how to decide per endpoint.
Why does the 17th EtherNet/IP device stop the project compiling? #
Because Machine Expert enforces a hard maximum of 16 configured EtherNet/IP devices per project at compile time, and the device you added was the 17th entry of that type. The compiler refuses the build with a message saying EtherNet/IP supports a maximum of 16; this is a configuration limit checked at compile, not a runtime connection limit you can watch on the wire. A project with 9 EtherNet/IP devices and 20 Modbus TCP devices compiles, because only the 9 EtherNet/IP entries count. Once entry 17 of the EtherNet/IP kind appears, the build stops regardless of how few of those devices actually exchange data at any moment.
Which devices count toward the 16? #
Only EtherNet/IP device entries in the project tree count; Modbus TCP devices do not. The rule is per project, not per scanner: creating a second EtherNet/IP scanner and moving devices under it leaves the total unchanged, so the compile error stays. Count the entries, not the physical boxes: one remote I/O adapter that appears twice in the tree (for example once for inputs and once for a second connection) consumes two of the 16 slots.
Does splitting the devices across two scanners help? #
No, it does not, because the limit is enforced on the total EtherNet/IP device count in the project. A second scanner object changes where the entries hang in the tree, not how many there are. The same applies to reordering devices or renaming them; the compiler counts the entries by type. Splitting only helps when the second scanner lives in a different controller, since each controller runs its own project with its own count.
Can I do explicit messages to an IP address without a device entry? #
Not in a supported way. Machine Expert's EtherNet/IP explicit messaging services are device-based: the functions take a device object that must already be configured in the project, so there is no documented service that targets an arbitrary IP address with no device entry. That is exactly why the 17-device project cannot compile: the device you would message through cannot be added. Stop the custom-driver path here; the supported options are reducing the count, changing protocol, or adding a controller.
How do I count the devices in my project? #
Open the device tree, list every EtherNet/IP entry (scanners and the adapters under them, plus any standalone EtherNet/IP device objects), and compare the total with 16. Record Modbus TCP entries separately; they do not affect the check. Worked example: a project holds 9 EtherNet/IP remote adapters, 1 EtherNet/IP scanner object counted by your tree listing method, and 22 Modbus TCP devices. If your tree counting includes the scanner entry, the EtherNet/IP side is 9 + 1 = 10, so you have 16 - 10 = 6 slots free; if it excludes the scanner, you have 7 free. In the reported case the tree held 16 EtherNet/IP entries, so adding one more gave 16 + 1 = 17, which is 17 - 16 = 1 over the limit, and the compile failed. Do the same subtraction on your project before adding anything.
When should I move an endpoint to Modbus TCP? #
Move an endpoint when it supports Modbus TCP and every data item the application needs is available through that protocol. Check the device documentation for the Modbus register map: inputs, outputs, and status words must all be reachable, because a device that exposes only basic readings over Modbus while hiding diagnostic data behind EtherNet/IP assemblies is a poor candidate. Once confirmed, configure it with the project's existing Modbus TCP approach and delete the EtherNet/IP entry, which frees one slot immediately. If the endpoint is Modbus TCP-only it never counted in the first place; if it is EtherNet/IP-only, it must stay inside the 16.
What if all 17 devices must stay on EtherNet/IP? #
Then one controller cannot hold the project, and the supported fix is architectural: put the overflow devices on a second controller and exchange the data between controllers over a connection that does not consume EtherNet/IP device slots, or gateway the devices through a module that presents them to the PLC as Modbus TCP. When the added cost lands on the design, prefer the protocol move first because it is free in hardware.
Note that scanners also have a practical performance ceiling below the hard limit: a published field note on CODESYS-based EtherNet/IP warns that beyond about 10 devices the system likely slows and needs longer update intervals, so a project near 16 should stagger its requested packet intervals rather than run every connection flat out. The same design point appears in the CODESYS EtherNet/IP adapter datasheet, which states no restriction on the number of adapter-side connections; that figure describes the adapter role, not your scanner's compile limit.
How do I verify the fix before commissioning? #
Compile first, then test data, because a clean compile only proves the count passed. Confirm the limit message is gone, go online, and check each endpoint's communication status; then compare live values against known device states, verifying outputs at the device itself under your site's commissioning procedure. If a moved Modbus TCP endpoint reads zeros or wrong values, troubleshoot its register mapping separately from the count issue; the addressing work is the same as fixing reads to a Modicon M340 (Modicon M340 Modbus TCP input bits read only), where the register type decides whether a value is readable at all. For the endpoints that stay on EtherNet/IP, explicit-message reads behave as described in EtherNet/IP module register explicit message read.
The decision for each case: at or below 16 EtherNet/IP entries, keep the design and compile; between 17 and 16-plus-Modbus-capable devices, move the compatible endpoints to Modbus TCP and recompile; all-EtherNet/IP beyond 16, split the devices across two controllers. Never spend time on a scanner split or a raw-socket explicit client, because neither changes the entry count the compiler checks.
Questions asked
Does the 16-device limit count Modbus TCP devices?
No. The compile check counts configured EtherNet/IP device entries in the project. A project can hold 16 EtherNet/IP devices plus additional Modbus TCP devices without hitting the limit. Count the EtherNet/IP entries in the device tree, not the total number of networked devices.
Can I write raw explicit messages to a 17th device without a device entry?
In Machine Expert the EtherNet/IP services are device-based: the explicit messaging functions operate on a device object that exists in the project, so there is no supported path to an unconfigured IP address. Keep the endpoint within the 16-device budget, move it to Modbus TCP, or put it on a second controller.
Does a CODESYS EtherNet/IP adapter have the same 16-device limit?
The published datasheet for the CODESYS EtherNet/IP Adapter add-on states no restriction on the number of connections. That figure describes the adapter role on a compatible PLC, not the scanner configuration inside Machine Expert, so do not apply it to your project's compile limit.
Will fewer than 16 devices but many connections slow the controller?
Possibly. A published field note on CODESYS-based EtherNet/IP scanning warns that above roughly 10 devices the system may slow down, forcing longer update intervals. Budget scan time as you approach the limit and stagger the requested RPIs rather than running every connection at the fastest rate.


