When current flows through the electromagnet, it becomes magnetized, and its poles are repelled by the like poles of the permanent magnets.
(current; flows; through the electromagnet) (it; becomes; magnetized; T:When current flows through the electromagnet) (it; magnetized; ) (its poles; are repelled; by the like poles of the permanent magnets)
current it it its poles
flows becomes magnetized are repelled
through the electromagnet
magnetized T:When current flows through the electromagnet
by the like poles of the permanent magnets