IMD SolutionComputing LibraryShop main store

Explainer

Why an IPC needs its switch cycled after Windows shutdown

Industrial and panel PCs Published 7 min read By IMD Solution engineering team

Short answer

A Start-menu shutdown puts an industrial PC into S5, where Windows no longer runs and only firmware-armed wake sources apply. The starts that work from there are the mechanical switch, a BIOS power-recovery setting that applies power when input power returns, and wake-on-LAN only where the vendor powers the port in S5. Windows 7-based units such as WES7 have no official wake from S5, so verify by test and use the BIOS setting as the dependable automated start.

On this page
  1. What a normal shutdown leaves behind
  2. The mechanical switch
  3. The BIOS power-recovery setting
  4. Wake-on-LAN from S5
  5. A magic-packet test for a Windows 7 IPC in S5
  6. The decision for each case
  7. Questions asked

A Start-menu shutdown is not the same as switching an industrial PC off. Windows closes, the board drops into the S5 soft-off state, and from there only the power switch or a wake source the BIOS armed before shutdown can start it again. That is why the IPC 227D in this case — a 4 GB CF card running Windows Embedded Standard 7 with SP1 — comes back only when its mechanical switch is cycled off and on, and nothing is broken. The workable start paths are three: the switch, a BIOS power-recovery setting that powers the board when input power returns, and wake-on-LAN where the vendor keeps the port powered in S5. Windows 7-based systems have no officially supported wake from S5, so on this unit the BIOS setting is the dependable automated start.

What a normal shutdown leaves behind #

The manual for this machine documents the Start-menu shutdown as the normal way off, and that procedure ends in S5: the operating system has closed and no longer controls the board. The firmware keeps a standby presence alive — the switch logic, the real-time clock and whatever wake sources the BIOS armed while Windows was running. Nothing inside Windows can start the machine from this state, because there is no Windows running to do it. A start has to come from an event the firmware still listens for: the power switch being cycled, input power being applied when the power-recovery option calls for it, or a wake packet arriving on an adapter that is still powered and armed. Where none of those is configured, the mechanical switch is the only path, which is exactly the behavior seen on this unit.

The mechanical switch #

The rear switch is the designed start control in S5, not a workaround. Cycling it off and on applies input power again, and the board runs its full firmware boot back into Windows. Two operating points matter. The switch is a hard cut on a running machine, so the off order is always Start-menu shutdown first and switch off afterwards, and only when the machine must be de-energized. And cycling the switch is a complete cold boot every time, so the runtime software must come up unattended — the same requirement that decides whether the automated paths below are usable.

The BIOS power-recovery setting #

Most IPC BIOS setups carry an option that decides what the board does when input power is applied. It lives on the power or boot page of the setup, and its name varies by vendor, so record the names the installed BIOS actually offers instead of assuming a menu path. On one documented case, power-on behavior on the IPC 427D/427E CPU 1507S F was resolved at BIOS level, as the IPC 427D/427E CPU 1507S F power-on BIOS fix knowledge-base article describes.

With the power-on choice active, applying input power starts the machine. The rear switch becomes a one-action off-and-on, and a switched outlet or PDU becomes a remote start, because the board sees power return and boots.

The setting changes behavior for every power event, planned or not. After an outage the machine boots unattended, so Windows must auto-logon and the runtime must launch by itself; otherwise the machine powers up to a lock screen and nothing runs. A cold boot also resets state that software holds outside its files, and not every runtime survives one cleanly — why a TwinCAT IPC stays in Config mode after a power cycle documents one such case. Verify the option with the machine out of service, and never pull the supply connector while a runtime is writing: an uncontrolled power cut is how historian and SCADA databases end up inaccessible, as the WinCC can't access database after power loss: DCF and reset steps article records.

Wake-on-LAN from S5 #

Wake-on-LAN starts a powered-down board from a network packet. To work from S5 it needs three things at once: a hardware design that keeps the network adapter on the standby rail after shutdown, a BIOS that arms the adapter as a wake source, and an operating system that cooperates while it is running. The first two are firmware properties of the specific model and BIOS version and must be confirmed on the actual unit — including which physical connector a wake-enabled port label maps to, because a label pointing at the second LAN interface still has to be matched to the socket before any test.

The operating-system side is where this unit hits a documented limit: Microsoft states that WOL from S5 is not officially supported in Windows 7, and Windows Embedded Standard 7 with SP1 is a Windows 7 variant. A packet may still start such a machine when the firmware arms the adapter, but that behavior sits outside documented OS support, so treat it as unverified until a test on the unit proves it.

Menu placement varies by vendor as well: on one vendor's machines the wake options sit on a BIOS System Management tab under a wake section. The Dell BIOS UEFI wake-on-LAN and imaging configuration guide shows that layout setting by setting, and the habit it teaches — record what the installed BIOS actually offers — is the same one to apply to any IPC.

A magic-packet test for a Windows 7 IPC in S5 #

The inputs come from the case and from the wake-packet definition. The machine's hardware address is read while Windows runs, with ipconfig /all, and noted down; for this example it is 00:1A:2B:3C:4D:5E. The payload format is the standard wake-on-LAN magic packet: six bytes of FFh followed by the six-byte hardware address repeated sixteen times. The broadcast address comes from the machine segment; in this example the IPC sits on 192.168.10.0/24, so the broadcast address is 192.168.10.255.

The rule is the packet definition itself: send a UDP broadcast whose payload is six all-FF bytes followed by the hardware address written out sixteen times in a row. An adapter armed for wake in S5 treats that pattern as a start command.

The arithmetic: the repeated address contributes 16 × 6 bytes = 96 bytes, the FF header adds 6 bytes, and the payload is 96 + 6 = 102 bytes.

The result is one 102-byte UDP broadcast to 192.168.10.255 on UDP port 9, sent from any machine on the same segment after the IPC has been shut down from the Start menu.

The decision comes from what the board does next. If it powers on within a few seconds, wake-on-LAN from S5 works on that unit and can carry remote starts. If it stays off after one correctly formed 102-byte broadcast, S5 wake is not available on that firmware and OS — the expected outcome on a Windows 7-based system — and the remote-start job moves to the BIOS power-recovery setting driven from a switched outlet. Sent from another segment, the packet goes to the same broadcast address as a subnet-directed broadcast, and whether a remote path forwards it is the routing decision covered in what one VPN router can reach across several machine LANs.

The decision for each case #

  • One operator at the machine, a few starts a shift: cycle the rear switch after Windows has shut down; nothing to configure.
  • The machine must return by itself after an outage, or start on command without anyone at the panel: confirm the power-recovery option exists in the installed BIOS, set it to power-on, and prove the chain — boot, auto-logon, runtime start — with a planned cold boot before trusting it.
  • The start has to work from a remote site: run the wake test above. Commit to wake-on-LAN only where the vendor documents S5 wake for that port and the test passes; where it does not, a switched outlet driving the BIOS power-on setting is the path with documented behavior.

For the reported IPC 227D on Windows Embedded Standard 7, the concrete sequence is: Start-menu shutdown as the off procedure, the rear switch for local starts, and — if unattended starts are needed — the BIOS power-recovery option set to power-on with the cold-boot chain verified first.

Questions asked

What do the choices in a power-recovery BIOS setting mean?

Most boards offer three: stay off when power returns, power on whenever power is applied, or return to the state the machine had before the loss. Stay off suits machines an operator starts by hand. Power on suits unattended equipment that must come back after an outage, and it is the choice that lets a switched outlet act as a remote start. Last state returns to off after a clean shutdown, so it cannot start a machine that Windows shut down.

Why does wake-on-LAN wake the PC from sleep but not after shutdown?

Sleep keeps memory powered and Windows still owns the wake policy, so the adapter's Windows-side wake permission is enough. S5 is firmware territory: Windows has closed, and only a wake source the BIOS armed, or the switch, applies. Windows 7, including the embedded editions, has no official support for wake from S5, so a machine that wakes from sleep can still sit quiet after shutdown until the firmware side is configured and proven by test.

Does unplugging the power connector and plugging it back in start the IPC?

Only when the power-recovery setting applies power on restoration. With that active, re-applying input power starts the machine whether the break came from the connector, a breaker or a switched outlet. With the keep-off choice, or with last-state after a clean shutdown, the board stays off and the rear switch remains the only start. Test with the operating system already shut down and the machine out of service.

Is it wrong to use the switch to turn the IPC off?

The switch cuts input power directly, so it must not be the first action on a running machine: Windows loses power mid-write and disk state can be left inconsistent. The off order for this class of machine is a Start-menu shutdown first, then the switch only if the unit must be de-energized. After shutdown has finished, the switch is the normal way back on.

What has to be configured so the runtime comes up after an unattended power-on?

The BIOS setting only energizes the board; what runs afterwards is decided by the operating system. The Windows image must start unattended, with automatic logon, and the control software must be launched by startup entries or a scheduled task, so no credentials are typed by hand. Verify the whole chain — power return, operating system start, runtime start — during a planned cold boot before the machine is left to run alone.

Keep reading

  • Troubleshooting

    Industrial PC restart loop with yellow power LED

    A yellow power LED with a restart loop means the board is powered but never completes startup. Decide at the BIOS screen: if setup opens, the fault is late in the boot chain; if it does not open after cleaning and swapping power module, RAM and disk, the chassis has failed and the disk moves to a replacement.

    Industrial and panel PCs

  • Troubleshooting

    Feeding a High -12V Load in an Industrial PC

    Total ATX wattage never raises the negative rail: retail units label it 0.3-1.0 A and the highest you will find is 1 A. Measure the grabber cards' peak draw on that rail with a series ammeter, then feed it from an isolated 12 V DIN-rail supply with its V+ tied to PC 0 V, sized to 1.5 times the measured peak, and remove the ATX wire from pin 14 so the two sources do not fight.

    Industrial and panel PCs

  • Selection guide

    Running Windows 7 on an industrial PC: which IPC supports it

    The release entry for the exact order number decides, not the processor. The SIMATIC IPC 627C is released for Windows 7 Ultimate in 32-bit and 64-bit, the IPC 427C shipped as Windows 7 Ultimate 32-bit only, and the IPC 427B has no documented Windows 7 driver set, so it stays on Windows XP. Match edition and bitness to the nameplate order number before installing.

    Industrial and panel PCs