Columbus, Ind.-based engine maker Cummins Inc. reported adjusted quarterly profit that beat Wall Street estimates as sales in North America helped offset weakness in international markets, especially China and Brazil.

Reuters reported the company said on Tuesday (July 31) that revenue declined 4% to $4.45 billion, in line with Wall Street estimates. Excluding the effects of divestitures and currency fluctuations, revenue was flat. Cummins, a major supplier of diesel engines to the RV industry, said net earnings were $469 million, or $2.47 per share, down from $505 million or $2.60 a share a year earlier.

However, gross margins were at record highs in the quarter and forecast improved margins for the full year despite flat revenue, helping drive shares up nearly 8% at midday.

Cummins executives said the company was cutting costs, including tightening up on travel and looking to freeze hiring in some parts of the company, with uncertain global economic conditions pressuring truck sales in emerging markets.

“It’s a much more volatile economy than we were looking at in the first quarter of the year and much harder to predict,” CEO Tom Linebarger told analysts on a call. “However, our view still is that developing countries will be growing faster than developed countries and investing in infrastructure.”

Reuters reported that excluding gains from divestitures, Cummins earned $2.45 per share, topping the average Wall Street forecast of $2.28, according to Thomson Reuters I/B/E/S.

“Despite lower revenues, Cummins did a good job improving gross margins on price improvement, mix and manufacturing efficiencies,” S&P Capital IQ equity analyst Jim Corridore wrote in a note. “We think Cummins is well positioned in the current environment and should see operating leverage when revenue trends improve.”

Earlier this month, Cummins cut its sales forecast on weaker orders from truck and power generation customers, a stronger dollar and softer-than-expected demand in emerging markets.

In the engine segment, sales declined 2%. Improved North American truck and construction market demand was offset by lower sales to China construction, Brazilian truck and North American oil and gas markets.

Component sales were unchanged. Higher demand in North America and Brazil was offset by lower demand in Europe and China as well as the impact of divestitures completed in 2011.

Power generation sales were also unchanged as higher sales in North America offset lower demand in Europe, China and Latin America.

Sales in the distribution segment rose 1%, with higher parts and service growth in several regions more than offsetting weaker demand in the markets for North American oil and gas and Middle East power generation.

“Second-quarter gross margins were at record levels as we continue to drive improvements in productivity and quality,” Linebarger said.

Earnings before interest and taxes (EBIT) were $669 million or 15% of sales. Cummins expects full-year revenue of $18 billion, with EBIT between 14.25% and 14.75% of sales.

To view the entire report click here.