Skip to content

Crash HMI using Check Box

When using a Check Box with an element of an array of Bool instead of a 'normal' Bool variabele, the HMI crashes with the text "The HMI application has stopped. An error occurred during data group registration." The element-index is within de boundaries of the array.

PLCnext Engineer: 2022.3.0, build 5.2.221.0

AXC F 2152, 0.2020.0.0

Comments

  • edited June 2022

    Dear Rob_W,

    Probably, you have to upgrade your plc firmware.

    I verify using check-box with array variable, and it seems ok for me.

    PLCnext Engineer: 2022.3.0, build 5.2.221.0

    AXC F 2152, FW 2022.3.0

  • Dear Oleksandr,

    Thanks for your reply. I will upgrade the plc firmware.

  • Also after a firmware-update to 2022.3.0 the HMI still crashes.

    In this case I don't use a Checkbox, but a Text-object which background color is determined by a variable.

    The variable is an element of an array [1..50] of Bool.

    It seems the HMI is not capable of handling bool-array's?

  • Ok, in PLCEngineer project itself, what PLC fw noted?

    Try to upgrade FW of PLC inside of the project.

  • In project same FW is noted as in controller (2022.3.0).

    HMI crashes when using PLC-variable-array directly.

    When using HMI-parameter (variable-UDT, exactly same array-type as PLC-variable) HMI does NOT crash.

    But in that case setting the variable is not possible (HMI-parameter is one-way direction PLC -> HMI).

  • You can easily use UDT variables for HMI symbols to control PLC side variable, not just monitor, but change.

    Please, find out way to share your code, because there is no troubles I meet when whrite to Symbol UDT-variable bool array and directly PLC-variable-array directly.

    Can't repeat your failures...

    Best regards.

  • You will not believe it ...

    I always put a space between the variabele name and the opening bracket. Like "Test [1]".

    Don't do that in a HMI variable field for boolean variable. The HMI will crash.

    Without a space ("Test[1]") the HMI works fine.

    I also use other arrays (of type Real) in Text objects and TextInput object. They work fine with a space.

    In Function blocks etc. the space is also no problem.

    I think a space must be possible and it should be corrected, but for now my problem is solved.

Sign In or Register to comment.