An engineering company based in Sheffield has been fined after a worker became entangled in machinery.