IMDTouchKnowledge BaseShop main store

How-to

Setting the USB Path for a PanelView Plus Datalog Model

HMI and touchscreens Published 6 min read

Short answer

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.

On this page
  1. What path do I type in the Datalog Model for a USB stick?
  2. Why doesn't a drive letter like D:\ work?
  3. How do I set the path in FactoryTalk View Studio?
  4. How do I load the changed runtime onto the terminal?
  5. Why is the model still writing nothing?
  6. Can I log to an SD card or a second USB stick as well?
  7. How fast will the USB stick fill up?
  8. How do I get the log off the stick and into Excel?
  9. Questions asked

Type \External Storage 1\Logs into the Datalog Model's path field and the records land on the USB stick. A drive letter like D:\ never exists inside the terminal, so the model has to use the storage names the PanelView Plus itself uses: C:\Logs for internal memory, \Storage Card2\Logs for the SD slot, \External Storage 1\Logs for the first USB flash drive. Two more things decide whether anything gets written: the stick must be formatted FAT32, and data logging must be switched on under Terminal Settings > Startup. The steps below cover the Studio edit, the transfer to the terminal, and the one-stick limit on removable storage.

What path do I type in the Datalog Model for a USB stick? #

\External Storage 1\Logs is the string — typed exactly like that, capital E, capital S, numeral 1 — and it is case-sensitive, so a lowercase or misspelled version writes nothing at all.

The terminal mounts the first USB mass-storage device it sees under the name External Storage 1, and the Datalog Model path is built on that name. The strings that resolve at runtime:

Path string What it addresses Removable
C:\Logs Terminal internal memory No
\External Storage 1\Logs First USB flash drive Yes
\Storage Card2\Logs SD card slot Yes
\Server\Logs Network share over Ethernet No

The example list inside the Datalog Model editor offers C:\Logs, \Server\Logs and \Storage Card2\Logs, with no USB entry — which is why the USB path gets typed by hand and why the question comes up at all. A Datalog Model writes records to files; on-screen trends are separate objects, and keeping PanelView Plus trend logging after screen changes is the article for that side of the house.

Why doesn't a drive letter like D:\ work? #

Because the drive letter never exists on the terminal: the stick gets a letter from your PC, but inside the runtime it is mounted under the terminal's own storage name, and only that name resolves.

The path is resolved by ME Station on the terminal, not by Studio on the PC. Names like USB:\ or a drive letter are not interpreted, and the failure is silent — the model looks configured, and no file appears. The string cannot be checked by plugging the stick into the development PC either: the PC's view of the stick and the terminal's view are different filesystems.

How do I set the path in FactoryTalk View Studio? #

Open the project in FactoryTalk View Studio for Machine Edition, find the model under Data Log / Datalog Models, open its properties, and replace C:\Logs with \External Storage 1\Logs in the path field.

  1. Open the project in the Studio revision that matches the terminal's runtime, so the .mer you build is one the terminal will load.
  2. In the project tree, expand Data Log / Datalog Models, right-click the model, and open Properties.
  3. In the path field, replace C:\Logs with \External Storage 1\Logs, character for character.
  4. Check the file name pattern so runs cannot collide: a name built from the model name and a timestamp keeps every file separate.
  5. Confirm the write rate while the model is open — the periodic trigger decides how often a record is stored.
  6. Save the project and create the runtime (.mer).

Prepare the stick before it goes near the terminal: FAT32, one primary partition, and an empty Logs folder in the root, because that folder is what the path resolves to. The CE runtime does not reliably mount NTFS.

How do I load the changed runtime onto the terminal? #

Copy the new .mer onto the stick under \Rockwell Software\RSViewME\Runtime, put the stick in the terminal, load the application from the external-storage menu, and let the terminal restart into the new runtime.

The .mer you build runs as one runtime on one terminal — one FactoryTalk View ME project builds one PanelView runtime — so build it against the ME Station version that terminal runs. The loader on the terminal looks for runtime files under \Rockwell Software\RSViewME\Runtime in the root of the removable drive, so drop the file there.

Files already written to the old path stay where they were. Moving the model to USB does not move the history sitting in internal memory, so copy anything you need off C:\Logs before a later cleanup takes it.

Why is the model still writing nothing? #

The usual cause is the startup switch: data logging has to be turned on under Terminal Settings > Startup, and until it is, a model with a perfectly correct path produces no file.

That switch is a terminal setting, not a Studio setting. Enter the terminal's configuration mode, go to Terminal Settings > Startup, enable data logging, save, and restart into the runtime. If the switch is already on, work down this list:

  • The stick is FAT32 and shows up in the terminal's external-storage menu — a drive not listed there cannot be reached by any path.
  • The path string matches \External Storage 1\Logs exactly, capitals included.
  • The Logs folder exists in the root of the stick.
  • The write trigger is actually firing — a trigger tied to a tag that never changes stores nothing.

Can I log to an SD card or a second USB stick as well? #

SD card yes — its path is \Storage Card2\Logs — second USB stick no: Rockwell Answer ID 1136208 documents that a PanelView Plus 7 Performance Series B cannot access a second USB flash drive.

Treat one stick as the design rule across these terminals: the second stick is not enumerated, and a path pointed at it resolves to nothing. The arrangements that work:

  • One USB stick as \External Storage 1\Logs plus an SD card as \Storage Card2\Logs — two removable stores, and two models if you want them separated.
  • A network path such as \Server\Logs when the terminal is on the network and the share is reachable — no stick to walk away, but the log then depends on the network being up.

Each Datalog Model carries its own path, so splitting models across stick, card and internal memory is configuration, not extra hardware.

How fast will the USB stick fill up? #

In a worked example, one record every 5 seconds at about 60 bytes per row is roughly 1 MB a day, so a 2 GB stick holds about 2,000 days of one model's data.

The 5-second rate and the 60-byte row are example inputs — the real row size follows from how many tags the model stores and their types. The arithmetic:

  • Records per day: 86,400 s ÷ 5 s = 17,280 records.
  • Bytes per day: 17,280 × 60 B = 1,036,800 B, call it 1.0 MB.
  • Days on the stick: 2,000 MB (a 2 GB stick) ÷ 1.0 MB per day ≈ 2,000 days, about five and a half years.

Capacity is not the constraint. Size the stick to how often someone actually pulls the data, and spend the effort on the retrieval routine instead — a 2 GB stick left in a terminal for years is a stick nobody is reading.

How do I get the log off the stick and into Excel? #

Pull the stick, copy the datalog file to a PC, and open it with FactoryTalk View File Viewer, which views the log and exports it to CSV for Excel. What sits on the stick is the runtime's datalog format, so the export step is what produces the spreadsheet. On panels that run the CODESYS runtime instead of FactoryTalk View, reading a USB datalog from an HMI in the CODESYS runtime is the parallel procedure. One caution travels with any removable medium: the whole log walks off the floor with whoever pockets the drive, which is why encryption before removable media is standard practice for sensitive data.

Questions asked

Do I have to create the Logs folder on the stick myself?

Yes. Format the stick FAT32 and put an empty Logs folder in its root before it goes to the terminal — that folder is what \External Storage 1\Logs resolves to. Creating it from the PC costs nothing and removes the most common no-file cause after the startup switch. It does not interfere with loading a runtime, because the loader reads a different folder on the drive.

Can the same stick hold the runtime and the logs?

Yes. The application loader reads \Rockwell Software\RSViewME\Runtime in the stick's root, while the Datalog Model writes to the Logs folder — different folders on the same volume. Since only one USB flash drive is enumerated anyway, one stick doing both jobs is the practical arrangement: load the .mer, leave the stick in, and let the model write to it.

What program opens the datalog file on my PC?

FactoryTalk View File Viewer. Copy the file from the stick, open it there, and use the viewer's export to CSV for Excel or anything else that reads CSV. Do not expect a spreadsheet to appear on the terminal itself — that conversion happens on the PC, after the export.

Why does the path list in Studio show no USB entry?

The example paths offered in the Datalog Model editor are C:\Logs, \\Server\Logs and \Storage Card2\Logs — internal memory, a network share and the SD slot. The USB entry is missing from that list, which is why the path has to be typed by hand. The stick still mounts as \External Storage 1\ and the typed path works the same way.

Keep reading

  • How-to

    Keep a PanelView Plus Trend Logging After Screen Changes

    A PanelView Plus Trend object only records while its screen is visible. Configure a Data Log model to start at power-up, show it through an XY trend with pen 2 as the X axis, and give the log a bounded record limit so it overwrites the oldest records instead of growing without bound.

    HMI and touchscreens

  • Troubleshooting

    Why PanelView 600 Plus Alarms Stay Blank and Configure Mode Crawls

    Blank alarms mean the alarm Trigger Type, whole-word trigger address and message value do not match the PLC bits — with Trigger Type on bit and the trigger on the whole word, the message value is the bit number plus 1. The close-to-five-minute Configure Mode exit is tag errors elsewhere in the application; deleting loaded runtime applications was tried and changed nothing. Re-map the alarms, clear every reported tag error, and both symptoms clear.

    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