Connect machines

Let injection, blow moulding and other machines send their shot counts and status, so runs count themselves and stops are logged.

Updated 30 Oct 2026

A connected machine tells the ERP how many cycles it ran, how long each took, and whether it is running, idle or in alarm. You don't type the count at the end of a shift. The run's quantity goes up by itself, and every stop is logged with its time and alarm.

1. Set up the machine

Go to Manufacturing → Work centres and click Machine next to the machine. Under Machine details fill in:

  • Type, Make / model and Capacity, for example Injection moulding, Haitian MA 3600, 350 T.
  • Parts per cycle: the cavities. It's only used when the product has no Cavities set and the machine doesn't send them.
  • Standard cycle (s): the cycle time the machine should run at. Today's average is shown next to it.

2. Make a key

Click Make key and copy it. It's shown only once. Give it, with the Send to address, to whoever sets up the machine or the gateway PC.

New key replaces the old one, and the machine stops sending until it has the new key. Remove key disconnects the machine.

3. Connect the machine

The ERP can't reach into your factory network, so the machines send to it. There are two ways to do that:

  • Gateway PC (recommended). Click Gateway script (Python) and run it on a PC or Raspberry Pi on the machines' network. It reads machines over OPC UA / Euromap 77 (most injection machines from about 2018) or Modbus TCP (PLCs and shot counters). When the internet is down it keeps readings and sends them later. Run python erp_machine_gateway.py --init, fill in the address and each machine's key in gateway.json, then start it.
  • Older machines. Fit a simple shot counter that counts the mould-open signal and speaks Modbus, and add it to the gateway the same way.

Press Send test to check the page. A test reading shows in Latest readings but doesn't change counts or status.

4. Which run gets the count

The machine counts for, in this order:

  1. the run named in the message;
  2. the run you pick under Counting for;
  3. the run whose operation is started on this work centre;
  4. an in-progress run whose Facility is the machine's name or code.

Only runs In progress are counted. With no run, readings are still logged.

Good parts are the shots × cavities (from the product, the message or Parts per cycle) less rejects. When you Complete the run, Actual quantity starts at the machine's count. Change it if the count on the floor is different.

5. Stops

When a machine reports idle, setup, alarm or down, a stop starts. It ends when the machine reports running again. Stops on the machine page shows each one with its alarm and minutes, and Stopped shows today's total.

6. Machine board and OEE

Manufacturing → Machine board shows every connected machine on one screen and refreshes every 30 seconds. For each machine you see:

  • its status;
  • the run with a progress bar;
  • today's shots, good parts, rejects and minutes stopped;
  • the last cycle against the standard (red when slower);
  • its mould and how close it is to service.

OEE is counted from the first reading today:

  • Availability: time running out of the time since the first reading, up to the work centre's Hours / day.
  • Performance: standard cycle × shots out of the running time. It needs a Standard cycle.
  • Quality: good parts out of good + rejects.

OEE = availability × performance × quality. It shows green from 85%, amber from 60%, and red below that.

7. Moulds & dies

Manufacturing → Moulds & dies lists every mould, die or press tool with its Service every (shots) and Life (shots).

  • Put the tool On machine and that machine's shots are added to it. One tool can be on a machine at a time.
  • If it isn't on a machine, the tool counts shots from runs of any product whose Mould no. is the tool's code.
  • The tool's Cavities are used before the product's.
  • It turns Soon at 90% of the interval and Due at 100%.
  • After servicing, click Serviced, note the work done and who did it, and click Record service. The service is logged with the shot count, and the count since service starts again. History shows every service.

8. Alerts

Alerts are rules, not AI. They go to the bell (the owner and Production Managers) and on WhatsApp to the numbers set under Alerts on the machine board. You get an alert when:

  • a machine reports alarm or down, once per stop;
  • a machine is idle or in setup longer than the minutes you set;
  • a running machine sends nothing for the minutes you set (the machine or its gateway is off the network);
  • the last cycle times average more than the set % over the standard, at most every 2 hours;
  • a mould is due for service, once per interval.

Set any number to 0 to switch that rule off.

For WhatsApp, create and get approval for a template named machine_alert with two variables: the machine, then what happened. Until it's approved, alerts go to the bell only.

By industry

The words and choices follow your company's industry:

Industry Counts Machine types offered Tooling register
Plastics & moulding shots injection, blow, extrusion, thermoforming Moulds, matched by the product's Mould no.
Casting shots die casting, gravity/LPDC, furnace, CNC Dies & patterns, matched by Pattern no.
Sheet metal strokes press, press brake, laser, punching, welding Press tools & dies
Forging strokes forging press, hammer, press, furnace Dies
Auto components cycles press, CNC, VMC, injection, die casting Tools, dies & moulds
Medical equipment shots injection, extrusion, CNC, assembly Moulds
Footwear cycles injection, press, sewing Sole moulds & cutting dies
Ceramics strokes press, kiln Dies
Packaging impressions printing, die cutting, extrusion, slitting Cutting dies & cylinders
Corrugated box sheets corrugator, printing, die cutting Cutting dies & plates
Pharma manufacturing strokes tablet press, mixer, filling Punches & dies
Tool room, cables, steel service, solar, furniture, textile, fashion, jewellery, chemicals, paints, food, agri inputs, ayurveda cycles (metres for cables, cuts for steel) that industry's machines none: Moulds & dies is hidden

A company without an industry gets every machine type and Moulds & dies. A machine type saved earlier stays selectable if the industry changes.

For the person setting up the connection

POST to the Send to address with the header Authorization: Bearer <key> and a JSON body:

Field Meaning
counter The machine's own shot counter. The first value is the starting point; a lower value means it was reset.
shots Cycles since the last message, if there is no counter.
good, rejects Parts. Without good, good = shots × cavities − rejects.
cavities Parts per shot, if the mould's differs from the product.
cycle_time Seconds.
status running, idle, setup, alarm, down or off.
alarm Alarm code or text.
order Run number or target batch number, to count for a particular run.
at Time of the reading (ISO 8601). Defaults to when it arrives.
data Anything else, for example {"melt_temp": 228}.
test true to check the connection without changing anything.

To send readings kept while offline, put up to 500 of them in one message as {"readings": [ ... ]}, each with its own at.

Was this guide helpful?
Thanks, that helps us improve the guides.
Still stuck? Tell us what you were trying to do and we'll help.
Contact support