The practical approach is to identify the machine signals already available, add sensors only where necessary, collect them through a PLC/MCU/gateway, and expose clean events or measurements to the ERP through a database or API. This separates machine constraints from business software.
Why replacement is often unnecessary
A machine may be perfectly capable of producing the required output while exposing little digital data. Replacing it only to obtain connectivity can be an expensive response to a smaller integration problem.
First determine which signals are available: PLC registers, relay outputs, encoder pulses, sensors, serial interfaces or operator inputs.
Use an acquisition layer
The acquisition layer is the translator between the physical machine and the business system. It can read a pulse, digital state, analog value or industrial protocol and normalize it into a structured event.
For example, a pulse stream can become machine speed, while a run/stop signal can become a production runtime event.
Keep ERP responsibilities separate
The machine layer should focus on reliable acquisition and timestamped events. The ERP should handle production orders, inventory, costing, planning and business workflows. A clear interface between them makes troubleshooting and future upgrades easier.
Where APIs and databases fit
Depending on the requirement, machine data can reach a web application through an API, a controlled database interface or an intermediate IoT service. Authentication, retry handling and offline buffering should be considered when network reliability is variable.
A practical first project
Choose one machine and one business decision—such as production count against an order. Prove the signal, data model and workflow before expanding to an entire plant.