Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

Beckhoff CX8110 Embedded PC

F: | Au:FANS | DA:2026-06-12 | 954 Br: | 🔊 点击朗读正文 ❚❚ ▶ | Share:

6.3 Creating Process Data (Pay Attention to Alignment)

Due to the alignment requirements of Arm processors, when creating input/output variables:

Create a data structure using Create Array Type and check if SIZEOF matches expectations.

If the length of the structure is different on x86 and Arm, dummy bytes should be added to force alignment.

6.4 Creating a PLC Project

Add a standard PLC project, write a simple program and build it. Then associate PLC variables with hardware I/O through Attach Variables. Finally, click on Activate Configuration and switch TwinCAT to Run mode.

6.5 Explicit Device Identification (DIP Switch) Settings

Click on the EtherCAT slave (CX8110) in the TwinCAT tree view, and in the EtherCAT Slave tab:

Check 'Using Dipswitch Value'

Alternatively, cancel this option and enter a numerical value directly in the Value field below (overriding DIP switches).


Distributed Clock (DC) Configuration

CX8110 supports distributed clocks and can be used as a slave to synchronize with the upper level master. Configuration is divided into two steps:

7.1 Enable DC on CX8110 (slave) side

Click on the EtherCAT slave of CX8110 in TwinCAT.

Check Enable Synchronization in the EtherCAT Slave tab.

After confirmation, DcToTcTimeOffset, DcTimeDiff, and DcState variables will appear under InfoData.

Click on the EtherCAT master (lower level master) of CX8110 and enable DC Time controlled by CCAT Time (Master Mode) in EtherCAT → Advanced Settings.

7.2 Configuring DC on the upper master station side

Connect CX8110 to the upper level master station (such as another Beckhoff controller).

Scan CX8110 in the TwinCAT project on the main site.

Click on the CX8110 slave station, switch to the DC tab, and select DC Synchron.

Ensure that the synchronization task cycle is ≤ 5 ms and the CPU load is below 60%. The best synchronization effect can be achieved with a period of 1-2 ms.

Diagnostic variables:

DcTimeDiff (DINT): master-slave clock deviation, in ns. Under a task cycle of 1 ms, a deviation of<10 ns is optimal, and<100 ns is acceptable.

DcState: A value of 0x_2 indicates that TwinCAT time is controlled by CCAT time.

Note: If only K-bus terminals (non EtherCAT) are used, the distributed clock function has no practical significance.

1-second UPS and persistent variable protection

The CX8110 is equipped with a capacitive 1-second UPS, which can provide brief power to the CPU after the main power supply is cut off, to save persistent variables (PERSISTENT) to the microSD card. The maximum amount of data that can be reliably saved throughout the entire lifespan is 1 MB.

8.1 Working principle and configuration

Declare the variable that needs to be retained during power outage as VAR PERSISTENT in the PLC.

Loop the function block FB_S-UPS_CX81xx (located in the Tc_2SUPS library) in the fastest task.

Set eUpsMod:

ESUPs_WrPersistData_Shutdown (default): Automatically shuts down quickly after saving 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

Persistent data is saved in WinCAT 3.1 Boot Port_85x.bootdata. When the system starts, the file will be loaded and a backup *. bootdata old will be created.

8.2 Precautions

Only TwinCAT can control the 1-second UPS, and other applications must not interfere.

1 second UPS does not supply power to K-bus/E-bus, so bus data may become invalid after UPS activation.

After power failure detection, other application logic should be stopped from being called:

iecst

IF NOT FB_S_UPS_CX81xx.bPowerFailDetect THEN

//Normal procedure

END_IF

If persistent data loading fails (backup is being used), it can be determined through PlcAppSystemInfo. OldBootData (True indicates backup is being used). To force the deletion of invalid backups, you can set the registry:

[HKEY_LOCAL_MACHINESOFTWAREBeckhoffTwinCATPLC] "ClearInvalidPersistentData"=dword:00000001

Or check Clear Invalid Persistent Data in TwinCAT.

8.3 Real time clock (RTC) slow running problem

If the system time of CX8110 is found to be slow, the reason is that the TwinCAT real-time driver failed to update the operating system clock in a timely manner under high load or long cycle tasks. Solution: Modify the registry

[HKEY_LOCAL_MACHINEPlatform] "SoftRTC"=dword:0

Force hardware RTC to be read every time Windows time is requested (which will increase slight CPU load).


Diagnosis and troubleshooting

9.1 Overview of LED indicator lights

Meaning of LED color/status

TC Green TwinCAT Run Mode

TC Red TwinCAT Stop Mode

TC Blue TwinCAT Config Mode

EC RUN green constant light EtherCAT OP status

EC RUN green flashing (200ms) PRE-OP status

EC RUN green flashing (200ms on/1000ms off) SAFE-OP status

EC ERR red constant light EtherCAT not configured or incorrect

K-BUS ERR flashing red K-bus error (see below)

9.2 K-bus Error Diagnosis

When the red K-BUS ERR LED flashes in a specific sequence, the fault can be located by counting the flash (start flag), slow flash count (error code), and second slow flash count (error parameter):

Error code parameter description and solution

  • National Instruments USB-6361 Multifunction I/O Device
  • National Instruments SCXI-1314 Terminal Block
  • National Instruments PCI-6515 Industrial Digital I/O Card
  • National Instruments 779038-01 Ordering Part Number
  • National Instruments cRIO-9012 CompactRIO Controller
  • National Instruments PXI-8364 MXI-Express Interface
  • National Instruments PXIe-8360 Interface Card
  • National Instruments 196859B-01 Ordering Part Number
  • National Instruments PXIe-1073 5-Slot Chassis
  • National Instruments NI 9209 Voltage Input Module
  • National Instruments USB-5133 Digitizer
  • National Instruments PXI-1044 Chassis
  • National Instruments NI 9266 785046-01 Module
  • National Instruments USB-6216 DAQ Device
  • National Instruments NI 9266 Output Module
  • National Instruments NI 9230 Vibration Module
  • National Instruments PCI-6230 DAQ Card
  • National Instruments PXI-6123 DAQ Card
  • National Instruments PCI-6255 DAQ Card
  • National Instruments PXI-8433 Serial Module
  • National Instruments PXIe-4138 Source Measure Unit
  • National Instruments 781044-01 PCIe-6321 DAQ Part Number
  • National Instruments PXIe-6356 X Series DAQ Module
  • National Instruments PCI-6513 Industrial Digital Output Card
  • National Instruments 183345A-04 Ordering Part Number
  • National Instruments PCIe-6351 X Series DAQ Card
  • National Instruments PXI-4070 FlexDMM Module
  • National Instruments PXI-6225 Multifunction DAQ Module
  • National Instruments 781496-01 Ordering Part Number
  • National Instruments 779592-01 Ordering Part Number
  • National Instruments SCXI-1121 Module
  • National Instruments NI 9148 Chassis
  • National Instruments PXI-6255 DAQ Module
  • National Instruments USB-4065 DMM
  • National Instruments PXI-6221 DAQ Module
  • National Instruments PXIe-1065 Chassis
  • National Instruments NI 9210 Input Module
  • National Instruments 778948-01 Output Module
  • National Instruments cRIO-9014 Controller
  • National Instruments cDAQ-9171 Chassis
  • National Instruments USB-6363 DAQ Device
  • National Instruments NI 9467 GPS Module
  • National Instruments USB-6351 DAQ Device
  • National Instruments NI 6581 Adapter Module
  • National Instruments 781045-01 Output Module
  • National Instruments PCI-6225 DAQ Card
  • National Instruments TRC-8543 CAN Cable
  • National Instruments PXIe-1073 Chassis
  • National Instruments USB-6003 DAQ Device
  • National Instruments NI 9476 Output Module
  • National Instruments myRIO-1900 Embedded Controller
  • National Instruments NI-9263 Analog Output Module
  • National Instruments 158561A-01L Ordering Part Number
  • National Instruments 785024-01 Ordering Part Number
  • National Instruments PCI-6510 Industrial Digital I/O Card
  • National Instruments USB-6259 Multifunction DAQ Device
  • National Instruments USB-8452 I2C SPI Interface Device
  • National Instruments PXI-8432 Serial Interface Module
  • National Instruments PXIe-5644R Vector Signal Transceiver
  • National Instruments PXI-2569 Relay Module
  • National Instruments 781174-01 Module
  • National Instruments 782000-01 Module
  • National Instruments PXI-5152 Digitizer
  • National Instruments PXI-6284 DAQ Card
  • National Instruments PCI-1428 Frame Grabber
  • National Instruments PXI-1050 Chassis
  • National Instruments NI USB-8486 Fieldbus
  • National Instruments NI 9862 CAN Module
  • National Instruments NI 9146 FPGA Chassis
  • National Instruments PXI-8108 Controller
  • National Instruments NI SWB-2816A Matrix Module
  • National Instruments NI 9269 Analog Output Module
  • National Instruments PCI-6031E Multifunction DAQ Card
  • National Instruments PXI-6713 Analog Output Module
  • National Instruments NI 9216 RTD Input Module
  • National Instruments NI-9237 Strain Bridge Input Module
  • National Instruments PXI-5124 High Resolution Digitizer
  • National Instruments USB-6343 X Series DAQ Device
  • National Instruments PXIe-6536 Digital I/O Module
  • National Instruments CAL-4330 Calibration Fixture
  • National Instruments PXI-4110 Programmable Power Supply
  • National Instruments 781503-01 Input Module
  • National Instruments FP-AI-V10 Module
  • National Instruments PXI-5114 Digitizer Card
  • National Instruments PXIe-8398 MXI Module
  • National Instruments cRIO-9056 Controller
  • National Instruments PCI-6509 DIO Device
  • National Instruments cRIO-9053 Controller
  • National Instruments 781056-01 Output Module
  • National Instruments 782606-01 Input Module
  • National Instruments cRIO-9112 Chassis
  • National Instruments PXIe-1078 Chassis
  • National Instruments PCIe-6536 DIO Board
  • National Instruments NI-9425 Input Module
  • National Instruments PCI-5122 Digitizer Card
  • National Instruments 779072-01 Relay Module
  • National Instruments 783703-01 DAQ Module
  • National Instruments PXI-6515 Digital Module
  • National Instruments 781099-01 DAQ Device
  • National Instruments PXI-8183 PXI Controller
  • National Instruments sbRIO-9626 Single-Board RIO Controller
  • National Instruments PXIe-1435 Camera Link Frame Grabber
  • National Instruments NI 9237 Strain Bridge Input Module
  • National Instruments PXIe-4353 Thermocouple Input Module
  • National Instruments PCIe-6320 X Series DAQ Card
  • National Instruments NI 1454 Compact Vision System
  • National Instruments PCIe-6321 X Series DAQ Card
  • National Instruments PXIe-5172 PXI Oscilloscope Module
  • National Instruments cDAQ-9134 CompactDAQ Controller
  • National Instruments cRIO-9063 CompactRIO Controller
  • National Instruments PXI-4070 DMM Card
  • National Instruments cFP-BP-4 Backplane
  • National Instruments 779521-01 Bridge Module
  • National Instruments cDAQ-9172 Chassis
  • National Instruments NI 9236 Strain Module
  • National Instruments PXI-1042Q Chassis
  • National Instruments SCXI-1102 Input Module
  • National Instruments 776990-01 Input Module
  • National Instruments PXI-1045 PXI Chassis
  • National Instruments PCIe-6251 DAQ Device
  • National Instruments NI 9219 Universal Analog Input Module
  • National Instruments NI 9215 BNC Analog Input Module
  • National Instruments PXIe-6570 Digital Pattern Instrument
  • National Instruments NI-9477 Digital Output Module
  • National Instruments NI 9145 EtherCAT Chassis
  • National Instruments PCI-6521 Industrial Digital I/O Card
  • National Instruments NI 9239 BNC Voltage Input Module
  • National Instruments NI 9265 Current Output Module