Example 4.1.1 Create an Eliminate Sources Based on Rule Function Block

The factory's Tracker engineers:

  1. Open the Range Source function block Eliminate Sources Based on Rule.

  2. Name the block COLORRule.

  1. Configure the first array point as follows.

  1. Opens the P1 dialog box for Rule Type Array.

  2. Creates a new virtual, text array point.

Note: The array point will identify the rule types for the evaluation.

  1. Enters 2 in the Elements on the Point Properties dialog box General tab.

Note: The 2 elements will hold the two rule types, Grouping and Spacing.

  1. Select Saved in the in the Initialization field on the Virtual tab in the Point Properties dialog box.

Note: The value that is set in the array will be saved even if the project stops.

  1. Configure the next array parameters that define the evaluation rules.

Note: Each element in the array holds a value that refers back to and defines the corresponding element in the Rule Type array.

Parameter

Point Type

Elements

Point Name

Attribute Name Array

Text

2

 

Attribute Value Array

Text

2

 

Rule Array

Integer

2

 

Count Array

Integer

2

 

Upper Release % Target

-

-

 

Lower Release % Target

-

-

-

Breakable Array

-

-

-

The % and Breakable parameters will not be used in this block.

  1. Configure the two parameters that will provide the count data.

Parameter

Point Type

Elements

Point Name

Attribute Release Count Array

Integer

2

 

Total Release Count Point

Integer

1

 

A brief description of these two parameters in this example is as follows.

  1. Attribute Release Count Array will reset to 0 according to the rule that is used.

Black Grouping Rule

 

 

The count:

Is reset to 0 when a non-black item is selected.

Stays at 0 until a black item is selected.

 

When black items are selected the count is increments as follows.

 

 

Black

Count goes to

 

 

1

1

 

Consecutive

2

2

 

Consecutive

3

3

 

When 3 black items are selected consecutively the black limit has been met.

No more black items can be selected until another color is selected.

Beige Spacing

 

 

The count:

Is reset to 0 when a beige item is selected.

 

When non-beige items are selected the count increments as follows.

 

 

Non-beige

Count goes to

 

 

1

1

 

Consecutive

2

2

 

After 2 non-beige items are selected, a beige can be selected.

If more non-beige colors are selected before the beige, the count remains at 2.

  1. The Total Count is a parameter that is used throughout the Range Source Architecture.

The parameter uses the same point; the point counts the total number of released items.

  1. Close the block.

  1. Compile the RLM.

Result: The RLM will use this block to evaluate the rules for grouping and spacing the black and beige colors.

Note: The Percent rule type was not used in this block.

A Percent rule type will be configured. However the rule requires a lower weight than this rule, so it will be configured in Eliminate Source By Percentages.

More information

Example 4.1. Define an Eliminate Sources Based on Rule evaluation.