background image

Programming

CX8093

51

Version: 1.6

Prerequisites

Development environ-
ment

Target platform

Hardware

PLC libraries to be
linked

TwinCAT v2.11.0 build
2220 or higher (R3)

ARM

Seconds UPS

TcSystemCX80xx.lib

Summary of Contents for CX8093

Page 1: ...Documentation CX8093 Embedded PC for PROFINET 1 6 2018 02 09 Version Date...

Page 2: ......

Page 3: ...ounting rails 18 5 2 Wiring 21 5 2 1 Power supply 21 5 2 2 Ethernet 23 5 3 Changing the battery 25 6 Parameterizing and commissioning 26 6 1 DIP switch 26 6 2 Setting the IP address 28 6 2 1 IP addres...

Page 4: ...rnet 54 8 1 System introduction 54 8 1 1 Ethernet 54 8 1 2 Topology example 56 8 2 PROFINET 57 8 3 ADS Communication 59 9 Error handling and diagosis 61 9 1 LED displays 61 10 Appendix 64 10 1 First s...

Page 5: ...iagrams and descriptions in this documentation Trademarks Beckhoff TwinCAT EtherCAT Safety over EtherCAT TwinSAFE XFC and XTS are registered trademarks of and licensed by Beckhoff Automation GmbH Othe...

Page 6: ...injury WARNING Risk of injury Note this warning Hazard with medium risk of death or serious injury CAUTION Personal injuries Note this warning Hazard with a low degree of risk which could lead to min...

Page 7: ...ord updated Chapter 1 second UPS added Chapter Operating System added 1 2 Chapter CCAT adaptor reworked 1 3 Foreword reworked Chapter For your safety added ATEX warnings added 1 4 Chapter Transport an...

Page 8: ...mm in size but not protection against water Operation in wet and dusty environments is not permitted unless specified otherwise The specified limits for electrical and technical data must be adhered...

Page 9: ...branching points cables must be selected that are designed for these high temperatures and operation in potentially explosive atmospheres Tighten the screws of the fieldbus plug connectors in order to...

Page 10: ...evices 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 soft...

Page 11: ...spite 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 packagi...

Page 12: ...have further Ethernet interfaces with switch functions so that a linear daisy chain topology can be constructed inexpensively without additional hardware The other connections on the lower plug level...

Page 13: ...ng The CX80xx controller is programmed according to the high performance IEC 61131 3 standard As with all other Beckhoff controllers the TwinCAT automation software is the basis for parameterization a...

Page 14: ...In the basic version the CX80xx contains a 512 MB MicroSD card The basic equipment includes two Ethernet interfaces as well as a K bus or E bus interface The shortest usable task time is 1 ms A task...

Page 15: ...LC Programming languages IEC 61131 3 Online Change Yes Up download code Yes Yes Power supply 24 VDC 15 20 UPS 1 second UPS Power supply for I O terminals max 2 A Max power loss 3 0 W including system...

Page 16: ...0 Mbit s full duplex Autonegotiation yes Autocrossing yes Protocol PROFINET IO DEVICE yes PROFINET IO DEVICE virtual device 1 see Virtual PROFINET device 46 ADS Interface yes Services supported RTClas...

Page 17: ...th larger cards up to 8 GB 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 Or...

Page 18: ...according to EN 60079 31 dust conductive IP 6x according to EN 60079 31 Observe the temperature at the cable entry points into the housing If the temperature during nominal operation is higher than 70...

Page 19: ...ring CX8093 19 Version 1 6 Attention Avoid damage Do not force the module or apply excessive pressure Permissible installation positions and minimum distances Installation positions Installation posit...

Page 20: ...30 mm both above and below a CX80xx device combination to ensure adequate ventilation of the base CPU module and the power supply unit The high performance and the compact design of the CX80xx systems...

Page 21: ...of the Beckhoff Bus Terminals The power is supplied via the upper spring loaded terminals with the designation 24 V and 0 V The supply voltage supplies the CX system and via the terminal bus the Bus...

Page 22: ...the power supply is switched on the two upper LEDs in the terminal prism are green The left LED Us indicates the CPU supply The right LED Up indicates the terminal supply The other LEDs indicate the T...

Page 23: ...0Base5 The transmission medium for 10Base5 consists of a thick coaxial cable yellow cable with a max transmission speed of 10 Mbaud arranged in a line topology with branches drops each of which is con...

Page 24: ...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 t...

Page 25: ...battery are inserted correctly Plus pole on the left Never open the bat tery or throw it into a fire The battery cannot be recharged The battery of the CX80xx is required for the real time clock RTC...

Page 26: ...res Gases or dusts can be ignited by a spark discharge when DIP switches are used Switch off the power supply and wait until the 1 second UPS has discharged Ensure that there is no explosive atmospher...

Page 27: ...nager See chapter Get Station Name from Tree 40 PN name becomes empty string IP address 0 0 0 0 PROFINET with fixed name DIP switch 1 to 8 set to ON PN name via DIP switch 1 to 8 IP address from memor...

Page 28: ...ace The IP addressing or PROFINET name resolution takes place via the DIP switches 26 represented in the operating system as TCCCATMP1 The IP address cannot be registered in the operating system Hence...

Page 29: ...address space which is available for the host IDs Description Binary representation Decimal representation IP address 10101100 00010000 00010001 11001000 172 16 17 200 Subnet mask 11111111 11111111 00...

Page 30: ...ating system Examples of protocols which are not real time capable include ModbusTCP UDP ADS TCP IP OPC UA and HTTP HTML The CCAT adapter must be deleted if only protocols of this type are used Exampl...

Page 31: ...hen 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...

Page 32: ...P Server X Web Server HTTPD Active Server Pages ASP Support JScript 5 6 VBScript 5 6 X Simple Network Time Protocol SNTP X HTML DHTML TLS ISAPI extensions X Internet Explorer 6 0 Java Applets NET Comp...

Page 33: ...es between one and five ms Bit 0 K Bus Err Bit 1 Terminal State Err Bit 2 Process Data Length Err Bit 8 No valid Inputs Bit 9 K Bus Input Update busy Bit 10 K Bus Output Update busy Bit 11 Watchdog Er...

Page 34: ...Parameterizing and commissioning CX8093 34 Version 1 6 Note DC Distributed Clocks The CX80xx series is not suitable for the use of EtherCAT slaves that use or need distrib uted clocks functionality...

Page 35: ...Web Services Upnp webpages There is a Upnp webpage on the CX80xx for diagnostics User name guest Password 1 Enter the IP address or the device name Example http cx 0f94ac config http 172 16 17 55 conf...

Page 36: ...ation on the CX80xx This can be prepared and activated with the help of the PLC Control in TwinCAT The call is made via the IP address or the device name in a web browser Further information can be ta...

Page 37: ...e Display Software required on the PC Windows NT Windows 2000 Windows XP or Windows 7 Microsoft Remote Display CERHOST available license free from Microsoft Establishing the connection The Remote Disp...

Page 38: ...k must be called cyclically We strongly recommend using the default values for the block Saving and loading persistent data The persistent data are stored on the SD card as a wdp file When the PLC sta...

Page 39: ...procedure Retain data can not be used for the 1 second UPS 6 3 7 CPU load In the delivery condition the CPU load display is deactivated on all CX80xx devices it is displayed with a constant 10 The CPU...

Page 40: ...able which may lead to PROFINET failures in the case of the master In such cases you can either increase the Freerun Cycle Time or switch the TwinCAT on the CX to RUN mode 6 4 2 Interface PROFINET com...

Page 41: ...available when starting the PLC program For example the address of the switch can be read and thus the name of the device formed with the function F_CX80xx_Address Example ST Address 16 FF AND INT_TO_...

Page 42: ...s etc The PROFINET controller must then be set to the SyncTask or to the value x 1 Example SyncTask 4 ms the PROFINET controller may then be set to the cycle time 4 ms 8 ms 16 ms etc In this case cycl...

Page 43: ...rd dword or real variables with different lengths are available Via GDSML file it is also possible to create modules and to use sub modules beneath them To create modules click at the tree on the API...

Page 44: ...valued byte within the word Swap LOBYTE and HIBYTE Using variables with a size of 4 bytes it is additional possible to swap the lower valued word and the higher valued word Swap LOBWORD and HIWORD For...

Page 45: ...om PROFINET to K Bus or E Bus In this case you use the CX8093 as a configured bus coupler Pay attention that always one task triggers the PROFINET and the K Bus or E Bus cycle at minimum Without task...

Page 46: ...user data 16 ms 20 500 bytes of user data 32 ms 25 500 bytes of user data 32 ms 25 500 bytes of user data 64 ms The virtual slave interface enables a second virtual device slave to be created on the s...

Page 47: ...Name from Control function No name Name with DIP switch only indirect Name by the System Manager Name by the PLC program and System Manager Device settings 1 second virtual PROFINET device 2 Editable...

Page 48: ...can monitor the state of the PROFINET controller with it The state 0x0005 is the error free state i e the master is in data exchange with the device i e the CX8093 0x0001 Device is in I O exchange 0x...

Page 49: ...ent data The second UPS does not have sufficient capacity for bridging power failures Saving can take place only on Micro SD cards A QuickShutdown is performed automatically in the eSUPS_WrPersistData...

Page 50: ...utdown i e with writing of the persistent data and then QuickShutdown See E_S_UPS_Mode ePersistentMode Mode for the writing of the persistent data Standard value is SPDM_2PASS SPDM_2PASS all persisten...

Page 51: ...Programming CX8093 51 Version 1 6 Prerequisites Development environ ment Target platform Hardware PLC libraries to be linked TwinCAT v2 11 0 build 2220 or higher R3 ARM Seconds UPS TcSystemCX80xx lib...

Page 52: ...Modi Versorgungsspannung fehlerhaft steht nur einen Zyklus an eSUPS_WritePersistentData im Modus eSUPS_WrPersistData_Shutdown Schreiben der Persistenten Daten ist aktiv im Modus eSUPS_WrPersistData_No...

Page 53: ...the address by reading the switch position VAR_INPUT VAR_INPUT iCX_Typ INT END_VAR iCX_Typ The CX type used is entered here just the number without the designation CX for example CX8031 is then entere...

Page 54: ...l 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 t...

Page 55: ...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...

Page 56: ...Ethernet CX8093 56 Version 1 6 8 1 2 Topology example CX8093...

Page 57: ...tween controllers and field devices in several real time classes RT software based real time and IRT hardware supported isochronous real time In addition further Ethernet traffic can be transmitted in...

Page 58: ...ROFINET IO device EL6632 PROFINET IRT controller Bus Coupler BK9053 PROFINET Compact Bus Coupler for Bus Terminals BK9103 PROFINET Bus Coupler for Bus Terminals EK9300 PROFINET Bus Coupler for EtherCA...

Page 59: ...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...

Page 60: ...xample 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 801 local process data PLC runtime 1 Index group The index...

Page 61: ...e X101 102 Interface X001 X002 Ethernet CX8093 Meaning LED green on Link available activity LED yellow is not used LED coupler Labelling Meaning Colour Meaning RUN Indicates the status of the coupler...

Page 62: ...stop 200 ms off Coupler is in data exchange but PLC is in stop Device is in IO exchange on off OK If a virtual PROFINET device has been projected this is also signalled by the LEDs in the event of an...

Page 63: ...t until the defective Bus Terminal is located 4 pulses 0 K Bus data error break behind the Bus Coupler Check whether the n 1 Bus Terminal is correctly connected replace if necessary n Break behind Bus...

Page 64: ...e controller 2 Connect voltage to the CX80xx see power supply 21 3 Connect Ethernet CX80xx X001 to your network or a direct connection to your PC make sure in the case of a peer to peer connection tha...

Page 65: ...ick on Broadcast search Your network is scanned for Beckhoff controllers If none is found this means that the DHCP of the controller is not yet completed or the network settings on your PC are incorre...

Page 66: ...em Manager in the bottom right hand corner It must be blue or green and may not be yellow 12 If the setting is green switch the CX to Config Mode with Shift F4 or click on the blue TC icon in the Syst...

Page 67: ...rite a small program Translate the program If it is error free a warning must come that it is OK save the project under an arbitrary name translate it again and save it once again 18 Switch once again...

Page 68: ...Control go to Online Selection of the target system select the correct CX click on it and select runtime system 1 Now Online login again F11 transfer the PLC program then Online Start F5 The LED on y...

Page 69: ...ies in order to update a CX80xx Update via USB CAUTION USB port as ignition source in potentially explosive atmospheres Gases or dusts can be ignited by a spark discharge when the USB port is used Swi...

Page 70: ...croSD card reader is required for this Remove the MicroSD card from the switched off CX device Insert the MicroSD card into the reader Delete all files we recommend that you backup all files first no...

Page 71: ...wing IDs II 3 G Ex nA IIC T4 Gc II 3 D Ex tc IIIC T135 C Dc DEKRA 16ATEX0052 X Ta 0 C 55 C Serial number The name plate of the CX8xxx Embedded PCs shows a consecutive serial number a hardware version...

Page 72: ...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...

Page 73: ...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...

Reviews: