Troubleshoot a PCS 7 Module Driver Generation Error Reporting AdvLib91 Missing
An internal error in S7js7efx\driverupdate.cpp during module driver generation does not, by itself, identify the cause. In the reported PCS 7 V9.1 SP1 project migrated from V9.0 SP3, the later message Could not find library AdvLib91 remained even though Advanced Process Library (APL) V9.1 SP1 was reported installed. Treat this as an unresolved library-resolution or project-context problem: confirm the active installation, project version and block library before changing or reinstalling components.
Table of Contents
- What the Report Establishes
- Why Installation and Project Resolution Must Be Checked Separately
- Diagnostic Procedure
- Version Scope and Migration
- Verification
- Limitations and Operational Precautions
- Engineer FAQ
- Technical References
- Related Articles
- Related Tags
What the Report Establishes
The affected engineering environment was reported as PCS 7 V9.1 SP1, migrated from V9.0 SP3. During module driver generation, the user saw an internal error referring to S7js7efx\driverupdate.cpp; a subsequent screenshot was reported to show Could not find library AdvLib91. The user then stated that APL V9.1 SP1 was installed. The available record does not establish whether the library was registered, resolvable by the generator, or the one associated with the migrated project, and it does not report a confirmed resolution.
Why Installation and Project Resolution Must Be Checked Separately
An installed library and a library successfully resolved for a particular project operation are distinct facts. The reported error does not reveal which condition failed, and the internal source-file reference is not a public diagnostic code with a documented repair. PCS 7 V9.1 documentation separately warns that installing or removing older PCS 7 libraries, Basis libraries or APL after PCS 7 installation requires reinstalling the current Basis/APL through PCS 7 setup's GENERAL setup. That instruction applies to that installation history; it does not prove that reinstalling APL fixes every AdvLib91 error.
Diagnostic Procedure
Use these checks to identify which part of the environment differs before attempting a repair:
- Confirm the installed PCS 7 release and service pack on the engineering station, and record the exact APL and Basis Library versions shown by the installed media or product information. Do not infer the CFC or library version solely from the PCS 7 label.
- In the project, identify the library and block types used by the charts involved in driver generation. Compare those versions with the libraries available on the active engineering station. Preserve the archived project and do not upgrade or replace project libraries during diagnosis.
- Re-run the operation only after recording the complete displayed message and identifying the project and chart context. Determine whether the specific
AdvLib91message recurs, and whether it names any additional missing library or block. Do not interpretdriverupdate.cppalone as proof of a damaged installation. - Review the installation history for older PCS 7, Basis or APL library installs/removals performed after the PCS 7 setup. If that history matches Siemens' documented condition, follow the version-matched PCS 7 setup instructions for reinstalling the current Basis/APL through GENERAL setup. Plan the change on a backed-up engineering station and validate the project before using the station for production engineering.
- If the error persists, retain the exact message, PCS 7/CFC/APL/Basis versions, project migration path and relevant installation history for Siemens support or engineering review. The available evidence does not identify a specific registration, path or file-level repair.
Version Scope and Migration
The observed project migration was from PCS 7 V9.0 SP3 to V9.1 SP1. That history is relevant context, not evidence that the migration caused this error. PCS 7 V9.1 SP1 documentation contains version-specific library and upgrade notes; check the readme for the exact V9.1 SP1 installation and library combination in use. Do not apply procedures for a different CFC version or assume that a PCS 7 service-pack label establishes the installed CFC or APL version.
Verification
After any version-matched installation correction, reopen the preserved project and repeat module driver generation for the affected scope. Verify that generation completes without the missing-library message and inspect the resulting project changes before compilation or download. Successful generation does not establish that a controller download is safe; review the generated changes and follow the site's normal change-control, backup and download approval process.
Limitations and Operational Precautions
The record does not include the full diagnostic text, exact CFC version, project library details, installation history or a confirmed final resolution. S7js7efx\driverupdate.cpp is reported as an internal error location, not a documented root cause. The GENERAL setup instruction is conditional on the documented older-library installation/removal sequence. Do not delete library files, edit registry entries, copy libraries between installations, or download generated changes to a running controller based only on this message.
Engineer FAQ
Does installing APL V9.1 SP1 prove that AdvLib91 is available to driver generation? No. It confirms only the reported installation; the evidence does not show that the generator resolved the library for this project.
Does the error prove that migration from V9.0 SP3 caused the problem? No. Migration is the reported project history, but no confirmed cause was recorded.
Should I reinstall APL immediately? First compare installed and project library versions and review installation history. Siemens' reinstall instruction is conditional on older libraries being installed or removed after PCS 7 setup.
Is driverupdate.cpp a Siemens error code? It is the internal source-file name reported with the error; the available documentation does not define it as a standalone error code or provide a specific fix.
Can I download after driver generation succeeds? Generation success alone is not a download authorization. Inspect the resulting changes and apply site change-control and controller download procedures.
Technical References
- Siemens, PCS 7 Installation Manual: PC Configuration V9.1, section 5.4.9, “Installing older PCS 7 libraries” (conditional reinstall of current Basis/APL via GENERAL setup): https://cache.industry.siemens.com/dl/files/377/109794377/att_1057431/v1/ps7pck_b_en-US.pdf
- Siemens, PCS 7 Readme V9.1 incl. SP1 (Online), version 2023-02, document A5E51259286-AC (version-specific installation and library notes): https://cache.industry.siemens.com/dl/files/032/109801032/att_1076812/v2/pcs7-readme_en-US.pdf
- Siemens, CFC for SIMATIC S7 (V9.0 SP5), document A5E41356073-AF (CFC project and chart operations; not evidence of the reported error's root cause): https://cache.industry.siemens.com/dl/files/631/109782631/att_1035867/v1/s7cfcs7b_en-US.pdf?download=true
Related Articles
Related Tags
- SIMATIC PCS 7
- CFC
- Advanced Process Library
- Module driver generation