The record starts at the controller, not at the keyboard.

Each machine’s signals are mapped once (an OPC UA node, an MQTT topic or an HTTP post) and read on a cycle you set. States, counts and a quality flag come from the controller, and production is the difference between two readings of its own counter.

LINE 02 · FROM TOPIC TO TAGCONNECTEDCONTROLLER ADDRESS · MQTTTAGVALUEline02/state/runSTATE_RUNtrueline02/count/totalCOUNT_TOTAL15,420line02/nozzle/rawNOZZLE_RAW720FORMULANOZZLE_RAW 10 /NOZZLE_TEMP_C72.0 °CWHAT VZIAM MES MAKES OF ITSTATECOUNTEDQUALITYRUNNINGfrom STATE_RUN+10 parts15,420 − 15,410to WO-0248GOOD4 of 4 tagsMapped once, by name. Every figure downstream starts here.

PLC data acquisition

A plant is never one generation of equipment.

VZIAM MES collects machine data straight from the controllers: it reads OPC UA servers, subscribes to MQTT topics and accepts readings posted over HTTP. A Modbus, Siemens S7 or proprietary PLC is read by a gateway on the line that translates its signals to MQTT. Run state, part counts and a quality flag come from the machine, not from a keyboard.

The press bought in 1998 and the machining centre delivered last year are both making parts today, and only one of them has an OPC UA server. Which machine goes which way is settled during the assessment, machine by machine, from the makes and models of your controllers. Once a machine is connected, nothing downstream cares how: Line 02 publishes over MQTT, and its count reaches work order WO-0248 exactly as an OPC UA machine’s would, as the difference between two readings of the controller’s own counter.

Machine data integrity

Four rules between the controller and the figures.

A figure is only as honest as the signal under it. These rules are why the signal can be trusted.

  1. A machine counter is never reset.

    VZIAM MES never sends a reset to a controller. Production is the current reading minus the previous one, and never less than zero.

  2. A rollover is absorbed, not subtracted.

    When a counter reads lower than before (it wrapped, or a sensor was replaced), the delta is held at zero and the reference moves to the new reading, so nothing already counted is taken back.

  3. An unreliable value stays out of the figures.

    Every value arrives with a quality flag. A reading flagged as a sensor error is ignored by the OEE calculation rather than averaged in.

  4. Silence is not yet a stop.

    A controller that goes quiet raises a pre-alert after 15 seconds and becomes a stop after 60, both set per machine. A lost connection marks the machine offline and raises a signal-loss alert instead of recording a breakdown.

Shop floor data collection

Four mechanisms between a register and a figure.

A controller reports what it knows, in its own units and at its own pace. These are the four places where VZIAM MES turns that into a figure a supervisor can stand behind.

Modbus and S7 gateway

An older controller joins through a gateway on the line.

A Siemens S7 or a Modbus device publishes nothing by itself, and VZIAM MES does not speak its protocol. A gateway on the line does. VZIAM Link, the gateway we supply, reads S7 and Modbus TCP and sends the values over HTTPS; Node-RED or a DAS box reads the registers you name (the run bit, the counter, the fault word) and publishes each one as an MQTT topic to the broker that ships with the server.

From there on, the machine is treated exactly like one read natively: the same counter rules, the same quality flag, the same silence delays. A Link also holds readings through a cut between it and the server, up to 100,000. Which gateway, whether we supply it or your automation team does, and who maintains it, is agreed at the assessment, before go-live.

VZIAM Link, the gateway we supply
GATEWAY · A SIEMENS S7 OVER MQTTPRESS · SIEMENS S7no OPC UA serverDB10.DBX0.0runDB10.DBD4countDB10.DBW8faultS7GATEWAY ON THE LINENode-RED or a DAS boxreads the registerspublishes each oneas an MQTT topicMQTTVZIAM MES SERVERMQTT broker · dataset PRESSpress/runSTATE_RUNpress/countCOUNT_TOTALpress/faultFAULT_CODEFROM THE BROKER ON, THE SAME RULES AS A NATIVE MACHINECOUNTERdeltas, never resetQUALITYa flag on every valueSILENCEpre-alert, then a stopWho supplies and maintains the gateway is agreed at the assessment, machine by machine.

PLC counter rollover

A counter that wraps costs the order nothing.

A 16-bit counter tops out at 65,535 and starts again at zero, and a replaced sensor starts at zero too. Subtracting naively, the next reading would take 65,526 parts back from the order. VZIAM MES never sends a reset to a controller: it books production as the current reading minus the previous one, and never less than zero.

When a reading comes in lower than the one before, the delta is held at zero and the reference moves to the new value. The next reading counts from there: 4, then 14, books ten parts as if nothing had happened. What the order had already counted stays counted.

Delta · max(0, current − previous)

COUNTERS · A ROLLOVER ABSORBEDCEILING 65,5350WRAPPEDREADINGDELTA BOOKED65,510-65,520+1065,530+104014+1024+10A NAIVE SUBTRACTION4 − 65,530 = −65,526parts taken back from the orderVZIAM MESDelta held at 0reference moved to 4, nothing taken backDELTA = MAX(0, CURRENT − PREVIOUS) · NO RESET IS EVER SENT

Tag mapping and formulas

A raw value becomes a unit through a formula on the tag.

Controllers report what their cards measure: a nozzle temperature as 720, in tenths of a degree. Each tag maps a controller address (an MQTT topic or an OPC UA NodeId) to a name the rest of the platform uses, and a tag can also be a formula over other tags, written in reverse Polish notation: NOZZLE_RAW 10 / gives 72.0 °C.

Formulas convert units, combine two sensors or compare a value with a threshold, using the operators + − * / > < and ==. A division by a sensor reading zero does not break the calculation, and a malformed formula keeps the tag’s last value and raises a configuration alert rather than publishing a wrong one.

TAGS · A FORMULA ON A RAW VALUETAG DEFINITIONNOZZLE_TEMP_C = NOZZLE_RAW 10 /REVERSE POLISH NOTATION1 · READ NOZZLE_RAWstack7202 · READ 10stack720103 · APPLY /stack72.0NOZZLE_TEMP_C72.0 °Cfrom 720 rawA MALFORMED FORMULANOZZLE_RAW /keeps 72.0 °C, raises a configuration alertOPERATORS + − * / > < ==

Signal loss and stop detection

Silence becomes a stop only after a delay you set.

A controller that stops sending is not necessarily a stopped machine. After 15 seconds without a signal, the cockpit shows an amber pre-alert and nothing is recorded; after 60 seconds, a stop is created and the operator is asked why. Both delays are set per machine, because a press and a filler do not pause the same way.

A lost connection is handled differently. When the network to a machine drops, the machine is marked offline and a signal-loss alert is raised, so a failed switch is never booked against the line as a breakdown. Readings resume on the next cycle once the link is back.

How a stop is qualified
STOP DETECTION · SILENCE, THEN A STOPA CONTROLLER GOES QUIETTHE CONNECTION DROPSSIGNALCOCKPITlast messageRUNNINGPRE-ALERT · SIGNAL DISTURBEDSTOPPRE-ALERT AT 15 SSTOP AT 60 Sthe cockpit asks the operator whySIGNALCOCKPITnetwork lostRUNNINGOFFLINE · SIGNAL-LOSS ALERTNo breakdown recorded for the gap-20 s0 s15 s30 s45 s60 s80 sBOTH DELAYS ARE SET PER MACHINE

OPC UA, MQTT and HTTP push

From a controller address to a figure on the screen.

  • OPC UA, MQTT and HTTP, natively

    OPC UA nodes are read on the dataset’s polling cycle, MQTT topics are subscribed to through the broker that ships with the server, and an edge device or a script can post readings over HTTP.

  • Everything else through a gateway

    A Modbus, Siemens S7 or proprietary PLC is read by a gateway on the line (Node-RED or a DAS box) that publishes its signals over MQTT. Who supplies and maintains it is decided before go-live.

  • Datasets and tags

    Tags are grouped into a dataset per machine or line, and each maps a controller address (an OPC UA NodeId or an MQTT topic) to a name the rest of the platform uses.

  • Formulas on tags

    A tag can be a formula over others: convert a raw value to a unit, combine two sensors, compare against a threshold. A malformed formula keeps the last value and raises a configuration alert.

  • States from signals

    Running, stopped, standby and offline are worked out from what the controller reports, not from a declaration, and every change of state is logged with its source.

  • Signal history

    Values are stored when they move by more than a deadband you set, and long ranges come back as minimum, maximum and mean per interval, so a month of readings stays readable.

Machine connectivity specifications

What acquisition commits to.

Native protocols
OPC UA · MQTT · HTTP push
Through a gateway
Modbus · Siemens S7 · proprietary
Reading
Per dataset, on the polling cycle you set
Counters
Deltas, never reset, rollover absorbed
Signal quality
Flag on every value
Stop detection
Pre-alert at 15 s, stop at 60 s, per machine
Raw history
Deadband filter, 90 days, then archived

Frequently asked questions.

Plan the change before it reaches the line.

Request a demo and an engineer looks at how your production runs today, shows how the software would fit around it, and where a pilot on one line would start.

YOUR PLANT TODAY · WHERE A PILOT STARTSERPorders · stays as it isVZIAM MESa server on your networkSHOP FLOORLINE 01paper sheet per shiftLINE 02spreadsheet at shift endPILOTLINE 03counter on the PLCLINE 04whiteboard by the line