Re: Siemens S5-DOS/MT
Siemens was and is a big company. They made everything from mainframes to nuclear reactors. One of their biggest divisions was and is industrial controls, where they were the world leader.
There are various sources of information on line, but I'll stick to the known safe ones (as opposed to ones offering who knows what in terms of downloads) such as Wikipedia.
Here's an article on the Simatic product line, which was Siemens' name for their programmable industrial controls.
https://en.wikipedia.org/wiki/Simatic
Here's a photo of the PG 675 computer which is better than the PG 685 used in the article, even if it is a bit grubby. "PG" was Siemens' term for the programming computer.
https://commons.wikimedia.org/wiki/File:Siemens_Simatic_S5_PG_675.jpg
In the main article, scroll down to the section on "Step 5". It mentions there that the OS for the PG 630 was CP/M.
If you scroll down to "History of STEP5", there is a table which shows that from v1.0 to v1.4 it ran on an unspecified version of CP/M. From 2.0 to 3.2 it ran on CP/M-86. Version v6.3 ran on MS-DOS on the PG750. I think the table is not complete, so there may be other version numbers.
I know however that you could also run STEP5 on an ordinary laptop under MS-DOS (or Windows 95). I also recall that the earlier versions ran on some sort of CP/M emulator in order to run on MS-DOS, but I don't know the details. The very late versions (I think somewhere around version 6 or 7) were ported directly to run natively on MS-DOS.
As for why Siemens used CP/M, when they first came out with the software MD-DOS didn't exist yet. CP/M on the other hand was the de facto standard operating for business microcomputers.
As for the PGs themselves, you will notice in the photo that they have an extra row of function keys below the standard F1 to F8. These have special symbols which are used by the STEP5 programming software. You will also notice a deep socket to the left of the floppy drives labelled "module". There is a corresponding socket on the photos of the S5-95U and S5-103U CPUs. This was for a ROM module which you could burn so you didn't need a backup battery to keep the program in RAM. Most people didn't bother with the ROM module and just changed the battery every year.
The PDF that you linked in the story for Siemens S5-DOS/MT is actually for the MS-DOS version of the programming software. I don't know if at this point it was running under an emulator or was a native MS-DOS port, but the host OS in that manual is definitely MS-DOS. If you go to chapter 5 it talks about the included utilities for reading and writing "PCP/M" floppy disks so you could exchange data between older PGs (which used CP/M) and newer ones running MS-DOS. I suspect these are licensed third party utilities. The manual by the way has a very good explanation of how to optimize memory management for MS-DOS. Siemens manuals from that era were excellent in terms of providing technical detail even if they did have a tendency to use their own names for things.
As for whether Siemens also sold FlexOS, I wouldn't dispute that. There are lots of different applications in industry, and you can outfit pretty much your entire plant with just Siemens control kit. That however would have been used in some sort of dedicated application rather than the type of programming PC such as I was describing.
They currently sell their own industrial Linux distro, based on Debian, to fill that niche.
https://support.industry.siemens.com/cs/document/109988870/simatic-industrial-os-4-2-%E2%80%93-the-operating-system-for-applications-in-the-industrial-environment?dti=0&lc=en-CA