The reason the diagrams show it as a neutral sometimes and a ground other times is because sometimes the 3rd wire IS a neutral and there is no ground (such as a 3 wire stove), and sometimes the 3rd wire IS a ground with no neutral (such as the compressor). Appliances/machines that only run on 240v don't need or use a neutral. A stove is actually a 120/240v appliance: the heating elements are 240v, but the light in the oven, the clock/timer and other electronics run on 120v. Anything that runs on 120v needs a neutral. A compressor just has a motor that runs on 240v and nothing else. It doesn't need a neutral, only a ground. I'm not sure why stoves didn't have a ground back in the day, but now they do. Code now requires stoves to be wired up with 4-prong outlets and cords- 2 hots, a neutral, and a separate ground.
Same applies to clothes driers- they use both 120v and 240v. They used to not have a ground, now they're wired 4-prong.