Jump to content
Sign in to follow this  
Interroga

How to create index in arrays, for dynamic reading through index?

Recommended Posts

How to create index in arrays, for dynamic reading through index?

I think the possible motion values in the storage block with a statement, between the [ ] where another variable would be placed to indicate the position in the array, the same way it is used in Rockwell and Siemens programs. T
oday the program obliges to create several logics to reach the same objective. The idea is save time?

Example :variable [ index]==>  BLOCK STORE ==> variable to be write 

 the index is other variable int , put value the position in array.

Share this post


Link to post
Share on other sites

The idea was to protect the user from accessing an invalid cell index.

You can use Load From Array and Store In Array elements in order to get or set values in array dynamically.

 

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
Sign in to follow this  

×