IMDTouchKnowledge BaseShop main store

How-to

Configuring data logging on a TP700 Comfort panel

HMI and touchscreens Published 6 min read

Short answer

Insert a FAT32 USB stick or SD card before runtime starts, define the log under Historical data with a cyclic or event trigger and a storage path on that medium, and set entries per segment and segment count so one medium covers your longest run. Stop logging, save, close all logs and use the panel's safe-removal function before pulling the stick, or the CSV corrupts.

On this page
  1. What has to be true first
  2. Defining the log in the project
  3. Choosing the storage path
  4. Sizing the log: a 10 s cycle at 5 000 entries per segment and 4 segments
  5. Running the log and getting the stick out intact
  6. From CSV to a report
  7. Questions asked

Getting data logging running on a TP700 Comfort is a short, fixed sequence, not a project: put FAT32 media in before runtime starts, define the log under Historical data > Data logs, give it a trigger and a storage path on that medium, and set a segment size and count that keep one medium covering your longest run. When the run ends the order is just as fixed: stop logging, save, close all logs, safely remove hardware, and only then pull the stick. Skip that order and the CSV you came for is the casualty. The steps below carry a blank project through to a clean file, with the sizing arithmetic worked for a weekend on one medium.

What has to be true first #

Four conditions, all cheap to meet:

  • File system. USB sticks and SD cards must be FAT32 — not exFAT, not NTFS. FAT32 also caps a single file at 4 GiB minus one byte, which is one reason logs are written in segments rather than one endless file. The stick-size and format rules for a Comfort panel are collected in what USB stick size and file system a TP1500 Comfort panel accepts.
  • Media present at runtime start. The panel enumerates removable media as the runtime boots. A stick hot-plugged into an already-running runtime often goes undetected and logging never begins, even with every setting correct. To recover: exit runtime, insert the stick, start runtime again.
  • Current firmware. Update the panel before blaming the configuration; removable-media compatibility improved across firmware revisions.
  • The engineering tool. The log lives in the TIA Portal project edited with WinCC Comfort or WinCC Advanced — the software-to-panel pairing is covered in which HMI software works with which HMI panel hardware. The tags to be logged must already exist in the HMI tag table, internal or read from the PLC.

Defining the log in the project #

  1. Open the TP700 Comfort in the device configuration of the project tree.
  2. Under Historical data > Data logs, add a new data log and name it — for example ProcessLog_01.
  3. Choose the log method. A circular log overwrites its oldest segment once the segment count is reached: right for continuous recording. A sequential log opens a new file for each logging session, meaning each start/stop pair: right when every batch must keep its own record.
  4. Set the storage location to one of the three paths in the next section.
  5. Add one column per tag, with its data type — Real, Int, Bool, String — and the header text the CSV should carry.
  6. Set the trigger: cyclic every N seconds, on value change, or event-driven from a boolean trigger tag.
  7. Set the maximum number of entries per segment and the maximum number of segments retained; those two numbers plus the cycle decide how far back the log reaches, and the worked example below sizes them.
  8. Compile and download the project.

Choosing the storage path #

Three paths exist on a Comfort panel:

Storage path Connector Typical use
\Storage Card SD\ SD slot (X51) long-term production logging
\USB_X60.1\ front USB (X60) operator-driven exports
\USB_X61.1\ rear USB (X61) service and commissioning

The .1 in a USB path is the medium's first partition; a stick carved into two partitions exposes its second one as USB_X60.2, so keep logging sticks single-partition and the configured path keeps resolving. Not every panel in the wider family offers all three options — the KTP400 and KTP700 Basic units expose only the front USB path — so confirm the path exists on any device a log travels to. For where panel records end up beyond the stick, see where HMI audit trail data goes: SD card and server logging.

Sizing the log: a 10 s cycle at 5 000 entries per segment and 4 segments #

The panel hands you no defaults worth copying, so work a typical machine log end to end. The inputs are the log's own settings, shown with example values: a cyclic trigger at 10 s, a segment size of 5 000 entries, and 4 segments retained.

The rule in words: one medium holds entries per segment multiplied by segments before a circular log starts overwriting its oldest data; the time that covers is the entry count multiplied by the cycle; and the entries a run needs is the run length divided by the cycle.

The arithmetic, step by step:

  • Capacity of one medium: 5 000 entries per segment × 4 segments = 20 000 entries before the oldest segment goes.
  • Coverage: 20 000 entries × 10 s per entry = 200 000 s, and 200 000 s ÷ 3 600 s per hour = 55.6 h, about 2.3 days.
  • Weekend check: 48 h × 3 600 s per hour = 172 800 s of record, so 172 800 s ÷ 10 s per entry = 17 280 entries — under the 20 000 capacity with 2 720 entries to spare.
  • Week check: 168 h × 3 600 s per hour = 604 800 s, which is 60 480 entries; at 5 000 entries per segment that takes 13 segments (13 × 5 000 = 65 000), and 13 × 5 000 × 10 s = 650 000 s = 180.6 h of cover.

File size is nowhere near binding: at an estimated 100 bytes per row, a 5 000-entry segment is about 0.5 MB, far under the 4 GiB minus one byte a single FAT32 file can reach.

Decision: at these settings one medium covers any unattended run up to 55.6 h. Beyond that — a full week needs 13 segments — raise the segment count before the run starts or schedule a medium swap, because past 55.6 h the circular log is already overwriting the oldest data.

Running the log and getting the stick out intact #

  1. Stop runtime, insert the FAT32 stick into the port the configured path points at, then start runtime so the medium is present at boot.
  2. In the Historical Data view bound to the log, press Start logging. Entries pass through a RAM buffer and reach the file when the buffer fills, when Save is pressed, or when the configured flush interval elapses — keep that interval shorter than the gap between an operator's saves.
  3. At the end of the run press Stop logging.
  4. Press Save to flush the final rows.
  5. Run Close all logs so the panel releases every file handle.
  6. Use Safely remove hardware on the USB path, then pull the stick.

Steps 3 to 6 are the whole integrity of the file: pull the stick while the log is still open and the CSV is corrupted, whatever the settings were.

From CSV to a report #

The CSV on the stick is plain text and opens in any spreadsheet or CSV reader once it reaches a PC; layout and printing happen on that computer, not on the panel — the reasons are set out in why a TP700 Comfort CSV log needs a computer to print. Work on copies and keep the files exactly as they came off the panel.

Questions asked

Will a USB 3.0 or 3.1 stick work in the panel?

Yes, once the firmware is current. Sticks of the 3.0 and 3.1 speed classes were only accepted after a firmware update; a panel still on the old firmware takes USB 2.0 high-speed devices only. Update the firmware first, keep the stick FAT32 whatever its speed class, and insert it before runtime starts so the medium is detected at boot.

Why does the CSV open as one column of semicolons and commas?

Projects engineered in a European locale write the field separator as a semicolon and the decimal mark as a comma, so a plain double-click in Excel merges everything into one column. Use Data > From Text/CSV to choose the delimiter and set each column's type, or read the file with the separator set to a semicolon and the decimal to a comma. Projects built in a US locale produce the familiar comma-separated, point-decimal files.

Can I copy a finished log configuration into another panel project?

Yes. In the Historical Data editor, select the log in the Data log tab, copy it, and paste it into the other runtime. Before loading, re-check the storage path and trigger on the target: a pasted log can point at a slot that device does not have, so redirect it to a path the target actually exposes.

When should the log move off the panel entirely?

When retention outgrows the media. The panel writes CSV files to SD or USB; it is a recorder, not an archive. If records must be kept longer than your sized segments can hold, feed a higher-level system instead: a WinCC Professional station, an information server, or a third-party historian reading from the panel or straight from the PLC.

Is it safe to pull the stick once its activity LED goes dark?

No. The LED reports traffic, not open file handles: while the log is open the panel still owns the file, and pulling the medium leaves a truncated CSV that Windows or Linux will offer to repair with chkdsk or fsck. The LED tells you nothing about the release steps, so stop logging, save, close all logs, then safely remove hardware before the stick moves.

Keep reading

  • How-to

    Setting the USB Path for a PanelView Plus Datalog Model

    Type \External Storage 1\Logs as the Datalog Model path — the terminal's name for the first USB flash drive — instead of the default C:\Logs, then turn on data logging under Terminal Settings > Startup. The path string is case-sensitive, and the terminal enumerates only one USB flash drive at a time.

    HMI and touchscreens

  • Selection guide

    HMI panel as local data logger for a PLCnext controller

    An HMI panel with an integrated datalogger, CSV file output and an FTP service can log PLCnext data locally with no separate PC or historian. The decision turns on two numbers: the log volume per day against the panel's free storage, and the controller's protocol server against the panel's driver list, where Modbus TCP is the lowest-friction choice.

    HMI and touchscreens

  • Troubleshooting

    Why HMI Data Logs Export Bool True as -1

    A Comfort Panel USB data log shows -1 for a true Boolean because the export serializes the all-ones bit pattern as a signed value. Assign the literals 1 and 0 conditionally into a separate numeric tag and log that tag; a direct copy into an Int or UInt keeps the -1. Verify the change in the raw CSV with a text editor.

    HMI and touchscreens