IMDTouchKnowledge BaseShop main store

Troubleshooting

Why a Weintek HMI shows no device for M221 markers

HMI and touchscreens Published 5 min read By IMDTouch engineering team

Short answer

When a Weintek HMI reads M221 outputs over Modbus TCP but marker objects report no device, the marker's request is going unanswered: first set the M221's Modbus ID in the PLC and match the HMI station ID to it (255 is the M221 default), then enter the marker as the driver's bit address for %M6, never as a word register or the PLC spelling m%6.

On this page
  1. What a live output read proves and what it does not
  2. Match the M221 Modbus ID to the HMI station ID
  3. Worked example: M221 at 192.168.1.50, marker %M6 dead, outputs live
  4. Enter the marker as a bit, not a word
  5. Reading the symptom pattern
  6. The decision for each case
  7. Questions asked

When a Weintek HMI reads M221 outputs over Modbus TCP but a marker lamp or switch reports no device, the marker's own request is going unanswered while the link itself stays alive. In the case behind this article the M221's Modbus ID had been left unset in the PLC; setting it, and matching the HMI station ID to it, restored marker access. Check that identity pair first, then confirm the marker sits on the driver's bit address for %M6, not on a word register or the PLC spelling m%6.

What a live output read proves and what it does not #

A working output lamp proves exactly one request path: the driver protocol, the destination IP and one read of the output area. It proves nothing about the marker object, which builds its own request from its device entry, station ID and address area. Keep the two apart:

  • Open the failing marker lamp and record its device, station ID and address exactly as entered.
  • Compare it with the working output object. If the marker points at a second device definition, that definition has its own connection settings to check.
  • If both objects share one device entry, the difference is the address area or the read and write operation, not the link.
  • Test a read-only marker lamp before any switch. A dead lamp points at identity or address mapping; a live lamp with a failed switch points at the write path.

Match the M221 Modbus ID to the HMI station ID #

A Modbus TCP exchange is addressed twice: the Ethernet frame carries the controller's IP address, and the Modbus request inside it carries a unit ID. The HMI can reach the right device and still be refused when the unit ID does not match what the M221's Modbus server accepts. Schneider Electric's configuration FAQ for the M221 sets the requesting device's unit ID to 255, the controller's default.

  • PLC side: open the M221's .SMBP project in EcoStruxure Machine Expert-Basic and read the Modbus Ethernet server configuration. The fault in this case was precisely that detail left unset.
  • HMI side: use the Schneider MODBUS TCP/IP driver, which Weintek's connect guide lists for the M221, and set the station ID equal to the PLC value: 255 unless you changed it.
  • Transfer both configurations by the normal commissioning procedure and reconnect before judging the result.

There is no installation-specific number to copy: read the value from the PLC and mirror it in the driver.

Worked example: M221 at 192.168.1.50, marker %M6 dead, outputs live #

Inputs, each with its source:

  • PLC: Schneider M221, .SMBP project, Modbus Ethernet server with no Modbus ID set, the fault in the original case; the default applies once it is set (Schneider FAQ).
  • HMI: Weintek panel on the Schneider MODBUS TCP/IP driver (Weintek connect guide), station ID left at, for example, 1, which is an illustrative value.
  • Destination IP: 192.168.1.50 on both sides, an example value; the original case gives no address.
  • Working object: output lamp over the output bits. Failing object: marker lamp and switch at %M6, entered as m%6.

Rule: a request is answered only when protocol, destination IP and unit or station ID all agree, and the live output read already covers the first two, so the comparison is the ID pair.

Arithmetic: before the fix, an unset PLC Modbus ID against HMI station 1 leaves nothing to match, so the server refuses the request and the HMI reports no device. Set the PLC Modbus ID to 255 and the HMI station ID to 255: 255 = 255, so the pair matches. Then the address: %M6 on the driver's bit range, never a word register.

Result: after both transfers and a reconnect, the output lamp still reads and the marker lamp follows %M6 toggled in the PLC online monitor. Confirm on the live controller, not only in offline simulation; Testing HMI Simulation Against a Live PLC covers that difference.

Decision: the pass condition is a station ID equal to the PLC's Modbus ID. Pair equal and the marker still dead: the fault moves to the address area, next section.

Enter the marker as a bit, not a word #

M221 markers are %M bits; m%6 is the PLC's spelling, not an HMI address. A lamp or toggle switch must sit on the bit area. A word register, or an offset pasted from another address area, returns either an invalid request or a value from the wrong data, and the screen shows no device or a number that ignores the marker.

  • In the driver's address selection, pick the bit-type range the Schneider MODBUS TCP/IP mapping assigns to %M markers; the driver's address help holds that table.
  • Toggle %M6 in the PLC online monitor. Bit changes and the lamp does not: the HMI address area is wrong.
  • Lamp follows but the switch fails: the mapping is right and the write path is next.

Reading the symptom pattern #

Observed Check next What it means
Output lamp live; marker lamp reports no device Modbus ID pair, then the marker's address area the marker's request is refused or misaddressed
Marker lamp live; switch errors write to the bit area and PLC ownership the read path works; isolate the write
Marker changes, then snaps back PLC cross-reference on that marker the program overwrites it each scan
PLC bit changes; HMI shows another state address area and numbering the display points at a different bit

no device is a diagnostic message, not proof of a broken cable; a refused or misaddressed request produces it on a healthy link.

The decision for each case #

  1. Outputs read, markers report no device: set the M221's Modbus ID and mirror it in the HMI station ID, both at 255 by default; transfer both projects and retest. That correction fixed the case behind this article.
  2. ID pair equal and the lamp still dead: re-enter the marker as the driver's bit address for %M6.
  3. Lamp reads, switch fails or the bit snaps back: check the driver's write settings and every PLC instruction that assigns that marker; choose a command marker with defined ownership.
  4. Every object reports no device, outputs included: the link is down or refused at connection level. On a serial link the causes differ; the wiring and no-response checklist for RS-485 is in Fixing HMI Modbus Device No Response Over RS-485.

Exercise the switch only on a marker that cannot start a pump, and require the PLC read-back to agree before trusting the command.

Questions asked

What unit ID does the Weintek driver need for an M221 over Modbus TCP?

The value configured in the M221's Modbus server settings; 255 is the controller's default. Schneider's M221 configuration FAQ sets the requesting device's unit ID to that value. If you change the PLC value later, edit the HMI station ID to the same number and transfer both projects, because a matched pair matters more than any particular value.

Why does only one screen object report no device while the rest work?

Each object builds its own request from its device entry, station ID and address area, so one live output proves only that object's path. A marker can point at a second device definition, a different station number, or a word register instead of the %M bit area, and it fails while the outputs keep updating.

The marker lamp works now but the switch does nothing. Is communication still broken?

Probably not. A live lamp shows reads are answered, so the fault is the write. Watch the marker in the PLC online monitor while you press the switch: no change points at the driver's write settings or access rights, and a change that snaps back points at PLC logic overwriting the marker each scan. Use a command marker whose ownership the program defines clearly.

Keep reading

  • Troubleshooting

    Writing WAGO 750 PLC Digital Outputs From a Weintek HMI

    Your read at 0x 513 is already the right address: in the panel's 0x notation it is decimal bit 512, %QX0.0, inside the WAGO physical output area 512–767 (0x0200–0x02FF). The write fails because the CODESYS program assigns %QX0.0 every scan and overwrites it, so command an internal memory bit and let the logic drive the output.

    HMI and touchscreens

  • Explainer

    Why a Twido needs no Comm macro or EXCHANGE for an HMI button

    The Magelis panel is the Modbus master, so Vijeo Designer polls and writes the Twido's %M and %MW memory directly and the PLC serial port answers by itself. The Twido needs no Comm macro or EXCHANGE for this link — only a Modbus port with matching address and frame settings, plus one rung (normally open %M1 contact driving %Q0.0). Comm macros and EXCHANGE belong only when the Twido itself must act as master.

    HMI and touchscreens

  • Explainer

    Why WinCC to an S7-1500R/H needs no S7-REDCONNECT

    WinCC connects to an S7-1500R/H redundant system through its system-wide system IP address, which the current Primary CPU always serves, so S7-REDCONNECT does not apply. If a communication-path failure on the X2 or X3 interface must not interrupt the HMI, use WinCC V7.5 script-based switching between the two CPU device IP addresses instead.

    HMI and touchscreens

Why an HMI OS update error points at the wrong device