Troubleshooting
Why the PDF button does nothing on a Unified Comfort panel
Short answer
The PDF opens from Apps but not from your button because the StartProgram call fails silently: it needs firmware 17.0.2 or later in the V17 line, the program name /opt/siemens/App_Restriction/runOkular.sh with its leading slash, and a case-exact file path under /media/simatic/X51 or X61. On V18, Okular is replaced by Evince, so show the PDF with a WebControl and a file:/// URL instead.
On this page
You press the button and nothing happens: no error, no viewer window, no message. The PDF itself is fine — the operator shell opens it from Apps → PDF viewer — so the fault sits in the StartProgram call, and on a Unified Comfort panel that comes down to three things. The firmware must be 17.0.2 or later in the V17 line, because the early 17.0.0.x builds fail this call silently. The program name must be /opt/siemens/App_Restriction/runOkular.sh, leading slash included. And the file path must match the mounted name character for character. On V18 the Okular wrapper no longer exists, so the job moves to a WebControl instead.
Why the failure is silent #
StartProgram is the documented way to start programs with user interfaces on a Unified Comfort Panel, and the PDF viewer it starts on V17 is a wrapper script that lives in /opt/siemens/App_Restriction/. When the program name does not resolve to a script that is really there — a missing leading slash, a wrapper the firmware image does not carry — or when the firmware itself mishandles the call, the runtime puts no error on the screen and nothing the operator can read from the shell. The press just ends. That is why the diagnosis runs on facts you can check directly: the firmware level, the two strings, and the viewer generation your firmware ships.
Because Apps → PDF viewer opens the same file from the same card, the medium, the file and the viewer are already proven good. Do not reformat the stick or rename the file until the call itself is correct.
The checks in order #
Any one of these alone produces the same dead button, so run them top to bottom:
- Firmware level. On the V17 line the call works from 17.0.2 upward. Panels on 17.0.0 or 17.0.0.2 fail it even with a correctly configured project.
- Program name. It must be /opt/siemens/App_Restriction/runOkular.sh with the leading slash. Typed as opt/siemens/App_Restriction/runOkular.sh it resolves to nothing.
- Program parameters. The full mounted path, case-exact: under /media/simatic/X51/ for the SD card, under /media/simatic/X61/ for the USB stick, with a lowercase .pdf extension and no spaces in the file name.
- Firmware generation. On V18, Okular is removed and the PDF viewer is Evince, so the runOkular.sh wrapper is not in the image. No parameter string rescues that call; use the WebControl route below.
- Trigger source. If StartProgram is invoked from the scheduler rather than a screen event, initiate it from a Tag trigger in the scheduler on Unified Comfort Panels; a direct scheduler invocation does not fire it.
Firmware: where the V17 boundary sits #
The boundary is sharp. Panels reported on 17.0.0 and on 17.0.0.2 fail the call with a project that is configured correctly, and a panel on 17.0.2 runs the same project and the same StartProgram configuration unchanged. So when the panel reports 17.0.0 anything, stop editing: no change in TIA Portal fixes that button. Update the firmware to 17.0.2 or later in the V17 line first, then transfer the project. Keep the engineering side aligned at the same time, because the TIA Portal version and the panel support package must match the firmware you load or the compile-and-download step rejects the combination.
Put the machine in a safe state before you flash: the panel is out of service while the image loads, and anything that depends on its screen or its scripts is blind until it reboots. If it comes back stuck in maintenance mode instead of the runtime, that is a separate failure with its own procedure, covered in Unified Comfort panel maintenance mode reboot loop.
The wrapper path and the file path #
| Slot | Medium | Mounted path |
|---|---|---|
| X51 | SD card | /media/simatic/X51/ |
| X61 | USB stick | /media/simatic/X61/ |
Type the program name rather than pasting it: copies out of documents and web pages are exactly where the leading slash gets lost, and the wrapper path minus that one character names nothing. The parameter string is matched against a case-sensitive filesystem, so Manual.pdf, manual.pdf and Manual.PDF are three different names and only the one that matches byte for byte opens. Keep file names lowercase with no spaces. The Apps viewer still opens a badly named file because it browses the directory instead of matching a typed string — which is why "it opens from Apps" proves the file is present but says nothing about your path.
Worked example: MTP 1000 on the V17 line with MyPdf.pdf on X61 #
Inputs, each from the commissioning case:
- Panel: MTP 1000 Unified Comfort on the V17 firmware line.
- Program name as configured: opt/siemens/App_Restriction/runOkular.sh — no leading slash.
- Program parameters as configured: /media/simatic/X61/MyPdf.pdf.
- DisplayMode 0, Waiting for program end False.
- Observed: the button does nothing; the same file opens from Apps → PDF viewer.
The rule. The button opens the PDF only when all three hold at once: the firmware is at 17.0.2 or later in the V17 line, the program name is exactly /opt/siemens/App_Restriction/runOkular.sh, and the parameter string is exactly the mounted, case-exact path.
The arithmetic, written out.
Program name. Count the configured string: opt (3) + / (1) + siemens (7) + / (1) + App_Restriction (15) + / (1) + runOkular.sh (12) = 40 characters. The documented wrapper is the same 40 characters behind a leading slash: 1 + 40 = 41 characters. The configured name is one character short, so it does not name the script. Correction: prepend the slash, giving /opt/siemens/App_Restriction/runOkular.sh.
File path. The mount point is / (1) + media (5) + / (1) + simatic (7) + / (1) + X61 (3) + / (1) = 19 characters. Add the file name MyPdf.pdf (9 characters): 19 + 9 = 28 characters, /media/simatic/X61/MyPdf.pdf. Now compare against the stick itself: the file must be named exactly M-y-P-d-f-.-p-d-f. If the stick holds mypdf.pdf or MyPdf.PDF, the 28-character string matches nothing.
Firmware. Read the level in the panel's system information and compare the third version component against the boundary: 17.0.0 and 17.0.0.2 carry 0 where 17.0.2 carries 2, so both sort below the boundary. Below it, stop — the strings cannot fix it.
Result. With the panel at 17.0.2 or later in the V17 line and the corrected strings — Program name /opt/siemens/App_Restriction/runOkular.sh, Program parameters /media/simatic/X61/MyPdf.pdf, DisplayMode 0, Waiting for program end False — the button opens the PDF in the viewer. Panels below the boundary keep the dead button with this exact configuration.
Decision. Firmware below 17.0.2 in the V17 line: update the firmware first and change nothing in the project. Firmware at 17.0.2 or later with this configuration: the missing leading slash is the whole fault — correct the program name, compile, transfer, and the button works.
V18: show the PDF with a WebControl instead #
Carry that project to V18 and the button dies again, for a structural reason: Okular is removed and the viewer is Evince, so the runOkular.sh script your call names is not in the image. Do not hunt for a replacement wrapper name — the supported route on V18 is the WebControl. Place a web control on the screen and point its URL at the document. For a file on the panel's own media the address is file:///media/simatic/X61/manual.pdf — three slashes after file:, because the path starts at the filesystem root; the two-slash form is malformed and rejected. Prove the address before wiring anything by typing it into the panel's browser: if the browser opens the PDF, the control will render it too. Size the control to the area the document should fill.
Decision by case #
- V17 firmware below 17.0.2 (17.0.0, 17.0.0.2): update to 17.0.2 or later in the V17 line first; the project needs no change for the call to start working.
- V17 firmware at 17.0.2 or later: Program name /opt/siemens/App_Restriction/runOkular.sh with its leading slash, Program parameters the case-exact path under /media/simatic/X51/ or X61, DisplayMode 0, Waiting for program end False. Still dead: compare the file name against the card or stick character by character.
- V18: drop the StartProgram call and show the document with a WebControl using a file:/// address to the file on X51 or X61, or type that path into the panel's browser.
- StartProgram fired from the scheduler: trigger it from a Tag instead of a direct scheduler invocation.
Questions asked
What do the DisplayMode values do in StartProgram?
DisplayMode sets how the started viewer appears: 0 opens it as a normal window, 1 maximized, 2 full-screen. Keep 0 or 1 when the operator must still reach the runtime navigation while the document is open; use 2 for an operator manual that should fill the screen. The value never decides whether the PDF opens, because a wrong path fails the same way at all three settings.
Which file systems mount from the SD card and USB stick?
Format the card or stick FAT32 for both V17 and V18 firmware; V18 additionally auto-mounts exFAT. NTFS is not auto-mounted, so media formatted that way never appear under /media/simatic and the path in Program parameters resolves to nothing. If the Apps viewer cannot see the file either, the medium or its format is the problem, not the StartProgram call.
What does a firmware update wipe on the panel?
A firmware flash clears /opt/siemens/App_Restriction/, so any custom shell scripts you placed beside the shipped wrappers must be copied back after the update; the shipped wrappers return with the image. The compiled runtime project survives the flash. Take a full project backup before you start and confirm the firmware level the panel reports once it is back up.
Can the V18 WebControl open a PDF from a web server?
Yes. The WebControl accepts an http or https address as well as a file:/// path, so a document published on a plant documentation server opens with no card or stick in the panel. That suits manuals that change often, because the panel shows whatever the server currently serves; a local file on X51 or X61 only changes when someone swaps or rewrites the medium.