Jump to content

How to use the array instuctions


Recommended Posts

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.

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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).

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.

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...