Short answer: To connect machines to software, find out what each controller can communicate (often OPC UA, MQTT, Modbus, or a maker-specific protocol), read the values you need through an edge gateway on the machine network, and send them to a database that dashboards and business software can use. Machines with no usable communications can be monitored with added sensors such as current sensors or part counters. Start read-only, keep machine networks separate from office and internet traffic (NIST SP 800-82 is the reference guide for securing this kind of equipment), and leave safety functions out of it entirely.

Key facts

  • OPC UA: the OPC Foundation's platform-independent standard for industrial data, from embedded controllers to the cloud, with built-in encryption, authentication, and auditing, and a model that describes what each value means.
  • MQTT: a lightweight publish and subscribe messaging protocol for the Internet of Things. MQTT 5 is an OASIS standard; MQTT 3.1.1 is an older ISO and OASIS standard.
  • Modbus: an open protocol developed by Modicon in 1979, free to use, running over serial links (RS-232, RS-485) or Ethernet, where Modbus TCP uses port 502.
  • Older machines: can often be monitored with added sensors: a current sensor on the spindle or motor, a tap on the stack light, or a part counter.
  • Security: NIST SP 800-82 Rev. 3, the Guide to Operational Technology (OT) Security, covers threats, vulnerabilities, and countermeasures for PLCs, SCADA, and other control systems.
  • Read first, write later: monitoring doesn't change how a machine runs. Writing values back to a controller is a controls change that needs the people responsible for the machine.

How do machines talk to software?

Machines talk to software through the communication protocols their controllers support, or through sensors added for the purpose. A modern PLC or CNC control may offer several options; a 25-year-old machine may offer none. The first step in any project is a list of each machine, its controller model, and what it can speak.

OptionHow it worksGood for
OPC UAA client connects to a server on the controller or a gateway and browses or subscribes to named valuesNewer PLCs and machines; rich, self-describing data with security built in
MQTTDevices publish values to a broker under topics; any software that subscribes gets themSending data from gateways and sensors to many consumers; unreliable or low-bandwidth links
Modbus (RTU or TCP)Software reads numbered registers from the deviceMeters, drives, temperature controllers, and many older PLCs
Maker-specific protocolsThe controller's own native protocol, read by a driver that supports itControllers without OPC UA, through gateway software that supports that brand
Added sensorsCurrent sensors, stack light taps, counters, temperature or vibration sensors wired to a small I/O deviceMachines with no usable communications; quick running or stopped tracking

Modbus has no built-in names for its values: each numbered register means whatever the device maker says it means, so you need the device's register map. OPC UA's information model describes the data itself, which saves a lot of guessing.

What does a typical machine data setup look like?

A typical setup has four parts, and keeping them separate is what keeps it safe and maintainable:

  1. Machines and controllers on their own network, doing their job.
  2. An edge gateway: a small industrial computer on the machine network that reads values with OPC UA, Modbus, or the maker's protocol, buffers them if the connection drops, and publishes them outward (often with MQTT or HTTPS).
  3. Storage: a time-series or PostgreSQL database, on site or in the cloud (for example AWS), that keeps the history.
  4. Applications: dashboards on a TV by the line, alerts to a phone, shift reports, and connections to scheduling, maintenance, or ERP software.

The gateway is the important piece. It means the office network and the internet never talk to controllers directly, and it gives you one place to control what leaves the floor.

How do you keep machine connections secure?

Keep machine networks separate, connect outward through a controlled point, and allow only the traffic you need. NIST's guide to OT security points out that control systems have their own performance, reliability, and safety requirements, which is why office IT habits don't carry over directly: a reboot or a network scan that's harmless on a laptop can disrupt a machine. Practical rules for a small shop:

  • Don't put PLCs or HMIs on the office network or expose them to the internet.
  • Use a gateway that reads from machines and sends data out, rather than opening inbound paths to the floor.
  • Use OPC UA's security features (encryption and certificates) where the equipment supports them.
  • Set up remote access for vendors and programmers deliberately, with its own accounts, and turn it off when it isn't in use.
  • Keep an up-to-date list of every connected device and who's responsible for it.

How we handle this

We start by surveying your machines and controllers with your maintenance or controls people, then connect one or two machines read-only so you can see real data quickly. We write down the plan, including the network layout, before anything is installed, and work one to one with you from first call to launch. Safety systems stay out of scope and with the qualified people responsible for them. See our industrial automation page and machine monitoring dashboards.

What should you measure first?

Measure the simplest thing that answers your biggest question, usually whether each machine is running, idle, or down, and for how long. Add part counts next, then downtime reasons that operators pick from a short list on a tablet. Temperatures, vibration, and energy use come later, when there's a specific problem they would help solve. Collecting every tag from every controller on day one creates a lot of data and few answers.

Agree up front on definitions, too. "Running" might mean the spindle is turning, the cycle-start light is on, or parts are being counted, and each gives different numbers.

Questions

Should machine data go to the cloud or stay on site?

Either works. On site keeps everything local and works without internet; the cloud makes it easier to see data from anywhere and to keep long history. Many shops use a gateway that buffers on site and sends to a cloud database, so a dropped connection doesn't lose data.

Can one system read machines from different brands?

Yes. That's one of the main jobs of the gateway layer: it reads each machine in whatever protocol it supports and turns the values into one consistent format before storing them.

Do you have to change the PLC program to get data out?

Often not. Many values can be read as they are. Sometimes a small addition, such as a counter or a status word, makes the data cleaner; that's a controls change and should be made by the people responsible for that machine, with testing. See what is a PLC programmer.

Sources