LD: confusion between FB input and global variable

LD: confusion between FB input and global variable

Summary

In zenon Logic, the global variable is used instead of the local parameter in certain constellations in the Ladder Diagram (LD). This has been fixed.

Description

In zenon Logic, a user-defined function block has an input parameter. This has the same name as a global variable. The user-defined function block was programmed in the LD language. The compiler in the LD diagram takes the values of the global variables instead of the values of the local input parameter.

This error has been fixed. Now, as expected, the value of the local input parameter is used.

To benefit from this fix:

  • Update your zenon Software Platform to the latest build of zenon 14 or higher.


Item ID: 282242
Version: 14.00 Build: 239777
Version: 8.20 Build: 250795
    • Related Articles

    • zenon Changesets Excel

      Here, you can access a comprehensive list of changes across all maintained versions of the zenon Software Platform as Excel Worksheets. This includes both implemented bug-fixes and new features. Additionally, these lists are available in CSV format ...
    • zenon Changesets CSV

      Here, you can access a comprehensive list of changes across all maintained versions of the zenon Software Platform as Excel Worksheets. This includes both implemented bug-fixes and new features. Additionally, these lists are available in as Excel ...
    • zenon logic: 1 gain FB with LD can't assign a structure to a structure

      Description In zenon Logic it was not possible to add a structure to a structure in LD. However, this is possible in ST and FDB. As a workaround, you can activate the "LD optimizations" option in the project settings in LD. This behavior has been ...
    • Compiler crashes when parsing a LD program

      Description zenon Logic is terminated unexpectedly when building an LD program. The cause is the handover of a two-dimensional array to a UDFB that expects a one-dimensional array as input. This cannot work and leads to an error. It is expected that ...
    • SYSDRV "[Project summary] Input set value: Current default set value" variable inconsistent values over Logic Service to Service Engine connection fieldbus

      Description In zenon the system driver variable "[Project summary] Input set value: Current default set value" does not correctly transmit values that are shared with zenon Logic via shared memory. If values are changed, the previous values are still ...