Machine produced endless foam (5)
I believe the answer is:
lathe
'machine' is the definition.
(I've seen this before)
'endless foam' is the wordplay.
'endless' means to remove the last letter.
'foam' becomes 'lather' (lather is a kind of foam).
'lather' with its final letter taken away is 'LATHE'.
'produced' is the link.
(Other definitions for lathe that I've seen before include "craftsman's machine" , "Machine that turns wood or metal for cutting" , "Machine for cutting, drilling or polishing" , "Turning device" , "Wood-shaping machine" .)