Search module – Rockwell Automation Arena Users Guide User Manual
Page 69
4
•
T
HE
A
DVANCED
P
ROCESS
P
ANEL
61
•
•
•
• •
4 •
A
dva
nc
ed
P
ro
ces
s
Search module
D
ESCRIPTION
The Search module searches a queue, a group (batch), or an expression to find the entity
rank (for entities in a queue or group) or the value of the global variable J that satisfies the
specified search condition. When searching a queue or group, the value of the global
system variable J is set to the rank of the first entity that satisfies Search Condition, or to 0
if Search Condition is not satisfied. When searching an expression, the global system
variable J is set to the value of the first index value that satisfies the search condition or to
zero if no value of J in the specified range satisfies the search condition.
When an entity arrives at a Search module, the index J is set to the starting index and the
search condition is then checked. If the search condition is satisfied, the search ends and
the current value of J is retained. Otherwise, the value of J is increased or decreased and
the condition is rechecked. This process repeats until the search condition is satisfied or
the ending value is reached. If the condition is not met or there are no entities in the queue
or group, J is set equal to 0.
T
YPICAL
USES
Looking for a particular order number in a queue
Searching a group for a certain part type
Determining which process to enter based on availability of resources (search an
expression)
P
ROMPTS
Attribute
This field is visible only if Queue Type is Attribute. The attribute
entered in this field will be evaluated to indicate which queue is to be
used.
Expression
This field is visible only if Queue Type is Expression. The expression
entered in this field will be evaluated to indicate which queue is to be
used.
Prompt
Description
Name
Unique module identifier displayed on the module shape.
Type
Determination of what will be searched. Search options include entities
in a queue, entities within a group (batch) or some expression(s).
Prompt
Description