2 For your safety...........................................................................................................................................8
3 Transport and storage.............................................................................................................................10
10 Care and maintenance ............................................................................................................................65
10.1 Replace the battery .........................................................................................................................65
12.2 Support and Service ........................................................................................................................69
CX81104Version: 1.3
Notes on the documentation
1Notes on the documentation
This description is only intended for the use of trained specialists in control and automation engineering who
are familiar with applicable national standards.
It is essential that the documentation and the following notes and explanations are followed when installing
and commissioning the components.
It is the duty of the technical personnel to use the documentation published at the respective time of each
installation and commissioning.
The responsible staff must ensure that the application or use of the products described satisfy all the
requirements for safety, including all the relevant laws, regulations, guidelines and standards.
Disclaimer
The documentation has been prepared with care. The products described are, however, constantly under
development.
We reserve the right to revise and change the documentation at any time and without prior announcement.
No claims for the modification of products that have already been supplied may be made on the basis of the
data, diagrams and descriptions in this documentation.
Trademarks
Beckhoff®, TwinCAT®, EtherCAT®, EtherCAT G®, EtherCAT G10®, EtherCAT P®, Safety over EtherCAT®,
TwinSAFE®, XFC®, XTS® and XPlanar® are registered trademarks of and licensed by Beckhoff Automation
GmbH.
Other designations used in this publication may be trademarks whose use by third parties for their own
purposes could violate the rights of the owners.
Patent Pending
The EtherCAT Technology is covered, including but not limited to the following patent applications and
patents:
EP1590927, EP1789857, EP1456722, EP2137893, DE102015105702
with corresponding applications or registrations in various other countries.
EtherCAT® is a registered trademark and patented technology, licensed by Beckhoff Automation GmbH,
Germany
The following warnings are used in the documentation. Read and follow the warnings.
Warnings relating to personal injury:
DANGER
Hazard with high risk of death or serious injury.
WARNING
Hazard with medium risk of death or serious injury.
CAUTION
There is a low-risk hazard that can result in minor injury.
Warnings relating to damage to property or the environment:
NOTE
There is a potential hazard to the environment and equipment.
Notes showing further information or tips:
This notice provides important information that will be of assistance in dealing with the product or
software. There is no immediate danger to product, people or environment.
CX81106Version: 1.3
Notes on the documentation
1.2Documentation Issue Status
VersionComment
1.0First version
1.1Chapter “Connecting the power supply” adjusted
1.2Chapter “Technical data” revised.
1.3Chapter “Device Manager” adjusted.
CX81107Version: 1.3
For your safety
2For your safety
Read the chapter on safety and follow the instructions in order to protect from personal injury and damage to
equipment.
Limitation of liability
All the components are supplied in particular hardware and software configurations appropriate for the
application. Unauthorized modifications and changes to the hardware or software configuration, which go
beyond the documented options, are prohibited and nullify the liability of Beckhoff Automation GmbH & Co.
KG.
In addition, the following actions are excluded from the liability of Beckhoff Automation GmbH & Co. KG:
• Failure to comply with this documentation.
• Improper use.
• Untrained personnel.
• Use of unauthorized replacement parts.
2.1Intended use
The CX81xx Embedded PC is a control system and is intended for mounting on a DIN rail in a control
cabinet or terminal box.
The Embedded PC series is used in conjunction with Bus Terminals for recording digital or analog signals
from sensors and transferring them to actuators or higher-level controllers.
The Embedded PC is designed for a working environment that meets the requirements of protection class
IP20. This involves finger protection and protection against solid foreign objects up to 12.5 mm, but not
protection against water. Operation of the devices in wet and dusty environments is not permitted, unless
specified otherwise. The specified limits for electrical and technical data must be adhered to.
Improper use
The Embedded PC is not suitable for operation in the following areas:
• Potentially explosive atmospheres.
• Areas with an aggressive environment, e.g. aggressive gases or chemicals.
• Living areas. In living areas, the relevant standards and guidelines for interference emissions must be
adhered to, and the devices must be installed in housings or control boxes with suitable attenuation of
shielding.
2.2Staff qualification
All operations involving Beckhoff software and hardware may only be carried out by qualified personnel with
knowledge of control and automation engineering. The qualified personnel must have knowledge of the
administration of the Embedded PC and the associated network.
All interventions must be carried out with knowledge of control programming, and the qualified personnel
must be familiar with the current standards and guidelines for the automation environment.
CX81108Version: 1.3
For your safety
2.3Safety instructions
The following safety instructions must be followed during installation and working with networks and the
software.
Mounting
• Never work on live equipment. Always switch off the power supply for the device before installation,
troubleshooting or maintenance. Protect the device against unintentional switching on.
• Observe the relevant accident prevention regulations for your machine (e.g. the BGV A 3, electrical
systems and equipment).
• Ensure standard-compliant connection and avoid risks to personnel. Ensure that data and supply
cables are laid in a standard-compliant manner and ensure correct pin assignment.
• Observe the relevant EMC guidelines for your application.
• Avoid polarity reversal of the data and supply cables, as this may cause damage to the equipment.
• The devices contain electronic components, which may be destroyed by electrostatic discharge when
touched. Observe the safety precautions against electrostatic discharge according to DIN EN
61340-5-1/-3.
Working with networks
• Limit physical and electronic access to all devices to an authorized group of persons.
• Change the default passwords to reduce the risk of unauthorized access. Regularly change the
passwords.
• Install the devices behind a firewall.
• Apply the IT security precautions according to IEC 62443, in order to limit access to and control of
devices and networks.
Working with the software
• Use up-to-date security software. The safe function of the Embedded PC can be compromised by
malicious software such as viruses or Trojans.
• The sensitivity of an Embedded PC against malicious software increases with the number of installed
and active software.
• Uninstall or disable unnecessary software.
Further information about the safe handling of networks and software can be found in the Beckhoff
Information System:
http://infosys.beckhoff.com
Document name
Documentation about IPC Security
CX81109Version: 1.3
Transport and storage
3Transport and storage
Transport
NOTE
Short circuit due to moisture
Moisture can form during transport in cold weather or in the event of large temperature fluctuations.
Avoid moisture formation (condensation) in the Embedded PC, and leave it to adjust to room temperature
slowly. If condensation has occurred, wait at least 12 hours before switching on the Embedded PC.
Despite the robust design of the unit, the components are sensitive to strong vibrations and impacts. During
transport the Embedded PC must be protected from
• mechanical stress and
• use the original packaging.
Table1: Dimensions and weight of the CX8110 Embedded PC.
CX8110
Dimensions (WxHxD)71 mm x 100 mm x 73 mm
Weight230g
Storage
• The battery should be removed if the Embedded PC is stored at temperatures above 60°C. The
battery should be stored separate from the Embedded PC in a dry environment at a temperature
between 0 °C and 30 °C.
The preset date and time are lost if the battery is removed.
• Store the Embedded PC in the original packaging.
CX811010Version: 1.3
Product overview
4Product overview
CX8100 designates a product family of Embedded PCs based on a 32-bit ARM CPU. The CX8100
Embedded PC is programmable and is able to execute its own control program. In addition to that the
Embedded PC acts as a slave device of a higher-level fieldbus system.
The CX8100 Embedded PC has the following basic configuration:
• a 512MB MicroSD card,
• an Ethernet interface
• as well as two switched Ethernet interfaces (2 x RJ45, switched).
You can use the CX8100 Embedded PCs as decentralized controllers and in this way ensure that the local
program continues to be executed on the CX8100 in the event of an interruption in the higher-level fieldbus
system.
The operating system is Microsoft Windows Embedded Compact 7. Because there is no monitor port, the
operating system and its "virtual" display can only be accessed via the network. Beckhoff Device Manager
and Remote Display (Cerhost)
The Embedded PC features an internal 1-second UPS as persistent data memory. The 1-second UPS
enables persistent data to be saved to the MicroSD card in the event of a power failure.
Power supply terminal
The power supply terminal for the Embedded PC is located on the right-hand side. Bus Terminals (K-bus) or
EtherCAT Terminals (E-bus) can be attached on the right-hand side of the power supply terminal. The power
supply terminal automatically recognizes the respective bus system (K-bus or E-bus).
The use of EtherCAT Terminals (E-bus) enables further options, such as the implementation of different
topologies, the integration of further bus systems such as CANopen, PROFIBUS and PROFINET and – with
the EtherCAT Box Modules – connection to the IP67 world.
Fieldbus interface
CX8100 devices are being prepared for further fieldbus systems such as EtherCAT (slave), PROFINET,
EtherNet/IP, CANopen, PROFIBUS and other communication systems.
The CX8100 Embedded PCs are programmed according to the high-performance IEC61131-3 standard.
The TwinCAT 3 automation software forms the basis for the programming of the Embedded PC.
Configuration
The CX8100 Embedded PC is commissioned via the Ethernet interface. The fieldbus interface and all
connected devices such as EtherCAT Terminals or Bus Terminals are then read out via TwinCAT 3. The
configuration is stored on the Embedded PC after the parameterization. The configuration thus created can
be accessed again later.
The shortest usable task time is 500µs, although this is only achievable with a very small system load. A
task time of 1 to 50ms is recommended for the I/O data. Other tasks can also be set slower. When using
shorter cycle times, the total system load is to be observed.
CX811011Version: 1.3
Product overview
If too short a cycle time is selected, the Web visualization and Remote Display may operate very slowly or
cause timeouts. The user is responsible for configuring his system such that it is not overloaded.
CX811012Version: 1.3
Product overview
1
2
7
4
8
10
11
12
14
3
13
15
5
6
9
10
4.1Structure
Fig.1: Sample configuration of a CX8110 Embedded PC.
Table2: Legend for the configuration.
No.ComponentDescription
1
2
3
4
5
6
7
8
9Spring-loaded terminals,
10Terminal bus (K-bus or E-
11Spring-loaded terminal,
12Spring-loaded terminal, 0V Power supply for Bus Terminals via power contact.
13Terminal releaseReleases the power supply terminal and therefore the Embedded
14Spring-loaded terminal, PE Spring-loaded terminal for power contact PE.
The DIP switches can be used to define the Explicit Device
Identification for the EtherCAT slave interfaces (X101, X102).
Power supply for the battery-backed clock for time and date.
Slot for industrial MicroSD cards.
EtherCAT In and EtherCAT Out for connection to an EtherCAT
master.
This switches the Embedded PC to Config mode.
Diagnostic LEDs. You can create your own diagnostic messages
for the WD and ERR diagnostic LEDs (see: Controlling CX8190
LEDs).
Interface for commissioning and programming the Embedded PC.
Diagnosis of the power supply for the Embedded PC and the
terminal bus. Status of the E-bus and K-bus communication.
Power supply for Embedded PC.
Interface for EtherCAT Terminals or Bus Terminals. Data exchange
and supply.
Power supply for Bus Terminals via power contact.
PC from the mounting rail.
Power contacts for Bus Terminals.
CX811013Version: 1.3
Product overview
1
2
5
3
4
6
4.2Name plate
The CX8110 Embedded PC features a name plate on the left-hand side of the housing.
Fig.2: CX8110 name plate.
Table3: Legend for the name plate.
No.Description
1Information on the power supply unit. 24VDC, 4A max.
2MAC address of the Ethernet interface X001.
By default, the host name is formed from CX plus the last 3 bytes of the MAC address:
for example, the MAC address: 00-01-05-aa-bb-cc results in the host name CX-aabbcc.
3Information on:
• serial number,
• hardware version
• and date of manufacture.
4Information on the model. The last two numbers code the version of the Embedded PC.
5Vendor data including address.
6CE conformity.
CX811014Version: 1.3
Product overview
4.3Ethernet interfaces
You can program and commission the CX8110 Embedded PC via the X001 Ethernet interface. The Ethernet
interface achieves speeds of 10/100Mbit/s.
Fig.3: Ethernet interface X001, X101, X102.
The LEDs on the left of the interfaces indicate the connection status. The upper LED (LINK/ACT) indicates
whether the interface is connected to a network. If this is the case the LED is green. The LED flashes when
data transfer on the interface is in progress.
The lower LED (SPEED) indicates the connection speed. The LED is not lit if the speed is 10Mbit/s. At
100MBit/s, the LED lights up orange.
Table4: Ethernet interface X001, pin assignment.
PINSignalDescription
1TD +Transmit +
2TD -Transmit -
3RD +Receive +
4connectedreserved
5
6RD -Receive -
7connectedreserved
8
EtherCAT slave interfaces X101 and X102
Both EtherCAT slave interfaces are switched and interdependent. Both interfaces reach speeds of up to
100Mbit/s.
Table5: EtherCAT slave interface X101 and X102, PIN assignment.
PINSignalDescription
1TD +Transmit +
2TD -Transmit -
3RD +Receive +
4connectedreserved
5
6RD -Receive -
7connectedreserved
8
CX811015Version: 1.3
Product overview
Transmission standards
10Base5
The transmission medium for 10Base5 consists of a thick coaxial cable ("yellow cable") with a max.
transmission speed of 10Mbaud arranged in a line topology with branches (drops) each of which is
connected to one network device. Because all the devices are in this case connected to a common
transmission medium, it is inevitable that collisions occur often in 10Base5.
10Base2
10Base2 (Cheaper net) is a further development of 10Base5, and has the advantage that the coaxial cable is
cheaper and, being more flexible, is easier to lay. It is possible for several devices to be connected to one
10Base2 cable. It is frequent for branches from a 10Base5 backbone to be implemented in 10Base2.
10BaseT
Describes a twisted pair cable for 10Mbaud. The network here is constructed as a star. It is no longer the
case that every device is attached to the same medium. This means that a broken cable no longer results in
failure of the entire network. The use of switches as star couplers enables collisions to be reduced. Using
full-duplex connections they can even be entirely avoided.
100BaseT
Twisted pair cable for 100MBaud. It is necessary to use a higher cable quality and to employ appropriate
hubs or switches in order to achieve the higher data rate.
10BaseF
The 10BaseF standard describes several optical fiber versions.
Short description of the 10BaseT and 100BaseT cable types
Twisted pair copper cable for star topologies, where the distance between two devices may not exceed 100
meters.
UTP
Unshielded twisted pair
This type of cable belongs to category 3, and is not recommended for use in an industrial environment.
S/UTP
Screened/unshielded twisted pair (screened with copper braid)
Has a general screen of copper braid to reduce influence of external interference. This cable is
recommended for use with Bus Couplers.
FTP
Foiled shielded twisted pair (screened with aluminum foil)
This cable has an outer screen of laminated aluminum and plastic foil.
S/FTP
Screened/foiled-shielded twisted pair (screened with copper braid and aluminum foil)
Has a laminated aluminum screen with a copper braid on top. Such cables can provide up to 70dB reduction
in interference power.
CX811016Version: 1.3
Product overview
STP
Shielded twisted pair
Describes a cable with an outer screen, without defining the nature of the screen any more closely.
S/STP
Screened/shielded twisted pair (wires are individually screened)
This identification refers to a cable with a screen for each of the two wires as well as an outer shield.
ITP
Industrial Twisted-Pair
The structure is similar to that of S/STP, but, in contrast to S/STP, it has only one pair of conductors.
CX811017Version: 1.3
Product overview
4.4MicroSD card
In the basic configuration, the CX81xx contains a MicroSD card with 512MB. You can order it as an option
with larger cards (up to 8GB).
The cards employed are SLC memory with extended temperature range for industrial applications. Use
exclusively MicroSD cards approved by Beckhoff.
Example of a MicroSD card:
Order designationCapacityDescription
CX1900-01231GBMicroSD card (SLC memory) with
CX1900-01252GB
CX1900-01274GB
CX1900-01298GB
Order designationCapacityDescription
CX1900-0122512MBMicroSD card (SLC memory) with
CX1900-01241GB
CX1900-01262GB
CX1900-01284GB
CX1900-01308GB
extended temperature range for
industrial applications instead of
the 512MB card (ordering option)
extended temperature range for
industrial applications as spare
part.
4.5Reset button
Use the Reset button to activate Config mode. You can use this function if the PLC program unexpectedly
causes an error. To do this, keep the Reset button pressed during the restart for an extended period.
Activate Config mode as follows:
1. Open the front flap.
2. Switch off the Embedded PC.
3. Start the Embedded PC and keep the Reset button pressed until the ERR LED turns red and then
yellow.
ð The CX81xx Embedded PC is put into Config mode.
CX811018Version: 1.3
5Commissioning
X101
X102
S101
1 2
3
4
5
6879 10
TC
WD
ERR
CX8110
24V 0V
+ +
- -
PE PE
22 mm
45 mm
100 mm
68 mm
71 mm
73 mm
X001
5.1Mounting
5.1.1Dimensions
Commissioning
Fig.4: Dimensions of the CX81xx Embedded PC.
Technical drawings in DWG and STP formats can be found at:
http://www.beckhoff.com
CX811019Version: 1.3
Commissioning
min. 30 mm
24V0V
PE
+
-PE-
+
BECKHOFF
KL9010
24V0V
PE-PE
-
BECKHOFF
KL2134
++
24V0V
PE
--
+
BECKHOFF
KL1002
+
PEPE
min. 30 mm
24V 0V
PE
+
-PE-
+
BECKHOFF
KL 9010
24V 0V
PE-PE
-
BECKHOFF
KL 2134
+ +
24V 0V
PE
- -
+
BECKHOFF
KL 1002
+
PEPE
X101
X102
S101
1 2
3
4
5
6 8
7
9 10
TC
WD
ERR
CX8110
24V 0V
+ +
- -
PE PE
X001
5.1.2Note the permissible installation positions
Increased heat generation
The Embedded PC may overheat if the installation position is incorrect or the minimum distances
are not adhered to.
Ensure adequate ventilation. A horizontal installation position is ideal. Leave at least 30 mm clearance above and below the Embedded PC.
Note the following specifications for the control cabinet:
• Keep to the prescribed ambient temperature. Measure the temperature below the Embedded PC at a
distance of 30mm to the cooling fins, in order to determine the ambient temperature correctly.
• Adhere to the minimum distances of 30mm above and below the Embedded PCs.
• Additional electrical equipment affects the heat generation in the control cabinet. Select a suitable
control cabinet enclosure depending on the application, or ensure that excess heat is dissipated from
the control cabinet.
Prescribed installation position for temperatures up to 60°C
Install the Embedded PC horizontally in the control cabinet on a mounting rail, in order to ensure optimum
heat dissipation.
Ventilation openings are located at the top and bottom of the housing. This ensures an optimum airflow
through the Embedded PC in vertical direction. In addition, a minimum clearance of 30mm above and below
the Embedded PCs is required, in order to ensure adequate ventilation.
Fig.5: Embedded PC CX8110, horizontal installation position.
CX811020Version: 1.3
Commissioning
24V0V
PE
+
-
PE
-
+
BECKHOFF
KL9010
24V0V
PE
-
PE
-
BECKHOFF
KL2134
++
24V0V
PE
--
+
BECKHOFF
KL1002
+
PEPE
24V 0V
PE
+
-
PE
-
+
BECKHOFF
KL 9010
24V 0V
PE
-
PE
-
BECKHOFF
KL 2134
+ +
24V 0V
PE
- -
+
BECKHOFF
KL 1002
+
PEPE
24V0V
PE
+
-
PE
-
+
BECKHOFF
KL9010
24V0V
PE
-
PE
-
BECKHOFF
KL2134
++
24V0V
PE
--
+
BECKHOFF
KL1002
+
PEPE
24V 0V
PE
+
-
PE
-
+
BECKHOFF
KL 9010
24V 0V
PE
-
PE
-
BECKHOFF
KL 2134
+ +
24V 0V
PE
- -
+
BECKHOFF
KL 1002
+
PEPE
X101
X102
S101
1 2
3
4
5
6 879 10
TCWDERR
CX8110
24V 0V
+ +
- -
PE PE
X001
X101
X102
S101
1 2
3
4
5
6 879 10
TCWDERR
CX8110
24V 0V
+ +
- -
PE PE
X001
Installation positions with reduced temperature range up to 50°C
You can also mount the Embedded PC vertically or horizontally on the mounting rail. Note that you can then
only operate the Embedded PC up to an ambient temperature of 50°C.
Fig.6: Embedded PC CX8110, vertical installation position.
Fig.7: Embedded PC CX8110, horizontal installation position.
Ensure that Bus Terminals that are connected to the Embedded PC are designed for operation in vertical or
horizontal position.
CX811021Version: 1.3
Commissioning
24V0V
PE
+
-PE-
+
BECKHOFF
KL9010
24V0V
PE-PE
-
BECKHOFF
KL2134
++
24V0V
PE
--
+
BECKHOFF
KL1002
+
PEPE
24V 0V
PE
+
-PE-
+
BECKHOFF
KL 9010
24V 0V
PE-PE
-
BECKHOFF
KL 2134
+ +
24V 0V
PE
- -
+
BECKHOFF
KL 1002
+
PEPE
KLICK
X101
X102
S101
1 2
3
4
5
6 87 9 10
TC
WD
ERR
CX8110
24V 0V
+ +
- -
PE PE
X001
5.1.3Securing on mounting rail
The housing is designed such that the Embedded PC can be pushed against the mounting rail and latched
onto it. The Embedded PC is fastened to the DIN rail by means of a catch on the left side of the Embedded
PC.
Requirements:
• Mounting rail of type TS35/7.5 or TS35/15 according to DIN EN 60715.
Secure the Embedded PC on the mounting rail as follows:
1. Place the Embedded PC at the front of the mounting rail. Slightly press the Embedded PC onto the
mounting rail until a soft click can be heard and the Embedded PC has latched.
2. Subsequently, lock the catch on the left side of the Embedded PC. Use a screwdriver to do this.
ð Double-check the correct installation and latching of the Embedded PC on the mounting rail.
CX811022Version: 1.3
Commissioning
X101
X102
S101
1 2
3
4
5
6 8
7
9 10
TC
WD
ERR
CX8110
24V 0V
+ +
- -
PE PE
X001
1
2
5.2Connecting the power supply
NOTE
Damage to the Embedded PCs
The Embedded PCs may be damaged during wiring.
• The cables for the power supply should only be connected in de-energized state.
The power supply terminals require an external voltage source, which provides 24VDC (-15% / +20%). The
power supply terminal must provide 4A at 24V, in order to ensure the operation of the Embedded PCs in all
situations.
The cabling of the Embedded PC in the control cabinet must be done in accordance with the standard EN
60204-1:2006 PELV = Protective Extra Low Voltage:
• The "PE" and "0V" conductors of the voltage source for a basic CPU module must be on the same
potential (connected in the control cabinet).
• Standard EN 60204-1:2006, section 6.4.1:b stipulates that one side of the circuit, or a point of the
energy source for this circuit must be connected to the protective earth conductor system.
Connection example
Table6: Legend for the connection example
No.Description
1The upper spring-loaded terminals identified with "24V" and "0V" supply the Embedded
PC and the terminal bus (data transfer via K-bus or E-bus).
2The spring-loaded terminals identified as "+", "-" and "PE" supply the Bus Terminals via
the power contacts and the sensors or actuators connected to the Bus Terminals.
CX811023Version: 1.3
Commissioning
X101
X102
S101
1 2
3
4
5
6 87 9 10
TC
WD
ERR
CX8110
24V 0V
+ +
- -
PE PE
X001
Opening and closing spring-loaded terminals:
The cables of an external voltage source are connected to the power supply unit with spring-loaded
terminals. Connect the cables as follows:
Table7: Required wire cross-sections and strip lengths
Wire cross-section0.5 ... 2.5 mm
2
AWG 20 .. AWG 14
Strip length8 ... 9 mm0.33 inch
The voltage source has been connected to the power supply unit
successfully when the two upper power supply terminal LEDs light up in
green.
• The left LED (Us) indicates the supply of the basic CPU module and
terminal bus.
• The red LED (Up) indicates the Bus Terminal supply via the power
contacts.
NOTE
Interrupting / switching off the power supply
To switch off the Embedded PC, do not disconnect the ground (0 V), because otherwise current may continue to flow via the shielding, depending on the device, and damage the Embedded PC or peripheral devices.
• Always disconnect the 24 V line. Devices connected to the Embedded PC, which have their own power
supply (e.g. a Panel) must have the same potential for "PE" and "0 V" as the Embedded PC have (no
potential difference).
Observe the UL requirements
The CX8110 Embedded PCs are UL certified. The corresponding UL label can be found on the type plate.
The CX8110 Embedded PCs can thus be used in areas in which special UL requirements have to be met.
These requirements apply to the system voltage (Us) and to the power contacts (Up). Application areas
without special UL requirements are not affected by UL regulations.
UL requirements
• The Embedded PCs must not be connected to unlimited voltage sources.
• Embedded PCs may only be supplied from a 24 V DC voltage source. The voltage source must be
insulated and protected with a fuse of maximum 4 A (corresponding to UL248).
• Or the power supply must originate from a voltage source that corresponds to NEC class 2. An NEC
class 2 voltage source must not be connected in series or parallel with another NEC class 2 voltage
source.
CX811024Version: 1.3
Configuration
6Configuration
6.1Operating system
The Microsoft Windows Embedded Compact 7 operating system is used on the CX8110 Embedded PC. This
operating system is optimized for the CX8110 Embedded PC. This means that not all features of Windows
Embedded Compact 7 are available.
Security
For reasons of security the CERHOST and TELNET services are deactivated in the delivery state. To
reactivate these services, you need a MicroSD card reader.
CERHOST
CERHOST is deactivated by current images on first start-up via the registry file
CeRemoteDisplay_Disable.reg, which is located in the folder RegFiles.
To reactivate CERHOST you have to delete the file CeRemoteDisplay_Disable.reg from the folder RegFiles
and also the folder Documents and Settings
Then reinsert the MicroSD card in the Embedded PC and reboot. The Embedded PC creates a new
Document and Settings directory and then reboots automatically.
The Embedded PC is then accessible again via CERHOST.
TELNET
TELNET is deactivated by current images on first start-up via the registry file Telnet_Disable.reg, which is
located in the folder RegFiles.
To reactivate TELNET you have to delete the file Telnet_Disable.reg from the folder RegFiles and also the
folder Documents and Settings.
Then reinsert the MicroSD card in the Embedded PC and reboot. The Embedded PC creates a new
Document and Settings directory and then reboots automatically.
CX811025Version: 1.3
Configuration
6.1.1Features included
FeaturesCX8110
ATLX
MFCX
XML DOMX
XML Minimal ParserX
COMX
DCOMX
COM StorageX
WinsockX
TCP/IPX
TCP/IPv6X
FirewallX
Network Utilities (IpConfig, Ping, Route)X
Object Exchange Protocol OBEX-
Message Queuing MSMQ-
UPnP
Control Point-
Device HostX
SOAP
Client-
Server-
Server-
File Server (SMB/CIFS)X
FTP ServerX
Print Server (SMB/CIFS)-
RAS Server / PPTP ServerX
Simple Network Time Protocol (SNTP)X
SNTP Client ServiceX
Simple Network Management Protocol (SNMP)X
Telnet ServerX
Web Server (HTTPD) / Active Server Pages (ASP)
Support / JScript 5.8 / VBScript 5.8
X
Internet Explorer 7.0-
NET Compact Frameworkv3.5
RDP Client (Remote Desktop protocol)-
CAB File Installer/UninstallerX
CX811026Version: 1.3
Configuration
6.1.2Update image
NOTE
Loss of data
All data on the MicroSD card will be deleted. Backup any data that you may have on the MicroSD card before proceeding.
The new image will be copied directly to the MicroSD card in order to update the image of the Embedded
PC.
The new image is made available by Beckhoff Service. Perform the update only after consulting with
Beckhoff Service.
Requirements:
• Card reader for MicroSD cards.
Update the image as follows:
1. Switch the Embedded PC off and remove the MicroSD card from the Embedded PC.
2. Insert the MicroSD card into an external card reader and open the MicroSD card's folder tree.
3. Delete all files and folders on the MicroSD card.
4. Copy all files and folders of the new image to the empty MicroSD card.
5. Install the MicroSD card in the Embedded PC again.
6. Start the Embedded PC.
ð The Embedded PC is started and saves the current hardware configuration in the folder Documents and
Settings. The image has now been successfully updated.
CX811027Version: 1.3
Configuration
6.1.3FTP Server
Restricted access through firewall
From image version "CX8100_WEC7_LF_v604h_TC31_B4022.20", the firewall for the CX8110 is
enabled by default. This means that a passive FTP connection (as used by Microsoft, for example)
cannot be established. We therefore recommend using active FTP access. Enter TCP ports 20 and
21 in the firewall.
The File Transfer Protocol (FTP) is based exclusively on TCP-based communication connections. FTP
specifies two TCP ports, which are important for data transfer:
• Port 20/tcp: This port is also referred to as data port and is used to send/receive files and directory
lists.
• Port 21/tcp: This port is generally referred to as command port and is used to exchange status
information between the client and server.
Separate TCP connections are used for sending and receiving files (data port) and for transmitting
commands (command port). With FTP, two connection modes are available for setting up such connections:
"Active FTP" and "Passive FTP". Depending on the connection mode, the two ports mentioned above are
initiated differently, which is described in more detail below.
Active FTP
With active FTP, the client connects to the command port of the FTP server. The client uses a random port
N, e.g. 4242/tcp, as source port. The client then listens on port N+1 and notifies the server of this port. The
server then connects to the client on port N+1 and uses its data port as the source port.
A problem with active FTP is that the client itself does not establish a connection to the server's data port,
but communicates a port (N+1) to the server, which then connects to the client via its data port. In the case
of firewalls or NAT devices that are located upstream of the client, this could involve additional configuration
effort on the client side, since the data port of the client behind the firewall must be accessible to the server
(see figure "Connect 4243").
Passive FTP
This method is used when the client is not directly accessible by the server. This is the case, for example, if
the client is behind a firewall that uses NAT to rewrite the client's address. With passive FTP, the FTP client
initiates a connection via two random TCP ports N (command port) and N+1 (data port). The first port is used
to connect to the server's command port. However, instead of the client communicating its port N+1 to the
server so that the server can open a connection to it (see active FTP), the client first transmits a so-called
PASV command. The server now knows that the connection is via passive FTP. As a result, the server
opens a (random) port P as data port and transmits it to the client. The client then initiates a connection with
port P and uses port N+1 (data port) as the source port. This connection is then used to transfer the data.
CX811028Version: 1.3
Configuration
On closer examination it becomes apparent that the firewall problem of active FTP is reversed with passive
FTP. On the server side, the firewall should be configured such that the data port of the server can be
reached by the client. Many FTP servers offer the option to configure the data ports to be used.
CX811029Version: 1.3
Configuration
6.2DIP switch
The DIP switches (S101) can be used to define the Explicit Device Identification for the EtherCAT slave
interfaces (X101, X102). This enables an CX8110 to be swapped with another CX8110 during operation.
Explicit Device Identification is a value that enables the individual CX8110s to be distinguished.
The value can be set with the DIP switches or in TwinCAT. If the value is to be set with the DIP switches, the
setting requires one-time activation in TwinCAT (see: Using Explicit Device Identification [}43]). The
CX8110 reads the DIP switch at startup.
The DIP switches have no meaning for the Ethernet interface X001.
Fig.8: DIP switch S101, switches 1 to 10.
Right switch position: on "1".
Left switch position: off "0".
Table8: Meaning of the DIP switch (S101).
DIP switch S101Meaning
1 to 8The value for Explicit Device Identification can be set with DIP switches
1 to 8.
9Reserved
10Reserved
Example
To set the value 67 as Explicit Device Identification with the DIP switches, configure the DIP switches as
follows:
DIP 1DIP 2DIP 3DIP 4DIP 5DIP 6DIP 7DIP 8
OnOnOffOffOffOffOnOff
The following value then results from the activated DIP switches.
20 + 21 + 26 = 67
Table9: Values for the individual DIP switches.
DIP 1DIP 2DIP 3DIP 4DIP 5DIP 6DIP 7DIP 8
Value2
0
1
2
2
2
3
2
4
2
5
2
6
2
7
2
CX811030Version: 1.3
Configuration
6.3IP address
6.3.1Setting in the operating system
Under Windows Embedded Compact 7, the X001 Ethernet interface is displayed as EMAC1.
Fig.9: Ethernet interface with Windows Embedded Compact 7.
EMAC1 (X001)
As standard, DHCP is active and the IP address is assigned automatically. You can deactivate DHCP and
assign a static IP address.
CX811031Version: 1.3
Configuration
6.4Web service
6.4.1Starting the Beckhoff Device Manager
Using the Beckhoff Device Manager, an Industrial PC can be configured by remote access with the aid of a
web browser. Depending on the image version, access takes place via different protocols and requires
different open ports. For older image versions access takes place via the HTTP protocol and Port 80 (TCP).
More up-to-date image versions use HTTPS and Port 443 (TCP).
Requirements:
• Host PC and Embedded PC must be located in the same network. Depending on the operating system
version, the network firewall must allow access via port 80 (HTTP) or port 443 (HTTPS).
• IP address or host name of the Embedded PC.
Table10: Access data for the Beckhoff Device Manager on delivery.
User namePassword
Administrator1
Start the Beckhoff Device Manager as follows:
1. Open a web browser on the host PC.
2. Enter the IP address or the host name of the Industrial PC in the web browser to start the Beckhoff
Device Manager.
• Example with IP address: https://169.254.136.237/config
• Example with host name: https://CX-16C2B8/config
3. Enter the user name and password. The start page appears:
ð Navigate forward in the menu and configure the Industrial PC. Note that modifications only become
active once they have been confirmed. It may be necessary to restart the Industrial PC.
CX811032Version: 1.3
Configuration
6.4.2Enabling a remote display
So that you can remotely access an Industrial PC with CE operating system, you must first activate Remote
Display in the Beckhoff Device Manager. The remote display is disabled by default.
Requirements:
• Host PC and Embedded PC must be located in the same network. Depending on the operating system
version, the network firewall must allow access via port 80 (HTTP) or port 443 (HTTPS).
• The IP address or the host name of the Embedded PC must be known.
Table11: Access data for the Beckhoff Device Manager on delivery.
Operating systemAccess data
Windows Embedded Compact 7User name: Administrator
Password: 1
Enable the remote display as follows:
1. Open a web browser on the host PC.
2. Enter the IP address or the host name of the Industrial PC in the web browser to start the Beckhoff
Device Manager.
• Example with IP address: https://169.254.136.237/config
• Example with host name: https://CX-16C2B8/config
3. Enter the user name and password. The start page appears.
4. In the menu under Device click on Boot Opt.
5. Under Remote Display select the option On and confirm the settings.
6. In the information window click OK to accept the settings.
ð You have successfully activated Remote Display on the Industrial PC. After restarting, you can remotely
access your Industrial PC.
CX811033Version: 1.3
Configuration
6.4.3Starting a remote connection
With the aid of the Remote Display Control program (CERHOST), a remote connection can be established
and an Industrial PC with CE operating system can be remotely controlled from a host PC.
Requirements:
• Remote Display is active. See: Enabling a remote display.
• Host name of the Embedded PC.
• Remote Display Control (CERHOST). Download under: https://infosys.beckhoff.com/content/1033/
CX8110_HW/Resources/zip/5047075211.zip
Start the remote connection as follows:
1. Unpack the zip file on the host PC and run cerhost.exe.
2. Click on File in the menu bar and then on Connect.
3. Enter the host name of the Embedded PC in the Hostname field.
ð The remote connection is started and the Windows Embedded CE 7 start screen appears.
CX811034Version: 1.3
Configuration
6.5TwinCAT
6.5.1Connecting to the CX81xx
Before you can work with the CX81xx you must connect your local computer to the CX81xx (target system).
Then you can search for devices such as EtherCAT terminals with the help of the IP address or the host
name.
The local PC and the target system must be connected to the same network or directly to each other via an
Ethernet cable. In TwinCAT a search can be performed for all devices in this way and project planning
subsequently carried out.
Requirements for this step:
• TwinCAT 3 must be in Config mode.
• IP address or host name of the Embedded PC.
Establish a connection as follows:
1. In the menu at the top click on File > New > Project and create a new TwinCAT XAE project.
2. In the tree view on the left click on SYSTEM, and then Choose Target.
3. Click on Search (Ethernet).
4. Type the host name or the IP address of the device into the Enter Host Name / IP box and press
[Enter].
CX811035Version: 1.3
Configuration
5. Mark the device found and click on Add Route.
The Logon Information window appears.
Enter the user name and password for the CX in the User Name and Password fields and click OK.
The following information is set as standard in CX devices:
User name: Administrator Password: 1
6. If you do not wish to search for any further devices, click on Close to close the Add Route window.
The new device is displayed in the Choose Target System window.
7. Select the device you want to specify as target system and click OK.
ð You have successfully searched for a device in TwinCAT and inserted the device as the target system.
The new target system and the host name are displayed in the menu bar.
Using this procedure you can search for all available devices and also switch between the target systems
at any time. Next, you can append the device to the tree view in TwinCAT.
CX811036Version: 1.3
Configuration
6.5.2Scanning for devices
As soon as the CX81xx has been inserted as the target system in TwinCAT you can scan for further devices
and in this way, for example, insert all the EtherCAT Terminals or Bus Terminals connected to the CX81xx
into the TwinCAT tree view.
Requirements for this step:
• The CX81xx is connected as the target system to TwinCAT (see: Connecting to the CX81xx [}35]).
• TwinCAT 3 is in ConfigMode.
Scan for devices as follows:
1. In the tree view on the left, right-click on Devices under I/O.
2. In the context menu click on Scan.
3. Select the devices you want to use and confirm the selection with OK.
Depending on whether EtherCAT terminals or Bus Terminals are connected to the CX81xx, the K-bus
interface (Bus Terminals) or the EtherCAT interface (EtherCAT terminals) will be found.
4. Confirm the request with Yes, in order to look for boxes.
5. Confirm the request whether to enable FreeRun with Yes.
ð The devices are created in the tree view. Depending on the connected terminals, either a Bus Coupler or
an EtherCAT coupler with the associated terminals will be displayed.
In the next step you can create a small program.
CX811037Version: 1.3
Configuration
6.5.3Creating process data
Up to 512 bytes of input and output data or 256 variables can be exchanged via the EtherCAT slave
interface (X101, X102). The 512 bytes of input and output data cannot be created individually, since 512
variables are required for this.
To avoid an excessive number of links, it makes sense to store data in a data structure. Note that the data
structures used are processed differently on an x86 system and an ARM processor. For example, the ARM
processor always places WORD variables (2 bytes) on an even address and DWORD variables (4 bytes) on
an address that can be divided by 4.
Data structure sample:
byTest :BYTE;
udTest:UDINT;
Table12: Data structure with BYTE and UDINT variables
ARM addressARM variableAddress x86ARM variable
Byte Offset 0ByteByte Offset 0BYTE
Byte Offset 4UDINTByte Offset 1UDINT
Sum: 8bytesSum 5 bytes
You can determine the length of a data structure on both systems using the command SIZEOF. If the length
of the data structure is different, this indicates that the data structure is unsuitable.
You can solve the problem by smarter arrangement of the variables or by using dummy variables.
Table13: Data structure with dummy variables.
ARM addressARM variableAddress x86ARM variable
Byte Offset 0ByteByte Offset 0BYTE
Byte Offset 1BYTE (Dummy1)
Byte Offset 2BYTE (Dummy2)
Byte Offset 3BYTE (Dummy3)
Byte Offset 4UDINTByte Offset 4UDINT
Sum: 8bytesSum 8 bytes
Create process data as follows:
1. Under Devices in the tree view on the left, right-click on Inputs to create input variables.
CX811038Version: 1.3
2. Click on Add New Item in the context menu. The Insert Variable menu appears.
Configuration
3. Select the required variables and confirm with OK. Click the Create Array Type button to create data
structures.
ð You have successfully created input variables. Repeat the steps to create output variables in the same
way.
CX811039Version: 1.3
Configuration
6.5.4Creating a PLC project
The next steps describe how to create a PLC project in TwinCAT and add it in the tree view.
Requirements for this step:
• A newly created TwinCAT XAE project.
Create a PLC project as follows:
1. Right-click on PLC in the tree view.
2. In the context menu click on Add New Item and select the Standard PLC Project.
3. In the tree view click on the newly created PLC project, then double-click on MAIN (PRG) under POUs.
4. Write a small program, as shown in the diagram below.
CX811040Version: 1.3
Configuration
5. In the tree view right-click on the PLC project, then click on Build in the context menu.
ð You have successfully created a PLC project and added the project in TwinCAT. A PLC instance is
created with the variables for the inputs and outputs from the PLC project.
In the next step you can link the variables with the hardware.
CX811041Version: 1.3
Configuration
6.5.5Linking variables
Once the PLC project has been successfully appended in TwinCAT you can link the newly created input and
output variables from the PLC project with the inputs and outputs of your hardware.
Requirements for this step:
• An appended PLC project in TwinCAT.
Link the variables as follows:
1. Double-click on the input or output variables in the tree view under PLC.
The Attach Variable window appears and shows which inputs or outputs can be linked with the
variables from the PLC project.
2. Double-click on the inputs or outputs of the hardware in the Attach Variable window.
Link the input variables with the inputs and the output variables with the outputs of the hardware.
Variables that are already linked are indicated with a small arrow icon in TwinCAT.
3. In the toolbar click on Activate Configuration.
4. Confirm the request whether TwinCAT is to start in Free Run mode with Yes.
ð You have successfully linked variables with the hardware. Use Activate Configuration to save and
activate the current configuration.
Next, the configuration can be loaded to the Embedded PC in order to start TwinCAT automatically in
Run mode and then start the PLC project.
CX811042Version: 1.3
Configuration
6.5.6Using Explicit Device Identification
Explicit Device Identification is a value that enables the individual CX8110s to be distinguished. This enables
an CX8110 to be swapped with another CX8110 during operation.
The value can be set with the DIP switches or in TwinCAT. If the value is to be set with the DIP switches, this
setting requires one-time activation in TwinCAT. Otherwise the value has to be set in TwinCAT.
Proceed as follows:
1. In the tree view on the left, click on the EtherCAT slave.
2. Click on the EtherCAT Slave tab.
3. Enable the Using Dipswitch Value option to set the value for Explicit Device Identification with the DIP
switches (see: DIP switch [}30]).
4. Or enter a value under Value instead. This defines the value for Explicit Device Identification in
TwinCAT.
ð You have successfully set a value for Explicit Device Identification. The definition via the DIP switches or
TwinCAT is mutually exclusive and is grayed out depending on the selection.
CX811043Version: 1.3
Configuration
6.6Distributed Clocks (DC)
The Embedded PC CX8110 supports distributed clocks (DC). This enables the CX8110 to synchronize with
a higher-level controller.
Synchronization is best illustrated by two clocks, a master clock and a slave clock. The CX8110 is the slave
clock and must follow the master clock. The two clocks do not have to have the same absolute time. Rather,
the time difference (DcToTcTimeDiff) to the master clock becomes a constant after synchronization. It does
not matter when a time stamp is created in the CX8110. The time stamp always has the same time
difference to the master clock, even after years have passed.
Fig.10: Example setup of a master/slave configuration with distributed clocks (DC).
If the EtherCAT connection is interrupted or the higher-level control (master clock) is switched off and
switched on again after some time, the time difference between master clock and slave clock must be
redefined. From this point on, a new time difference applies that differs from the previous value.
For optimum DC control, select a sync task less than or equal to 5ms. The smaller the sync task, the better
the DC control. Make sure the CPU load is below 60%.
Restrictions for K-bus terminals
The distributed clocks function (DC) usually only makes sense if the CX8110 Embedded PC is used with Ebus terminals on the right-hand side and therefore EtherCAT. If you only use K-bus terminals, the distributed
clocks function (DC) is rather meaningless. The following sections therefore focus on the use of distributed
clocks (DC) in conjunction with a lower-level EtherCAT master.
CX811044Version: 1.3
Configuration
6.6.1Enabling distributed clocks
This chapter explains how to enable distributed clocks (DC) in the slave interface of the CX8110. To this
end, the CX8110 is scanned in TwinCAT, and the slave interface and the lower master of the CX8110 are
created.
Proceed as follows:
1. In the tree view on the left, click on EtherCAT slave.
2. Click on the EtherCAT Slave tab
3. Select the Enable Synchronization option.
ð You have successfully enabled distributed clocks (DC) if the variables DcToTcTimeOffset, DcTimeDiff
and Dc State were created under InfoData. From now on you can measure the time difference between
the master and slave clock with the variable DcToTcTimeOffset. You can determine when the CX8110 is
synchronized by reading the value of the DcTimeDiff variable. A control configuration can be regarded as
optimal with a task time of 1 ms and a DcTimeDiff of less than 10 ns. A DcTimeDiff of less than 100 ns is
regarded as adequate.
In the next step you can configure the master of the CX8110.
CX811045Version: 1.3
Configuration
6.6.2Configuring the lower master
This chapter explains how to configure the lower master (EtherCAT master) of the CX8110. Once the
configuration is complete, the lower master fetches the distributed clock from the slave interface.
Proceed as follows:
1. In the tree view on the left, click on the EtherCAT master of the CX8110.
2. Click the EtherCAT tab, then the Advanced Settings button. The Advanced Settings window opens.
3. Enable the option DC Time controlled by CCAT Time (Master Mode).
ð In the next step you can configure the CX8110 diagnostics.
CX811046Version: 1.3
Configuration
6.6.3Diagnostics on the slave side
The status of the EtherCAT communication is monitored using the state variable on the CX8110 side. Use
the variables DcToTcTimeOffset, DcTimeDiff and Dc State to monitor the status of the distributed clocks
(DC). These variables are created automatically when you enable distributed clocks (DC).
State (WORD):
The state variable is used to monitor the status of the EtherCAT communication. The communication is
active when the state is 0x___8.
0x___1 = Slave is in 'INIT' state
0x___2 = Slave is in 'PREOP' state
0x___4 = Slave is in 'SAFEOP' state
0x___8 = Slave is in 'OP' state
Other bits are reserved and do not have to be checked.
NetId (ARRAY[6] OF BYTE):
the NetId is the ADS number for the EtherCAT slave.
DcToTcTimeOffset (LINT):
indicates the time difference between master and slave clock. The slave clock is the clock of the CX8110
and can be read with _TaskInfo[1].
Code:
VAR
PlcTaskSystemInfo:PlcTaskSystemInfo;
END_VAR
PlcTaskSystemInfo:=_TaskInfo[1]; //Task Info wird and die PlcTaskSystemInfo Struktur übergeben
GVL.DcTimeFromCX8110:=PlcTaskSystemInfo.DcTaskTime; //Die DC Zeit wird ermittelt und einer Globalen
Variable zugewiesen
DcTimeDiff (DINT)
The DcTimeDiff variable indicates the accuracy of the distributed clocks (DC). The unit of measurement is
ns. Depending on the PLC program, the CX8110 takes approx. 1 to 2 seconds to adjust. In exceptional
cases, the CX8110 may take longer.
The shorter the sync task, the faster and better the CX8110 is tuned. The disadvantage is a higher CPU
load. So the rule is: as fast as possible, but without overloading the CPU. Make sure the CPU load is below
60%.
You can determine when the CX8110 is synchronized by reading the value of the DcTimeDiff variable. A
control configuration can be regarded as optimal with a task time of 1 ms and a DcTimeDiff of less than 10
ns. A DcTimeDiff of less than 100 ns is regarded as adequate.
1 ms = 1,000 µs = 1,000,000 ns
These demands are quite high. Depending on the application, a lower accuracy may be acceptable. You
should always determine whether the control quality is adequate for your application.
DcState (UINT):
With the CX8110 the value is always 0x___2.
0x___1 = TwinCAT Time Controlled by EtherCAT Slave Dc time
0x___2 = TwinCAT Time Controlled by CCat time
CX811047Version: 1.3
Configuration
6.6.4Configuring the upper master
This chapter shows how to configure distributed clocks (DC) for the upper master. Connect the previously
configured CX8110 to the upper master. Use TwinCAT to scan for the master and the CX8110 connected to
it.
Make sure the sync task is less than or equal to 5ms and the CPU load is less than 60%. The best results
are achieved with short cycle times between 1 and 2ms.
Proceed as follows:
1. In the tree view click on the EtherCAT slave. This is the CX8110 connected to the upper master.
2. Click the DC tab.
3. Under Operation Mode, enable the DC Synchron option.
ð You have successfully enabled distributed clocks (DC) if the variables DcToTcTimeOffset, DcTimeDiff
and Dc State were created under InfoData.
CX811048Version: 1.3
7Programming
7.1Seconds UPS
Loss of data
The use of the 1-second UPS outside of the documented possibilities can lead to loss or corruption
of data.
Use only TwinCAT to control the 1-second UPS and save only persistent data with a maximum size
of 1 MB.
The 1-second UPS is an UltraCap capacitor that continues to
supply the processor with power in the event of a power failure.
During this period persistent data can be saved, which are
available on switching on again.
Since the 1-second UPS is designed for the entire service life,
the holding time is considerably longer with new devices. The
capacitors age over the course of time and the holding time
decreases. Therefore a maximum of 1MB persistent data can
be reliably saved over the entire service life.
Do not save any other data and do not use any other
applications to control the 1-second UPS.
Programming
Please note that the 1-second UPS does not supply power to the K-bus or the E-bus and that their data may
already be invalid when the 1-second UPS is activated. Also, the fieldbus system (or Ethernet) may not work
or not work properly once the 1-second UPS was activated.
Storage location and names of the files:
The persistent data are saved by default in the TwinCAT boot directory:
Development environmentFile pathFile name
TwinCAT 3\\TwinCAT\3.1\Boot\PlcPort_85x.bootdata
Port_85x.bootdata-old (backup)
The x in the file name stands for
the number of the runtime system.
Configure the 1-second UPS as follows in order to save persistent data:
• Declare important data such as counter values in the PLC as VAR PERSISTENT. Then call the
function block FB_S_UPS_CX81xx cyclically in TwinCAT with the fastest task in order to control the 1-
second UPS (see: Function block [}51]).
• Select the mode in the function block in order to specify what should happen in the case of a power
failure. Specify, for example, whether persistent data are saved and a quick shutdown is executed
(see: Data types [}53]).
• You can then check the validity of the variables and monitor whether the persistent variables are
loaded without error (see: PlcAppSystemInfo).
ComponentsVersion
TwinCAT on the development PC and on the control
system
TwinCAT 3.1 Build 4020.16 or higher
CX811049Version: 1.3
Programming
Saving and loading persistent data
The persistent data are saved in the Port_85x.bootdata file on the MicroSD card. On starting the PLC the
Port_85x.bootdata file is loaded from the MicroSD card, backed up there as Port_85x.bootdata_old (backup)
and then deleted.
Another current Port_85x.bootdata file is not written until the system is shut down or the 1-second UPS is
activated.
If no Port_85x.bootdata file exists when starting the Embedded PC, the persistent data are invalid and will be
deleted (standard setting). The reason for this is that the 1-second UPS was activated before the TwinCAT
PLC was started during startup of the Embedded PC. In this case no persistent data were saved, since the
system was unable to ensure sufficient buffer time for saving the data.
Always call the function block from the PLC and always use the fastest task to do so. In the case of a power
failure Beckhoff recommends not calling the rest of the application in order to ensure that sufficient time
remains for writing the data.
IF NOT FB_S_UPS_CX81xx.bPowerFailDetect THEN
;//Call programs and function blocks
END_IF
The rest of the application influences the CPU load and the CPU load in turn affects the period during which
the persistent data are written.
Loading a backup of the persistent data
A registry setting can be used to determine whether the backup file is deleted or used. The backup file is
used by default (setting 0):
If the backup file is to be deleted, the value of "ClearInvalidPersistentData" in the registry must be set to 1.
It is also possible in TwinCAT to specify on the left in the tree view under PLC > CX8190 whether the backup
file is to be used or not.
Fig.11: Loading a backup of the persistent data. Settings in TwinCAT 3.
The backup files will be deleted if the option Clear Invalid Persistent Data is activated. Corresponds to
registry entry 1.
CX811050Version: 1.3
Programming
7.1.1Function block
FUNCTION_BLOCK FB_S_UPS_CX81xx
The function block FB_S_UPS_CX81xx can be used on CX81xx devices with second UPS, in order to
control the second UPS from the PLC. This enables the persistent data to be saved according to the
selected mode in the event of a power failure. The default input values of the FB_S_UPS_CX81xx should be
retained.
The second UPS does not have sufficient capacity for bridging power failures. Saving can take place only on
MicroSD cards.
The 1-second UPS can be used only for a few seconds in the event of a power failure in order, to save
persistent data. The data must be saved in the fast “persistent mode” “SPDM_2PASS”, even though this can
lead to real-time violations. Make sure you configure adequate router memory for saving the persistent data.
Regardless of the mode and therefore irrespective of whether data were saved or a quick shutdown was
performed, the UPS switches off the mainboard after the capacitors have been discharged, even if the
voltage has returned in the meantime.
NOTE
Loss of data
If other applications or the PLC keep further files open or write to them, file errors may occur if the 1-second
UPS switches off the controller.
Function block modes
A QuickShutdown is performed automatically in the eSUPS_WrPersistData_Shutdown mode (standard
setting) after the storage of the persistent data.
In the eSUPS_WrPersistData_NoShutdown mode only the persistent data are saved, no QuickShutdown is
performed.
In eSUPS_ImmediateShutdown mode a quick shutdown is executed immediately, without saving data.
In the eSUPS_CheckPowerStatus mode only a check is performed as to whether a power failure has
occurred. If this is the case, the function block only switches back to the PowerOK state after the expiry of
tRecoverTime (10s).
sNetID: AmsNetID of the controller (type: T_AmsNetID)
iPLCPort: Port number of the PLC runtime system (851 for the first PLC runtime system, 852 for the second
PLC runtime system, …). If no port number is specified, iPLCPortis0. The function block then automatically
determines the port of the PLC runtime system.
tTimeout: Timeout for writing of the persistent data or the quick shutdown.
CX811051Version: 1.3
Programming
eUpsMode: Defines whether persistent data are to be written and whether a quick shutdown is to be
executed. The default value is eSUPS_WrPersistData_Shutdown, i.e. a quick shutdown is executed
automatically once the persistent data have been saved. (Type: E_S_UPS_Mode)
ePersistentMode: Mode for the writing of the persistent data. Default value is SPDM_2PASS.
tRecoverTime: Time after which the UPS returns to PowerOK state in UPS modes without quick shutdown.
The tRecoverTime must be greater than the maximum charging time of the UPS, otherwise the UPS may
discharge too much in the event of short, consecutive power failures, which could result in the charge being
insufficient for storing the persistent data.
OldBootDataPERSISTENT variables: INVALID (the back-up copy was loaded, since no
valid file was present)
AppTimestampTime at which the PLC application was compiled
KeepOutputsOnBPThe flag can be set and prevents that the outputs are zeroed when a
breakpoint is reached. In this case the task continues to run. Only the
execution of the PLC code is interrupted.
ShutdownInProgressThis variable has the value TRUE if a shutdown of the TwinCAT system is in
progress. Some parts of the TwinCAT system may already have been shut
down.
LicensesPendingThis variable has the value TRUE if not all licenses that are provided by
license dongles have been validated yet.
BSODOccuredThis variable has the value TRUE if Windows is in a BSOD.
TComSrvPtrPointer to the TcCOM object server
AppNameName generated by TwinCAT, which contains the port.
ProjectNameName of the project
CX811054Version: 1.3
Programming
7.2Function F_CX81xx_ADDRESS
This function reads the position of the DIP switch of the CX8110. One possible application is that you can
activate different program parts in the PLC depending on the switch position.
VAR_INPUT
VAR_INPUT
iCX_Typ:INT;(* Use product code without ‘CX’ e.g.: CX8180 -> 8180 *)
END_VAR
VAR_OUTPUT
F_CX80xx_ADDRESS:INT;
F_CX80xx_ADDRESS : -1, non-implemented CX, address of the switch
Requirements
Development environment
TwinCAT v3.1 Build
4022.30
Target platformHardwarePLC libraries to include
ARMCX8110Tc2_SystemCX
7.3Real Time Clock (RTC)
The real-time clock (RTC) is read out via the function blocks FB_LocalSystemTime and can be set with the
function block NT_SetLocalTime (see TcUtilities.lib). The RTC is supplied by the battery and can thus
continue to run in the power-off state.
Real-time clock (RTC) running too slow
TwinCAT uses its own real-time driver. This has the advantage that the quality of the real-time has been
much improved, and the jitter of the task has been reduced to a minimum. This calls the operating system
from TwinCAT. The RTC on the operating system is controlled via TwinCAT and must be called at certain
times.
If the task cycle time on the TwinCAT side is very long and the CPU load is high, the operating system is no
longer called with sufficient frequency. As a result, the RTC on the operating system is slow. If you have
noticed that the RTC is slow and the time on the CX8110 is also slow, you can apply the following
troubleshooting procedure.
Remedy
The call of the RTC is always linked to a reading of the hardware RTC. This has the disadvantage of a
slightly higher CPU load, but since the CPU load is already high due to your application, the additional CPU
load is negligible. Adjust the settings in the registry:
[HKEY_LOCAL_MACHINE\Platform]
“SoftRTC"=dword:0
Table14: Description of the SoftRTC registry key
ValueDescription
0The hardware RTC is always read out when the Windows time is
requested.
1The hardware RTC is read out once at startup. From then on, the
Windows clock continues to run via the internal system tick.
CX811055Version: 1.3
Programming
Standard setting: "SoftRTC"=dword:1
CX811056Version: 1.3
Ethernet X001 Interface
8Ethernet X001 Interface
8.1Ethernet
Ethernet was originally developed by DEC, Intel and XEROX (as the "DIX" standard) for passing data
between office devices. The term nowadays generally refers to the IEEE802.3 CSMA/CD specification,
published in 1985. Because of the high acceptance around the world this technology is available everywhere
and is very economical. This means that it is easy to make connections to existing networks.
There are now a number of quite different transmission media: coaxial cable (10Base5), optical fiber
(10BaseF) or twisted pairs (10BaseT) with shield (STP) or without shield (UTP). Using Ethernet, different
topologies can be built such as ring, line or star.
Ethernet transmits Ethernet packets from a sender to one or more receivers. This transmission takes place
without acknowledgement, and without the repetition of lost packets. To achieve reliable data
communication, there are protocols, such as TCP/IP, that can run on top of Ethernet.
MAC-ID
The sender and receiver of Ethernet packets are addressed by means of the MAC-ID. The MAC-ID is a 6byte identification code unique to every Ethernet device in the world. The MAC-ID consists of two parts. The
first part (i.e. the first 3bytes) is a manufacturer identifier. The identifier for Beckhoff is 00 01 05. The next
3bytes are assigned by the manufacturer and implement a unique serial number. The MAC-ID can, for
example, be used for the BootP protocol in order to set the TCP/IP number. This involves sending a
telegram containing the information such as the name or the TCP/IP number to the corresponding node. You
can read the MAC-ID with the KS2000 configuration software.
The Internet Protocol (IP)
The internet protocol (IP) forms the basis of this data communication. IP transports data packets from one
device to another; the devices can be in the same network, or in different networks. IP here looks after the
address management (finding and assigning MAC-IDs), segmentation and routing. Like the Ethernet
protocol, IP does not guarantee that the data is transported - data packets can be lost, or their sequence can
be changed.
TCP/IP was developed to provide standardized, reliable data exchange between any numbers of different
networks. TCP/IP was developed to provide standardized, reliable data exchange between any numbers of
different networks. Although the term is often used as a single concept, a number of protocols are layered
together here: e.g. IP, TCP, UDP, ARP and ICMP.
Fig.12: Structure of the Ethernet protocol.
CX811057Version: 1.3
Ethernet X001 Interface
Transmission Control Protocol (TCP)
The Transmission Control Protocol (TCP) which runs on top of IP is a connection-oriented transport protocol.
It includes error detection and handling mechanisms. Lost telegrams are repeated.
User Datagram Protocol (UDP)
UDP is connectionless transport protocol. It provides no control mechanism when exchanging data between
sender and receiver. This results in a higher processing speed than, for example, TCP. Checking whether or
not the telegram has arrived must be carried out by the higher-level protocol.
Protocols running on top of TCP/IP and UDP/IP
The following protocols can run on top of TCP/IP or UDP:
• ADS
• ModbusTCP
Both of these protocols are implemented in parallel on the Bus Coupler, so that no configuration is needed to
activate the protocols.
Fig.13: Protocols running on top of TCP/IP and UDP/IP.
ADS can be used on top of either TCP or UDP, but ModbusTCP is always based on TCP/IP.
CX811058Version: 1.3
Ethernet X001 Interface
8.2Topology example
Line, tree or star: EtherCAT supports almost any topology. The bus or line structure known from the
fieldbuses thus also becomes available for Ethernet.
Fig.14: Topology example, CX8110 connected with other CX8110 via EtherCAT.
8.3ADS-Communication
The ADS protocol (ADS: Automation Device Specification) is a transport layer within the TwinCAT system. It
was developed for data exchange between the different software modules, for instance the communication
between the NC and the PLC. This protocol enables communication with other tools from any point within
the TwinCAT. If it is necessary to communicate with another PC or device, the ADS protocol is used on top
of TCP/IP. Within a networked system it is thus possible to reach all data from any point.
Fig.15: The ADS protocol as a transport layer within TwinCAT.
The ADS protocol runs on top of the TCP/IP or UDP/IP protocols. It allows the user within the Beckhoff
system to use almost any connecting route to communicate with all the connected devices and to
parameterize them. Outside the Beckhoff system a variety of methods are available to exchange data with
other software tools.
Software interfaces
CX811059Version: 1.3
Ethernet X001 Interface
ADS-OCX
The ADS-OCX is an Active-X component. It offers a standard interface to, for instance, Visual Basic, Delphi,
etc.
ADS-DLL
You can link the ADS-DLL (DLL: Dynamic Link Library) into your C program.
OPC
The OPC interface is a standardized interface for communication used in automation technology. Beckhoff
offer an OPC server for this purpose.
Protocol
The ADS functions provide a method for accessing the Bus Coupler information directly from the PC. ADS
function blocks can be used in TwinCAT for this. The function blocks are contained in the Tc2_System.lib
library. It is also equally possible to call the ADS functions from AdsOCX, ADSDLL or OPC.
Fig.16: Structure of the ADS communication.
AMSNetID
The AMSNetID provides a reference to the device that is to be addressed. This is taken from the MAC
address of the first Ethernet port (X001) and is printed on the side of the CX80xx. For the AMSNetID the
bytes 3..6 plus ".1.1" are typically used.
Example:
MAC address 00-01-05-01-02-03
AMSNetID 5.1.2.3.1.1
Port number
The port number distinguishes sub-elements in the connected device.
Port 851: local process data PLC runtime 1
Index group
The index group distinguishes different data within a port.
Index offset
Indicates the offset, from which reading or writing the byte is to start.
Len
Gives the length of the data, in bytes, that is to be read or written.
TCP port number
The TCP port number for the ADS protocol is 48898 or 0xBF02.
CX811060Version: 1.3
9Error handling and diagnosis
TC
WD
ERR
CX8110
9.1Diagnostic LEDs
DisplayLEDMeaning
TCTwinCAT Status LED:
TwinCAT is in Run mode (green).
TwinCAT is in Stop mode (red).
TwinCAT is in Config mode (blue).
WDNo function ex factory. The LED can be parameterized for user-specific
ERRLights up red when switching on. Software is being loaded. Goes off if
everything is OK.
The LED can be parameterized for user-specific diagnosis messages
(see: F_CX8190_LED_ERR function).
9.2K-bus
Error handling and diagnosis
The power supply unit checks the connected Bus Terminals for errors. The red LED "K-bus ERR" is off if no
error is present. The red LED "K-bus ERR" flashes if Bus Terminal errors are present.
Table15: Diagnostic LEDs in K-Bus mode.
DisplayLEDMeaning
Us 24 VPower supply for basic CPU module. The LED lights green if the
power supply is correct.
Up 24VPower supply for terminal bus. The LED lights green if the power
supply is correct.
K-BUS RUNDiagnostic K-bus. The green LED lights up in order to indicate
fault-free operation. "Error-free" means that the communication
with the fieldbus system is also running.
K-BUS ERRDiagnostic K-bus. The red LED flashes to indicate an error. The
red LED blinks with two different frequencies.
The frequency and number of the flashes can be used to determine the error code and the error argument.
An error is indicated by the "K-bus ERR" LED in a particular order.
Table16: K-bus ERR LED, fault indication sequence through the LED.
OrderMeaning
Fast blinkingStarting the sequence
First slow sequenceError code
No displayPause, the LED is off
Second slow sequenceError code argument
Count how often the red LED K-bus ERR flashes, in order to determine the error code and the error
argument. In the error argument the number of pulses shows the position of the last Bus Terminal before the
error. Passive Bus Terminals, such as a power feed terminal, are not included in the count.
CX811061Version: 1.3
Error handling and diagnosis
Table17: K-BUS ERR LED, fault description and troubleshooting.
Error codeError code argu-
ment
Persistent,
continuous
flashing
3 pulses0K-bus command error.• No Bus Terminal inserted.
4 pulses0K-bus data error, break
nBreak behind Bus
5 pulsesnK-bus error in register
6 pulses0Error at initialization.Replace Embedded PC.
1Internal data error.Hardware reset of the Embedded PC
8Internal data error.Hardware reset of the Embedded PC
7 pulses0Process data lengths of
DescriptionRemedy
EMC problems.• Check power supply for undervoltage or
overvoltage peaks.
• Implement EMC measures.
• If a K-bus error is present, it can be
localized by a restart of the power supply
(by switching it off and then on again)
• One of the Bus Terminals is defective;
halve the number of Bus Terminals
attached and check whether the error is
still present with the remaining Bus
Terminals. Repeat this procedure until
the faulty Bus Terminal has been found.
Check whether the Bus End Terminal 9010
behind the power supply
unit.
Terminaln
communication with Bus
Terminal n.
the set and actual
configurations do not
correspond.
is connected.
Check whether Bus Terminal n+1 after the
power supply unit is connected correctly;
replace if necessary.
Replace Bus Terminal at location n.
(switch off and back on again).
(switch off and back on again).
Check the configuration and the Bus
Terminals for consistency.
For some error the LED "K-BUS ERR" does not go out, even if the error was rectified. Switch the power
supply for the power supply unit off and back on again to switch off the LED after the error has been rectified.
CX811062Version: 1.3
State variable
In TwinCAT there is a State variable under the Bus Coupler for K-bus diagnostics.
Error handling and diagnosis
Fig.17: Status variable for error handling and diagnostics under TwinCAT.
If the value is "0", the K-bus operates synchronous and without error. If the value is <> "0" there may be a
fault, or it may only be an indication that the K-bus cycle is longer than the task. In which case it would no
longer be synchronous with the task. The task time should be faster than 100 ms. We recommend a task
time of less than 50 ms. The K-bus update time typically lies between one and five ms.
Table18: Description of the State variable values.
BitDescription
Bit 0K-bus error.
Bit 1Terminal configuration has changed since the start.
Bit 2Process image lengths do not match.
Bit 8(still) no valid inputs.
Bit 9K-bus input update not yet complete.
Bit 10K-bus output update not yet complete.
Bit 11Watchdog.
Bit 15Acyclic K-bus function active (e.g. K-bus reset).
If there is a K-bus error, this can be reset via the IOF_DeviceReset function block (in the TcIoFunctions.lib).
CX811063Version: 1.3
Error handling and diagnosis
9.3E-bus
The power supply unit checks the connected EtherCAT Terminals. The "L/A" LED is lit in E-bus mode. The
"L/A" LED flashes during data transfer.
Table19: Diagnostic LEDs in K-Bus mode.
DisplayLEDMeaning
Us 24 VPower supply for basic CPU module. The LED lights
green if the power supply is correct.
Up 24 VPower supply for terminal bus. The LED lights green if
the power supply is correct.
L / AoffE-bus not connected.
onE-bus connected / no data traffic.
flashesE-bus connected / data traffic on the E-bus.
CX811064Version: 1.3
Care and maintenance
CX8110
CX8110
10Care and maintenance
10.1Replace the battery
NOTE
Risk of explosion
An incorrectly inserted battery may explode and damage the Embedded PC.
Only use original batteries and ensure that the positive and negative poles are inserted correctly.
The battery must be replaced every 5 years. Spare batteries can be ordered from Beckhoff Service. A
battery of type CR2032 is used for the Embedded PC.
Table20: Technical data of the battery.
Battery typeElectrical properties (at
20°C)
nominal volt-
age
CR20323.0V225 mAh0.20 mA20.0 mm3.20 mm
The battery compartment is below the front flap. The battery stores the time and date. The time and date are
reset if the battery is removed.
Be aware of this behavior for your hardware and software configuration and reset the time and date after a
battery change.
Requirements:
• The Embedded PC is switched off.
Replace the battery as follows:
1. Open the front flap.
2. Apply the screwdriver below or above the battery and prize the battery carefully out of the battery
compartment.
nominal
capacity
Standard
load
continuous
load
Dimensions
DiameterHeight
3. Push the new battery into the battery compartment. The plus pole points to the left towards the Ethernet
interfaces.
ð The battery change is complete. Close the front flap and reset the date and time.
Data transfer medium4 x 2 twisted pair copper cables category 5 (100 MBit/s)
Cable length100 m from switch to CX8110
Data transfer rate100 Mbit/s
max. input data length480 bytes (256 PDOs - variables)
max. output data length480 bytes (256 PDOs - variables)
Topologystar wiring, line topology
Protocols (real-time)EtherCAT
Protocols (non-real-time)-
CX811067Version: 1.3
Appendix
12Appendix
12.1Certification
12.1.1FCC
FCC Approvals for the United States of America
FCC: Federal Communications Commission Radio Frequency Interference Statement
This equipment has been tested and found to comply with the limits for a Class A digital device, pursuant to
Part 15 of the FCC Rules. These limits are designed to provide reasonable protection against harmful
interference when the equipment is operated in a commercial environment. This equipment generates, uses,
and can radiate radio frequency energy and, if not installed and used in accordance with the instruction
manual, may cause harmful interference to radio communications. Operation of this equipment in a
residential area is likely to cause harmful interference in which case the user will be required to correct the
interference at his own expense.
FCC Approval for Canada
FCC: Canadian Notice
This equipment does not exceed the Class A limits for radiated emissions as described in the Radio
Interference Regulations of the Canadian Department of Communications.
CX811068Version: 1.3
Appendix
12.2Support and Service
Beckhoff and their partners around the world offer comprehensive support and service, making available fast
and competent assistance with all questions related to Beckhoff products and system solutions.
Beckhoff's branch offices and representatives
Please contact your Beckhoff branch office or representative for local support and service on Beckhoff
products!
The addresses of Beckhoff's branch offices and representatives round the world can be found on her internet
pages: https://www.beckhoff.com
You will also find further documentation for Beckhoff components there.
Beckhoff Support
Support offers you comprehensive technical assistance, helping you not only with the application of
individual Beckhoff products, but also with other, wide-ranging services:
• support
• design, programming and commissioning of complex automation systems
• and extensive training program for Beckhoff system components