6.2 BIOS Settings
Enter BIOS → PC Health Status:
SUSV: Enable/Disable 1-second UPS (must be set to [Enabled])
SUSV holds USB: Does the USB port maintain power supply during UPS activation (for external storage backup)
SUSV Status: Display the current capacitance percentage and charging/discharging status
6.3 FB_S-UPS Function Block Configuration
In TwinCAT PLC, it is necessary to cyclically call FB_S-UPS. Key input parameters:
eUPSMode:
ESUPs_WrPersistData_Shutdown (default): Automatically shuts down after saving persistent data
ESUPs_WrPersistData_CoShutdown: Only saves data, does not shut down
ESUP_SimediateShutdown: Immediately shut down (without saving data)
ESUPS-CheckPowerStatus: Only detects power status
TRecoverTime: The waiting time for recovery after a brief power outage (default 10 seconds)
To ensure sufficient time to write data, it is recommended to stop calling other application logic after detecting a power failure:
text
IF NOT FB_S_UPS.bPowerFailDetect THEN
//Call normal program
END_IF
6.4 Windows Write Filter Attention
If the system has enabled Windows write filters (EWF/FBWF/UWF), the path for saving persistent data must be in the exception list. By default, the Boot directory is already in the FBWF exception list. If persistent data cannot be saved, please check the write filter configuration.
6.5 Verify persistent data loading status
In TwinCAT 2, the following can be checked using SystemInfotype.bootFatages:
Bit 4=1: Persistent variable loaded (no errors)
Bit 5=1: Invalid persistent variable (backup copy loaded)
In TwinCAT 3, PlcAppSystemInfo. BootDataLoaded and PlcAppSystemInfo. OldBootData are used.
If you want to clear invalid persistent data backups every time you start, you can set the following in the registry:
text
[HKEY_LOCAL_MACHINESOFTWAREBeckhoffTwinCATPLC]
"ClearInvalidPersistentData"=dword:00000001

Key points of BIOS settings
The CX50x0 is pre configured at the factory and it is generally not recommended for users to modify the BIOS. But in certain special circumstances (such as adjusting the boot sequence, enabling virtualization technology, etc.), changes can be made by entering the BIOS. Here are a few key options:
Standard CMOS Features: Set date, time, and hard disk parameters. Note that the CF card is recognized as an IDE Primary Master.
Advanced BIOS Features:
Quick Power On Self Test: Enabling it can speed up startup.
First/Second Boot Device: Set the boot sequence (usually Hard Disk).
Full Screen Logo: The startup logo can be disabled to view POST information.
CPU Feature → Virtualization Technology: If you need to run a virtual machine, it can be enabled, but it will slightly affect real-time performance.
Integrated Peripherals → Onboard Device → Onboard Lan Controller: Two network ports are enabled by default and cannot be turned off.
Power Management Setup: The Power Supply Type must remain in [AT] mode (ATX mode is not applicable).
PC Health Status: View system temperature, voltage, battery voltage, and SUSV status.
Warning: Under Windows CE system, it is strictly prohibited to modify BIOS, otherwise it may cause the operating system to fail to start.
Status LED and Fault Diagnosis
8.1 CPU module LED
Meaning of LED color
PWR green power supply is normal
TC Green TwinCAT Operation Mode
TC Red TwinCAT Stop Mode
TC Blue TwinCAT Configuration Mode
HDD red flashing CF card read/write activity
FB1/FB2 depends on the fieldbus and is defined by options
8.2 K-bus Error Diagnosis
When the red K-BUS ERR LED on the power module flashes, it indicates a fault in the bus terminal configuration or communication. The error code is read out through a flashing sequence:
Rapid continuous flashing: Error code begins
Slow flashing (N times): Error code
Second slow flashing (M times): incorrect parameter
Common errors:
3 slow flashes (parameter 0): K-bus command error. Possible reasons: No terminals have been inserted, or one terminal is damaged. The "splitting method" can be used to remove half of the terminals and observe whether the error disappears to locate the faulty terminal.
4 slow flashes (parameter 0 or n): K-bus data interruption. If the parameter is 0, it means that the power module is immediately disconnected and it is necessary to check whether the bus terminal (KL9010/EL9010) is installed. If the parameter is n, it means that the wire is disconnected after terminal n. Check if terminal n+1 is connected correctly.
5 slow flashes: Register communication error, terminal at position n needs to be replaced.
7 slow flashes: Process data length does not match, check if the configuration matches the actual terminal.
In K-bus mode, the system status byte can be read through TwinCAT. If the status byte ≠ 0, there may be synchronization issues. Suggest setting the PLC task cycle to less than 50 ms (K-bus update typical value is 1-5 ms).
Common troubleshooting
Possible causes and solutions for the fault phenomenon
After power on, there is no response. The power supply is not connected, the fuse is blown, and the polarity is reversed. The power supply terminal measures the voltage between 24V and 0V; Check the external fuse; Confirm correct wiring