Overview: Why OP17 Clock Adjustment Requires Standard Screens
The Siemens SIMATIC OP17 is a compact text-display HMI from the OP3/OP7/OP17/OP27 family, used historically with SIMATIC S7-200, S7-300, and S7-400 PLCs. Configuration is performed in ProTool (V6.x) or ProTool/Pro. The panel firmware contains built-in routines for date/time editing, contrast adjustment, password administration, and language switching, but these routines are not exposed on the runtime screen unless either (a) the project is created with the Use Standard Functions option enabled, or (b) a F-key is manually configured to call the Time/Date system function.
If neither path was taken at project creation, the operator has no visible way to adjust the panel clock. This document covers the full recovery procedure: enabling standard screens, manually mapping a F-key to the Time/Date function, configuring the area pointer that propagates the panel time to the S7 PLC, and field-commissioning the resulting clock adjust workflow.
Prerequisites and Required Components
| Item | Specification / Source |
|---|---|
| Hardware | Siemens SIMATIC OP17 operator panel (verify variant against the device label; refer to the Siemens support portal for the device manual covering your specific OP17 variant) |
| Configuration software | ProTool V6.0 SP3 or later, or ProTool/Pro V6.0 SP2 minimum |
| Communication cable | RS-232 null-modem cable, or MPI/PROFIBUS PC adapter (e.g., 6ES7 972-0CA23-0XA0) |
| PLC connection | SIMATIC S7-200, S7-300, or S7-400 with MPI, PROFIBUS, or RS-232 port |
| Source project file | Existing *.pdb or *.pdz ProTool project (when adjusting an installed project) |
| STEP 7 / Micro/WIN | Required for PLC-side area pointer configuration and clock synchronization |
| Firmware | OP17 firmware compatible with the ProTool version in use; verify via Menu → System → Version |
OP17 Standard Screen Architecture
The OP17 firmware embeds a small set of pre-defined system functions addressable from any project. The Standard Screens concept in ProTool is a menu tree that invokes these firmware functions. ProTool does not generate the functions themselves; it generates the F-key assignments that call them.
| System Function | Description | ProTool Parameter String |
|---|---|---|
| Time/Date | Edit panel internal RTC; optionally write to PLC area pointer | Time/Date |
| Contrast | Adjust LCD contrast for ambient lighting | Contrast |
| Password | Set/modify operator passwords and access levels | Password |
| Language | Switch between configured runtime languages | Language |
When the project is created with Use Standard Functions selected, ProTool auto-generates a F-key menu that lists all four functions. When the project is created without this option, no menu is generated; the firmware routines are still present, but no F-key is mapped to them, and the operator has no entry point.
Decision Path: When to Use Which Method
| Scenario | Recommended Method |
|---|---|
| New project being created | Method 1: Enable Use Standard Functions at project creation |
| Existing project, source under version control | Method 2: Add a single F-key mapped to Select Function Screen: Time/Date |
| Existing project, source not available, no rebuild possible | Use panel service menu (see Key Combinations section) |
| Migrating to WinCC flexible or TIA Portal | Use TIA Portal Set Date/Time system function on a button event |
Method 1: Recreating the Project with Standard Screens Enabled
This is the cleanest method when the project can be rebuilt. The procedure preserves the PLC tag database and communication configuration if the new project is started from the same PLC integration.
- Open ProTool on the engineering PC.
- Select File → New Project and choose OP17 as the panel type.
- Select the communication partner (S7-200 MPI, S7-300 MPI/PROFIBUS, etc.) and configure the MPI address or PROFIBUS station number to match the physical panel.
- In the project configuration dialog, locate the checkbox Use Standard Functions (the label may appear as Standard Screens or Use standard functions depending on ProTool version and localization). Enable this option.
- Confirm the project is built. ProTool will now include the standard screens in the project tree under Standard Screens, with auto-generated F-key assignments.
- Re-create or import all user-defined screens, tags, and alarms as required.
- Compile the project (File → Compile → All).
- Transfer the new project to the OP17 via RS-232 or MPI/PROFIBUS using File → Transfer → Project.
- Test by powering the panel, pressing the F-key assigned to the standard screen, and verifying the Time/Date editor appears.
Method 2: Adding a Time/Date F-Key to an Existing Project
When the existing project cannot be replaced, add a single F-key that invokes the Time/Date standard function. This method does not generate a full standard screen menu; it only exposes the Time/Date function on a specific F-key, leaving the rest of the project unchanged.
- Open the existing ProTool project file (*.pdb or *.pdz).
- Navigate to Project → Screens → [Target screen] where the F-key should appear. Choose a screen the operator accesses routinely (e.g., the main process screen).
- Right-click on the F-key location (F1-F16, depending on screen layout) and select Configure F-Key.
- Set the function type to Select Function Screen.
- Set the parameter to Time/Date (or
Time_Datedepending on ProTool localization; the German localization uses Uhrzeit/Datum). - Optionally enter a label text (e.g., Clock Adjust, Time/Date, or Set Time). The label appears on the F-key strip of the OP17.
- Save the project and transfer to the OP17.
After transfer, pressing the configured F-key on the panel will invoke the firmware Time/Date editor. The operator can modify hours, minutes, day, month, and year using the panel's numeric keypad, and the new value is committed on ENTER. Depending on the panel's communication configuration (see Communication Setup below), the new time can also be written to the PLC.
Sample ProTool F-Key Configuration Export
[Screen: Main_Process]
F1 = (empty)
F2 = (empty)
F3 = Select Function Screen, Parameter = Time/Date, Label = "Clock Adjust"
F4 = (empty)
...
Key Combinations for Accessing Standard Screens at Runtime
The OP17 runtime behavior for accessing standard screens depends on the project configuration. There are three common scenarios. The exact key combination patterns vary by OP17 firmware revision; the patterns below are observed across the OP3/OP7/OP17/OP27 family. Always verify against the device manual for your specific firmware.
Scenario A: Standard Screens Enabled in Project (Method 1)
When the project was created with Use Standard Functions enabled, the panel displays a standard screen entry point. The key combination depends on the firmware version:
- Press the F-key labeled "Standard" (or "System" / "Menü") from any project screen. ProTool auto-generates this label when standard screens are enabled.
- Use the ESC + ENTER combination to enter the System Menu, then navigate with arrow keys to the standard screen.
- Hold F1 + ESC during power-on to access the system menu directly without booting the project.
Verify the exact combination for your firmware by inspecting the user-defined F-key labels generated by ProTool when Use Standard Functions is selected.
Scenario B: Time/Date F-Key Manually Configured (Method 2)
When a single F-key is mapped to Select Function Screen: Time/Date, the operator presses that specific F-key from the configured screen. The Time/Date editor opens immediately. This is the most common pattern for retrofitting clock adjust on an existing OP17 project.
Scenario C: No Standard Access Configured (Recovery Path)
If neither standard screens nor a F-key mapping exists, the only access path is via the panel's hidden service menu. The exact key combination depends on the OP17 firmware revision; the patterns below cover the most commonly observed cases:
- Power off the OP17.
- Hold ESC + ACK while powering on.
- Release the keys when the panel displays the system menu.
- Navigate to System → Time/Date using the arrow keys.
- Edit the time using the numeric keypad and confirm with ENTER.
- Exit the service menu and reboot into the project.
Communication Setup and PLC Clock Synchronization
Clock adjustment on the OP17 is operationally meaningful when the panel's time is propagated to the connected PLC. The typical pattern uses the panel's date/time as the master and the PLC clock as a slave that is corrected on each operator clock adjust. This requires the Date/Time PLC area pointer to be configured in ProTool.
Area Pointer Configuration in ProTool
| Area Pointer | Direction | Purpose | Typical DB / Address |
|---|---|---|---|
| Date/Time PLC | OP17 → PLC | Panel writes current date/time to PLC on every change | DB100, bytes 0-7 (BCD) |
| Date/Time OP | PLC → OP17 | PLC pushes time to panel (less common; used for slave operation) | DB100, bytes 8-15 (BCD) |
| Coordination | Bidirectional | Handshake for read/write coordination | DB100, byte 16 (bit fields) |
To configure the area pointer in ProTool, navigate to Project → Connections → Area Pointers and add the Date/Time PLC pointer with the target DB and byte offset. The BCD encoding is fixed by the OP17 firmware and cannot be changed.
BCD Time Format Detail
The OP17 writes date/time to the PLC in 8 bytes of BCD-encoded data following the standard S7 DATE_AND_TIME layout (without the day-of-week and reserved bytes):
| Byte Offset | Content | Range (BCD) |
|---|---|---|
| 0 | Year | 90-99 (1990-1999) or 00-89 (2000-2089) |
| 1 | Month | 01-12 |
| 2 | Day | 01-31 |
| 3 | Hour | 00-23 |
| 4 | Minute | 00-59 |
| 5 | Second | 00-59 |
| 6-7 | Milliseconds + weekday | 0-999 ms, 1-7 (Sun=1) |
S7-300/400 Sample STL Snippet (Clock Sync from OP17)
// On rising edge of "clock_sync_done" from OP17 coordination byte,
// push panel time into the PLC internal clock.
// Area pointer: DB100, bytes 0-7 (BCD, DATE_AND_TIME format)
CALL "SET_CLK" // SFC 0 - Set Time-of-Day
PDT := DB100.DBB0 // Point to DATE_AND_TIME buffer
RET_VAL := MW200 // Return code (0 = no error)
// Alternative: read with READ_CLK (SFC 1) and compare
S7-200 Sample (Micro/WIN)
The S7-200 family uses subroutines SBR 61 (READ_RTC) and SBR 62 (SET_RTC). To synchronize the S7-200 clock from the OP17, copy the 8-byte BCD area pointer into a data register and call SET_RTC on the operator's clock adjust confirmation. A typical implementation reads the BCD area into VB100-VB107 and passes the address to SBR 62.
// S7-200 Micro/WIN ladder snippet
NETWORK 1
LD SM0.0
// On rising edge of clock_sync_done bit, call SET_RTC
CALL SBR62:SET_RTC, T:&VB100
Verification and Commissioning
After project transfer and area pointer configuration, verify the clock adjust function end-to-end before releasing the panel to operations.
- Apply power to the OP17 and wait for full startup (typically 5-10 seconds).
- Press the F-key mapped to Time/Date (or navigate to the standard screen via the menu).
- Confirm the Time/Date editor appears within 1 second and shows the current panel time.
- Modify the time by 1-2 minutes ahead of the current time. Confirm with ENTER.
- Observe the panel display update to the new time.
- Open the S7 PLC online (via STEP 7 or Micro/WIN) and inspect the area pointer DB to confirm the new time was written.
- Trigger a
SET_CLK/SET_RTCin the PLC (or verify automatic sync if the PLC program is configured to run on change) and confirm the PLC internal clock was updated. - Power-cycle the panel for 30 seconds. Re-apply power and confirm the OP17 retained the new time across the outage.
Acceptance Criteria
| Check | Expected Result | Pass Criteria |
|---|---|---|
| F-key invokes editor | Time/Date screen displays within 1 second of F-key press | No error, screen renders |
| Time write to PLC | Area pointer DB bytes 0-7 show new BCD time within 2 seconds | DB content matches operator input |
| PLC clock sync | PLC internal clock matches operator-entered time after sync trigger | Time matches within 1 second |
| Persistent across power cycle | OP17 retains time across 30-second power-off | Time matches pre-outage value |
| Daylight/date rollover | Month/day boundaries handled correctly (e.g., 31 → 1, 12 → 1) | No date corruption |
| BCD encoding | DB shows BCD values (e.g., 0x23 for hour 23, not 0x17) | Format matches S7 DATE_AND_TIME |
Troubleshooting Matrix
| Symptom | Probable Cause | Corrective Action |
|---|---|---|
| F-key does nothing when pressed | F-key not configured to Select Function Screen | Re-open project, assign F-key to Select Function Screen: Time/Date, re-transfer |
| "No Standard Screen" or blank message displayed | Project created without Use Standard Functions option | Use Method 2 (manual F-key assignment) or rebuild the project with standard screens enabled |
| Time/Date editor appears, but PLC time not updated | Area pointer Date/Time PLC not configured or DB address incorrect | Configure the area pointer in ProTool, verify the target DB exists in the PLC program |
| Time reverts to 1990-01-01 (or 90-01-01 BCD) after power cycle | Panel internal backup battery discharged or removed | Replace the OP17 internal backup battery (verify the exact part number against the device manual; many OP17 variants use a CR2032 or panel-specific lithium cell) |
| Time enters but cannot be saved (no ENTER response) | Operator password level too low for time edit; or panel is in a locked state | Adjust password level in ProTool, or log in as administrator before editing time |
| Time displayed as #### or invalid characters in PLC DB | BCD format mismatch in DB configuration; or DB is the wrong type | Verify the target DB uses BCD, not INT or REAL; verify byte order matches the S7 DATE_AND_TIME layout |
| OP17 cannot connect to PLC after project transfer | Project communication parameters overwritten during rebuild | Re-enter MPI address, baud rate, and PROFIBUS station number to match the physical panel and PLC configuration |
| Transfer fails with "Firmware version mismatch" | ProTool version newer than panel firmware; or vice versa | Update panel firmware via the OP17 service menu, or use a ProTool version compatible with the panel firmware |
| Time appears to save but reverts after a few minutes | PLC program is overwriting the area pointer on each PLC cycle | Inspect the PLC program for write access to DB100 bytes 0-7; restrict the panel to write-only or use coordination byte |
| Daylight saving time transition causes one-hour offset | OP17 does not auto-handle DST; PLC may or may not | Document DST behavior with operators; adjust manually at DST transitions, or implement DST logic in the PLC program |
Migration to WinCC Flexible and TIA Portal
The OP17 is supported in ProTool but not in WinCC flexible or TIA Portal. For installations planning to migrate to a newer HMI platform, the recommended replacement is the SIMATIC Basic Panel series (e.g., KTP400 Basic, KTP700 Basic) or a Comfort Panel (e.g., KTP1200 Comfort). The clock-adjust use case is preserved across all of these platforms.
- Export the ProTool project to a CSV tag list (File → Export → Tags) for import into WinCC flexible or TIA Portal.
- Document all F-key assignments and standard screen configurations from the ProTool project, as these do not migrate automatically.
- In WinCC flexible or TIA Portal, recreate the Time/Date function using the Set Date/Time system function on a button event.
- Verify the area pointer configuration in the new HMI project, as the syntax differs from ProTool. In TIA Portal, area pointers are configured under Connections → Area Pointers.
- Re-validate the PLC-side
SET_CLK/SET_RTClogic against the new area pointer DB layout.
Operational Notes for Aging OP17 Installations
OP17 panels in service today are often 15-20+ years old. Several age-related failure modes interact with the clock adjust function and should be considered during routine maintenance.
- Backup battery depletion: The OP17 uses an internal lithium battery to retain time and project data across power cycles. Typical service life is 5-10 years. When depleted, the time resets to default on power-up. Replace with the panel-specific battery type listed in the device manual. Schedule battery replacement as a preventive maintenance task every 5 years in continuously powered installations, or every 7-8 years in installations that are powered down frequently.
- Display contrast degradation: The contrast standard screen (or manual contrast F-key) is increasingly relevant as the LCD ages. Schedule periodic contrast checks during preventive maintenance visits.
- Keypad contact wear: Worn F-keys may register as "stuck key" events and prevent the standard screen from launching correctly. Inspect the keypad membrane for cracks or wear, and clean the contacts with isopropyl alcohol if contamination is suspected.
- ProTool project archival: Ensure the ProTool project file is archived with the panel. Without the source project, recovery from a corrupted panel requires manual reconstruction of all screens and tag mappings.
- Communication cable condition: MPI/PROFIBUS connectors on aging panels often develop contact resistance issues. Inspect the connector pins for oxidation and reseat the cable during routine maintenance.
Best Practices for OP17 Clock Adjust Deployments
- Always enable Use Standard Functions at project creation when building a new OP17 project. The marginal project size increase is offset by the significant reduction in support effort when the operator can access all standard functions from a single menu.
- Document the F-key mapping in the panel drawing and in the operator training material. Operators should know which F-key invokes the Time/Date editor without trial and error.
- Configure the Date/Time PLC area pointer even if the PLC program does not currently synchronize its internal clock. This keeps the architecture ready for future PLC-side clock sync without requiring an HMI project update.
- Restrict the time-edit function by password level. In ProTool, the Time/Date function can be assigned a password level. Restrict the edit to a higher access level to prevent accidental time changes by untrained operators.
- Use the coordination byte if both the OP17 and the PLC need to write date/time values. The coordination byte handshake prevents write contention and reduces the chance of corrupted time data in the PLC DB.
-
Schedule DST handling in the PLC program rather than relying on operator action. Most regions require two manual time changes per year, and operators frequently forget. PLC logic that detects the DST transition and calls
SET_CLKautomatically is more reliable than operator-driven adjustment.
Why does the OP17 not show a Time/Date menu when I press the standard key?
The project was created in ProTool without the Use Standard Functions option enabled, so the standard screens were not auto-generated in the project. You can either rebuild the project with standard screens enabled, or manually add a F-key mapped to Select Function Screen with the parameter Time/Date (see Method 2 above).
What ProTool version is required to configure the OP17 standard screens?
ProTool V6.0 SP3 or later is the minimum for full OP17 support including all standard functions. ProTool/Pro V6.0 SP2 is required for the full feature set including password administration and advanced area pointer configuration.
Can the OP17 write the operator-adjusted time back to the S7 PLC?
Yes, by configuring the Date/Time PLC area pointer in ProTool. The OP17 writes the current date/time in BCD-encoded format (S7 DATE_AND_TIME layout) to the configured DB on the PLC. The S7 program must then call a system function (SFC 0 SET_CLK for S7-300/400, or SBR 62 SET_RTC for S7-200) to apply the time to the PLC internal clock.
What key combination opens the OP17 service menu without a configured F-key?
The exact combination depends on the OP17 firmware revision. Common patterns include holding ESC + ACK during power-on, or pressing F1 + ESC at startup. Refer to the OP17 device manual for the firmware-specific combination. Reserve the service menu for commissioning; routine clock adjustment should use a F-key mapped to the standard function.
What replaces the OP17 Time/Date function on a current-generation SIMATIC panel?
The SIMATIC Basic Panel and Comfort Panel series in TIA Portal expose the same clock-adjust use case through the Set Date/Time system function, configurable on any button event. Area pointer configuration is similar but uses the TIA Portal connection editor instead of the ProTool area pointer dialog. The KTP400 Basic and KTP700 Basic are typical replacements for the OP17 footprint.