How-to
Collecting Serial PLC Data Through Weintek Remote HMI Panels
Short answer
Yes. Keep each MT8051iP or MT8071iP on its serial PLC, add every panel by IP in the cMT EasyBuilder Pro project as a remote HMI with a remote PLC behind it, read the Omron or Modbus addresses in their native notation, and expose those tags through the cMT OPC UA server to the MES. Debug the four hops outward from the machine.
On this page
- The four hops and where they break
- Read through the panel, not through copied registers
- Prepare each machine panel
- Build the collector project in EasyBuilder Pro
- Worked example: wire time for one 20-word block at 19200 baud
- Why a tag reads zero or bad quality
- Verify the whole chain before the MES goes live
- Capacity, events and security
- Questions asked
Yes — the architecture works as drawn. Put an MT8051iP or an MT8071iP on each machine, leave its serial line to the Omron PLC or the Modbus I/O unit exactly as it is, and give every panel a static IP address. In the collector project, register each machine panel in EasyBuilder Pro as a remote HMI by its IP, define the PLC behind it as a remote PLC, read the PLC's own register notation, and expose those tags through the cMT OPC UA server to the MES. A single 10- or 15-inch cMT is the collector; it never touches a serial line, because each machine panel forwards its requests. The chain is four links, it fails one link at a time, and you debug it outward from the machine.
The four hops and where they break #
Any one link failing produces the same symptom at the MES: a tag with bad quality and no value. Separate the hops before touching anything.
| Hop | Link | What typically fails here |
|---|---|---|
| 1 | Serial PLC or Modbus I/O unit to the MT80x1iP | Baud rate, parity, station number, or the wrong PLC driver in the panel project |
| 2 | MT80x1iP to the cMT over Ethernet | Duplicate or wrong IP, subnet mismatch, panel unreachable |
| 3 | cMT device list and tag table | Wrong device assignment, address type, or data format |
| 4 | cMT OPC UA server to the MES | Server not enabled, tags not exposed, certificate or endpoint mismatch |
Debug in that order, from the machine outward. If the machine panel displays the live PLC value, hop 1 is proven and the rest of the investigation stays on Ethernet and the collector project. Handing serial PLC data upward through an operator panel is the same pattern as relaying serial PLC data through a C-more HMI to SCADA; the difference here is that the upward half is OPC UA from a cMT rather than a push to a SCADA driver.
Read through the panel, not through copied registers #
Two routes reach the machine data, and one of them is right for a plant of mixed old Omron and Modbus machines.
| Route | What the cMT reads | Verdict |
|---|---|---|
| Copied panel registers | HMI memory mapped inside each machine project | Works, but every value is mapped twice and the copy breaks when a panel project is edited |
| Native PLC addresses through the panel | The Omron data areas or Modbus registers, reached through the panel's IP | Recommended: one mapping layer, tag list generated from the machine's PLC documentation |
| Direct to the PLC | The PLC itself, over Ethernet or a serial line run to the collector | Not available for Omron CPUs whose only port is serial, and serial lines to one point cost more than the panels |
Choose the native route. The copy-first alternative is the same idea behind exposing PLC values to an OPC server through guest memory blocks, and it is legitimate — it simply leaves a mapping to maintain on every machine. It is also the shape of exchanging HMI memory data with a custom PC application, where the external reader sees panel memory rather than the controller. For plain register data, the remote PLC route removes both copy steps.
Prepare each machine panel #
- Fix a static IP address on every MT8051iP and MT8071iP and on the cMT, all in one subnet or with routes in place, and record machine name, panel IP, PLC type and station number in one table.
- In each machine's EasyBuilder Pro project, configure the serial device with the protocol the unit actually speaks — the Omron serial protocol or Modbus RTU — and download.
- Put a numeric object on a maintenance page showing a known register, and confirm live values on the panel before the collector is involved. That single display proves hop 1.
Build the collector project in EasyBuilder Pro #
- Open [System Parameters] in the cMT project and define a remote HMI entry for each machine panel, entering that panel's IP address in the remote HMI address field. The manual counts any HMI other than the local one as a remote HMI, a PC included.
- With Remote HMI 1 selected, click [New Device] and add the remote PLC: choose the same PLC type and station number the machine panel uses for that PLC.
- Create the collector tags against each machine's remote PLC device, using the PLC's native address notation and the correct length and format — 16-bit, 32-bit, signed, word order.
- Enable the OPC UA server function and expose the tags, confirming in your EasyBuilder Pro version that the cMT model and software include the server, and note any tag-count limit that version documents.
- Prefix tag names with the machine, M03_PartCount rather than PartCount, so the browse tree stays readable across a dozen machines.
- Download the project and point the MES OPC UA client at the cMT endpoint.
Direction decides who talks, and it is the same question as HMI OPC UA server vs client direction: the cMT is the server and the MES is the client, so the MES subscribes and the cMT answers. On the cMT, certificate trust lives under easyweb in OPC UA / Certificates, the page Weintek's OPC UA connection guide points to for trust handling, and the MES side must accept the cMT's server certificate under the security mode both ends support.
Worked example: wire time for one 20-word block at 19200 baud #
The question this answers: how much of a machine's serial line the collector consumes, and how fast the MES can see a value.
Inputs:
- Example serial settings for the machine's Modbus RTU unit (read the real ones off the configured device and redo the arithmetic with them): 19200 bit/s, 8 data bits, even parity, 1 stop bit, giving 11 bits per character.
- Example collector list for that machine: 20 holding registers in one contiguous block.
- Modbus RTU framing: a read request is 8 characters (address, function, start, quantity, error check); the reply is 5 characters plus 2 per register (address, function, byte count, data, error check).
- Interframe spacing: 3.5 character times of silence, counted once after the request and once after the reply.
Rule in words: wire time per cycle equals the request and reply characters multiplied by the character time, plus both 3.5-character gaps; character time equals bits per character divided by the baud rate.
Arithmetic:
- Character time = 11 bits ÷ 19200 bit/s = 0.573 ms.
- Request and reply = (8 + 45) characters × 0.573 ms = 30.4 ms, where the 45-character reply is 5 + 2 × 20.
- Both gaps = 2 × 3.5 × 0.573 ms = 4.0 ms.
- Minimum cycle = 34.4 ms, a ceiling of 1000 ÷ 34.4 ≈ 29 cycles per second, or 29 × 20 = 580 words per second of wire capacity.
- The same 20 registers one at a time: (8 + 7) characters × 0.573 ms + 4.0 ms = 12.6 ms per read, and 20 reads cost 252 ms — about seven times the block read.
Decision: poll this machine once per second as one block and you spend 34.4 ms of every 1000 ms, which is 3.4% of the wire; a 250 ms refresh costs 13.8%. Hold the collector under about half of each machine's wire time so the panel's own screens keep their serial turns — above that, lengthen the interval or trim the list, because the serial port is the constraint and the Ethernet never is. The 34.4 ms is the calculated minimum; the unit's response delay adds on top and is measured on the machine, not assumed. Each machine has its own serial port, so a dozen machines do not sum into one budget.
Why a tag reads zero or bad quality #
Split binding faults from tag faults. A binding fault takes out every tag of one machine; a tag fault takes out one value.
| What you see | Likely layer | First check |
|---|---|---|
| Every tag of one machine bad, others good | Binding: panel unreachable | Ping the panel from the collector subnet and compare against the IP table |
| Panel shows the value, cMT does not | Device entry: PLC type or station differs | Match the machine panel's device settings exactly in the collector |
| Value present, wrong magnitude | Format: 16- versus 32-bit, word order | Compare against the panel's display of the same register |
| Correct on the cMT, missing at the MES | Exposure or client trust | Browse the endpoint with a test OPC UA client on the MES network |
| Intermittent timeouts | Serial overload on that machine | Group addresses into contiguous blocks and slow non-critical polls |
The machine panel's own display is the reference instrument: it proves hop 1 in one glance, so never re-debug the serial line while it reads correctly.
Verify the whole chain before the MES goes live #
- On the machine panel, read a known counter register and note the value.
- On the cMT, display the same tag on a numeric object and confirm it matches and steps with the machine.
- Run one machine cycle and confirm the counter increments on the cMT within the poll interval.
- From a test OPC UA client on the MES network, browse the cMT endpoint, read the same tag, and confirm good quality.
- Unplug one machine panel's Ethernet cable: only that machine's tags go bad while the rest stay good, then reconnect and confirm recovery without restarting the cMT.
Capacity, events and security #
Weintek's multi-HMI documentation gives 64 HMIs as the maximum making requests to a single panel. That ceiling is the opposite direction from yours — one collector reading many panels — and your collector is a single requester per machine, so a plant of a dozen machines is nowhere near a documented panel-count limit; the poll budget above is what sizes the system.
Count production events in the PLC and read the counter. Polling a bit once per second misses every pulse shorter than that second, while cycle counts, machine states and fault codes survive as registers.
Keep the machine's own HMI pages light, since the panel's screens and the collector share one serial port. Keep this network away from office traffic, or fence it with a managed switch and a VLAN, because every panel now exposes PLC data over IP. Run the OPC UA server with the security mode both ends support rather than open, and manage trust through the certificate pages named above.
Questions asked
Why does the collector need the machine panel's IP and not the PLC's?
The old Omron CPUs in this plant have no Ethernet port, so the MT8051iP or MT8071iP owns the serial line and is the only Ethernet-reachable node on the machine. The cMT sends its request to the panel's IP address and the panel forwards it out the serial port. If an Ethernet module is ever fitted to one of those PLCs, that machine can be read directly and its panel drops out of the chain.
How many machine panels can one cMT collect from?
The documented count in Weintek's multi-HMI material is 64 HMIs making requests to one panel, which is the opposite direction, so a dozen machines sit far inside the panel-side ceiling. The limit that actually binds is serial wire time per machine: at 19200 baud with 8 data bits, even parity and 1 stop bit, one 20-register block poll per second uses about 3.4% of the line. Size the poll rate per machine and the panel count stops being the constraint.
Do I have to copy the PLC data into panel registers first?
No. Copying into panel memory works, but it doubles the mapping: every value is moved once in the machine project and read again in the collector, and the copy breaks silently whenever someone edits a panel project. The remote PLC route reads the Omron areas or Modbus registers in their native notation through the panel's IP, so the tag list comes straight from the machine's PLC documentation. Copy-first still earns its place when a value must be scaled or computed in the panel before the MES sees it.
Can the machine panel keep running its own screens while the collector polls?
Yes, the panel serves both, and both share one serial port. Keep the machine's own pages light, keep the collector list to what the MES actually needs, and hold the collector under about half the wire time so screen objects keep their turns. Group the addresses into contiguous blocks: one 20-word read costs about a seventh of the wire time of 20 single-word reads at the same settings.
Where is OPC UA certificate trust handled on the cMT?
Under easyweb, in the OPC UA / Certificates pages that Weintek's OPC UA connection guide names for trust handling. The MES client must accept the cMT's server certificate and the cMT must trust the client's, under the security mode both ends support. Browse the endpoint with a test OPC UA client on the MES network before go-live; a value that is correct on the cMT but missing at the MES is exposure or trust, not the PLC link.