Hello Werner,
As promised, here is my new proposal for your requirement (i have deleted my previous reply)
Here is a summary of what you asked :
A quantitative characteristic has a lower tolerance limit (L) and lower plaus. limit (LP). Whe the actual value is between LP and L the system should create defect X1. If actual result is less than LP then X2 defect should be generated.
Solution with calculated characteristic:
First step is to create your main characteristic (Quantitative with mandatory recording). You don't need to put L and LP there because we will be maintaining them in the task list itself.
Then create a second characteristic (calculated). It is similar to the first one except you will maintain these parameters :
- Calculated flag should be on in control indicators
- Defect recording checked
- Lower tolerance limit as 2 and upper limit tolerance as 4 (you will understand why later in the process)
- Maintain upper limit defect code X1 and lower limit defect code X2
- Use Sample procedure checked.
Once you have both characteristics created, you need to create the formula for the second one.
Since actual value can only be in one of the three intervals at a time :
interval 1 : inferior to LP
interval 2 : between LP and L
interval 3 : Superior to L
We will create 3 formulas each one will have a result as follow:
interval 1 ==> 1 (1 will be lower than 2 (inf limit of char2) which will generate X2 defect)
interval 2 ==> 5 (5 will be superior to 4 (sup limit of char2) which will generate X1 defect)
interval 3 ==> 3 (3 is between 2 and 4 so no defect is created)
These formulas will have the following parameters :
-param 1 : actual measured value of first characteristic
-param 2 : Lower specification limit of first characteristic (L)
-param 3 : Lower plaus. limit for first char. (LP)
param2 and param3 will be maintained in task list call of formulas directly.
Now lets create 3 formulas. Formulas are maintained in table TFKT using SE16.
The system is allowing table maintenance for this table using SE16 as per oss note 0000560672
In this table you have two fields, formula key and formula. Maintain the formulas as show below :
FORM1 | IF #1<#2 THEN 1 ELSE 0 |
FORM2 | IF #1<=#3 AND #1>=#2 THEN 5 ELSE 0 |
FORM3 | IF #1>#2 THEN 3 ELSE 0 |
Now go to task list and assign your two characteristics as follow:
char 1 : your main characteristic
char 2 : your calculated characteristic.
Assign sampling procedures to both. Please note that in sampling procedure for calculated characteristic should have a valuation type "Mean Value with tolerance range".
The system then will ask you to maintain formula for calculated characteristic. Enter the following formula:
TFKT:FORM1(C00010,L)+TFKT:FORM2(C00010,L,LP)
+TFKT:FORM3(C00010,L)
As you can see i used two lines because the field is not enough for entire call.
You can see that i am adding the three intervals results and the result will be depending on where the actual value lies.
Please note also that you need to replace L and LP in the formula as per your need.
C00010 represents the mean value of recorded characteristic. the system is using the following notation :
AABBBB
AA is the code representing the information (in our case C0)
BBBB is the id of the characteristic (in this case 0010)
Save your task list and create inspection lot.
When you enter result recording, you only maintain value for first characteristic then close bloth lines, the system will automatically valuate second one and generate defect code as per your requirement.
PS: I have gone through this proposed solution and i actually tested the scenario and it works perfectly.
Let me know if this is clear for you.
Regards,
Ayoub.