olc90b Posted December 7, 2014 Report Posted December 7, 2014 I was looking for a manual on all the array instruction. I need to make an array with 500 columns and 10 rows. I not sure how to do this and can not find any help with how to setup arrays
Saragani Posted December 7, 2014 Report Posted December 7, 2014 Hi, the UniLogic arrays are 1 dimentional. However, you can use the Data Tables... I'm assuming that all the columns are from the same type, right? If so, create a Struct, with 1 member which is an array (of the type you want) with a dimension of 500. Then create a Data Table which is linked to that struct, and set the rows to be 10.
olc90b Posted December 7, 2014 Author Report Posted December 7, 2014 Hey Saragani, I have to have a bunch of different parts depending on the job number. So if the job number is 1 you may need a part from bowl 1,2,4,6,8,10 if it is job 2 you may need a part from all 10 bowl. what I will do is turn on the lights and open the doors to the bins that hole the parts depending on the job number entered. So I guess what I need to do is have an array that would start with job number then when the operator enters the job number the array would lookup what parts are need and set it to that program.
Saragani Posted December 8, 2014 Report Posted December 8, 2014 Thats looks like something you can do with a Data table. Just fill the correct data for each row, and when the operator enters a job number, read the correct row and use it. And since it is a data table, you can also save it to file, and load it (Or export the table to Excel, edit it and import the values back to UniLogic, or generate a data table file from the excel file and use it to load it from Ladder).
olc90b Posted December 8, 2014 Author Report Posted December 8, 2014 I was looking at the data tables and I think that will work. Are the data tables searchable? Can they be edited for the touch screen ex add new products change or delete old ones? Thanks Paul
Saragani Posted December 8, 2014 Report Posted December 8, 2014 Like an array. rows cannot be added or removed (They can be cleared). The total number of rows always remains pre-defined. You can search inside a data table, and the values can also be edited from the Data Table Widget.
olc90b Posted December 14, 2014 Author Report Posted December 14, 2014 Thanks that looks like it will work. Were can I get the data table widget?
Saragani Posted December 15, 2014 Report Posted December 15, 2014 in the HMI. On the toolbox on the right side.
olc90b Posted December 15, 2014 Author Report Posted December 15, 2014 Thanks got it!! Thanks for all your help
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now