Jump to content

Recommended Posts

Posted

I am working on a system where I want to do a max number of failures in a rolling 100 piece count. I have an array

Running_Total_Parts ARRAY[0..100] OF UINT. 

I am wanting to know how many of the elements are equal to UINT#7.

What I am confused on is in the instructions they like to use the word they are defining in the definition. 

Member's Meaning is "Member to search" 

Key's meaning is Search key. 

I am confused on what I should put into the information for those variables. 

in the help file it has the following variables. Please correct me if what I am describing in the () after the variable names are incorrect.

IN: abc[0] (this is the name of the array) 

Size= UINT#5 (first five uint elements in the array)

Member= abc[0].m (I am unsure of how I know which value to fill in for "M")

Key= INT#1234 ( this is the value searching for within the array) 

Mode= _Linear ( I am unsure what these modes mean) 

InOutPos= def[0] (element numbers that match the search key)

Num= jkl (this I am assuming is the variable that will be filled with the number matching elements in the array). 

 

This is the first project I'm working on in Sysmac so trying to fully understand their help files has been a chore at times. 

 

Thank you in advance for your time. 

 

 

Posted

Looks like you are trying to use RecSearch. This is beneficial when you have an array of structures and you want to search within one of the structures of your array.
That is what Member In[0].m is referring to. 

Since you are doing a search within a single dimensional array you could try just use ArySearch.
ArySearch works if you do not have various "member" in your array.

ArySearch2.png

ArySearch.png

ArySearch1.png

  • Like 1

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

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