Pareto Principle
"the 80:20 rule"
"A minority of input produces the majority of results."

PARETO is a graphical representation of the rejects in a production that highlights the most common causes of rejects so that the continuous improvement effort is concentrated on those issues.

Showing is type of defect as a percentage of the total quantity of defects - as opposed to the total production - dramatizes the impact of the largest causes of defects.

The RC01 array are the reject or defect counts by cause, the description of each cause is in the message area.

TOTAL_REJ is the sum of all the rejects

I1-I6 are copied to PI1-PI6 and AR1-AR6 are copied to PAR1-PAR6 so that LINE can run independently from PARETO

AR1 and MPAR1 are 6-register arrays calcualted as follows

This TASK sorts the array starting at RC01 of length NC RC01, RC02, etc. contain the number of rejects in categories 1,2, etc.
The order is recorded in the array starting at I1
After the task is run, I1 contains the index of the largest element, I2 the second largest, etc.

This TASK uses the results of the LINE task to display the Pareto chart.
The Pareto chart shows the 6 most common causes of defects.
The EGA.EXE driver must be loaded.