Operating systems on the plant floor
Earlier articles
Troubleshooting
Running legacy DOS machine software on XP or Windows 7
No — do not assume it runs. A DOS machine-link program that needs direct port or card access runs on Windows 98's real-mode DOS, has that access intercepted by the NTVDM subsystem on XP and 32-bit Windows 7, and will not start on 64-bit Windows 7; compatibility mode changes version reporting only. Record the machine interface, then take the supported OS and licensed media from the machine builder.
Troubleshooting
Recovery USB shows no UEFI boot option on an edge PC
A recovery USB with no UEFI entry in the boot menu was written in a layout the firmware cannot launch. Rebuild the Clonezilla stick on a Windows PC with Rufus, confirm the UEFI line appears in the boot menu, restore from that entry, then cold-start with the USB removed to prove the internal drive boots.
How-to
Read CPU temperature on a Linux edge PC with lm-sensors
Install lm-sensors, run sensors-detect accepting the Intel thermal sensor, then read the value with sensors or watch sensors. With nothing installed, cat /sys/class/thermal/thermal_zone*/temp and divide each millidegree value by 1000 for degrees Celsius. Zone numbers identify board temperature inputs, not proven CPU cores, so confirm which zone tracks processor load before you label it CPU temperature.
How-to
Identify the Linux base before installing Node-RED natively
Run cat /etc/os-release and uname -m on the running controller before copying anything. ID=debian opens a Debian package workflow; ID=ptxdist with PTXDIST_VERSION 2020.08.0 marks an embedded image where an ARMv7l Node.js tarball needs the hard-float libatomic1_13.2.0-4_armhf.deb staged by the image's own method. The product label never decides this.
Troubleshooting
Fix TwinCAT IPC staying in Config mode after power cycle
Set Auto Boot to Run mode under Boot Settings (Target) in SYSTEM > SETTINGS and activate the configuration. If the IPC still boots to Config mode, read the TwinCAT runtime build on the target itself: one reported 4024-to-4026 migration behaved this way until the runtime was returned to 4024.67.
How-to
Configure IP networking on an edge PC with no SSH access
A new edge PC that leaves the factory with DHCP and static addressing disabled has no IP address, so SSH cannot connect to it. Do the first configuration at a keyboard and monitor: set X1 to DHCP and the plant-side port to the planned static address, restart networking, then confirm both addresses with nmcli device status and ip a before opening SSH or browser management on port 9090.
Comparison
C# or Python for industrial PC software beside the PLC
Write the Windows-side application in C#. The camera SDK ships only C# bindings and the vendor's own ADS implementation for Windows is the .NET library, so Python adds two maintained translation layers for no capability gain; keep deterministic sequencing in Structured Text on the PLC and keep Python for standalone utilities.
How-to
Add a Linux desktop and browser to a Debian edge PC
Install GNOME on the running system: run sudo apt update, then sudo apt upgrade, reboot, then sudo apt install gnome. The download is about 1-2 GB and the procedure needs 10 GB of free disk; GNOME Web comes with it. Reinstall Debian with the graphical installer only when you are rebuilding the box anyway.
Troubleshooting
Why OneDrive sync does not belong on a machine controller
Run the OneDrive sync client on an office PC, not on the machine controller. A TwinCAT PC reserves cores for real time, and a sync client adds burst CPU, disk and network load on the Windows side that shows up as task exceeds and EtherCAT lost frames. Sync the SharePoint library to a separate PC and let the controller read and write the folder over a file share.
How-to
Running TwinCAT XAR on a third-party industrial PC
Do not clone a factory IPC image onto other hardware. Install a licensed Windows 10 IoT Enterprise LTSC edition, install the runtime fresh, and qualify the real-time Ethernet port, CPU priority and jitter on the actual machine. A successful boot proves nothing, and network hardware the runtime vendor did not sell you is a self-supported component.
Selection guide
Choosing an operating system image for an industrial PC
Order the industrial PC with the vendor image closest to your runtime: Windows IoT Enterprise LTSC where the vendor documents it for your model, the vendor's qualified Linux for a Linux stack, or the BSD image if your code builds on FreeBSD. Bring-your-own images are the fallback for monitoring-class loads. Qualify your binaries on the exact model and image; support and real-time behavior are model-specific.