Troubleshooting
Why an MBTCP device group does not show your historian tag
Short answer
Yes, it is normal: a device group is the MBTCP driver's acquisition context under a device, not a tag browser, and neither the Historian topic nor the public group folder populates it. Accept the path only when a live read returns valid quality from the M340's CPU Ethernet address, then verify the topic-to-group mapping and the trigger capture.
On this page
A variable that never appears in the MBTCP device groups view is normal, not a missed step. A device group is the driver's acquisition context — a named grouping of data access under one device, with its own update behavior — and it is not a tag browser: the topic you created in Historian data acquisition and the folder you created in public groups configure the Historian side only, and neither writes anything back into the MBTCP view. On this path the MBTCP driver is the Modbus client that polls and the M340 answers; "server" in historian server describes the database role, serving stored values to reporting clients such as Dream Report. Commission the path in four checks — CPU Ethernet endpoint, live read of the weight item, topic-to-group mapping, trigger-based reporting — and accept it only when MBTCP returns valid quality from the CPU port address.
What the device groups view actually lists #
The MBTCP configuration is a hierarchy: the server, the device that identifies the PLC endpoint, the device groups under it, and the item references clients request through them. You add or select a device group on the Device Groups tab of the device, and the view shows those groups and their update behavior — it does not enumerate your Historian tags or PLC variables. An item reference is what identifies the weight: address syntax, register range and data interpretation. Diagnose an item with a live read, never by waiting for it to appear in that list.
The objects are easy to confuse because several of them are called groups or topics:
| Object | What it is | What to verify |
|---|---|---|
| MBTCP device | The PLC endpoint | CPU port address and device responses |
| Device group | Named acquisition context under the device | Group name and update behavior |
| Item reference | The requested PLC data | Address syntax, register range, data type |
| Acquisition topic | Connects Historian acquisition to a source | Running MBTCP instance and its device group |
| Historian tag | The value acquired and stored | Source item, tag type, storage settings |
| Public group | Organizes configured tags for browsing | Membership of a working tag |
Adding a tag to a public group is a retrieval convenience; it cannot populate the driver's view.
Point the device at the CPU Ethernet port #
The rack carries two Ethernet interfaces: the BMX NOC 401 and the embedded port of the BMXP342020 CPU. The drives and the existing MBTCP dialogs run on the NOC, so acquisition belongs on the CPU port — and each interface has its own address. Read the CPU port's configured IP from the controller configuration and compare it with the address entered in the MBTCP device object; they must match, with the Modbus TCP service port 502. Then check the acquisition computer's interface address, subnet, routing and firewall rules for that port. A ping response proves the port answers IP, not that a Modbus transaction succeeds; the acceptance test is the live read in the next check.
Read the weight item live through MBTCP #
- Confirm the MBTCP server is running and its configuration is active, and clear any connection errors its diagnostics show in SMC before changing anything on the Historian side.
- From the PLC project, record the weight variable's mapped address, data type, register length, scaling and engineering unit, and the trigger's address and type separately. A symbolic PLC name alone may not be a valid MBTCP item reference.
- Read the weight through the driver's diagnostic view or a supported client, and require valid quality with a value that agrees with the PLC monitor at the same moment.
- Read the trigger in its inactive and active states, driving it through the normal machine sequence or an authorized commissioning test — never by forcing the output from outside the logic that owns it.
Map the Historian topic to the device group #
- In Historian data acquisition, inspect the source behind your topic: it must be the running MBTCP instance, and the topic must map to the device group you verified. Similar names are not proof of a working connection.
- Configure the weight tag's source item exactly as the item that passed the live read, select the matching tag type, and keep PLC scaling and Historian scaling explicit so a conversion is not applied twice.
- Acquire the trigger as its own tag; its stored history is what separates a missed machine event from a reporting problem.
- Apply the configuration, then check the tag's quality, current value and timestamp against the same live PLC value you compared at the driver.
If the driver reads correctly and Historian does not, the fault sits in the source selection, the topic-to-group mapping, item spelling, tag type or activation, in that order. If the MBTCP instance does not appear as a selectable source at all, work through fixing a historian device shortcut that will not appear. If neither layer reads, return to the endpoint and item checks instead of touching report settings.
Make the trigger survive polling #
A successful live read does not guarantee that every weighing event is stored. Polling observes the item at instants, so a trigger that sets and clears between two scans is invisible to acquisition.
Define the event contract in the PLC logic: which transition means weight ready, when the weight is final, and how long it stays valid. Compare the trigger's actual active duration against the device group's update behavior, and where the event must not be missed, latch it in the PLC and clear it by handshake rather than trusting a brief pulse. Publish the completed weight before signaling ready, and if several events can occur before collection completes, buffer them or carry an event identifier so a later weight cannot replace an unread one.
Review the storage mode and any compression as well: repeated identical weights are still separate events when the requirement is one record per weighing. For the complementary pattern of storing a value only while a condition holds, see how to log a tag only when another tag is true in Historian.
Configure Dream Report last, after Historian retrieval returns the expected weight and trigger records for a known test interval. Report formatting cannot repair a missed acquisition or a weight that belongs to the wrong event.
Commissioning a 32-bit REAL weight on the M340 CPU port #
Inputs, each from this installation's commissioning record:
- Historian 2020 R2, MBTCP driver installed, PLC address entered, server started.
- Rack: BMXP342020 CPU with a BMX NOC 401; drives and existing MBTCP dialogs on the NOC, acquisition on the CPU port.
- Endpoint: the CPU port address read from the controller configuration, Modbus TCP service port 502.
- Weight: one analog variable stored as a 32-bit single-precision REAL per IEEE 754, with its mapped address, scaling and unit taken from the PLC project.
- Trigger: one Boolean variable, its address and type recorded separately.
Rule in words: the device object holds the CPU port address; an item reference spans the variable's full data type; and the path is accepted only on valid-quality live reads before any Historian mapping.
The arithmetic:
- Weight length: 32 bits per single-precision REAL ÷ 16 bits per Modbus word = 2 words. The item must request 2 consecutive words; a 1-word request fetches one of the two words and cannot reproduce the weight.
- Trigger length: 1 bit carried in 1 word, so there is no length decision to get wrong.
- Acceptance reads: 1 weight read + 2 trigger states (inactive and active) = 3 live reads, each of which must return valid quality.
Result: the weight item reference is set to 2 words at the mapped address, the trigger to 1 word, and the acceptance test is 3 live reads from the CPU port address.
Decision: 3 valid reads out of 3 accept the path — map the Historian topic next. An implausible weight on a device that otherwise responds points at the 2-word length before anything else.
Questions asked
Will the variable show up in the device groups view once acquisition is running?
No. That view lists the device groups you configure; live items are watched through the driver's diagnostics or a direct read while the group is scanned. An acquisition storing good data and a device groups view showing no tags are both normal at the same time, so do not treat the empty view as a fault.
Does the M340 need anything configured for the CPU port to answer MBTCP?
Yes. Confirm in the controller configuration that the CPU's embedded port runs the Modbus TCP service, because a port without that service still answers ping while refusing Modbus transactions. The NOC 401 keeps serving the drives and needs no change for this path.
Why call it a historian server if the M340 is not a client?
Because server describes the database role, not the acquisition role. Historian stores values and serves them to reporting clients: Dream Report queries Historian and never contacts the PLC. On acquisition the MBTCP driver is the Modbus client that polls, and the M340 only answers requests on its CPU port.
How long must the weighing trigger stay on to be seen?
At least one full scan of the device group that acquires it. A pulse shorter than the group's update behavior can set and clear between two polls and leave no trace. Latching the event in the PLC and clearing it by handshake after collection removes the timing dependence entirely.
Do I need the public group folder for acquisition to work?
No. Public groups organize historian tags that are already configured, so browsing clients can find them; they take no part in reading the PLC. Acquisition depends on the topic's source, the device group it maps to, and the item reference. Keep the folder for whoever builds the Dream Report queries.