background image

NOVRAM

CX20x3

53

Version: 1.0

8.1

Creating a Retain Handler

Under TwinCAT 3 (from Build 4020) a delta algorithm is used to save data in the NOVRAM. The algorithm
does not save all the variables in the NOVRAM. Instead, it searches for changes (delta function) compared
to the previous cycle and only saves variables that have changed.

To use the delta algorithm, a Retain Handler must be created in TwinCAT 3, and the relevant variables must
be declared in the PLC with the keyword VAR_RETAIN.

A new feature of this method is that no function blocks have to be used. The Retain Handler saves data in
the NOVRAM in the event of a power failure and makes them available again once the power has been
restored.

This chapter describes how to create a Retain Handler in TwinCAT 3. The Retain Handler saves data in the
NOVRAM and makes them available again. In other words, important variable values such as production
data or counter values are retained during a restart or power failure.

Requirements for this step:

• TwinCAT 3.1 Build: 4020.

• A target device selected in TwinCAT.

Create the Retain Handler as follows:

1. Right-click on 

Devices

 in the tree view on the left-hand side.

2. In the context menu click on 

Scan

.

3. Select 

Device (NOV-DP-RAM) 

and confirm with 

OK

.

4. Click on 

Yes

 to search for boxes.

Содержание CX20 3 Series

Страница 1: ...Manual EN CX20x3 Embedded PC 1 14 2021 Version 1 0...

Страница 2: ......

Страница 3: ...20 5 4 2 DisplayPort N011 21 5 4 3 RS232 N030 22 5 4 4 RS422 RS485 N031 23 5 4 5 EtherCAT slave B110 24 5 4 6 PROFIBUS x310 25 5 4 7 CANopen x510 26 5 4 8 PROFINET RT x930 27 6 Commissioning 28 6 1 Se...

Страница 4: ...nking variables 55 8 3 Writing speed of the Retain Handler 57 8 4 Deleting variables under the Retain Handler 58 9 Error handling and diagnostics 59 9 1 Diagnostic LEDs 59 9 1 1 K bus 59 9 1 2 E bus 6...

Страница 5: ...ucts 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...

Страница 6: ...y 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...

Страница 7: ...Notes on the documentation CX20x3 7 Version 1 0 1 2 Documentation issue status Version Modifications 1 0 First version...

Страница 8: ...signed 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 agai...

Страница 9: ...tic discharge when touched Observe the safety precautions against electrostatic discharge according to DIN EN 61340 5 1 3 Working with networks Restrict access to all devices to an authorized circle o...

Страница 10: ...f 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 Table 1 Dimensions and...

Страница 11: ...e connected on the left side of the basic CPU module The connection order is irrelevant Modules of the type CX2550 e g hard disks SSD modules and a power supply unit of the type CX2100 xxxx can be con...

Страница 12: ...4 E bus K bus power supply unit with automatic switchover and passive ventilation CX2100 0914 E bus K bus power supply unit with automatic switching and integrated charging electronics for an external...

Страница 13: ...anel 4 RJ45 Ethernet interfaces X000 X001 For connecting to local networks internet or EtherCAT 5 USB interfaces X100 X101 X102 X103 Interfaces for peripheral devices such as mouse keyboard or USB mem...

Страница 14: ...ion of Embedded PC operating system options and TwinCAT can be reordered 3 Product designation for identification of the Embedded PC 4 Serial number Beckhoff Traceability Number BTN for the unambiguou...

Страница 15: ...wing software options Table 6 CX20x3 ordering information Module no operating system Windows 10 IoT En terprise 2016 LTSC 32 bit Windows 10 IoT En terprise 2016 LTSC 64 bit TwinCAT BSD no TwinCAT Twin...

Страница 16: ...or The memory is connected directly to the memory controller The Embedded PCs are available in two memory configurations 8 GB and 16 GB DDR4 RAM The memory extension must be ordered ex factory The CPU...

Страница 17: ...are type A and comply with the USB 3 1 Gen 1 specification Table 7 USB interfaces X100 X101 X102 X103 pin assignment Pin Connection Typical assignment 1 VBUS Red 2 D White 3 D Green 4 GND Black 5 StdA...

Страница 18: ...eds of 10 100 1000 Mbit 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 L...

Страница 19: ...9 TMDS Data 1 17 TMDS Data 0 2 TMDS Data 2 10 TMDS Data 1 18 TMDS Data 0 3 TMDS Data 2 4 Shield 11 TMDS Data 1 3 Shield 19 TMDS Data 0 5 Shield 4 not connected 12 not connected 20 not connected 5 not...

Страница 20: ...ers possible Fig 7 DVI D interface X300 Table 11 DVI D interface X300 pin assignment Pin Connection Pin Connection Pin Connection 1 TMDS Data 2 9 TMDS Data 1 17 TMDS Data 0 2 TMDS Data 2 10 TMDS Data...

Страница 21: ...nect monitors without DisplayPort to the Embedded PC Table 13 DisplayPort pin assignment Pin Connection Pin Connection 1 LVDS lane 0 2 Ground 3 LVDS lane 0 4 LVDS lane 1 5 Ground 6 LVDS lane 1 7 LVDS...

Страница 22: ...s 115 kbit The interface parameters are set via the operating system or from the PLC program Table 15 RS232 interface X300 pin assignment PIN Signal Type Description 1 DCD Signal in Data Carrier Detec...

Страница 23: ...nd 3 data must be connected and pins 7 and 8 data By default the interface is parameterized as follows on delivery Table 17 Default setting RS485 without echo with end point terminated Function Status...

Страница 24: ...r LAN interface The lower LAN interface relays the signal to other EtherCAT slave devices Table 18 EtherCAT slave interface X300 pin assignment PIN Signal Description 1 TD Transmit 2 TD Transmit 3 RD...

Страница 25: ...Profibus bus line is connected via a 9 pin D sub with the following pin assignment Table 19 PROFIBUS interface X310 pin assignment Pin Connection 1 Shielding 2 not used 3 RxD TxD P 4 not used 5 GND 6...

Страница 26: ...n Connection 1 not used 2 CAN low CAN 3 CAN Ground internally connected to pin 6 4 not used 5 Shield 6 CAN Ground internally connected to pin 3 7 CAN high CAN 8 not used 9 not used For the optional CA...

Страница 27: ...sion 1 0 5 4 8 PROFINET RT x930 Fig 14 PROFINET RT interface X300 Table 22 PROFINET RT interface pin assignment PIN Signal Description 1 TD Transmit 2 TD Transmit 3 RD Receive 4 connected reserved 5 6...

Страница 28: ...ordered ex factory with active cooling CX2900 0301 so that it can be operated in an upright or horizontal installation position The CX2043 Embedded PC is actively cooled as standard and can therefore...

Страница 29: ...Commissioning CX20x3 29 Version 1 0 6 2 Mounting Fig 16 CX2033 Embedded PC dimensions Fig 17 CX2043 Embedded PC dimensions...

Страница 30: ...s 6 2 2 Installing the bar clips Usually the connection between the modules is strong enough However the basic CPU module and the attached modules may be subjected to shocks vibrations or other impact...

Страница 31: ...s between 25 C and 60 C Measure the temperature below the Embedded PC at a distance of 30 mm to the cooling fins in order to determine the ambient temperature correctly Adhere to the minimum distances...

Страница 32: ...ed adequately in vertical or horizontal position Even with active cooling the ambient temperature range between 25 and 60 C and the minimum distances of 30 mm above and below the Embedded PC should be...

Страница 33: ...e the Embedded PC on the mounting rail as follows 1 Unlock the latches on the top side and underside using a screwdriver 2 Place the Embedded PC at the front of the mounting rail Slightly press the Em...

Страница 34: ...ards with an increased number of write cycles and an extended temperature range 85 C The eject mechanism is based on the push push principle The installation and removal of CFast cards is described be...

Страница 35: ...from the terminal bus E bus Passive EtherCAT Terminals e g EL9195 can be detected in TwinCAT In the tree structure the EtherCAT Terminal is displayed without process image and the value in column E b...

Страница 36: ...for system voltage Us and power contacts Up Table 26 Legend for the connection example No Description 1 The upper spring loaded terminals identified with 24 V and 0 V supply the basic CPU module and t...

Страница 37: ...PC as follows 1 Open a spring loaded terminal by slightly pushing with a screwdriver or a rod into the square opening above the terminal 2 The wire can now be inserted into the round terminal opening...

Страница 38: ...er supply for the power supply unit The Embedded PC starts automatically when the external power supply is switched on The pre installed operating system is started and all connected extension system...

Страница 39: ...version the network firewall must allow access via port 80 HTTP or port 443 HTTPS IP address or host name of the Embedded PC Table 28 Access data for the Beckhoff Device Manager on delivery User name...

Страница 40: ...tel driver is installed Requirements The original Intel driver can be downloaded from https downloadcenter intel com Install the original Intel driver Note that this will delete the real time capable...

Страница 41: ...devices in the group Requirements The original Intel driver can be downloaded from https downloadcenter intel com Install the original Intel driver for the Network Interface Card Note that this will d...

Страница 42: ...er Select a team type select the option Adapter Fault Tolerance 6 Click on Next to complete the installation You have successful set NIC Teaming for your Ethernet interfaces Further settings can be sp...

Страница 43: ...cRteInstall exe in a TwinCAT 2 standard installation under C TwinCAT Io TcRteInstall exe And in a TwinCAT 3 standard installation under C TwinCAT 3 1 System TcRteInstall exe Proceed as follows 1 Doubl...

Страница 44: ...g on whether EtherCAT Terminals or Bus Terminals are connected to the Embedded PC Table 29 Legend for the tree view No Description 1 The CX20x0 Embedded PC with EtherCAT Terminals is added as EtherCAT...

Страница 45: ...n be performed for all devices in this way and project planning subsequently carried out Prerequisites for this step TwinCAT 3 must be in Config mode IP address or host name of the device Search for t...

Страница 46: ...e the Add Route Dialog 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...

Страница 47: ...se and confirm the selection with OK Only devices that are actual available are offered for selection For Embedded PCs with connected Bus Terminals K bus a Bus Coupler device CX BK is displayed For Et...

Страница 48: ...master in the example Bus Coupler EK1110 EtherCAT extension can be used to extend an EtherCAT segment by up to 100 m EK1100 Bus Coupler The Bus Coupler relays the EtherCAT signal to connected EtherCAT...

Страница 49: ...on 1 0 1 In the tree view click on the EtherCAT master 2 Click on the EtherCAT tab then Advanced Settings 3 Click on Redundancy in the tree structure on the left 4 Click on the option Second adapter f...

Страница 50: ...the state of the individual EtherCAT slaves is displayed If for example the cable connection between the EK1100 and EK1110 Bus Couplers is interrupted the status of the Bus Coupler changes The messag...

Страница 51: ...ed PC as soon as the time set for nWatchdogTimeS elapses Be aware of this behavior and disable the watchdog if you use breakpoints carry out a PLC reset or an overall reset stop TwinCAT switch to conf...

Страница 52: ...power failure the data are automatically copied from the volatile memory into the non volatile memory The energy required for this process is supplied by a capacitor As soon as the power supply is res...

Страница 53: ...s have to be used The Retain Handler saves data in the NOVRAM in the event of a power failure and makes them available again once the power has been restored This chapter describes how to create a Ret...

Страница 54: ...ric NOV DP RAM Device 6 Click the option PCI 7 Right click on Device NOV DP RAM in the tree view and then on Add New Item 8 Select the Retain Handler and click on OK You have successfully created a Re...

Страница 55: ...ndler The variables have to be identified in the PLC with the keyword VAR_RETAIN Prerequisite for this step A PLC project created in TwinCAT Create variables as follows 1 Create the variables in your...

Страница 56: ...d After selecting a Retain Handler as a target the symbols in the tree view are linked and a mapping is created In the tree view the variables are created from the PLC under the Retain Handler and lin...

Страница 57: ...The following diagrams provide an overview of how long the Retain Handler needs to save a particular data quantity in the NOVRAM Use the diagrams to select your task cycle time such that a particular...

Страница 58: ...tically Under TwinCAT 3 the variables have to be deleted manually Prerequisites for this step Variables declared with VAR_RATAIN were deleted from the PLC Delete the variables under the Retain Handler...

Страница 59: ...24 V Power supply for basic CPU module The LED lights green if the power supply is correct Up 24V Power supply for terminal bus The LED lights green if the power supply is correct K BUS RUN Diagnosti...

Страница 60: ...rror break behind the power supply unit Check whether the Bus End Terminal 9010 is connected n Break behind Bus Terminal n Check whether Bus Terminal n 1 after the power supply unit is connected corre...

Страница 61: ...chronous 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 Table 34 Description of the S...

Страница 62: ...s during data transfer Table 35 Diagnostic LEDs in K Bus mode Display LED Meaning Us 24 V Power supply for basic CPU module The LED lights green if the power supply is correct Up 24 V Power supply for...

Страница 63: ...ard to test the card slot 2 Call Beckhoff support Embedded PC only works partially or temporarily Defective components in the Embedded PC Call Beckhoff support The time and date are no longer saved Th...

Страница 64: ...rdered from Beckhoff Service A CR2032 battery 3 V 225 mAh is used in the Embedded PC The battery compartment is below the front flap The battery stores the time and date The time and date are reset if...

Страница 65: ...fully pull the battery from the bracket 3 Push the new battery into the battery compartment The positive pole points to the left towards the DVI I interface The battery change is complete Close the fr...

Страница 66: ...1500 rpm 35 C 61 25 C 0 100 linearly controlled 1500 rpm 5900 rpm linearly controlled above 61 25 C 100 5900 rpm Use the IPC diagnostics and monitor the fan speed to determine a fan fault Access to th...

Страница 67: ...e Embedded PC from the power supply be fore cleaning Clean only the housing of the Embedded PC Use a soft moist cleaning cloth for this Make sure that the ventilation slots of the device are always fr...

Страница 68: ...pply Only then can you remove all the cables Also remove all cables from the first terminal after the power supply terminal Requirements Terminate your software and shut down the Embedded PC Switch of...

Страница 69: ...le the Embedded PC as follows 1 Release the DIN rail mounting by pushing the latches outwards with a screwdriver 2 Pull the orange strap on the power supply terminal and gently remove the device from...

Страница 70: ...ash access 2 x bus status Clock Internal battery backed clock for time and date battery replaceable Approvals CE Table 40 Technical data I O terminals Technical data Description I O connection via pow...

Страница 71: ...A DVI D Resolution on the monitor in pixels 640 x 480 to 1920 x 1200 Table 44 Technical data optional interfaces Technical data Description DVI D Resolution on the monitor in pixels 640 x 480 to 1920...

Страница 72: ...CX1900 0102 Replacement battery suitable for CX10x0 CX50x0 CX51x0 CX52x0 CX90x0 CX20xx CX8100 and CX7000 Lithium button cell type CR2032 3 V 225 mAh Table 48 Further spare parts Order number Descripti...

Страница 73: ...CC 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 radiat...

Страница 74: ...nents there Beckhoff Headquarters Beckhoff Automation GmbH Co KG Huelshorstweg 20 33415 Verl Germany Phone 49 0 5246 963 0 Fax 49 0 5246 963 198 e mail info beckhoff com Beckhoff Support Support offer...

Страница 75: ...e 25 Table 21 CANopen interface X510 pin assignment 26 Table 22 PROFINET RT interface pin assignment 27 Table 23 Suitable power supply unit for the CX20x3 Embedded PC 28 Table 24 Legend for configurat...

Страница 76: ...List of tables CX20x3 76 Version 1 0 Table 45 CFast cards 72 Table 46 HDD SSD 72 Table 47 Spare battery for CX systems 72 Table 48 Further spare parts 72...

Страница 77: ...up ply terminal 28 Fig 16 CX2033 Embedded PC dimensions 29 Fig 17 CX2043 Embedded PC dimensions 29 Fig 18 Embedded PC CX20x3 horizontal installation position 31 Fig 19 Identifying a passive EtherCAT T...

Страница 78: ......

Страница 79: ...Beckhoff Automation GmbH Co KG H lshorstweg 20 33415 Verl Germany Phone 49 5246 9630 info beckhoff com www beckhoff com More Information www beckhoff com cx20x3...

Отзывы: