The Royal Navy Sea King helicopter from HMS Gannet in Prestwick, Ayrshire, was first on the scene.
A Royal Navy spokeswoman said the crew were forced to leave one aircrewman on board the stricken boat following a problem with the rescue helicopter's winch.
The team rescued five stranded crew members before the aircraft developed a defect and Petty Officer Mike Henson was left on board with two remaining seamen. It was Petty Officer Henson's first shift as a qualified search and rescue aircrewman.
All three were later rescued by an RAF helicopter.
For more coverage of the striken cargo ship visit ITV Wales.
More top news
An inventor who built a submarine has told police that a missing journalist died onboard in an accident, and that he buried her at sea.
Want to see the moon appear to take a "bite" out of the sun? Here's some tips on how to do it without damaging your eyes.
Rugby star Matt Dawson has revealed how he required heart surgery after developing Lyme disease from a tick bite.