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

  • ETEL ILM03-060-3RA-A00 Linear Motor
  • ETEL EA-S0M-300-40/80A-0090-00 Power Supply Module
  • Etel DSCDP131-111-000 Position Controller
  • ETEL DSC2P121-111E-001A Digital Servo Amplifier
  • ETEL DSB2P101-121E-009H Position Controller
  • ETEL IWM040-0128-00 Ironcore Linear Motor Magnetic Way
  • ETEL AccurET EA-S0M-400-40/80A-0000-00 Modular Power Supply
  • ETEL LMC11-050-3TA-S10C Motion Controller
  • ETEL LMC11-050-3TA-250A Controller Module
  • ETEL DSB2P101-121E-009H Digital Servo Amplifier Position Controller
  • ETEL AccurET Modular 400 Position Controller
  • ETEL DSA2 Digital Servo Amplifier
  • ETEL DSC2P154-421-000 Servo Drive
  • ETEL DSO-PWS121-003 Power Supply Module
  • ETEL 0348M-070-02D-004 Linear Encoder
  • ETEL DSC2P131-111-000 Linear Servo Amplifier – 10Arms/30Arms
  • ETEL DSC2P131-121-000 Digital Servo Amplifier
  • ETEL DSB2P131-111E-000H Digital Servo Amplifier
  • ETEL DSO-PWS111-000 Power Supply Module
  • ETEL LMC11-050-3TA-S41C Linear Motor Module – High Thrust Density
  • ETEL EA-P2M-300-07/15A Drive Specs
  • ETEL DSO-RAC200A-011D Dual Position Controller Rack
  • ETEL Short-Stroke Actuator ID809786-03
  • ETEL DSCDM332-111-000 Servo Controller Specs
  • ETEL DSCDL332-131-000A Position Controller
  • ETEL LMP07-100-3TAS-229 Linear Motor
  • ETEL LMA11-120-3ZA-359C Linear Motor
  • ETEL DSA2S211ZA-018A Digital Servo Amplifier
  • ETEL EA-P2M-300-07/15A AccurET Controller
  • ETEL LMB06-050-2QA-239B Linear Motor Guide
  • ETEL DSCDP334‑421‑000 Servo Drive – High‑Power Digital Controller Positioner
  • ETEL DSCDP121‑111E‑000A Dual Driver Board – High‑Density Motion Control Module
  • ETEL DSA2 S1B22A Digital Servo Amplifier – High‑Efficiency Drive for Industrial Motors
  • ETEL DSCDM342‑111‑000 Servo Amplifier – Multi‑Axis Digital Drive
  • ETEL MWA120‑0512‑00B 512mm Linear Motor Magnet
  • ETEL EA‑P2M‑300‑07/15A‑0100‑01 AccurET Modular Position Controller – Medium‑Power Drive
  • Etel DSC2P141‑111‑000 568425‑01 Digital Servo Amplifier – Compact High‑Performance Drive
  • Etel EA‑P2M‑400‑10/20A‑0000‑01 AccurET Modular Position Controller – High‑Voltage Drive
  • ETEL DSC2P142‑111‑000 Digital Servo Amplifier – Compact Position Controller
  • ETEL DSDH153‑121C‑001D Digital Servo Drive – High‑Power Motion Control
  • ETEL DSB2P131 & DSO-CAN111A Servo Amplifier Set
  • ETEL DSA2S211ZA-018A Digital Servo Amplifier
  • ETEL DSMAX212-111-001 568540-01 DSMAX2 Servo Controller
  • ETEL TMB+0291-150 Torque Motor Stator Assembly
  • ETEL EA-S0M-300-40/80A AccurET PSU
  • ETEL DSO-PWR112C-000B Power Supply Module
  • ETEL DSC2P141-111-000 Linear Servo Amplifier
  • ETEL DSB2S154-211-000H Servo Amplifier
  • ETEL DSCDP121-122-000 Digital Controller
  • ETEL DSCDP121-111E-000A Dual Position Controller
  • ETEL DSCDM332-111-000 Linear Servo Controller
  • ETEL DSB2P134-111E-000H Servo Amplifier
  • ETEL DSCDP132-111-000 Control Board Guide
  • ETEL DSB2S154-211E-000H Servo Amplifier
  • ETEL EA-SOM-300-40/80A Power Supply Module
  • ETEL ILM12-060-3PD-R20C Linear Motor with IWM Ways
  • ETEL P2M-300-07 AccurET Position Controller
  • ETEL DSB2P124-111E-000H Servo Amplifier
  • ETEL EA-P2M-048-05/10A Position Controller
  • ETEL EA-S0M-300-40/80A Power Supply Module
  • ETEL MWA070-0256-20B Linear Motor Magnet Guide
  • ETEL MWD070‑0128‑21A Linear Motor – Compact Ironless Linear Motor for High‑Speed Precision
  • ETEL DSB2P124‑211E‑000H Digital Servo Amplifier – 300 VDC Slave Drive for High‑Voltage Systems
  • ETEL MWD100‑0128‑00B Linear Motor – High‑Force Ironless Linear Motor for Precision Motion
  • ETEL AccurET EA‑S0M‑400 & P2M‑400‑05/10A Drive Module
  • ETEL EA‑S0M‑400‑40/80A‑0000‑00 AccurET Power Supply – High‑Power DC Supply for Motion Systems
  • ETEL MWA050‑0128‑20B Linear Motor Magnet – High‑Force Magnet Assembly for Linear Motors
  • ETEL DSB2S121‑111E‑000H Digital Servo Amplifier – High‑Current Drive for Demanding Motion
  • ETEL DSCDM332‑111C‑000B Digital Position Controller DSCDM – High‑Density Motion Module
  • ETEL EA‑P2M‑048‑2.5/5A‑0100‑01 AccurET Modular Position Controller
  • ETEL DSC2P121-111E-001A Digital Servo Controller – High‑Precision Motion Control
  • ETEL MWA050-0128-20B Linear Motor Magnet
  • ETEL DSB2P142-111E-000H Drive Specs
  • ETEL DSB2S234-111E-000H Servo Amplifier
  • ETEL EA-P2A-400-10-20A Position Controller
  • ETEL DSB2 Digital Servo Amplifier Controller DSB2P142-111E-000H SN 014661437
  • ETEL EA-S0M-400-40/80A-0000-00 AccurET Power Supply Module 650140-01
  • ETEL DSB2P131-111E-000H Servo Amplifier
  • ETEL EA-P2M-400-10/20A AccurET Controller
  • ETEL DSDP324-322F-000C Dual Motor Driver
  • ETEL DSB2S154-211E-000H Digital Servo Amplifier Drive
  • ETEL DSO-PWS111B-000C Power Supply Board 1130E-070-018
  • ETEL DSCDP324-322G-000A Servo Amplifier
  • ETEL DSB2P142-111E-000H Servo Amplifier Drive
  • ETEL EA-P2M-400-15/40A & EA-S0M-400 Drive Set
  • ETEL DSB2P142-111E-000H Digital Servo Amplifier
  • ETEL LMG15-070-3QC-H11 Linear Motor
  • ETEL TMA0140-070-3RB-S62B Torque Motor
  • ETEL DSA2S211ZA Digital Servo Amplifier
  • ETEL AccurET EA-P2M-300-4/7.5A-0100-01 Modular Position Controller
  • ETEL DSCDL332-131C-000A Servo Control Board
  • ETEL DSCDP324-322F-000C Dual Motor Driver
  • ETEL EA-P2M-400-10/20A Position Controller
  • ETEL DSC2P121 and DSO-HIO33 Servo Amplifier Set
  • ETEL EA-P2M-400-15/40A AccurET Drive
  • ETEL EA-P2M-300-07/15A Position Controller
  • ETEL EA-P2M-048-05/10A-0100-01 Servo Drive
  • ETEL EA-S0M-300-40/80A Servo Drive Guide
  • ETEL DSB2P131-111E-000H Digital Servo Amplifier
  • ETEL DSCDP334-421-000 Servo Drive Guide
  • ETEL EA-S0M-300-40 80A-0000-00 Motion Control Module
  • ETEL UltimET Light Motion Controller EU-LGP-0-0-1000-01 Multi-Axis
  • ETEL DSO-RAC601-029 Controller Rack
  • ETEL DSMAX212-121C-000C Board
  • ETEL DSCDL132-212B-000C Position Controller
  • ETEL TMB0291-050-3TDS-E82 Torque Motor
  • ETEL DSMAX212-121-000 Board
  • ETEL DSB2P131-111E-000H Digital Servo Controller Amplifier Unit
  • ETEL DSB 2S 124-211E-000H Digital Servo Amplifier
  • ETEL AccurET EA-P2M-300-4/7.5A-0100-01 Modular Position Controller
  • Beckwith Electric M-6280A Digital Capacitor Bank Control
  • Beckwith M-2355B Adapter Panel with M-2001C-6SL Tapchanger Control
  • Beckwith M-0359 Syncrocloser MOD512
  • Beckwith Electric M-2001C-6ELFA Tap Changer Controller
  • Beckwith M-3311A 4-Coil Transformer Protection Relay
  • Beckwith M-0124 Terminal Board Adapter Plate Guide
  • Beckwith Pride M-0296C 3-Phase Programmable Relay
  • Beckwith M-0388 Syncrocloser Check Relay Guide
  • Beckwith M-0170A AC Current Relay Guide
  • Beckwith M-3311 Transformer Protection Relay Guide
  • Beckwith Electric M3310 Integrated Transformer Protection Panel
  • Beckwith M-0145 First Customer Protector
  • Beckwith M-0170A AC Current Relay
  • Beckwith PRIDE M-0296C 3 Phase Programmable Relay
  • Beckwith Pride M-0296b 3-Phase Programmable Relay
  • Beckwith M-0245C High Speed Sync-Check Relay Guide
  • Beckwith M-0115A AC Parallel Balancing Module
  • Beckwith M-0389 Voltage Verifier Relay