The basic principle of an engine ECM is a repeating control loop: receive information, calculate a suitable command, send that command and use fresh information to assess the engine's response. In electronically managed diesel equipment, this loop connects the requested operating condition with the fuel system and other engine functions. It continues while conditions change; it is not a decision made only when the engine starts.
Inputs tell the ECM what is wanted and what is happening
A request and a measurement have different jobs. A speed request describes a target. A speed sensor describes rotation that is actually occurring. Temperature and pressure inputs describe other conditions that influence what the engine can do. Some inputs come from devices connected to the ECM, while others arrive as information from another controller.
The ECM must give each input its correct meaning. A changing electrical signal is useful only when the software interprets it according to the intended sensor or interface. The same numerical value could represent a temperature, a percentage or a requested speed. Its definition matters as much as the number itself.
Inputs also have a time context. Engine position information supports events that must occur at the right point in the engine cycle. A temperature changes on a different timescale. The control system handles these different kinds of information according to their purpose rather than treating all readings as equally urgent.

Calculation turns information into a decision
The ECM applies programmed relationships, calculations and limits to the available information. A calibration contains application settings and data used by that software. It is not simply a saved list of the last sensor readings. The program uses current inputs with those definitions to decide what command is appropriate now.
For electronically controlled injection, decisions can concern fuel quantity and injection timing, with the exact functions depending on the fuel system. A requested increase does not bypass the engine's operating limits. The calculation must account for the conditions and permissions that apply before producing an output.
A target can remain unchanged while the calculated command changes. Holding a steady engine speed under a different resistance may require a different fuel command. That is why a control loop needs both a description of the desired state and information about the current state.
An output begins the physical response
The calculated result must reach a device that can act on it. Electrical output stages operate the supported actuators, and some requests may be passed to another control unit. The actuator and the engine then produce a physical response. A software value alone does not move fuel or turn the crankshaft.
Command, actuator action and engine response are separate events. They are connected, but they need not occur at the same instant. Electrical devices, fuel delivery, combustion and rotating parts each contribute to the response. A simple diagram often hides these stages inside one arrow.
Feedback makes the next decision better informed
Fresh measurements return information about the response. In a speed-control loop, the controller can compare measured rotation with the speed target and adjust its command. This repeated comparison is feedback. It allows control to respond to changes instead of relying on one fixed output for every condition.
Feedback does not mean every output has a dedicated sensor measuring its exact result. Some control functions use direct measurements, others use calculated estimates or programmed relationships. The available sensing and the control design determine what the ECM can observe. An estimate should not be described as a direct measurement.
The loop also needs usable information. Software may check whether an input is within its expected range or consistent with other information. If information is unavailable, the permitted response depends on the engine design. There is no single fallback action that can be assigned to every diesel ECM.
For the wider component definitions, see engine ECU inputs and outputs. The principle to retain here is the repeating relationship: inputs describe the present situation, calculation selects an action, outputs start the response and feedback informs the next calculation. That relationship explains engine control more clearly than calling the ECM a computer that simply tells everything what to do.