Jump to content

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


Interroga

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.

Link to comment
Share on other sites

  • 3 weeks later...
Ok, thanks for your reply.

Now I have another question. what kind of variables in the "max in array" block can we use? I try to use boolean array to find any in true state, but software indicates error in checking.

In the help d'ont you have information about types for use in this block.

 

Regards

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...