Example 4.2.1. Create an Eliminate Source By Percentages Function Block

The factory's Tracker engineers:

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

  2. Name the block RAMPercent.

  1. Configure the first array point as follows.

  1. Open the P1 dialog box for Attribute Name Array.

  2. Create a new virtual, text array point.

Note: The array point will identify the attribute whose values will be evaluated for percentage distribution.

  1. Enter 3 in the Elements on the Point Properties dialog box General tab.

Note: Each of the 3  elements will hold the attribute name that will correspond with the value in the Attribute Value Array. For this function block each Attribute name element will have RAM as the value.

  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, in addition to the Attribute Name Array, the next four 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 Percent array.

Parameter

Point Type

Elements

Point Name

Attribute Name Array

Text

3

RAMATTNAME

Attribute Value Array

Text

3

RAMATTVALUES

Upper Release % Array

Integer

3

RAMUPPERP

Lower Release % Array

Integer

3

RAMLOWERP

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

Parameter

Point Type

Elements

Point Name

Attribute Release Array

Integer

2

RAMATTRELEASE

Total Release Count

Integer

1

COUNTTOTAL

A brief description of the percent calculation in this example is as follows.

The actual number of items that can be released for each attribute value is constantly re-evaluated based on the percentage of the constantly increasing total count.

 

Attribute
Value

 

Upper
Release %

 

Lower
Release %

 

Attribute
Release

Total
Release
Count

 

 

Calculations

MEM128

30

20

27

 

30%

MEM256

40

25

25

90

28%

MEM512

50

40

38

 

42%

  1. Attribute Release is the actual number of items released for the respective attribute value.

This count takes place during runtime.

The actual Attribute Release numbers are divided by the Total Release Count, which is the sum of all the released items.

In this example, the MEM128 item has reached its upper release limit.

No more can be selected until the Total Release Count increases enough to bring the acceptable release number back inside the boundary of the Upper Maximum Release %.

Based on upper release targets, MEM256 needs to increase release more than the others.

Depending on other criteria, the additional percentage may be taken from MEM128; as a result, the MEM128 percent release will decrease.

MEM512 is in good shape.

  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 target the minimum and maximum percent  for each RAM part number.

More information

Example 4.2. Define an Eliminate Source By Percentages Evaluation