Functions blocks with VAR_IN_OUT from version < 3.1.0 prevent the building of the application
Symptom: An application cannot be built and loaded onto the PLC. Instead, compiler errors are occurring.
Cause: You are using function blocks with in-out variables (= VAR_IN_OUT
) that have been created in a Neuron Power Engineer version < 3.1.0.
Additional information: The C-code required for →in-out variables within a function block has changed in Neuron Power Engineer version 3.1.0.
Solution:
-
If the function blocks are your custom ST/FBD function blocks in a project, perform the following steps:
-
If the function blocks are ST/FBD function blocks provided within a →library, contact the manufacturer of this library. Ask the manufacturer to install/start the current Neuron Power Engineer version, to clean the project containing the library elements and then to create and deploy a new version of the library.
As additional information on this problem: The function block has been specified by DEPLOY := OBJECT within the →library configuration. Due to this specification, the binary code for the function block is already required when the library is created. When creating the new version of the library, Neuron Power Engineer uses the binary code that has automatically been generated when the project has been cleaned. -
If the function blocks are vendor function blocks (see →vendor block), contact the manufacturer of the vendor function block. Ask him/her to correct the H-file and the C-file for these vendor function blocks. The documentation "Administrator's Manual" contains information on what kind of corrections must be made within these files.
If the function blocks are vendor blocks provided within a library, the manufacturer must create and deploy a new version of the library as well.
Take care that there is only a restricted downwards compatibility after the above steps. |