IMDTouchKnowledge BaseShop main store

How-to

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

HMI and touchscreens Published 7 min read

Short answer

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.

On this page
  1. Why the I/O field cannot reach the block
  2. Map the timer setpoint in LOGO!Soft Comfort
  3. Point the KP400 I/O field at the mapped word
  4. Worked example: trim a pump delay from the panel
  5. Counter B004: same route, one condition
  6. Prove the write path before operators use it
  7. Questions asked

A KP400 Basic cannot set LOGO! timer B002 by pointing an I/O field at the block. A LOGO! 0BA8 answers its panel only through an S7 connection, and that connection exposes the controller's VM memory area by address — not the parameters inside function blocks. The documented route is LOGO! Parameter VM Mapping: it ties the timer's writable setpoint to a VM word, and the panel writes that word. This guide covers the mapping in LOGO!Soft Comfort V8.0, the I/O field in WinCC Basic under TIA Portal V13 SP1, a worked example with the byte arithmetic shown, and the bench test that proves the write reaches the block. Counter B004 takes the same route only if the mapping lists its setpoint as writable.

Why the I/O field cannot reach the block #

The panel's view of a 0BA8 is the VM memory: word addresses it can read and write over the connection, and the documented connection type for that access is S7 — the controller answers nothing else. B002 and B004 are block names inside the LOGO! program, not addresses in that view, so an I/O field aimed at a block number has nothing to write to and the value goes nowhere.

Parameter VM Mapping is the documented bridge. In the LOGO! project you pair a block's writable parameter with a VM word — the documented ceiling is 64 mapped parameters per LOGO! — and from then on the word carries the parameter both ways: the running block uses it and the panel writes it. The table below is the whole decision.

Where the panel points Does the block move? Why
Block number B002 No the S7 connection exposes VM memory, not block internals
The mapped VM word Yes Parameter VM Mapping ties the word to the writable setpoint
Block number B004 No same reason as the timer
B004's mapped word Only if the mapping lists its setpoint writable the dialog must offer the counter parameter as writable

Map the timer setpoint in LOGO!Soft Comfort #

  1. Open the LOGO! program that holds B002 in LOGO!Soft Comfort V8.0 and open Parameter VM Mapping, the project-level dialog that pairs block parameters with VM words.
  2. Find B002's writable setpoint — the same time value you would edit on the block — and assign it a word from those the dialog offers. The example throughout this article uses VW4; whatever your project assigns, record it, because the panel side must match it exactly.
  3. Leave the timer's word alone otherwise. VM words step in twos: VW0 covers bytes V0 and V1, VW2 covers V2 and V3, VW4 covers V4 and V5. The next mapped parameter starts on the next even word, VW6 in this layout; two parameters sharing bytes corrupt each other on the first write.
  4. Transfer the program to the LOGO!. The mapping travels with the program, so it goes down once at commissioning; after that the panel writes the live word with no transfer and no stop.

Expect a program transfer to interrupt the running LOGO!, which is why the mapping belongs at commissioning. Data downloads are the kind that can reach a running 0BA8 without a stop, which is what downloading LOGO! 8 OBA8 data without stopping the program live separates.

Point the KP400 I/O field at the mapped word #

The setup this procedure was confirmed on runs TIA Portal V13 SP1 with STEP 7 Basic and WinCC Basic: WinCC Basic holds the KP400 screens and STEP 7 Basic carries the project side — what STEP 7 is in a PLC project and which one you need draws that line if the split is new. The panel is a KP400 Basic color PN, order number 6AV6647-0AJ11-3AX0; pick the exact entry in the device catalog, because KP400 and KTP400 Basic are separate panels.

  1. Confirm the HMI connection to the LOGO! is the S7 connection the controller requires. If the panel already exchanges any value with the LOGO!, this is a check, not new work.
  2. Create the HMI tag for the mapped word: address it to the LOGO!'s VM area at the word you recorded — VW4 in the example — and give it the type and value range the mapping dialog shows for that parameter. The method fixes no universal unit; the dialog entry for your parameter does.
  3. Place an I/O field on the screen, point its process value at that tag or directly at the word address, and set the field to accept input so an operator can type a value rather than watch one.
  4. Download to the panel, then run the verification below on the real panel. If the download stalls on a version complaint, the usual suspect is the panel image, and matching an HMI panel image to its TIA Portal project version is the checklist for lining the versions up.

Worked example: trim a pump delay from the panel #

Say B002 is the on-delay timer that holds a pump off after a level switch drops out, with its setpoint programmed as a delay in seconds — 5 s as commissioned. The mapping ties that setpoint to VW4, so bytes V4 and V5 now carry the pump delay.

The line lead types 8 into the I/O field. The KP400 writes the value 8 into bytes V4 and V5 over the connection, the mapping hands those bytes to B002 as its setpoint, and the next level-switch event holds the pump for 8 s instead of 5 s. Nothing was transferred and the LOGO! never stopped.

The same numbers show the overlap trap. Suppose the counter threshold gets mapped next at VW6, bytes V6 and V7. If the timer's HMI tag were declared as a 32-bit value instead of a 16-bit one, its write would span bytes V4 through V7: half a timer value in one word and a trampled counter word in the other, on every entry. A 16-bit tag at the mapped word writes exactly two bytes and touches nothing else — the check to run before the screen goes live.

Counter B004: same route, one condition #

The timer route is the confirmed one; the counter is conditional, and the mapping dialog settles it in minutes. Open Parameter VM Mapping and look for B004's setpoint among the writable entries. If it is listed, map it to its own even word — VW6 in the example layout — and repeat the tag and I/O field steps for it. If it is not listed writable, the panel cannot set that counter through this route: keep the threshold fixed in the program or adjust it on the LOGO!'s own parameter menus where the project allows it. There is no third path through the block number.

Prove the write path before operators use it #

  • Run the proof on the panel against the LOGO!, not only in simulation; what a simulation covers against a live controller is its own subject, set out in testing HMI simulation against a live PLC.
  • Split the test in two. Enter a value at the I/O field and read it back from the field itself: that proves the word took the write. Then watch B002's setpoint online in LOGO!Soft Comfort or on the LOGO!'s display menus and confirm it follows. A pass is both events; a word that takes the write while the block ignores it is an addressing or mapping fault, not a connection fault.
  • Panel value lands but the block stays put: compare the word address on both sides byte for byte, and check the mapped item is the writable setpoint rather than a read-only copy.
  • Block follows by the wrong amount: the tag's type or scaling disagrees with the word's representation. Match the mapping dialog and retest with a recognizable pair, for example 8 entered against a programmed 5.
  • One limit belongs in the project, not the procedure: a timing that a safe sequence depends on — a guard delay, a startup interlock — stays fixed in the LOGO! program and out of the panel's reach, because an input-enabled I/O field hands the value to anyone at the screen.

Questions asked

Does this only work from a KP400, or from other panels too?

The mechanism belongs to the LOGO!, not the panel. Once a parameter is mapped to a VM word, the word is the target, and a device holding the S7 connection to the 0BA8 can write it. The KP400 steps in this article are just the WinCC Basic side of that: the screen, the tag and the I/O field. Another engineering tool would aim its own field or tag at the same word address.

Does the panel write reach the timer while the LOGO! program is running?

Yes. The connection stays up while the program runs, the mapped block reads its setpoint from the word, and an entry at the panel takes effect on the spot — no stop, no transfer. A transfer is needed only when the mapping itself changes, which is commissioning work done once. If a write seems to need a restart before it appears, that is a fault to chase, not the design.

What happens to the panel-set value after a LOGO! power cycle?

The documented method does not say, so test it on the bench before handing the screen over: enter a value, switch the LOGO! off and on, and read the block again. If the programmed default comes back, the setpoint is not retained in your project and the operator must re-enter it after every restart — worth knowing before it becomes a shift-floor surprise. Retentivity settings in the LOGO! project are where that behavior is set.

What units does the operator type into the I/O field?

Whatever the mapping dialog says the word carries for that parameter — the timer's timebase lives in the LOGO! program, and the panel entry follows it. Prove the scaling with a recognizable test value before operators use the screen: enter one value, read the block's setpoint, and check the two agree in both size and unit. Only then is the screen fit to hand over.

Keep reading

  • Troubleshooting

    Fixing Weintek HMI to Mitsubishi FX PLC Communication

    A Weintek panel that shows communication errors against an FX0N, FX1N, FX2N or FX3 CPU is nearly always wired with the wrong cable pinout for the port pair. Match the HMI COM port and PLC port to the Weintek PLC Connection Guide, set GX Developer parameters only for adapter boards, and keep the 1 m cable.

    HMI and touchscreens

  • How-to

    How to configure a DF1 PLC connection in Vijeo Designer Basic

    Copy the PLC's DF1 mode, half-duplex station number, full serial framing and addressing base into the Vijeo Designer Basic driver, then prove the link by displaying one known PLC integer before building screens. A matched link transacts in tens of milliseconds, so slow or absent updates point at configuration, not line speed.

    HMI and touchscreens

  • Troubleshooting

    WinCC Runtime Advanced shows hash marks and a recipe license warning

    The recipe message and the hash-mark values are two independent faults. A correctly matched WinCC Recipes + Logging for Runtime Advanced key transferred to the IPC clears the license warning; the hash marks remain until the output field width and format fit the tag value or the acquisition fault is repaired. Fix them in that order.

    HMI and touchscreens