Interroga Posted May 17, 2018 Report Share Posted May 17, 2018 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. Today 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. Quote Link to comment Share on other sites More sharing options...
Saragani Posted May 17, 2018 Report Share Posted May 17, 2018 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. Quote Link to comment Share on other sites More sharing options...
Interroga Posted June 4, 2018 Author Report Share Posted June 4, 2018 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 Quote Link to comment Share on other sites More sharing options...
Saragani Posted June 4, 2018 Report Share Posted June 4, 2018 How about "Find in Array", and look for 1? Quote Link to comment Share on other sites More sharing options...
leadro venancio da silva Posted June 6, 2018 Report Share Posted June 6, 2018 Use table you can move the line what you want read Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.