IMDTouchKnowledge BaseShop main store

How-to

Why a LOGO off-delay timer countdown needs VM mapping on an HMI

HMI and touchscreens Published 4 min read By IMDTouch engineering team

Short answer

An external HMI has no access to LOGO function-block parameters, so the off-delay countdown must be published to VM memory with Tools > Parameter VM Mapping in LOGO!Soft Comfort. Map the timer parameter to a free VM word, point an HMI tag at that address, and treat dosing start and end times as separate mapped values.

On this page
  1. Why the timer value is not on the wire
  2. Map the off-delay parameter to VM memory
  3. Point the HMI tag at the mapped word
  4. Dosing start and end times are separate values
  5. Questions asked

An external HMI cannot read LOGO function-block parameters directly: only the LOGO's own text display can. To show an off-delay countdown on a panel, publish the timer parameter to LOGO VM memory with Tools > Parameter VM Mapping in LOGO!Soft Comfort, then point one HMI tag at the same VM word. Your existing switch control working in both directions proves the link is fine; it proves nothing about parameter access, which is why the countdown is invisible until you map it.

Why the timer value is not on the wire #

The off-delay block keeps its time parameter inside the LOGO. An external device talks to the LOGO through VM memory, so a parameter that is not published there has no address at all — the HMI is not misconfigured, the value simply does not exist where the protocol can reach it. Parameter VM Mapping, available on 0BA7 and later, synchronizes the mapped parameter to its VM location every LOGO cycle, and you can map up to 64 parameters per LOGO. For a deeper write of the same mechanism on a timer preset, the article on setting a LOGO! 0BA8 timer from a KP400 HMI via VM mapping (article:setting-a-logo-0ba8-timer-from-a-kp400-hmi-via-vm-mapping) covers the reverse direction — writing a value in from the panel; here you read the running countdown out.

Map the off-delay parameter to VM memory #

  1. Open the circuit program in LOGO!Soft Comfort.
  2. Choose Tools > Parameter VM Mapping and click Add.
  3. Select the off-delay function block and its time parameter in the parameter filter.
  4. Assign it to an unused VM word — VW0 is the working example here; if your program already uses it, take the next free word and stay consistent.
  5. Transfer the program and mapping to the LOGO.

On the connection side, open the Ethernet connections in the LOGO program and enable the option that allows S7 access; without it the panel link comes up but reads nothing. The panel then connects over Ethernet to the LOGO's address, reading the VM word — the Weintek guide for Siemens LOGO Ethernet connections shows the same connection setup for panels that speak S7 to the LOGO.

Point the HMI tag at the mapped word #

Create an HMI tag of the integer type whose address is the VM word you assigned, for example device offset 0 for VW0, and bind it to a numeric display object. Verify by running the off-delay: energize the input, then watch the display count down. If it shows a static number, the address or the S7-access setting is wrong; if it shows a shifting but nonsensical value, the data width is mismatched.

Check Expected result If it fails
LOGO logic The off-delay output resets after the set time Fix the function block before touching communications
Mapping table The time parameter is assigned to one free VM word Re-select the block and an unused address
S7 access Enabled on the LOGO Ethernet connection The panel reads nothing at any address
HMI tag The display counts down when the timer runs Compare the tag address with the mapped word, then the data width

Dosing start and end times are separate values #

The off-delay block publishes only its time parameter, so "dosing started at 12:00:00, ending in 12:02" cannot come from one mapped word. Capture the start timestamp with clock-driven logic in the LOGO program and map the result to its own VM word, or compute the end time on the HMI from the countdown. A countdown display on the panel side works the same way when the timer lives in the controller rather than the LOGO — the article on displaying a time-until-closed countdown on an HMI (article:how-to-display-a-time-until-closed-countdown-on-an-hmi) shows the preset-minus-accumulated pattern to reuse.

Read the two questions separately, as always: whether the LOGO publishes the value, and whether the HMI reads the right address. If the panel itself is aging or the screen is the part you are replacing, an industrial touchscreen monitor keeps the existing controller and just swaps the display and touch surface.

The decision: map the off-delay time parameter to a free VM word, enable S7 access, point one integer HMI tag at that word, and verify a live countdown before building the start and end timestamps as additional mapped values.

Questions asked

Why can the LOGO text display show the countdown but my HMI cannot?

The LOGO onboard text display reads function-block parameters directly inside the module. An external HMI communicates through the protocol only and can address VM memory, not block parameters. Until the timer parameter is published to a VM word with Parameter VM Mapping, the countdown simply does not exist at any address the HMI can read, even though switches and other values work both ways.

Can I map the off-delay timer to VW0?

VW0 is the example address and is fine to use only if nothing else in your program claims it. Check the mapping table for existing entries first; a collision makes both values garbage. If VW0 is taken, pick any free VM word and enter that exact same address in the HMI tag. The address must match on both sides character for character.

How do I show the dosing start and end times as well?

The off-delay block only publishes the time parameter, so start and end times need separate values. Capture the clock with an up-counter or clock-driven logic in the LOGO program, map those results to their own VM words, and display them as HMI tags. The end time can also be calculated on the HMI side from the countdown.

How many parameters can I publish to VM memory?

LOGO!Soft Comfort allows up to 64 parameters mapped to VM per LOGO, synchronized every LOGO cycle. One off-delay countdown uses one word, so a typical dosing screen fits easily. Plan the addresses once for all values you intend to expose, rather than grabbing words one project at a time.

Does the HMI link need a special setting on the LOGO side?

Yes. In the LOGO program's Ethernet connections, enable the option that allows S7 access so an external panel may read VM data over the link. Without it the panel connects but reads nothing, which looks exactly like a wrong-address fault. Check that setting before you suspect the mapping table.

Keep reading

  • How-to

    Setting a LOGO! 0BA8 timer from a KP400 HMI via VM mapping

    Map the B002 timer's writable setpoint to a VM word with LOGO! Parameter VM Mapping in LOGO!Soft Comfort, then point the KP400's WinCC Basic I/O field at that word — a LOGO! 0BA8 exposes only its VM memory over the S7 connection, so a block number is unreachable from the panel; the worked example lands the setpoint in VW4; counter B004 follows the same route only if the mapping lists its threshold as writable.

    HMI and touchscreens

  • Troubleshooting

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

    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.

    HMI and touchscreens

  • Troubleshooting

    Why HMI Indicators Stay Off Over Modbus RTU Polling

    Indicators on internal tags animate from HMI memory with no serial traffic; an indicator bound to a PLC tag needs a completed Modbus RTU read of the right address in the right data area. Confirm the PLC bit changes, then read the request and response, then fix the address at one known point.

    HMI and touchscreens

Setting a Company Logo Screensaver on a PanelView Plus