Skip to content

Sending namespaced data structures to the HMI.

Hi all,

I am currently experimenting with namespaces in version 2023.6 of PLCNext Engineer and ran into a problem. I can't seem to find a way to send namespaced data structures to the HMI. Is this possible or am I doing something wrong?

The symbol I created takes in a data structure called "Data" of type udt_HMI which belongs to the namespace CYCLONE.

In my program I have a function block called CYC of type fb_CYCLONE and this function block contains the relevant data structure that I want to send to the HMI.

The function block is configured to use the CYCLONE namespace, which, in this case, means that the data structure HMI is of type CYCLONE.udt_HMI. Same as the Data parameter required by the HMI symbol.

The picture below shows the instantiation of the function block in the program.

Yet, I cannot pass the CYCLONE.udt_HMI structure of the function block to the HMI symbol.

Here is the definition of the udt_HMI data structure inside the CYCLONE namespace.

Comments

  • edited August 2023

    Hi!

    It can be visible as gsd variable, but for some reasons, hided as local variable with hmi access activated for program and fb pous.

    But nevertheless can be reached in all cases by textual reference.

    .

Sign In or Register to comment.