To my knowledge this type of engines where among the first to be able to operate, before 1700. They used gunpowder to heat the air inside the cylinder when the piston was in its lower position. Then a valve was closed and when the air was cooled the pressure decreased and "sucked" the piston up...