BITS N BYTES

Referencing NX Structure in NA HNI

5 posts in this topic

I have a structure in the NX controller that consists of three arrays, LREAL, BOOL and BOOL each 30 deep.

Trying to link these to an NA HMI but cannot for the life of me figure out correct syntax!!

Used Variable Mapping on the NA HMI to point to the NX structure but cannot figure out the syntax required.

 

 

NX Structure.jpg

myStucture_Arys in NX.jpg

myStucture_Aryin NA.jpg

myStucture_Aryin Na Variable.jpg

Share this post


Link to post
Share on other sites

Do you have a variable in the PLC created with the custom structure?

Share this post


Link to post
Share on other sites

In the NA it would be tagname.structuremember(arrayelement)

NX_Controller_my_Structure.arry_lreal_Positions(1) 

 

Edited by chelton

Share this post


Link to post
Share on other sites

You da man Chelton!!!!

dang if I was using square brackets for array pointer [[[[[[[[[   ]]]]]]]]]]]]]]]]]]]]]]]

Round brackets fixed it (((((((((((((((           ))))))))))))))))))))).

What a simple solution. THANKS A MILLION

Share this post


Link to post
Share on other sites
On ‎9‎/‎6‎/‎2020 at 5:10 PM, BITS N BYTES said:

You da man Chelton!!!!

dang if I was using square brackets for array pointer [[[[[[[[[   ]]]]]]]]]]]]]]]]]]]]]]]

Round brackets fixed it (((((((((((((((           ))))))))))))))))))))).

What a simple solution. THANKS A MILLION

That's a gotcha. Gets everyone. The NA's adherence to VB.Net is very strict.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now