IMDTouchKnowledge BaseShop main store

Troubleshooting

Why an HMI CODESYS library stays unresolved after install

HMI and touchscreens Published 7 min read

Short answer

The placeholder stays unresolved because the project's library reference is stale, not because the library is missing online: the function blocks ship in the vendor CODESYS package installed on your PC. Delete the placeholder entry in the CODESYS Library Manager, add Weintek CODESYS Library from the Miscellaneous section, rebuild, and keep the logic layer in the CODESYS IDE — EasyBuilder Pro never reaches it.

On this page
  1. Why does my CODESYS project show an unresolved library placeholder?
  2. Why does the prompt to download the missing library fail?
  3. How do I clear the placeholder and bind the library?
  4. Is the package installed into the CODESYS IDE you are using?
  5. Can I program the CODESYS runtime from EasyBuilder Pro?
  6. How do I call the PID function block from ladder?
  7. How do I verify the fix before downloading to the HMI?
  8. What if the library still will not resolve?
  9. Questions asked

An unresolved vendor library in a CODESYS project is a stale reference, not a missing download: the project's placeholder points at a library that is not registered in the IDE you have open. Delete the placeholder in the Library Manager, add Weintek CODESYS Library from the Miscellaneous section, and rebuild. The online resolve prompt keeps failing because the function blocks ship only in the vendor CODESYS package installed on your PC, and the CODESYS runtime is programmed only in the CODESYS IDE, never from EasyBuilder Pro.

Why does my CODESYS project show an unresolved library placeholder? #

A placeholder is a symbolic reference that CODESYS fills in at build time, and it stays unresolved because the project's reference points at a library that is not registered in the CODESYS IDE you have open, usually after a package install or an IDE switch.

The mechanism is deliberate: a placeholder lets a project name a library without pinning an install path, and the IDE binds it at build time against the packages registered on that PC. Three situations break the binding:

  • The package was installed while the project was already open, so the running IDE never enumerated the new library.
  • The project was created against a different package revision than the one installed now.
  • The project is open in a different CODESYS IDE instance than the one the package was installed into.

The symptoms line up with those causes: the Library Manager lists the vendor library with a placeholder marker instead of a resolved version, the build stops with unknown-type or unknown-namespace errors where a POU calls the PID function block, and the IDE offers to fetch the missing library and then reports download failed.

Why does the prompt to download the missing library fail? #

The prompt looks for the library online, and it fails because the function blocks ship only in the vendor's CODESYS package that you install locally; there is nothing for the online resolve to pull.

The vendor library is not published as a standalone store package. It arrives inside the CODESYS & Remote IO package, which installs the device descriptions and the library together on the engineering PC. When the IDE cannot match the placeholder against anything local it falls back to its online source, finds nothing under that name, and reports download failed every time. Decision: ignore the prompt entirely; the repair is two clicks in the Library Manager, not a download.

How do I clear the placeholder and bind the library? #

Delete the placeholder entry in the Library Manager, click Add Library, and double-click Weintek CODESYS Library under Miscellaneous; that binds the project to the locally installed library directly instead of leaving CODESYS to resolve a stale symbolic reference.

Run the repair in this order:

  1. Confirm the vendor package is installed in the IDE you build with: open the Package Manager of that exact instance and check the package list.
  2. Close and reopen the IDE after installing, because package content is enumerated when the IDE starts and a running instance may not see a newly registered library.
  3. Expand Application → Library Manager in the project and select the placeholder entry in the list.
  4. Click the Delete button at the top of the Library Manager to remove the unresolved reference.
  5. Click Add Library, open Miscellaneous, and double-click Weintek CODESYS Library.
  6. Run a clean build, rebuild the application, and log in to the HMI runtime again.

After the last step the compiler binds the vendor blocks against a concrete, versioned library entry, and the download carries that binding to the runtime.

Is the package installed into the CODESYS IDE you are using? #

Check the Package Manager inside the exact IDE you build with; several CODESYS versions can sit side by side, and a package installed into one instance is invisible to another, so the library resolves in one project and stays a placeholder in the next.

If the package list is empty after a seemingly successful install, the installer probably could not write the library repository under the CODESYS installation directory; relaunch the IDE as Administrator, reinstall, and check again.

Worked example, revision check: a project was written against package 1.4.0.435 — the release that added CODESYS Recipe Manager support and support for iR-ECAT v1.04 — and opens on an engineering PC that, for example, has 1.3.9.214 installed. Compare the version fields from the left: 1 equals 1, and at the second field 3 is less than 4, so the installed package is a minor revision behind and lacks everything that second field bought, Recipe Manager support included. Decision: install package 1.4.0.435 or later into this instance, restart the IDE, then run the delete-and-re-add from the repair list above.

Can I program the CODESYS runtime from EasyBuilder Pro? #

No — CODESYS is a separate runtime built into the HMI and programmed only with the CODESYS IDE, while EasyBuilder Pro handles the visualization and tag layer, exchanging data with the CODESYS application over the HMI's internal interface.

Keep the layers separate in your head as well as in the tools: logic, function blocks and their instances live in the CODESYS project; screens, tags and alarms live in the EasyBuilder Pro project. No EasyBuilder dialog lists the CODESYS library, which is why a missing block is invisible from the screen editor and why installing screen software never supplies it. The runtime side keeps its own objects while the panel runs — reading a USB datalog from an HMI in the CODESYS runtime shows the same separation in practice.

How do I call the PID function block from ladder? #

Add a new POU with Ladder Logic Diagram (LD) as the implementation language, insert an empty box on the first rung, type weintek. to bring up the namespace list, pick PID, and name the instance in the Auto Declare dialog.

The full path: right-click Application, choose POU under Add Object, set the implementation language to Ladder Logic Diagram (LD), and give the POU a name such as OvenControl. Right-click the first rung, select Insert Empty Box, click the text field at the top of the box and type weintek. — the namespace-qualified list appears — or open the Input Assistant through the ellipsis button and browse the library. Select PID and confirm. The Auto Declare dialog opens: name the instance, for example fbOvenPID, keep the scope at VAR, and confirm, which creates the instance in the POU's declaration section — the same function-block-instance pattern described for multi-instance Modbus blocks and MB_DB links in an S7-1200.

Wire the machine-ready contact in series ahead of the box so the block executes only when the process is permitted, and prove the loop with the output disconnected before it drives a real heater. Add the POU to the cyclic task, MAST or the equivalent: a POU that no task calls compiles cleanly and never executes.

Call the block every scan. A PID block integrates against elapsed time, so skipping scans makes the integral and derivative terms see an inconsistent sample interval; use the block's own enable input instead of gating the call, and handle bumpless transfer through that input. Pin names, data types, scaling and tuning semantics change between library revisions, so check the library document for the installed revision before wiring setpoint, process value and output.

How do I verify the fix before downloading to the HMI? #

Walk five checks: the Library Manager shows a concrete version with no placeholder marker, typing the namespace prefix lists the library POUs, a clean build reports zero errors, the runtime accepts the download, and the task configuration shows the POU being scanned with live values.

  • Library Manager: the Weintek entry shows a concrete version, no placeholder warning.
  • Namespace binding: an editor lists the library POUs, PID included, once the prefix is typed.
  • Build: clean all, rebuild, finish with zero errors and no unresolved references.
  • Login: the runtime accepts the application with no version-mismatch dialog.
  • Task view: online monitoring shows the ladder POU under the cyclic task with live values, and the output moves only while the enable input is TRUE.

What if the library still will not resolve? #

Three causes remain after a correct delete-and-re-add: the package sits in a different IDE instance than the one reporting the error, the install could not write the library repository, or the repository entry itself is missing. Each has a two-minute check.

  • Instance: open the Package Manager in the exact IDE that reports the error and confirm the vendor package is listed there; install into that instance if it is not.
  • Rights: relaunch the IDE as Administrator and reinstall so the installer can write the repository under the CODESYS installation directory.
  • Repository: open the Library Repository and confirm an entry exists for the library; an empty list after a successful-looking install means the write failed silently, and the Administrator reinstall fixes it.

Decision: the placeholder never clears from the screen side and never clears from the online store; it clears in the Package Manager and the Library Manager of the IDE you build in, and once the entry shows a concrete version the project is bound and the download goes through.

Questions asked

Which package installs the Weintek CODESYS library?

The vendor's CODESYS & Remote IO package installs the device descriptions and the CODESYS library together. Release 1.4.0.435, for example, added CODESYS Recipe Manager support, support for iR-ECAT v1.04 and an updated library; fetch the current package from the vendor's download area and install it into the CODESYS IDE you build with.

Where do I find pin names and scaling for the PID block?

In the CODESYS Library document that ships with the package; the vendor's download area lists it beside the installer. It gives pin names, data types, scaling and tuning-parameter semantics for your revision. Check enable and manual inputs, gain versus proportional band, seconds or milliseconds as the time base, and output limits there rather than assuming a generic PID interface.

Why does the HMI reject the download after the library resolves?

The IDE bound the library, but the runtime on the HMI is older than the library version, so login refuses an application compiled against newer blocks. Align the HMI runtime revision with the installed package revision, rebuild, and download again; the mismatch shows up at login, not at compile time.

Does the CODESYS IDE run on the HMI itself?

No. The HMI carries only the CODESYS runtime; the IDE runs on an engineering PC, connects to the panel over the network, and downloads the compiled application. That split is why the package fix happens on the PC while the HMI itself needs no library work.

Keep reading

  • How-to

    Scaling Analog Inputs for Both PID and HMI Display in Ladder

    Configure the 1769 analog channel for engineering units X1 across the transmitter span, set the CompactLogix PID scaling to the same range, and display that one tag on the PanelView Plus. Decimal-place settings change appearance only; add a single CPT rate-and-offset rung only when a consumer needs different units.

    HMI and touchscreens

  • Explainer

    Which software programs an S7-300 PLC and which runs the HMI

    STEP 7 is the package that programs an S7-300: the classic line works through SIMATIC Manager, and the TIA Portal generation also covers these CPUs. WinCC and WinCC flexible never program the controller; they build and run the visualization. 'SIMATIC WinCC' is a product name, not a second programming category.

    HMI and touchscreens

  • How-to

    PLC timer value on an HMI: start, stop and show after a win

    Time the run in the PLC, not on the panel. A TONR accumulator runs while Sensor 1's run-active bit is high, Sensor 2 copies the elapsed value into a result tag and sets the win bit, and the KTP600 shows that one tag on an I/O field while the PLC-driven screen change opens the winning screen.

    HMI and touchscreens