A machine will only extract from a hopper if it is set to Add/Remove or Remove Only and will only place items back into the hopper if it is set to Add/Remove or Add Only. For machines which have both an input and output it is advisable to have two hoppers, one set to Remove Only containing the raw materials, and one set to Add Only into which the manufactured component will be placed. This will ensure the system does not become deadlocked.