The Cylinder trims page tells the RM-Primis ECU what engine it runs: piston or rotary, two or four stroke, how many cylinders, the firing order, which ignition output and injector fires each cylinder, and how the tachometer output works. Set it up first on a new installation: every fuel and ignition event depends on it.
The page has a calculator that works out the firing angles and output assignments from the firing order, and the full table of angles and outputs underneath, for any engine the calculator does not cover.
A four-stroke engine takes two turns of the crankshaft, 720°, to go through intake, compression, power and exhaust on every cylinder. Each cylinder fires once in that cycle, and the cylinders take turns at even intervals: on a four-cylinder engine one fires every 720 ÷ 4 = 180°, on a six every 120°, on a V8 every 90°.
The ECU counts the crankshaft's position from the crank and cam sensors (see Crank and cam sensors), with cylinder 1 at 0°. The firing order tells it which cylinder comes next. From the two it knows, for every cylinder, at what angle in the cycle to fire its spark and time its injection, and which ignition output and injector belong to it. That is what this page sets.
Get it wrong and the engine may still start, but with sparks and fuel going to the wrong cylinders it will run badly or not at all, so check it carefully against the engine and its wiring.
Open Setup → Engine → Cylinder trims.
| Setting | What to choose |
|---|---|
| Engine type | Piston engine, or a rotary (Wankel) engine for the Mazda RX-7, RX-8 and single, twin, three or four rotor engines |
| Cylinders | The number of cylinders (or rotors) |
| Stroke | 4 stroke: each cylinder fires once every two turns of the crankshaft (a 720° cycle). 2 stroke: once every turn |
For rotary engines the ECU supports full sequential ignition and two kinds of wasted spark, as used on the RX-7.
Enter the engine's firing order in the numbered boxes, choose how the ignition is wired, and press Calculate. RM-Tuner fills in the firing angle of each cylinder and assigns its ignition output and injector.
| Option | When to use it |
|---|---|
| Wasted spark | Coils fired in pairs, one cylinder on compression and its partner on exhaust: dual-output coils, and many older four-cylinder engines |
| Wasted COP | A coil per cylinder, fired in pairs while the engine starts, then fully sequential once the ECU has found the engine's position from the cam signal. The engine starts faster. Until it changes over, the cam angle can read differently; nothing else changes |
| Distributor | One ignition output; the distributor sends the spark to each cylinder |
| All off | Fully sequential coil on plug: one ignition output per cylinder |
The firing order itself is not stored in the ECU. What is stored are the firing angles and output assignments it produces, so you can change them by hand afterwards.
The table under the calculator is what the ECU uses, one row per cylinder:
| Column | What it is |
|---|---|
| Angle (deg) | Where in the engine cycle the cylinder fires, from 0 to 720° on a four-stroke. Cylinder 1 is at 0° |
| Injector | ON to inject fuel for this cylinder |
| Ignition output | The ignition output that fires this cylinder; Not assigned for none |
A six-cylinder engine with firing order 1-5-3-6-2-4, as in the picture, has its cylinders 120° apart: cylinder 1 at 0°, 5 at 120°, 3 at 240°, 6 at 360°, 2 at 480° and 4 at 600°.
The outputs do not have to follow a simple order: any output can fire any cylinder at any angle, as long as the angles match the engine. This lets the ECU run engines of up to 12 cylinders with paired coils or injectors, wired to match the engine's own harness.
Plug-in adapters. On RM Racing plug-in adapters, the outputs follow the original car's pinout, which may not be 1-2-3-4: for example 1-2-5-4. This is normal. Start from the base map for your application and keep its output assignments.
| Setting | What it does |
|---|---|
| Output | Dwell: the tach signal follows the coil charging, like an ignition coil's. 50% duty: a square wave, which most aftermarket dashboards and many original rev counters expect |
| Cylinders | The cylinder count the rev counter is set for |
| Wasted spark | Switch on when the engine runs wasted spark, so the doubled sparks do not double the reading |
If the rev counter reads double or half, check Cylinders and Wasted spark here first.
On Setup → Engine → Cylinder trims: type it into the Firing order boxes and press Calculate.
Yes. Choose the rotary engine type: the ECU supports single to four-rotor engines, with full sequential or wasted spark ignition.
Contact customer support at [email protected].
Related pages: Crank and cam sensors · Trigger inputs · Ignition table · Ignition coil dwell · Wiring diagram