IMDTouchKnowledge BaseShop main store

How-to

Recipe transfer from WinCC flexible 2008 RT to a CPU226

HMI and touchscreens Published 7 min read By IMDTouch engineering team

Short answer

Yes. WinCC flexible 2008 Runtime transfers recipe data records to an S7-200 CPU226 directly over the configured PLC connection, through the SIMATIC S7 200 driver and tags with absolute addresses. The CPU memory card is not part of that transfer; it only affects whether values are retained through a restart.

On this page
  1. Can WinCC flexible 2008 RT write recipe data to a CPU226 without a memory card?
  2. How do you configure the S7-200 connection in WinCC flexible?
  3. How do you map recipe elements to PLC memory addresses?
  4. What steps transfer a selected data record to the CPU226?
  5. How do you verify the record actually landed in the CPU?
  6. Does the CPU226 memory card matter for recipes at all?
  7. Why do transferred values arrive but the machine keep the old settings?
  8. Questions asked

Yes — a recipe stored in WinCC flexible 2008 Runtime transfers straight to a CPU226 over the configured PLC connection, and the CPU memory card is not part of that path at all. Runtime writes through the SIMATIC S7 200 communication driver into tags that carry absolute addresses, so the record lands directly in the controller's V memory. The card only decides whether those values survive a restart, which is a separate question from getting them there. This article gives the connection setup, the tag mapping, the transfer steps, the readback checks and the one case where the card still matters.

Can WinCC flexible 2008 RT write recipe data to a CPU226 without a memory card? #

Yes. Runtime writes a selected data record straight to the CPU226's memory over the configured PLC connection, using the S7-200 communication driver and tags with absolute addresses; the memory card plays no part in that transfer, which is why its absence changes nothing.

A recipe is a named collection of related process values, and a data record is one set of values for that recipe. On a PC runtime, the records live in the project's recipe storage on the runtime PC. A transfer to the PLC copies a selected record into controller memory over the live connection. Selecting or displaying a record changes nothing in the CPU — only the transfer operation writes. Exporting records to a CSV file is a third operation that produces a file and never touches the controller.

How do you configure the S7-200 connection in WinCC flexible? #

Under Communication > Connections in the project window, create a new connection in the right pane and select the communication driver SIMATIC S7 200; the driver ships with WinCC flexible and installs automatically, and its interface settings must match the physical path to the CPU.

The CPU designation alone does not identify that path. The CPU226's integrated port is serial; an Ethernet link to Runtime runs through a CP 243-1 communications processor on the S7-200 side, and WinCC flexible documents that Ethernet path with the same driver. Before touching recipes, prove ordinary tag communication: configure one tag on a known address, display it in Runtime, and compare it with the value you see monitoring the PLC online. If even that tag stays static, the fault is the connection, not the recipe — the same failure pattern described in why your HMI cannot read PLC tags without a communication shortcut. Keep the transfer method and the driver straight as well; they are configured separately, as separating HMI transfer method from PLC driver selection explains.

How do you map recipe elements to PLC memory addresses? #

Every recipe element needs a tag with an absolute address — the memory area, byte offset and data type such as VW100 for a 16-bit integer — because the S7-200 driver addresses CPU memory locations directly and never looks up a symbolic name from the PLC program.

Match the width and interpretation, not just the address. A word at VW100 occupies bytes VB100 and VB101; a double word at VD102 occupies four bytes. An integer, a floating-point REAL and a string each carry their own byte length, and a mismatch shows up as plausible-looking garbage in the CPU — the string case, where the HMI reaches only raw V-memory bytes, is covered in why an HMI shows only V-memory for PLC string tags. Check units and scaling too: a tag can display scaled engineering values while the transfer writes the raw value, so agree on which form lives in the CPU. And a readable address is not automatically a free destination — the PLC program must allocate that memory for the parameter you intend to change.

What steps transfer a selected data record to the CPU226? #

Configure the transfer once in the project, then trigger it from Runtime whenever needed: the sequence below takes a test record from the runtime PC to the CPU's V memory and proves every step before the machine depends on it.

  1. List the receiving variables from the PLC program: each address, data type, permitted range, and whether the program copies them into a separate active parameter set.
  2. Configure the connection: a new connection under Communication > Connections with the SIMATIC S7 200 driver, its interface settings matched to the installed cable, adapter or CP 243-1.
  3. Prove one ordinary tag against an online PLC monitor before configuring anything recipe-related.
  4. Define the recipe and its elements in the project's recipe editor, and attach each element to its correctly addressed tag.
  5. Create a test record whose values differ clearly from what the CPU currently holds, so unchanged defaults cannot be mistaken for a successful transfer.
  6. Run the first transfer with the process in a controlled commissioning state, because recipe writes change what the machine does.
  7. Trigger the transfer to the PLC from a recipe display or a configured Runtime action; reading PLC values into a record is the opposite direction and does not load the controller.
  8. Check the transfer status or messages in Runtime, then watch the receiving addresses and the values the program actually uses.

How do you verify the record actually landed in the CPU? #

Read back what the CPU received, not what Runtime reports: monitor each receiving address in the PLC while the transfer runs, because a completed status message proves the write was sent, and only the PLC's own memory proves the values arrived in the right form.

Worked example: recipe Batch A carries two elements — a temperature setpoint at VW100 entered as an integer in tenths of a degree, value 1850, and a pump speed at VD102 entered as a REAL, value 1234.5. The word at VW100 occupies bytes VB100 and VB101, two bytes, so the next element cannot start before byte 102; VD102 occupies VB102 through VB105, four bytes. Every byte from 100 to 105 is claimed by exactly one element, and the mapping is sound. Had the second element been mapped to VW101 instead, it would share byte 101 with the setpoint, and every write would corrupt both values. After the transfer, monitoring VD102 online shows 1234.5, exactly what Runtime sent, and 1850 tenths divided by 10 gives 185.0 degrees at the process.

Check the transfer with four observations:

  • Connection check: a live test tag in Runtime matches the online PLC value with no error indication.
  • Destination check: after the transfer, VW100 holds 1850 and VD102 holds 1234.5.
  • Overwrite check: with the PLC running, the values stay put unless program logic changes them; an immediate reversion means another writer or an initialization path is active.
  • Acceptance check: the program's active parameter set changes only after the copy or handshake you configured.

Does the CPU226 memory card matter for recipes at all? #

Not for the transfer itself: the card is a CPU storage and firmware-load option, and whether recipe values survive a power cycle depends on retentive V-memory configuration and startup logic in the PLC program, not on how the values got there.

So the memory card answers a different question from the one in the opening post. A completed transfer writes working memory; retention across power-down is a property of the retentive range the CPU's memory configuration defines, plus startup code that uses it. The HMI-side memory card is a separate device entirely, and even on panels it concerns backups and restore rather than live values, as whether an HMI memory card holds a restorable panel backup explains. On a PC runtime, records are stored in the project on the runtime PC, so neither card is needed to hold the recipes.

Why do transferred values arrive but the machine keep the old settings? #

Because a finished transfer is not a finished recipe change: the PLC program keeps running on the parameter set it already loaded, so it must copy received values into active use under a handshake, at a moment when a mix of old and new values cannot act.

For interdependent parameters, receive into a staging area separate from the active set. The program validates the received values — individual limits and relationships between them, such as one threshold staying below another — and copies the whole set into active use at a defined operating point. If you build a request-and-acknowledgement handshake, define what each indication means: transfer requested, values received and accepted, or active recipe changed are three different events. A button press or a run of successful individual writes proves communication, not acceptance; only the program's own active values, observed after the copy, prove the recipe took effect.

Questions asked

Can Runtime read a data record back from the CPU226 into the recipe database?

Yes. The transfer works in both directions over the same tags: a transfer from the PLC loads the addressed CPU memory range into the record currently selected in Runtime, overwriting its stored values. Keep a known-good record, or export records to a CSV file, before you read over them.

Does reaching a CPU226 over Ethernet need extra hardware?

Yes. The S7-200 has no on-board Ethernet port; the CP 243-1 communications processor provides it, and WinCC flexible documents the Ethernet connection between Runtime and an S7-200 through that module. For a serial link, the CPU's integrated port and a matching PC-side cable or adapter carry the traffic instead.

Do the values written by a recipe transfer survive a power cycle?

Only where the CPU memory configuration and the program keep them. V memory can be configured retentive, and startup logic must actively use the retained values. A transfer to non-retentive memory leaves the CPU to reinitialize those addresses at restart, so the next start runs on whatever the startup logic loads.

Is exporting records to a CSV file the same as transferring them to the PLC?

No. Export writes the record from the recipe storage on the HMI device to a file on external storage; nothing reaches the CPU. The transfer to the PLC writes the selected record into controller memory over the live connection. Only the second operation changes what the machine uses.

Keep reading

  • How-to

    How to Exchange Recipe Data Records Between an HMI and a PLC

    Bind every recipe element to an external tag whose data type and byte offset match the PLC data block, then move whole records with the system functions set data record to PLC and get data record from PLC. The records live in the panel's storage and the PLC holds only the current working values. Set tag synchronization so values move only on an explicit transfer, and prove the exchange with five checks ending in a delete test.

    HMI and touchscreens

  • How-to

    How to Simulate a PLC Behind WinCC Flexible 2008 SP3

    WinCC Flexible 2008 SP3 simulation runs your screens on the engineering PC and executes no PLC program, so give every animated object a real data source: STEP 7 with PLCSIM for an S7-300 test, PC Access or KepServerEx OPC for an S7-200, or a PC Adapter USB cable to the physical controller. Then wire M0.0 in parallel with I0.0, M0.1 in series as the stop, and animate the motor symbol on Q0.0, not on the command bit.

    HMI and touchscreens

  • Troubleshooting

    Why WinCC Flexible 2008 SP2 lists no device to transfer to an MP277

    The blank device pane in the transfer dialog means the project's device settings still target an image revision older than the OS image flashed to the panel. Set the latest revision in the device settings, run a full recompile, and the MP277 reappears for transfer. No cable, driver or Windows reinstall is involved.

    HMI and touchscreens

Weintek MT8150EX will not communicate with a Siemens S7-1200