Troubleshooting SIMATIC powerrate Load Management (PRE_LMGM) User Archive Communication Errors in WinCC
In SIMATIC PCS 7 energy management architectures running SIMATIC powerrate (e.g., v4.0 SP1 or SP3), when the Load Management faceplate (PRE_LMGM) displays 'Transfer Active! Please Wait' followed by alarm 'Monitoring error archiving' and sets block output QMONERR_S = 1, the failure is caused by an architectural mismatch or timeout between the PLC communication blocks (PRE_UA_S / PRE_UA_R) and the WinCC User Archives. This error occurs when the User Archive structure in WinCC Explorer does not match the archive IDs (Arch_ID and ID parameters) configured in CFC, when outdated WinCC faceplates (@PG_PRE_LMGM.pdl) are mixed with newer AS library blocks, or when the WinCC User Archive service is unstarted.
Table of Contents
- SIMATIC Powerrate Load Management Architecture (PRE_LMGM and User Archives)
- Root Causes of 'Monitoring Error Archiving' (QMONERR_S = 1)
- Configuring Arch_ID and ID Parameters on PRE_LMGM and PRE_UA Blocks
- Resolving Faceplate and Block Version Inconsistencies (SP1 vs SP3)
- Diagnostic Matrix for SIMATIC Powerrate Communication Faults
- Step-by-Step Configuration and Recovery Procedure
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
SIMATIC Powerrate Load Management Architecture (PRE_LMGM and User Archives)
SIMATIC powerrate is Siemens' standardized energy management add-on for SIMATIC PCS 7 and WinCC, designed to monitor energy consumption, perform peak demand shaving, and execute automated load shedding.
The Load Management function utilizes a multi-tiered data exchange pipeline:
- PRE_LMGM (FB1065): The central load management controller in the S7-400 CPU that monitors active power against agreed utility contract limits and calculates shedding/restoration sequences.
- PRE_UA_S (FB1063) & PRE_UA_R (FB1064): Interface blocks that execute raw data read/write handshakes between the S7 controller and WinCC User Archives.
- WinCC User Archives: Stores load parameters, priority rankings, shedding times, and historical energy profiles in structured SQL tables.
- WinCC Faceplates (@PG_PRE_LMGM.pdl): Provide operator interaction, allowing energy managers to view and adjust load priorities directly from the runtime HMI.
Root Causes of 'Monitoring Error Archiving' (QMONERR_S = 1)
When the faceplate initiates a transfer and fails with QMONERR_S = 1 ('Monitoring error archiving'):
- Parameter ID and Arch_ID Misalignment:
- TheArch_IDparameter defines which specific User Archive table in WinCC is targeted.
- TheIDparameter defines the specific record index within that archive.
- IfArch_IDin CFC does not match the exact numeric ID of the User Archive generated in WinCC Explorer, the WinCC archive server rejects the read/write request. - Library Version Disparity (SP1 Blocks with SP3 Faceplates):
- In powerrate v4.0 SP1, archive tags and faceplates utilized legacy communication scripts.
- In powerrate v4.0 SP3, Siemens restructured internal archive structures to resolve trend locking bugs inPRE_SUM(FB1061). Mixing SP1 AS blocks with SP3 WinCC graphics files (@PG_PRE_*.pdl) triggers communication timeouts. - User Archive Runtime Service Not Running:
- If the User Archives option is not activated in WinCC computer startup properties, the communication handshake tags remain unserviced.
Configuring Arch_ID and ID Parameters on PRE_LMGM and PRE_UA Blocks
To establish valid communication paths between CFC and WinCC User Archives:
Arch_IDParameter: Must be set to the integer index of the corresponding User Archive defined in WinCC User Archives editor (e.g.,Arch_ID := 1for Load Management Configuration).IDParameter: Represents the unique feeder or load channel index (e.g.,ID := 1for Feeder 1,ID := 2for Feeder 2).- Ensure that the instance of
PRE_UA_S(Send) andPRE_UA_R(Receive) connected toPRE_LMGMshare identicalArch_IDvalues. - In WinCC User Archives editor, verify that the archive contains the exact column definitions required by powerrate (Field names:
ID,Name,Priority,Power,MinShedTime,MaxShedTime).
Resolving Faceplate and Block Version Inconsistencies (SP1 vs SP3)
When upgrading or deploying powerrate:
1. Uniform Update: Never extract blocks from an SP1 demo project into a PCS 7 system running powerrate v4.0 SP3.
2. Update Master Data Library:
- In SIMATIC Manager, open the Master Data Library.
- Copy the latest blocks (PRE_LMGM, PRE_SUM, PRE_UA_S, PRE_UA_R) from the powerrate v4.0 SP3 system library into the MDL.
- Execute Options > Charts > Update Block Types across all AS programs.
3. Update WinCC Graphics:
- Copy the latest @PG_PRE_*.pdl pictures from the powerrate installation folder into the OS project GraCS directory.
- Run OS compilation to synchronize tags.
Diagnostic Matrix for SIMATIC Powerrate Communication Faults
The table below outlines common powerrate diagnostic error bits:
Arch_ID; check WinCC User Archive serviceID record exists in WinCC User Archive tablePRE_UA blocksStep-by-Step Configuration and Recovery Procedure
Follow this procedure to resolve the communication failure:
Step 1: Verify WinCC User Archive Startup
- Open the WinCC project in WinCC Explorer.
- Open Computer Properties > Startup tab.
- Verify that User Archives is checked in the list of active runtime applications.
Step 2: Validate User Archive Table Structure
- In WinCC Explorer, open the User Archives editor.
- Ensure the powerrate archives are created (e.g.,
PR_LM_LOADS,PR_LM_CONFIG). - Check the Archive ID number; record the exact integer value (e.g., Archive ID = 10).
Step 3: Align CFC Block Parameters
- Open the CFC chart containing
PRE_LMGMandPRE_UA_S/PRE_UA_R. - Set parameter
Arch_IDto match the User Archive ID from Step 2. - Ensure the handshake trigger tags (
bJob,bDone,bError) are cleanly interconnected betweenPRE_LMGMand thePRE_UAblocks. - Compile and download changes to the AS controller in RUN mode.
Step 4: Test Faceplate Transfer
- Open WinCC Runtime; navigate to the Load Management screen.
- Open the
PRE_LMGMfaceplate and click Load from PLC. - Confirm that the status message transitions to 'Transfer Successful' and
QMONERR_Sremains 0.
Verification
To confirm that powerrate load management is functioning:
1. Faceplate Transfer Audit: Execute both 'Load from PLC' and 'Write to PLC' from the PRE_LMGM faceplate; confirm that data exchanges complete within 2 seconds without monitoring alarms.
2. User Archive Data Parity: Inspect the User Archive table in WinCC runtime; confirm that load shedding priorities match the live values displayed on the operator faceplate.
3. Simulated Load Shedding: Simulate a power surge exceeding the contract peak threshold; confirm that PRE_LMGM sheds secondary loads in accordance with configured priorities.
Limitations and Operational Precautions
Engineering teams must observe the following precautions:
- Modifying User Archive table schemas while WinCC runtime is active can corrupt historical energy logs; perform archive structure modifications during cold maintenance.
- SIMATIC powerrate requires valid commercial runtime licenses for WinCC User Archives and the powerrate package; ensure licenses are installed via ALM.
- Always validate final license quantities and MLFBs against the applicable Siemens catalog and authorized distributor quotation when procuring SIMATIC powerrate add-on packages.
Engineer FAQ
Where can I find the archive error logs in WinCC?
WinCC User Archive transaction errors are recorded in C:\Program Files (x86)\Siemens\WinCC\diagnose\UA_Trace.log.
Can SIMATIC powerrate operate without User Archives?
No. The advanced load management, 15-minute peak forecasting, and historical cost center accounting functions strictly require WinCC User Archives.
Does powerrate support both S7-400 and S7-300 controllers?
Yes. SIMATIC powerrate provides block libraries for both S7-300 (standard STEP 7) and S7-400 / CPU 410 (PCS 7 APL style).
Technical References
- SIMATIC Powerrate V4.0 Function Manual (A5E02697841)
- WinCC User Archives Configuration and User Guide (A5E37536415)
- Siemens Support: Troubleshooting SIMATIC Powerrate Communication (Entry ID: 109740190)
Related Articles
- Using WinCC User Archives Without Advanced Process Functions in SIMATIC PCS 7
- Archiving STRING Data Types in SIMATIC PCS 7 - S7_archive Limitations and Alternative Storage Solutions
- Integrating IEC 61850 Protection Relays in SIMATIC PCS 7 Power Control
Related Tags
- SIMATIC Powerrate
- PRE_LMGM
- User Archives
- Load Management
- Energy Automation