Pembina Pipeline Corp. says it earned $512 million in the second quarter, rising from $417 million during the same period last year.