Get in range click the center of the cloud. A menu should pop up if you are in range or message will tell you if you are out of range. On the menu, click collect materials. Your ship should automatically start collecting without the need for any further input as of the 3.0 release. The process will continue until your cargo hold is full.