Thread cutting on plastic pipes