Enabling Function Keys on Siemens KTP400 Basic PN in TIA Portal

David Krause12 min read
HMI ProgrammingSiemensTutorial / How-to
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: Why Function Keys Appear Disabled on a KTP400 Basic PN

The SIMATIC KTP400 Basic PN (catalog number 6AV2 123-2DB03-0AX0) is a 4-inch widescreen HMI panel that combines a touch interface with four physical function keys (F1–F4). The panel is configured in TIA Portal using WinCC Basic (or higher, in compatibility mode) and communicates with the controller (e.g., S7-1200, S7-1500, LOGO!) over PROFINET.

A common commissioning complaint is that the F-keys look "dead": clicking on a function key in the screen editor produces no configurable events, the Properties > Events list is empty, or the Configure button is greyed out. The root cause is almost never a hardware failure; it is the global function-key assignment option that is enabled by default on every screen and template of a Basic Panel project. When global assignment is active, the F-keys are reserved for project-wide navigation actions (e.g., change screen, log on, log off) defined once at the panel level, and the per-screen event interface is suppressed.

This article documents the exact procedure to release F1–F4 for local screen-level or template-level event programming on a KTP400 Basic PN, the architectural differences between Basic and Comfort panels, and the verification steps to confirm the keys are firing in runtime.

Prerequisites

  1. Hardware: SIMATIC KTP400 Basic PN (6AV2 123-2DB03-0AX0) with firmware V14.0.0.0 or later. Earlier firmware (V12/V13) uses an identical procedure but renders dialogs in older style.
  2. Software: TIA Portal V14 SP1 or higher with WinCC Basic/Comfort installed. The KTP400 Basic PN is supported by all WinCC Basic versions; runtime simulation can be performed with the integrated RT Basic.
  3. Project structure: A compiled TIA Portal project containing the HMI device, at least one PLC connection (PROFINET or MPI/Profibus depending on order number), and at least one screen with the function keys visible in the screen layout.
  4. Tags and PLC connection: At least one configured HMI tag pointing to a PLC address — required to demonstrate press/release actions during verification.
  5. Siemens Knowledge Base access for the primary reference: Entry ID 109747178 - "How do you configure the function keys of SIMATIC Basic Panels?"

Function Key Architecture on Basic Panels

Basic Panels (KTP400 Basic, KTP700 Basic, KTP900 Basic, KTP1200 Basic) and 2nd-generation Basic Panels (KTP400 Basic 2nd, KTP700 Basic 2nd) share a simplified runtime compared to Comfort Panels. The runtime distinguishes three assignment scopes:

Scope Configuration Location Purpose Available on KTP400 Basic PN
Global assignment HMI device → Properties → General → Function keys Project-wide F-key actions such as screen change, logon, logoff, language switch, alarm acknowledgment Yes (default ON)
Template assignment HMI device → Templates → Function keys F-key actions that apply to every screen that uses the template Yes
Local screen assignment Screen → Properties → General → Assignment F-key actions that apply to one specific screen only Yes — but only when global assignment is disabled
Critical: Global and local assignments are mutually exclusive per key. The runtime evaluates the global assignment first; if a key has a global action, the per-screen event for that key is suppressed even if the screen contains a local event configuration. Always plan the F-key map before enabling the project.

Differences Between KTP400 Basic PN and KTP400 Comfort

Many field engineers assume the two KTP400 variants behave identically because they share a form factor. The runtime, however, is significantly different:

Feature KTP400 Basic PN (6AV2 123-2DB03-0AX0) KTP400 Comfort (6AV2 124-1DC01-0AX0)
Function keys (physical) 4 (F1–F4) 4 (F1–F4)
Global function key list Yes Yes
Per-screen F-key events (Press/Release) Yes — disabled while global assignment is active Yes — independent of global assignment
Per-template F-key events Yes Yes
F-key LEDs as feedback Not supported on Basic Supported via PROFINET/PROFIBUS LED tags
Global F-key bit-set on PLC Area pointer "Function key assignment" (16 bits) Same area pointer, plus extended 32-bit mode
Local F-key bit-set on PLC Limited to template + screen Full per-screen range pointer

The Comfort panel's runtime can hold both a global and a local action for the same key and will execute the local action in the active screen. The Basic panel runtime executes the global action and ignores the local event. This is why a programmer who has migrated a project from Comfort to Basic frequently sees the local events become "dead" — the F-key still fires, but the local handler is bypassed.

Step-by-Step: Enable Per-Screen Function Key Events

Follow this procedure in TIA Portal to release the F1–F4 keys for local programming on a KTP400 Basic PN.

Step 1 — Open the HMI Device Properties

  1. In the project tree, expand the HMI station (e.g., HMI_1 [KTP400 Basic PN]).
  2. Double-click Properties in the lower pane, or right-click the device and select Properties.
  3. Navigate to General → Function keys.
  4. Note the current state of the four keys. By default each key is mapped to a built-in global function such as Change screen (F1, F2) or Logon / Logoff (F3, F4).

Step 2 — Disable "Use Global Assignment" for a Specific Screen

  1. In the project tree, expand Screens and double-click the screen (e.g., Screen_1) you want to control locally.
  2. Select the screen background (click an empty area, not a control).
  3. In the Inspector window open the Properties tab, then the General section.
  4. Find the entry Assignment → Use global assignment. The default is checked.
  5. Uncheck Use global assignment.
Location tip: The option is also reachable through the screen context menu: right-click the screen → Properties → General → Assignment. If the dialog does not show "Use global assignment", verify that the HMI device is a Basic panel and that the project is compiled for the correct target (V14 or later).

Step 3 — Wire F-Key Events in the Screen

  1. With the screen still open, click the F-key button in the screen layout (e.g., the labelled rectangle at the bottom of the screen representing F1).
  2. The Inspector window now shows Properties → Events for that key.
  3. Click the Press event, then click the small ... button on the right to open the event list.
  4. Choose an action — for example, SetBit → select an HMI tag that is connected to a PLC bit (e.g., "HMI_to_PLC".StartMotor).
  5. Repeat for the Release event (e.g., ResetBit on the same tag) if the application requires a falling-edge action.
  6. Repeat Steps 3.1–3.5 for F2, F3, F4 as required.

Step 4 — Configure Template-Level F-Key Events (Optional)

If multiple screens should share the same F-key behavior, place the events in the template instead of duplicating them in every screen:

  1. Project tree → HMI → Templates → double-click the active template.
  2. Open the Properties of the F-key representation in the template.
  3. Configure the Press / Release events exactly as in Step 3.
  4. Screens using the template will inherit the behavior automatically.

Step 5 — Compile and Download

  1. Right-click the HMI device → Compile → Software (rebuild all).
  2. Resolve any warnings; the common warning "Function key F1 is assigned globally" disappears after Step 2.
  3. Transfer the project to the panel: right-click HMI device → Download to device → Software (all).

Verification: Confirm the F-Keys Fire in Runtime

Compile-time success is not enough — the F-key wiring must be proven at runtime. Use the following checks in order:

Check 1 — Visual Confirmation in WinCC RT Basic

  1. Start the runtime simulation: right-click HMI → Start runtime → select RT Basic.
  2. Navigate to the screen where you disabled global assignment.
  3. Press F1 (on the PC keyboard F1 acts as the panel's F1).
  4. The configured action — for example, a screen change, a tag toggle, or a value entry — must occur.

Check 2 — Online Tag Trace

  1. Open an HMI tag table (project tree → HMI Tags).
  2. Right-click the tag used in the F-key event and select Monitor/Modify.
  3. Press F1 on the runtime; the tag value must toggle exactly when the key is pressed.

Check 3 — PLC-Side Cross-Check

  1. Open the PLC tag table in the S7-1200/1500 project.
  2. Monitor the bit the HMI tag points to.
  3. Press F1 on the panel; the PLC bit must transition to TRUE within one PROFINET cycle (typically 1–4 ms).

Check 4 — Operator Panel LED (Comfort only — skip for Basic)

If the project is later migrated to a Comfort panel, the same procedure also exposes the F-key LED tag in the area pointer. On the Basic PN, this step is N/A.

Common Pitfalls and Field-Worked Solutions

Symptom Root Cause Corrective Action
F-key event list is empty in screen editor Global assignment is enabled for the screen Disable Use global assignment in screen properties
F-key fires global action despite local configuration Global action set at HMI device level overrides screen Clear the global F-key in HMI device → Function keys
F-key only works on template, not on individual screens Screen does not use the template that has the events Verify each screen's template reference in screen properties
F-key works in simulation, not on real panel Project was not fully rebuilt, only incremental Right-click HMI → Compile → Software (rebuild all)
Press event works, Release does nothing Release event not configured Add a Release event with ResetBit or alternate action
Wrong screen changes when F1 pressed F1 retained the default global "Go to start screen" mapping Re-edit HMI device → Function keys and clear F1
Tags do not update on PLC side HMI tag connection is wrong type (e.g., wrong DB offset) Verify the connection in HMI tag properties and PLC DB
Error 1301-4AD0 on download Project and panel firmware mismatch Match TIA Portal version to panel firmware, perform OS update if required

Comparing Configuration Paths: Global vs. Template vs. Local

For a typical KTP400 Basic PN application with 4 keys, the following decision tree is recommended:

  1. All screens need the same behavior (e.g., F1 = "Go to start", F2 = "Acknowledge alarms") → configure once at the HMI device level. The runtime overhead is the lowest.
  2. Most screens need a common behavior, but a few need local overrides → keep the global assignment for the common keys, disable global assignment only on the screens with overrides, and use the template for the common behavior.
  3. Every screen has unique F-key actions → disable global assignment on every screen and wire the F-keys locally. Note: this maximizes runtime look-up time but provides maximum flexibility.
Performance note: The KTP400 Basic PN runtime evaluates the F-key scope in this order — global, template, local. Disabling global assignment on all screens can add 1–3 ms of screen-change latency on large projects (>200 screens). Test on the real panel before committing the architecture to production.

Function Key Area Pointer: Using the PLC Bit Set

Even with the global assignment disabled, the Function key area pointer remains active. This is a 4-word (8-byte) area in the PLC that the panel writes to whenever a function key is pressed, regardless of which scope is active. The layout is:

Bit Offset Function Key Typical Use
Bit 0 F1 Set while F1 is pressed
Bit 1 F2 Set while F2 is pressed
Bit 2 F3 Set while F3 is pressed
Bit 3 F4 Set while F4 is pressed
Bit 4 K1 (virtual ACK key on touch) Acknowledge active alarm
Bit 5 K2 (virtual HELP key on touch) Show help for current screen
Bit 6 K3 (virtual INFO key on touch) Show info text for current screen
Bit 7 K4 (virtual ESC key on touch) Cancel current operation

Configure the pointer at: HMI device → Properties → Connections → Area pointer → Function key. Point it to a data block in the S7-1200/1500, e.g., DB100.DBW0 (offset 0). The PLC sees the same bit pattern whether the F-key is wired to a global, template, or local action — the area pointer is independent of the assignment scope.

Migration Notes: KTP400 Basic PN to KTP400 Comfort

When a Basic PN project is migrated to a Comfort panel (or upgraded to a KTP1200 Basic 2nd with the Comfort firmware option), the function-key handling changes:

  1. The Comfort runtime supports simultaneous global and local F-key events. A local Press event fires even when a global action is also defined for the same key.
  2. Basic panel projects use a 4-bit area pointer. Comfort projects expand this to a 32-bit pointer when enabled in the area pointer settings.
  3. F-key LEDs are exposed on Comfort panels as additional bits in the function-key area pointer — useful for indicating key acknowledgement back to the operator.
  4. Procurement: Comfort panels cost 3–5× the Basic PN equivalent. The migration decision should be driven by required features (PROFINET IRT, archives, scripts, Sm@rtServer) rather than F-key flexibility alone.

Firmware and Software Compatibility

Component Minimum Version Recommended
KTP400 Basic PN firmware V12.0.0.0 V14.0.0.0 or later
TIA Portal (WinCC Basic/Comfort) V13 SP1 V16 / V17 with HSP for V17 panels
S7-1200 PLC firmware V4.0 V4.4 or V4.5
S7-1500 PLC firmware V1.8 V2.9 or later
PROFINET IO update time 1 ms 1 ms (the panel supports 1 ms RT)

For panel firmware update procedure and recovery if the download fails, refer to the Siemens Knowledge Base entry 109747178 and the KTP400 Basic PN operating instructions (entry 109751546).

Field Commissioning Checklist

  1. Verify the panel part number on the nameplate matches 6AV2 123-2DB03-0AX0 (or compatible variant).
  2. Confirm PROFINET link: panel port 1 (X1) connected to the CPU's PROFINET port, link LED green.
  3. In the TIA Portal project, check Devices & Networks → the HMI is assigned to the PLC subnet.
  4. Compile → rebuild all → no warnings remaining.
  5. Download to device → select PG/PC interface → HMI → Ethernet.
  6. After panel reboot, open the configured start screen and press each F-key.
  7. Confirm in the PLC tag monitor that the expected bit transitions occur.
  8. Document the final F-key map in the project functional specification for future maintenance.

FAQ

Why is the function key event list empty on my KTP400 Basic PN?

The "Use global assignment" option is enabled by default in screen properties. Open the screen → Properties → General → Assignment and uncheck "Use global assignment" — the Press and Release event fields will then appear in the Inspector window for each F-key.

Can I assign a function key globally and locally at the same time on a KTP400 Basic PN?

No. The Basic Panel runtime evaluates only the global action. To use a local action, you must disable the global assignment for that screen; to use a global action, leave it enabled. The KTP400 Comfort panel supports both simultaneously, but the Basic PN does not.

Where do I find the global function key settings for the entire project?

Right-click the HMI device in the project tree → Properties → General → Function keys. Each of the four F-keys (F1–F4) and the four touch keys (K1–K4) can be mapped to built-in actions such as "Change screen", "Logon", "Logoff", or "Acknowledge".

Does the F-key area pointer work even when the local event is configured?

Yes. The function key area pointer is a separate runtime mechanism from the Press/Release event handler. The panel writes the bit pattern to the configured PLC address whenever any F-key is pressed, regardless of whether a global, template, or local event is active. See the HMI device → Connections → Area pointer → Function key settings.

What is the difference between F-keys and K-keys on the KTP400 Basic PN?

F1–F4 are the four physical membrane keys at the bottom of the panel. K1–K4 are virtual keys rendered on the touch screen (Acknowledge, Help, Info, Escape) and behave like F-keys in the runtime. Both share the same assignment mechanism in the project.

Back to blog