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 | 780 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

  • Sigmatek Wiring Board V2 DIAS 05-250-023
  • Sigmatek CP102 20-004-102 S-DIAS CPU Module
  • SIGMATEK SLIDES CNC 115 Module
  • SIGMATEK DCC080 05-700-080-2 Control Module
  • SIGMATEK MDD 121 Drive Axis Module
  • SIGMATEK CIO011 C-DIAS Multi I/O Module
  • SIGMATEK CIV512 Servo Drive
  • SIGMATEK CM5V020 12-250-021-K Wiring Module
  • SIGMATEK CIO011 12-013-011 Multi I/O Module
  • SIGMATEK 01-450-031 C-IPC Industrial Computer
  • SIGMATEK AKM24D-ANBNGBB0 Servo Motor
  • DEMAG NC4 LP0001289.03 Control Module
  • Sigmatek ETEK Industrial PC C-IPC with Option Module
  • Sigmatek AO081 20-010-081 Analog Output Module
  • Sigmatek CNC 031 Positioning Module
  • Sigmatek CP731-K 20-004-731-K CPU Module
  • Sigmatek MDD 3320-JR-A Drive Module
  • Sigmatek PM Servo Motor AKM52K-ANC2GBB0
  • Sigmatek MDP 101 09-403-101 Power Module
  • Sigmatek S-SLIDES AO046 Analog Output Module
  • Sigmatek ICA111 20-102-111 Interface Module
  • SIGMATEK DCP646 Module 05-004-646
  • SIGMATEK SDI101 Digital Input Module 20-891-101
  • SIGMATEK S3330-2 Directional Gyro Altitude Instrument
  • SIGMATEK MDP102-1 Controller
  • SIGMATEK SMT 01-230-321 Touch Screen
  • SIGMATEK Krauss Maffei PC301-K 01-310-301-K Industrial PC with 8GB SSD
  • SIGMATEK ETT731 01-230-731 Built-in Touch Terminal
  • SIGMATEK CIV521 Control Module
  • SIGMATEK DME 128 Module 05-005-128
  • SIGMATEK SCP111-S 20-890-111-S S-DIAS Safety CPU Module
  • Sigmatek SCP111 S-DIAS Safety CPU
  • Sigmatek CRIF081 Interface Module
  • Sigmatek CP112-1 S-DIAS CPU Module
  • Sigmatek MDD121-L DIAS Drive Axis Module
  • Sigmatek C-IPC 01-450-024 Industrial PC
  • Sigmatek SDD215-23 SLIDES Drive
  • Sigmatek DPS001 DIAS System Components
  • Sigma-Tek 4000B-30 Directional Gyro
  • Sigmatek SDD340-46 SDD Series Drive
  • Sigmatek CEZ221 Euromap67 I O Module
  • SIGMATEK VI021 Interface Module
  • SIGMATEK CP731-K Control Module
  • SIGMATEK Krauss Maffei PC321-K Industrial PC
  • SIGMATEK ET322 Operator Terminal
  • SIGMATEK CP102 Control Module 24VDC
  • SIGMATEK SRO021 Relay Output Module
  • SIGMATEK DCP640 DIAS Central Unit
  • SIGMATEK MDD 121 Drive Axis Module
  • SIGMATEK AI043 Analog Input Module
  • ENOTEC OXITEC 5000 SME-53310000 Oxygen Analyzer
  • SIGMATEK Krauss Maffei PC301-K 01-310-301-K Industrial PC
  • SIGMATEK SDD310-23 VARAN Servo Drive
  • SIGMATEK CDM 163 and CIC 011 C-DIAS Input Modules
  • SIGMATEK MDP 101-1 Power Module
  • SIGMATEK CM5V020 Wiring Circuit with CTMS020
  • SIGMATEK CCP521 C-DIAS Processor Module
  • SIGMATEK MDP 101-K Power Module
  • SIGMATEK ETEK C-IPC 733MHz VIA Eden 7000
  • SIGMATEK DCP 643 DIAS PLC CPU Module
  • SIGMATEK TAE121 12-200-121 Operator Terminal
  • Sigmatek TMS012-T Injection Moulding Technology Module
  • Sigmatek MDD 121-1 Controller
  • Sigmatek CDM167 Module
  • Sigmatek DCP082 DIAS Central Unit
  • Sigmatek ETT731 Built-In Terminal Touch
  • Sigmatek CCP521 C-DIAS Processor Module
  • Sigmatek Krauss Maffei PC301-K Control Cabinet PC
  • Sigmatek CIC-21 C-DIAS CAN Module
  • Sigmatek CIO-011 Multi I O Module
  • Sigmatek 01-450-152D C-IPC 152 Industrial PC
  • SIGMATEK 01-450-024 C-IPC 128MB VIA 733MHz
  • SIGMATEK CCL-081 C-DIAS Processor Module
  • SIGMATEK CP311 20-004-311 Module
  • SIGMATEK EP00000262 SLIDES MIDI I O-V3 Controller
  • SIGMATEK TMS012-T Slides Technology Module
  • SIGMATEK MDD111-1 Drive Axis Module
  • SIGMATEK MDP101-1 PLC Module
  • SIGMATEK CP111 S-DIAS Processor Module
  • DEMAG ErgoControl Sigmatek NC4 Display Unit
  • SIGMATEK DCP642 Module
  • Sigmatek Demag NC4 9617.067.03 Control Module
  • Sigmatek DCP 643 Central Processing Unit
  • Sigmatek VI 021 S-SLIDES VARAN Interface Module
  • Sigmatek SDD340-46 Servo Drive 14kVA
  • Sigmatek DSI021 Slide Siemens Interface
  • Sigmatek CCL912 C-SLIDES CPU PSU Module
  • Sigmatek ETV1521 VARAN Control Panel
  • Sigmatek ET322 Operator LCD Terminal
  • Sigmatek MDD1111 DIAS Drive Module
  • Sigmatek CAM123 Module
  • SIGMATEK CP111 VARAN Ethernet Controller
  • SigmaTek MDD 111 Axle Module
  • SIGMATEK CIO013 C-DIAS I O Module
  • SIGMATEK AKM52K-ANC2GBB0 Servomotor 640VDC
  • SIGMATEK ETT321 01-230-321 Touch Screen
  • SIGMATEK NC4Kompakt 01-250-010-D Safety Controller
  • SIGMATEK CIO011 C-DIAS Multi I O Module
  • SIGMATEK MDD 121-1 Drive Axis Module
  • SIGMATEK CDM163 Control Module
  • Sigma-Tek 4000HR-3 Heading Reference Directional Gyro
  • Sigmatek DIAS DAI 883 Analog Input Module
  • Sigmatek 0332.554.03 Printed Circuit Board Card
  • Sigma Tek 5000B-36 Attitude Gyro 8130
  • Demag NC4 0332.554.03 Sigmatek Control Board
  • Sigmatek IPC Pentium 300 CF Industrial PC
  • Sigmatek MDP 102 PLC Module
  • Sigmatek DTO163 Digital Output Module
  • Sigmatek PCT151 Touch IPC 15 Panel and I-PC C300
  • Sigmatek CCL911 CD Processor Module
  • Sigmatek SCP011 S-DIAS Safety CPU Module
  • Sigmatek SE051 Network Splitter Module
  • Sigmatek CIO011 C-DIAS I O Module
  • Sigmatek SE051 Ethernet Splitter
  • Sigmatek CCL911 CD Processor Module
  • Sigmatek SDD310-4 DIAS Drive 14kVA
  • Sigmatek CTMS020 C-DIAS Technology Module
  • Sigmatek CTMS020 CD Technology Module
  • Sigmatek CTO167 C-SLIDES Digital Output Module
  • Sigmatek C-IPC 152 Industrial PC
  • Sigmatek SDD310-4 SLIDES Drive 310
  • SIGMATEK MDP 102-1 DIAS Power Module
  • SIGMATEK SCP111 S-DIAS Safety CPU Industrial
  • SIGMATEK CAO081 Analog Output Module
  • SIGMATEK DCC080L Control Module
  • SIGMATEK MDP101-1 Power Module
  • SIGMATEK SCP111 S-DIAS Safety CPU
  • SIGMATEK PC325-K Industrial PC