Siemens LOGO! Access Tool: Reading Historical Data from SD Card

David Krause13 min read
Data AcquisitionSiemensTechnical Reference
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Overview

The Siemens LOGO! 6ED1052-1MD08-0BA0 is a logic module that supports analog value monitoring, digital status capture, and time-stamping. A frequent field request is to read the last 50–60 recorded samples (or older values) directly from the LOGO! without launching LOGO! Soft Comfort (LSC). The LOGO! Access Tool (LAT) is the standard PC-side utility for live variable monitoring, but it does not give the operator direct access to the SD-card-resident data archive. This reference clarifies what the Access Tool can and cannot read, documents the Live-Data / History-Data feature, and presents the workarounds used in field installations to export historical data to Excel, CSV, or an external HMI/SCADA system.

Critical Constraint: The LOGO! base unit (any 0BA0–0BA8 generation, including 6ED1052-1MD08-0BA0) does not expose its SD-card data archive over the Ethernet variable table. The Access Tool only mirrors the current Variable Memory (VM) values. Older records must be retrieved from the SD card directly, or captured in real time by a continuously running PC client.

LOGO! 6ED1052-1MD08-0BA0 Hardware Overview

The 6ED1052-1MD08-0BA0 is a LOGO! 8 logic module with integrated display. The relevant hardware boundary conditions for data acquisition are:

Parameter Value
Catalog number 6ED1052-1MD08-0BA0
Series LOGO! 8 (8.3 / 0BA0 designation as printed on the device)
Display Integrated 6-line LCD with operator keys
Supply voltage 12/24 V DC
Digital inputs 8 (4 of which are usable as analog AI1–AI4 at 0–10 V)
Digital outputs 4 transistor outputs (24 V / 0.3 A)
Ethernet interface RJ45, 10/100 Mbit/s
SD card slot microSD, up to 32 GB, FAT16/FAT32
Variable Memory (VM) range 0–850 bytes (process image)
Web server Built-in, accessible via standard HTTP on port 80
Supported LSC version LOGO! Soft Comfort V8.0 or higher

Two analog inputs, one digital byte, and the internal real-time clock are the typical data sources the operator wants to log. These map directly to VM addresses; for example, an analog value at AI1 is mirrored in the VM mapping that the Access Tool polls on a fixed interval (default 1 s, configurable 100 ms – 60 s).

Data Log Function Block Inside the LOGO! Program

Inside the LSC circuit diagram the user can drop a Data Log function block. Each block writes one record line (up to 32 bytes) to the SD card whenever its trigger condition is true.

Data Log Parameter Range / Format
Number of records per file 1 – 65 535 (rolling)
Time stamp Yes – sourced from the LOGO! real-time clock (RTC)
File location on SD \LOGO\DATALOG\<BLOCK_NAME>.CSV
File name suffix Auto-incremented _001.csv, _002.csv when max record count is reached
Max simultaneous Data Log blocks 4 (LOGO! 8.0 / 8.1), 8 (LOGO! 8.2 / 8.3 with firmware > 1.82.x)

The CSV that the Data Log block writes looks similar to the sample below. The header line is written once at file creation.

Date;Time;AI1_mA;AI2_mA;DI_Byte;Status
2025-01-14;08:00:01;4.02;12.45;0x0A;OK
2025-01-14;08:00:11;4.03;12.46;0x0A;OK
2025-01-14;08:00:21;4.05;12.44;0x0B;OK
...

Once the file is on the SD card, the Access Tool cannot read it. The only ways to retrieve the file are: (a) power down the LOGO!, remove the SD card, and open the file in Excel/Notepad, (b) use LSC's Tools → Transfer → Data Log menu, or (c) write a script that pulls the file from the SD card via FTP/SFTP – which the LOGO! base unit does not support.

LOGO! Access Tool: Capabilities and Limits

The LOGO! Access Tool is a free Siemens Windows application (part of the LOGO! Soft Comfort installation package, available in the Siemens Industry Online Support portal). It runs on Windows 10/11 and connects to the LOGO! over TCP/IP port 10005 (LOGO! protocol, fixed). It is designed for the use case "PC displays what the LOGO! currently sees" – not for archive retrieval.

Feature Available in Access Tool? Notes
Read current VM values Yes Polled at the configured cycle time
Write VM values (force) Yes (with password) Useful for commissioning only
Read SD-card Data Log files No Access Tool has no file-system call into the SD
Display last N samples already seen during the current PC session Yes (History Data window) Buffer is RAM-only and lost when LAT is closed
Continuous CSV log to local disk Yes Logs what the PC has just seen, not the SD archive
Trigger a remote download of the SD card No Requires LSC or manual card removal

History Data Number: What It Really Means

The History Data Number scroll bar that the user sees in the Access Tool main window is described in the official LOGO! Access Tool Help (en-US):

"In the scroll bar of History Data Number, you can drag the scroll box from up to down to select one number for the history data."

The number is a pointer to a sample already in the Access Tool's local RAM buffer. The buffer grows as the Access Tool polls the LOGO!. It is not an SD-card index and is not persistent across restarts. The maximum length of the buffer is determined by the configured Number of Records in the LAT project (default 100, max 1 000 in current builds). Once the buffer is full, the oldest sample is overwritten (FIFO).

Practical implication: If the operator wants the last 50–60 samples visible in Excel, the Access Tool must be started, pointed at the LOGO!, and left running long enough to collect the desired window. Closing LAT or losing the TCP session clears the buffer.

Reading Live Data with the Access Tool – Step by Step

  1. Install LOGO! Soft Comfort V8.3 or higher on the engineering PC. The Access Tool installer is included in the same package.
  2. Connect the PC to the LOGO! Ethernet port. Use a static IP on the PC side (e.g. 192.168.0.100/24) and confirm ping 192.168.0.10 (default LOGO! IP) returns reply.
  3. Start LOGO! Access Tool and create a new project.
  4. Enter the LOGO! IP address, the port (default 10005), and the VM mapping table (imported from the LSC project file .lsc via File → Import → Variable Table).
  5. Set the Cycle Time (100 ms – 60 000 ms). For 2 analog values, 1 s is a common default and produces a manageable CSV size.
  6. Set the Number of Records (history buffer length) to the desired window. 60 is sufficient for the 50–60 sample target.
  7. Click Start. The right-hand panel begins updating with the polled values. The History Data graph populates in real time.
  8. Drag the History Data Number scroll box to inspect any past sample in the buffer.

Configuring CSV Data Logging in the Access Tool

To get a permanent file, the Access Tool can write the live data stream to a CSV on the PC disk.

  1. In LAT, open Settings → Data Logging.
  2. Enable Log to CSV file.
  3. Specify the output path (e.g. D:\LOGO_Hist\LineA_) and a file-name pattern that includes a timestamp token (e.g. yyyyMMdd_HHmmss).
  4. Set the delimiter to ; or , to match the Excel locale (German Excel expects ;).
  5. Select the Append mode checkbox if the file should grow continuously; otherwise LAT creates a new file on every Start/Stop cycle.
  6. Click OK and then Start in the main window. The CSV grows row by row at the configured cycle time.

Resulting CSV (extract):

Timestamp;AI1_mA;AI2_mA;DI_Byte;Status
2025-01-14 08:00:01;4.02;12.45;10;OK
2025-01-14 08:00:02;4.03;12.46;10;OK
2025-01-14 08:00:03;4.03;12.46;10;OK
...
Reliability caveat: If the PC reboots, the network drops, or LAT crashes, the CSV will stop growing. There is no catch-up mechanism. For an unattended 7-day recording, run the PC on a UPS and disable Windows automatic restarts.

Reading the SD Card Directly (Without Soft Comfort)

The LOGO! stores Data Log files on the microSD card. The path layout on the card is fixed:

\LOGO\DATALOG\<DATA_LOG_BLOCK_NAME>_001.CSV
\LOGO\DATALOG\<DATA_LOG_BLOCK_NAME>_002.CSV
\LOGO\PROGRAM\<PROJECT_NAME>.LSC
\LOGO\PROJECT.LSC

To read the SD card without Soft Comfort:

  1. Switch the LOGO! into STOP mode (or power off – the SD card is hot-swappable on 0BA8 onward, but stopping the program prevents a partial write).
  2. Press the SD-card slot cover and remove the card.
  3. Insert the card into a Windows PC microSD reader.
  4. Open \LOGO\DATALOG\ in Explorer. The CSV files open directly in Excel without conversion.
  5. Re-insert the card into the LOGO! and switch back to RUN.

This is the only method that gives access to records older than the LAT session buffer. It is the recommended approach for audit trails and reports.

Excel Add-In for Continuous Logging

The LOGO! Access Tool Excel Add-In (a separate component installed with LSC) exposes the polled variables as named cells inside Excel. The Add-In uses the same TCP/IP socket (port 10005) and can be combined with a VBA macro that appends new rows to a worksheet at a fixed interval. The advantage over plain LAT is that the user can build their own trending, formulas, and alarms inside Excel itself.

Minimal VBA pattern (place in ThisWorkbook):

Sub PollOnce()
    Dim ts As String
    ts = Format(Now, "yyyy-mm-dd hh:nn:ss")
    Sheets("Data").Cells(nextRow, 1).Value = ts
    Sheets("Data").Cells(nextRow, 2).Value = Range("AI1_mA").Value
    Sheets("Data").Cells(nextRow, 3).Value = Range("AI2_mA").Value
    Sheets("Data").Cells(nextRow, 4).Value = Range("DI_Byte").Value
    nextRow = nextRow + 1
    Application.OnTime Now + TimeValue("00:00:01"), "PollOnce"
End Sub

Call PollOnce from a Workbook_Open macro to start streaming. The worksheet then becomes the historical record for as long as the PC stays up.

Web Server as a Scriptable Workaround

The LOGO! 8 web server (default port 80) returns a plain-text variable snapshot:

GET http://192.168.0.10/<PASSWORD>/LOGO?.V123

A Python or PowerShell script can be written to issue this request on a schedule and append the response to a local CSV. The script runs on the PC, leaves the SD card untouched, and does not require the Access Tool to be open. Example PowerShell skeleton:

$ip = "192.168.0.10"
$pw = "LOGO"
while ($true) {
    $resp = Invoke-WebRequest -Uri "http://$ip/$pw/LOGO?.V123" -UseBasicParsing
    $ts = Get-Date -Format "yyyy-MM-dd HH:mm:ss"
    Add-Content -Path "D:\LOGO_Hist\web.csv" -Value "$ts;$resp.Content"
    Start-Sleep -Seconds 1
}
Web-server caveat: The web server is best-effort. It is intended for diagnostics, not for long-term logging. Reading the web server at 1 Hz on a non-real-time Windows machine typically yields jitter in the 10–200 ms range; the SD card Data Log block, by contrast, timestamps from the LOGO! RTC at the exact configured cycle.

Limitations Summary

Requirement Native LOGO! / Access Tool support Workaround
Read last 50 samples that are already on the SD card Not supported in LAT Pull SD card and open CSV in Excel
Read last 50 samples that the LOGO! just produced (not yet archived) Supported via LAT History Data buffer Leave LAT running with poll cycle 1 s
Continuous 7-day, 24-hour recording without PC intervention Not supported (PC must stay on) Replace LOGO! with S7-1200 + S7 Memory Card, or deploy an HMI panel that supports Data Log on its own storage (e.g. KTP400 Comfort with recipe/log archive)
OPC UA access for SCADA integration LOGO! 8.3 supports OPC UA server (firmware ≥ 1.82.x) on a separate port; basic variable read/write only, no historical data Use OPC UA historical access on a higher-level controller

Alternative Architectures

If the project requires unattended, time-stamped, ring-buffered data retention, the LOGO! 6ED1052-1MD08-0BA0 is at the limit of what it can deliver. The following alternatives are field-proven upgrades.

Alternative Historical data capability Programming environment Catalog entry
LOGO! 8.3 + KTP400 Comfort HMI HMI logs the polled VM values to its internal flash / USB stick; up to 32 MB log space WinCC Comfort V17 or higher 6AV2124-1DC01-0AX0 (KTP400 Comfort)
SIMATIC S7-1200 + 4 MB Signal Board Data Log function block, CSV on SIMATIC Memory Card, 1 s cycle typical STEP 7 (TIA Portal) V16 or higher 6ES7214-1AG40-0XB0 (CPU 1214C DC/DC/DC)
S7-1200 + WinCC Runtime Advanced on a Panel Ring-buffered tag logging with time stamp, archive on network share TIA Portal V17 6AV2124-1JC01-0AX0 (TP700 Comfort)
LOGO! 8.3 + Node-RED on Raspberry Pi via OPC UA Persistent logging to InfluxDB / CSV / MQTT broker Node-RED + node-red-contrib-opcua Third-party; supported by Siemens OPC UA server on LOGO! 8.3

Troubleshooting Matrix

Symptom Likely cause Diagnostic Corrective action
LAT shows "No connection" Wrong IP, firewall, or PC Ethernet profile set to Public ping from PC, telnet 192.168.0.10 10005 Set PC IP in same subnet; open Windows Firewall for LAT
History Data scroll bar is greyed out Number of Records set to 0 in LAT project settings Open Settings → Records Set Records ≥ desired window, e.g. 60
CSV file is empty after 1 hour "Log to CSV" not enabled, or file path read-only Check LAT logfile location and NTFS permissions Re-enable logging, grant write permission
SD card Data Log files missing Data Log block not inserted in the LSC program, or trigger condition never true Open LSC online view, monitor Data Log block enable bit Insert Data Log block, wire trigger to a 1-Hz pulse or a real condition
Web server returns 404 LOGO! firmware < 0BA7, or web server disabled in project Check Device → Web Server Access in LSC Enable web server, set password
Excel Add-In cells stay at #VALUE! Variable names contain spaces or do not match the LSC export Compare Add-In mapping to LSC variable table Rename variables to alphanumeric, re-import

Verification Checklist

After implementing any of the methods above, confirm the historical data path with the following checks:

  • CSV file size grows monotonically (e.g. Get-Item D:\LOGO_Hist\*.csv | % Length every 60 s).
  • Time stamps are in the expected timezone and advance by exactly the configured cycle (no gaps larger than 2 × cycle).
  • The last N values in the CSV match the current value shown on the LOGO! display or the LAT main panel.
  • For SD-card method: file modification time on the SD card is newer than the previous poll.
  • For web-server method: HTTP response returns 200 OK within 50 ms on a quiet network.

Can the LOGO! Access Tool read files from the SD card inside the LOGO!?

No. The Access Tool uses the LOGO! Ethernet protocol on TCP port 10005, which only exposes the current Variable Memory image and the running program. It has no file-system command to enumerate or download \LOGO\DATALOG\*.csv. The only ways to retrieve archived files are to remove the SD card, or to use LOGO! Soft Comfort's Tools → Transfer → Data Log menu.

What does the "History Data Number" scroll bar in the Access Tool point to?

It points to a sample already stored in the Access Tool's local RAM buffer (default length 100, configurable up to 1 000). The pointer slides through values that the PC has just polled. It is not an index into the SD card, and the buffer is cleared the moment the Access Tool is closed or the network session is dropped. Reference: LOGO! Access Tool Help (en-US).

How do I log the last 50–60 samples automatically without keeping the PC on?

Use the Data Log function block in the LSC program. The block writes each record to the SD card with a time stamp from the LOGO! real-time clock. After the desired number of samples, stop the LOGO!, remove the SD card, and read the CSV directly in Excel. This is the only method that produces a persistent historical record without requiring a continuously running PC.

Does the LOGO! 6ED1052-1MD08-0BA0 support OPC UA for historical data?

LOGO! 8.3 firmware (V1.82.x and newer) ships with an OPC UA server on a separate TCP port, but it exposes only the current variable values. There is no OPC UA Historical Access profile on the LOGO! base unit. For full Historical Access you need to step up to a SIMATIC S7-1200/S7-1500 controller and configure the OPC UA server in TIA Portal.

Is there a way to script the export of the SD-card CSV from the LOGO! while the program is running?

No. The LOGO! base unit does not run FTP, SFTP, SMB, or any other file-serving protocol over its Ethernet port. The only network interfaces are the LOGO! protocol (port 10005) used by LAT and the web server (port 80). If a script-based, in-place export is mandatory, the controller has to be replaced with a SIMATIC S7-1200 (which supports FTP/SFTP via the S7-1200 CPU's web server) or a third-party edge device such as a Node-RED gateway.

Back to blog