IMDTouchKnowledge BaseShop main store

Troubleshooting

Why an HMI Button Should Write a LOGO VM Bit Not I1

HMI and touchscreens Published 7 min read

Short answer

Pressing the Weintek button never raises Q1 because it writes LOGO! input I1, and a physical input is set only by the signal at its terminal. Point the button at a bit in the LOGO! variable memory, read that bit through a network input, and let the program drive Q1 from it. The driver's fixed address map, the link checks in order and one worked retarget to a free VM address follow.

On this page
  1. Why a write to I1 never reaches the logic
  2. The fixed map you allocate around
  3. Prove the Ethernet link carries data
  4. Prove the write lands in VM
  5. Read the bit as a network input and drive Q1
  6. Worked example: retargeting the 8102iE button from I1 to a VM bit at 1003
  7. Apply the change with the machine safe
  8. Questions asked

Your button is aimed at the wrong memory. I1 on a LOGO! is the physical input image, and only the signal at its terminal sets it, so the write from your Weintek 8102iE lands on a location the program cannot use as a command, and Q1 stays off. The working path is short: the button writes a bit in the LOGO! variable memory (VM), a network input in the LOGO! program reads that bit, and the logic drives Q1 from it. This article shows why the I1 write dies, the fixed address map to allocate around, the link checks in order, and one worked retarget of your button from I1 to a free VM address.

Why a write to I1 never reaches the logic #

The terminal owns I1: the input image is refreshed from the hardware on every update, so a communication write to that location is overwritten and the program still reads the terminal signal. Writing the output's own address is no better — the program re-evaluates Q1 every cycle and overwrites an external write, so a command has to enter through the logic. The same limit for a toggle object is covered in why an HMI toggle switch cannot write a physical PLC input.

Two terms carry the fix:

  • VM (variable memory) is the LOGO! memory area for sharing values with HMIs and other devices.
  • A network input is the LOGO! program element that brings a VM address into the logic as a binary signal.

The command path you build is:

  • the button's write address names a VM bit;
  • a network input reads that same VM address;
  • the logic combines the network input with its permissives and commands Q1.

The fixed map you allocate around #

The panel driver's address table for the LOGO! 7 series fixes these locations. Take the table for your controller series before allocating.

Location Address Set by
Physical input I1 923 (bit) the terminal signal only
Analog input AI1 926 (word) the controller; the panel reads it
Output Q1 942 (bit) the program
Marker M1 948 (bit) the program
Time and date VM 991 to 1002 reserved for the clock exchange with HMI devices

One conversion rule for allocation: in the LOGO! Modbus address space, VW 0 maps to HR 1, so a holding-register number is the VM word number plus one. Convert before comparing addresses that come from two different tools.

Check the transport before the logic, in this order:

  • Identify the exact LOGO! series and the panel driver for it, and confirm that driver supports the series over Ethernet.
  • Compare the controller's IP address with the target address configured in the panel: same network, no duplicate address.
  • Open the panel's communication status and confirm there is no active connection error.
  • Show a value on the panel that you can change at the controller, for example a counter you increment by hand, and confirm the display tracks it.

A lit link indicator proves the cable, not the data connection. A good read proves data access; the write still needs its own proof.

Prove the write lands in VM #

Watch the destination, not the button.

  • Open the controller's online view at the command address and press the button; the bit must change there, because the button's graphic shows the HMI object's state, not the controller's memory.
  • Match the action to the machine: a momentary command holds the bit only while pressed; a maintained command writes on press and needs a separate reset. For a press that must raise Q1 and keep it high, commit to a maintained write.
  • If the bit snaps back at once, a second writer — another object or a program block — shares the address; move the command rather than fight it.

The same destination discipline applies when a Weintek panel writes controller outputs over Modbus; writing WAGO 750 PLC digital outputs from a Weintek HMI shows it end to end.

Read the bit as a network input and drive Q1 #

The write works; now make the program consume it.

  • Configure a network input on the same VM address the button writes, and watch both online: the input's state must follow the bit.
  • Trace from that input to Q1: every permissive true, every blocking condition inactive, and the final assignment actually commanding Q1. If the command dies between input and output, the blocker is in the logic — identify it, and never delete it just to see the output move.

Setting a LOGO! timer from an HMI over the same VM route is walked in setting a LOGO! 0BA8 timer from a KP400 HMI via VM mapping. The general trace from button to output is in tracing an HMI command that never reaches the PLC output. I1 keeps its real job: the field signal still feeds the logic wherever the design uses it, and the HMI request gets its own memory-based input.

Worked example: retargeting the 8102iE button from I1 to a VM bit at 1003 #

Inputs #

  • Current destination: the button writes I1, driver entry 923 (bit) — your setup today.
  • Required action: Q1 high after a press; Q1 is driver entry 942 (bit).
  • Fixed entries to stay clear of: the driver's entries for AI1 (926, word) and M1 (948, bit), plus I1 and Q1 above.
  • Reserved block: VM 991 to 1002 carries time and date for HMI devices.
  • Translation rule: VW 0 is HR 1 in the Modbus address space, so holding register = VM word + 1.
  • Link: Ethernet between panel and controller.

Rule #

Use one command bit that sits outside every fixed assignment and the reserved clock block, that no other object or program block writes, and that both ends name identically after any holding-register conversion.

Arithmetic #

  1. Today's write: 923 is the I1 image, refreshed from the terminal on every update, so the write is overwritten and nothing reaches the logic.
  2. Size of the reserved block: 1002 − 991 + 1 = 12 VM addresses.
  3. First address above it: 1002 + 1 = 1003. It lies outside the clock block and matches none of the fixed entries. Open the LOGO! project and confirm no block stores a value there — counters keep their values in VM double words at a base address, so look for a base at or crossing that location.
  4. Same-location proof across numbering: if a tool on one side addresses holding registers, the same location shows as 1003 + 1 = 1004, and 1004 − 1 = 1003 confirms both views are one place.
  5. Allocation: the button writes the bit at 1003 as a maintained command; the network input reads the bit at 1003; the logic ANDs that input with the existing permissives to Q1.

Result #

Press the button: the command bit goes to 1, the network input follows, and Q1 (driver entry 942) goes to 1 and stays until the reset write.

Decision #

For this machine the command is a maintained write to the bit at VM 1003, read by a network input on the same address. If the bit toggles but the network input stays 0, the two addresses differ — redo the conversion before touching the logic. If the network input follows but Q1 stays 0, the restriction is downstream: trace the permissives and the output assignment, and change the blocking logic only if the design itself changes.

Apply the change with the machine safe #

An HMI command is an operating request, not a safety function: run the first test with motion and connected loads controlled under your site's commissioning procedure, and never bridge a guard or a safety loop to make a test pass.

  • Record the allocation in the project documentation: address, purpose, writer.
  • Configure the button as a maintained write, and point its feedback at a read of the same bit so the lamp shows what the controller holds.
  • Configure the network input on the same address and connect it through the existing permissives to Q1.
  • Transfer both projects, test press and reset, and confirm I1 still does its field job unchanged.

Questions asked

Can the panel write a LOGO! marker instead of a VM bit?

A marker is a program flag the logic can read directly, and the driver table lists M1 at 948, so a marker write can carry a command where the driver supports writes to it. Keep HMI commands on the VM route anyway: every panel write then sits in one documented area, and the fixed marker range stays free for program logic.

What does the engineering PC prove during the test?

Only that the controller is reachable and that you can watch its memory online. The panel's driver, cable and configured addresses form a separate path, so a connecting PC proves nothing about the HMI link. Use the PC to monitor the command bit while you press the button on the panel itself.

How many commands can share one VM word?

A VM word holds 16 bits, so up to 16 commands can live in it, provided each command owns one bit and the documentation names every bit and its writer. Sharing a word is normal practice; sharing a bit is the fault that makes a command snap back or latch unexpectedly.

Do these addresses apply to every LOGO! series?

No. The numbers quoted here are the LOGO! 7 entries of the panel driver's table. The rule holds on any series — a physical input is set only by its terminal, and HMI commands travel through VM — but the addresses change, so allocate from the table for your controller series.

Keep reading

  • Troubleshooting

    Why WinCC Start and Stop buttons do not control an S7-300 output

    The Start and Stop buttons do nothing because E0.0 and E0.1 are S7-300 input image addresses: the CPU refreshes them from the input modules every scan, so an HMI write cannot survive. Step 7 simulation changes the simulated input state itself, which is why the LED follows it. Move the two commands to memory bits such as M0.0 and M0.1, latch them in the PLC, and let the program drive A4.0.

    HMI and touchscreens

  • How-to

    How to Make One HMI Button Read and Write Two PLC Bits

    Enable the button's write/read offset address and point it at the HMI internal word 0. With the word at 0 the button reads and writes X0; with the word at 1 the same button reads and writes X1. The offset is resolved inside the HMI before any request reaches the PLC.

    HMI and touchscreens

  • How-to

    Reading Modbus discrete input 10001 in a Vijeo HMI

    Yes, you can read it: 10001 is the first Modbus discrete input, and %M10001 points at internal coil 10001 instead. Uncheck IEC61131 Syntax on the Modbus/TCP driver and enter 100001 in the 1x family, which equals %I1; copy the input to a %M bit only if the driver cannot reach the input table.

    HMI and touchscreens