You cannot as you have two-month commitment to NSF research. You university may not allow you to do it. However, you can get one-month summer salary from the company. If you want to take another month salary from the company, you may want to use a specific rule related to consulting (i heard about it but do not know the details) based on the negotiation between AAUP and your university.