IMDTouchKnowledge BaseShop main store

Troubleshooting

Why the TP1200 Comfort Excel viewer will not open a CSV event log

HMI and touchscreens Published 5 min read By IMDTouch engineering team

Short answer

The Excel viewer on a TP1200 Comfort panel opens only genuine Excel workbooks, so a comma-separated event log fails no matter which extension you give it. Keep the file as .csv (ANSI) or .txt (Unicode), read it in the panel web browser or with scripts, and open it in Excel on a PC. Renaming to .xls or .xlsx changes the name only and never converts the content.

On this page
  1. What the Excel viewer actually opens
  2. Why renaming the extension never converts the file
  3. What the viewer sees, byte by byte
  4. The three paths that read the log
  5. Verify the fix on the bench
  6. The decision for each case
  7. Questions asked

Your event log reaches the USB stick, genuine .xlsx files open without trouble, and the CSV still throws an error. That combination has one cause: the Excel viewer on a TP1200 Comfort panel opens Excel workbooks only. A comma-separated log is plain text, not a workbook, so the viewer rejects it whatever the extension claims. Renaming the file to .xls, .xlsx or any other Excel-like extension changes a few characters in the name and none of the content, so it can never work. Three paths do work: open the log in the panel's web browser as raw text, read and display it with panel scripts, or keep the file as .csv and open it in Excel on a PC. Pick by what the operator needs to see at the machine.

What the Excel viewer actually opens #

The viewer's supported inputs are workbook files: .xls and .xlsx. An .xlsx is a ZIP container that holds the workbook's sheets, cells and formatting as separate internal parts; an .xls is an older compound binary with the same job. A CSV file is none of that. It is a single plain-text stream with commas between the fields, so there is no sheet, no cell and no workbook part to load, and the viewer stops with an error.

The test you already ran proves the rest. A genuine .xlsx from the same panel opens, so the viewer, the USB port and the file system all work; the only difference in the failing file is its format, and that is the entire fault.

Why renaming the extension never converts the file #

A rename edits the directory entry and touches none of the bytes. Real conversion is parse-and-rewrite: a program reads the comma text, builds the workbook parts and writes a new file. A new name does none of that work, so the viewer opens the renamed log, finds text where a workbook container should be, and fails again, now under a name that hides what the file really is.

Name files by their encoding instead. Unicode text carries the .txt extension and ANSI comma-separated text carries .csv; Siemens support entry 59604194, the documented script example for writing process data to a panel file, follows the same split: the output selected as ".csv" is the file Excel opens, and the plain-text output opens as ".txt". If your log is ANSI comma text, .csv is already its right name and desktop Excel opens it with no import step; Unicode text belongs in .txt.

What the viewer sees, byte by byte #

Take one record from the event log:

2025-03-12,07:42:15,Motor 1,Fault,F30

Count the characters: 10 for the date, plus 1 comma, plus 8 for the time, plus 1 comma, plus 7 for Motor 1, plus 1 comma, plus 5 for Fault, plus 1 comma, plus 3 for F30. That is 10+1+8+1+7+1+5+1+3 = 37 characters. Stored as ANSI text at one byte per character, the line occupies 37 bytes and starts with byte 32 in hex, the digit 2. Stored as Unicode text at two bytes per character plus a 2-byte byte-order mark, the same line occupies 37 × 2 + 2 = 76 bytes and starts with FF FE. A genuine .xlsx starts with the bytes 50 4B, the letters PK that open every ZIP container, followed by the workbook's internal parts.

Renamed to .xls or .xlsx, the log is still those 37 text bytes starting with 32. The viewer looks for a workbook container and finds a date: no signature, no workbook parts, nothing to load. The name says Excel, the bytes say text, and the viewer believes the bytes.

The three paths that read the log #

Stop asking the viewer and use a reader that handles text.

  • Panel web browser. Open the .csv from the USB stick in the panel's browser. You get the native text, every field and every comma, nothing reformatted. No columns and no filtering, but a working view of the log at the machine, and the file itself is not touched.
  • Panel scripts. Siemens' toolbox example with support ID 106226404 reads a CSV back on the panel with a set of VB scripts that split the lines and hand the fields to tags or screen elements. It is a read-and-display job: if a script writes the log itself and you want the viewer to open it, the script must generate real workbook syntax, because comma text wearing an Excel name is still not an Excel file.
  • A PC. The ANSI .csv opens in desktop Excel directly. Pull the stick, or point the log at a network path if your project already writes logs there. A CSV log built for a spreadsheet ends up on a computer sooner or later, which is the same reason a TP700 Comfort CSV log needs a computer to print.

Verify the fix on the bench #

Run the chain on a test stick before relying on it at the line:

  • A genuine .xlsx you have opened before still opens in the Excel viewer, so the viewer and the stick are good.
  • The event log opens in the panel browser and every field shows.
  • The same .csv opens in desktop Excel with each field in its own column, confirming the encoding and the separator.
  • A renamed copy still fails in the viewer, which is expected and confirms a format fault rather than a broken viewer.

If desktop Excel splits a field at a comma that lives inside the text, quote that field in the log or change the separator: the log layout decides the parse, not the viewer.

The decision for each case #

Situation at the machine Decision What you get
Operator needs a quick look at the log Open the .csv in the panel web browser Raw text, every field, no columns
Operator needs structured fields on the panel Scripted readout, toolbox example 106226404 Fields in tags and screen elements
The log exists for analysis or reports Keep it as ANSI .csv and open it on a PC Excel columns with no import step
The log is Unicode text Name it .txt Reads as text everywhere; Excel imports it

One rule covers every case: keep the extension honest and choose the reader that reads text. The Excel viewer is not that reader, and no rename will make it one.

Questions asked

How do I tell whether my log is ANSI .csv or Unicode .txt?

Look at the first bytes. ANSI text has no marker: each character is one byte, and the file starts straight away with the first character. Unicode text starts with a two-byte byte-order mark, FF FE, and takes about twice the space for the same content. Match the extension to what you find, .csv for ANSI comma text and .txt for Unicode text, so the next tool reads the bytes correctly.

Is there a setting that makes the Excel viewer accept CSV files?

No. The viewer is a workbook display component, and neither a panel setting nor a project option extends it to comma-separated text. The supported paths are the panel web browser for raw text, a scripted readout such as Siemens' toolbox example with support ID 106226404, or desktop Excel on a PC. Plan for one of those three instead of a configuration hunt.

Does opening the log in the panel browser change the file?

No. The browser reads the file from the stick and displays it as text; nothing is written back, and logging continues as before. That also means the view is read-only: no sorting, filtering or column layout. Use it to check an event at the machine, and move anything analytical to a PC copy of the same file.

What if even the known-good .xlsx fails to open?

Then the CSV is not the problem yet. Stop testing it and clear the basics first: try a different USB stick, check that the stick is readable on a PC, and retest the viewer with a workbook you have opened on this panel before. Once a genuine workbook opens from that stick, the viewer is proven good and the CSV-format diagnosis applies again.

Keep reading

  • Troubleshooting

    Why Comfort Panel simulation fails with the pdata.fwc error

    When Start Simulation on a Comfort Panel ends with the pdata.fwc configuration file could not be loaded and HmiRTm.exe stops, a TIA Portal V17 installed beside an older version has broken the shared simulation component: repair V17 from its DVD or ISO without uninstalling first, then apply all pending V17 updates. If only one project fails, delete the Diagnostic Viewer control from the screens and rebuild all software; as a last resort, recreate the HMI device.

    HMI and touchscreens

  • Troubleshooting

    Why a Comfort Panel will not print to a Brother label printer on USB

    The panel prints only through drivers in its image, and the compatibility list names the Brother P-Touch QL 650 TD, not the QL-820NWB. The QL650TD driver speaks ESC/P while the printer ships in raster mode for Windows, so switch the printer to ESC/P, keep the ProSave-transferred driver, set B5 with autocut, and replace the printer if a bench report still prints nothing.

    HMI and touchscreens

  • Troubleshooting

    Why an Edge app does not autostart on a Unified Comfort Panel

    An Industrial Edge app on a Unified Comfort Panel starts on its own only if its containers carry a restart policy such as unless-stopped. Installation alone does not set one, and an HMI Runtime button can open an app's interface or send it a command, but it cannot start a stopped container.

    HMI and touchscreens

Why ProTool Lite Cannot Open a TP270 Project It Does Not Support