Skip to content

fix error

edited September 2019 in PLCnext Engineer

hi everyone.

Plesase to explain and fix the error : " the utilization of POU 'MEMCPY' is not supported " in PC Worx. 

thank you.

Comments

  • Hi manhkhunguong,

    the "old" Memcpy functionblocks are not longer directly supported from PC Worx. This is not a bug, but needed to be done for an enhanced stability.

    However, you can find in the change notes (available in our downloadcenter) the following note:

    The MEMSET, MEMCPY and IMEMCPY functions are no longer directly available for eCLRbased controllers.
    They have been replaced by the MEMORY_COPY and MEMORY_SET functions.

    Recommendation: Do not use the MEMCPY, MEMSET and IMEMCPY functions for eCLR-based controllers.
    If the functions cannot be replaced by the new MEMORY_COPY and MEMORY_SET functions due to the fact, for example, that they are used in a protected library, integrate the compatibility library (LegacyProConOS firmware library) into the project.
    The library provides these functions. Observe the following marginal conditions when using the new functions:

    – Only connect elements of a byte array or byte elements of structures to the SRC and DST input variables. Implicit addressing via xxx.B0 etc. is not permitted.

    – Only connect elements of the flag area to the SRC and DST input variables. Variables belonging to the input (%I) or output area (%Q) are not permitted.

    – Ensure that the complete area to be written or copied is within the area of the source or destination variable. In addition, you need to observe CNT and OFFSET. 

    Means by importing the legacy library LegacyProConOS  (add firmware library) you can still use existing code including the "old" functionblocks. 

    Take care

  • Hello manhkhuong,

    If you are using the last version of PCWorx, please include the Firmware-Library "LegacyProConOS.fwl" in your project. In PCWorx project select Librarys->Include->FirmwareLibrary->LegacyProConOS->LegacyProConOS.fwl.   After including and compiling, the failure message should be resolved (see also changes notes in PCWorx download area).

    Please note, this is the Forum for questions about PLCnext Engineer,  if you have any questions about PCWorx, please contact the AUTOMATIONWORX HOTLINE under

    +49 5281 9462888

    or via email
    automation-service@phoenixcontact.com

    Best,

    Eduard

  • thank for your assistance. I resolved my trouble.

Sign In or Register to comment.