Subtracting Good Part When Adding Scrap
Previous Topic  Next Topic 


Overview


There may exist a scenario when a good part will need to be removed from the record count. Within the DataXchange system if a part is created it is assumed to be a good part, this can be a problem during the quality review process if an issue is found with the part and it needs to be scrapped. Now there is a record in the DataXchange system indicating that there was a good part made when if fact it was scrapped out. One way to insure the part counts stay accurate is to correct it so that anytime a Scrap Part is added it removes a good part from the total. Following the instructions below will guide you so that you can configure DataXchange to remove a good part anytime a scrap part is added.


First, You will need to create or add an expression that will result to add the scrap:

([Listener.data] =[PCSDB.PCI_add_scrap_part]{data.any})

[PCSDB.send_add_scrap_part] {Listener.data{data.specific}}


A second, identical expression will be used to detect the addition of scrap.  However, for this expression the result will subtract good parts:

([Listener.data] =[PCSDB.PCI_add_scrap_part]{data.any})

[PCSDB.send_subtract_good_part] {Listener.data{data.specific}}


Once these two expressions are created and added to the machine,  they will add a scrap part(s) and remove a good part(s) as the quantity entered.