Beckhoff CX8080 Documentation

Beckhoff CX8080 Documentation

The cx8080 is a controller with an ethernet port and two serial interfaces
Hide thumbs Also See for CX8080:

Advertisement

Documentation
CX8080
Embedded PC with RS232/RS485 Interface
Version:
Date:
1.0.0
20.05.2016

Advertisement

Table of Contents
loading

Summary of Contents for Beckhoff CX8080

  • Page 1 Documentation CX8080 Embedded PC with RS232/RS485 Interface Version: 1.0.0 Date: 20.05.2016...
  • Page 3: Table Of Contents

    Notes on the documentation...................... 5 Safety instructions .......................... 6 Documentation issue status...................... 6 2 Product overview............................ 8 CX80xx - System overview.......................  8 CX8080 - Introduction........................ 10 Technical data .......................... 11 CX80xx - MicroSD cards ........................  12 3 Mounting and wiring .......................... 13 Mounting ............................ 13 3.1.1...
  • Page 4 ADS-Communication ........................ 53 7 Serial interface............................ 55 RS232/RS485 system overview .....................  55 ZB3180 ............................ 55 8 Error handling and diagnosis......................... 57 Diagnostic LEDs .......................... 57 9 Appendix .............................. 60 First steps ............................ 60 Image Update .......................... 65 Support and Service ........................ 67 Version: 1.0.0 CX8080...
  • Page 5: Foreword

    EP0851348, US6167425 with corresponding applications or registrations in various other countries. ® EtherCAT is registered trademark and patented technology, licensed by Beckhoff Automation GmbH, Germany Copyright © Beckhoff Automation GmbH & Co. KG, Germany. The reproduction, distribution and utilization of this document as well as the communication of its contents to others without express authorization are prohibited.
  • Page 6: Safety Instructions

    All the components are supplied in particular hardware and software configurations appropriate for the application. Modifications to hardware or software configurations other than those described in the documentation are not permitted, and nullify the liability of Beckhoff Automation GmbH & Co. KG. Personnel qualification This description is only intended for trained specialists in control, automation and drive engineering who are familiar with the applicable national standards.
  • Page 7 Foreword Image Version CX8080 Requirements Firmware Description Build 2248 • First version (required TwinCAT version: 2.11 R3 build 2249) CX8080 Version: 1.0.0...
  • Page 8: Product Overview

    Microsoft Windows CE is used as the operating system. In the absence of a monitor port, the operating system and its "virtual" display can only be accessed via the network. As for all other Beckhoff devices, the TwinCAT software is used for system configuration and the programming of the PLC functionality. The CX80xx target device features a pre-installed TwinCAT PLC runtime environment.
  • Page 9 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 and programming. Users therefore have the familiar TwinCAT tools available, e.g. PLC programming interface, System Manager and TwinCAT Scope.
  • Page 10: Cx8080 - Introduction

    The user is responsible for projecting and configuring his system such that it is not overloaded. CX8080 The CX8080 is a controller with an Ethernet port and two serial interfaces. From TwinCAT 2.11 R3 build 2249, the Ethernet port is used for programming and/or configuration.
  • Page 11: Technical Data

    EN 60068-2-6 / EN 60068-2-27 EMC immunity/emission according to EN 61000-6-2 / EN 61000-6-4 Protection class IP20 System data RS232 (CX8080) Number of I/O modules Transmission medium screened copper cable, 3 x 0.25 mm² Cable length 15  m Data transfer rate 300 baud...115 kbaud...
  • Page 12: Cx80Xx - Microsd Cards

    In the basic version the CX80xx contains a MicroSD card with 512 MB. You can order it as an option with larger cards (up to 4 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: Order identifier...
  • Page 13: Mounting And Wiring

    Dimensions The following drawings show the dimensions of the CX80xx Embedded PCs. Dimensions     Drawings in various CAD formats can be found at: http://www.beckhoff.de/german/download/cx1000.htm 3.1.2 Installation on mounting rails Snapping onto the mounting rail The CX80xx can simply be snapped onto the mounting rail. To this end simply position the block on the mounting rail and push it slightly until it engages on the right-hand side.
  • Page 14 Ventilation openings are located at the top and bottom of the housing. The system therefore has to be installed horizontally. This ensures optimum air flow. Installation positions with reduced temperature range up to 45 °C Other installation positions are permitted with a temperature range up to 45 °C. Version: 1.0.0 CX8080...
  • Page 15 Mounting and wiring CX8080 Version: 1.0.0...
  • Page 16: Wiring

    WARNING This power supply unit is equipped with an I/O interface, which permits connection 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 Terminals with a voltage of 24 (15 %/+20 %).
  • Page 17: Ethernet

    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. CX8080 Version: 1.0.0...
  • Page 18 This identification refers to a cable with a screen for each of the two wires as well as an outer shield. 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. Version: 1.0.0 CX8080...
  • Page 19: Rs232/Rs485

    RS232/RS485 D-Sub connector Two serial interfaces are wired on the D-sub connector of the CX8080. These two interfaces are on same potential and are electrically isolated towards the CPU. Both interfaces can be used simultaneously and work independent of each other.
  • Page 20: Changing The Battery

    • Step 5: Close the flap again Battery type Technical data Duracell 303/357 SR44 1.5 V / 165 mAh Battery maintenance The battery must be replaced every 5 years. Spare batteries can be ordered from Beckhoff Service. Note Version: 1.0.0 CX8080...
  • Page 21: Parameterization And Commissioning

    No function so far Setting the IP adress 4.2.1 IP address The CX8010, CX803x, CX805x and CX8080 have an Ethernet interface, X001. X001 IP addressing via the operating system; default is DHCP (represented in the operating system as FEC1) EtherCAT interface The EtherCAT interface is a further Ethernet interface that is not visible in the operating system for the IP addressing.
  • Page 22: Setting The Address Via Dhcp Server

    Neither subnet 0 nor the subnet consisting only of ones may be used. Host number 0, and the host number consisting only of ones, must not be used. Under BootP or DHCP the sub- Note net mask is transmitted also by the server. Version: 1.0.0 CX8080...
  • Page 23: Configuration

    - 172.16.17.201/config - CX-01551E/config • Via a Micro SD card reader. The Micro SD card contains a file with the name of the image. Example CX8000_CE600_LF_v354b_TC211R3_B2248. TC211R3_2248 indicates the TwinCAT build; in the example the build is 2248. CX8080 Version: 1.0.0...
  • Page 24 HTML / DHTML, TLS, ISAPI extensions Internet Explorer 6.0 Java Applets NET Compact Framework v3.5 RDP Client (Remote Desktop protocol) CAB File Installer/Uninstaller TwinCAT (Level PLC) USB support Printer, storage on Compact Flash, for example HID (Human interface devices) Touch Version: 1.0.0 CX8080...
  • Page 25: Power Supply Terminal

    Interface "2") is to be taken from the System Manager. E-bus interface The operation of E-bus terminals and EtherCAT devices is possible on the CX80xx. The CX80xx recognizes these terminals automatically on scanning, reads out the terminal types and automatically places them in the System Manager. CX8080 Version: 1.0.0...
  • Page 26 Parameterization and commissioning DC Distributed Clocks The CX80xx series is not suitable for the use of EtherCAT slaves that use or need distrib- uted clocks functionality. Note Version: 1.0.0 CX8080...
  • Page 27: Rs232/485

    CX8080 is scanned, and it then adds the two serial interfaces automatically in your system. Start your CX8080 in Config mode. The TC LED of the CX8080 must then turn blue. Now you can scan for new devices.
  • Page 28 KS8000 protocol for operation of the Bus Coupler BK8100 or BK8000 Both interfaces can be used as BK8xx0 master. It is an open Beckhoff protocol, which should be used for the products BK8100 RS232 or BK8000 RS485. The protocol is already implemented, and you can address the couplers directly.
  • Page 29 A further setting is the KL6xx1 mode. It should be used for all other protocols. In conjunction with the supplements ModbusRTU, IEC 60870 or other serial protocols, the interface can then support different serial protocols. Proprietary protocols or other open protocols can also be used (see Programming [} 42]). CX8080 Version: 1.0.0...
  • Page 30: 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/config The diagnostic page was revised starting from image v354c. Version: 1.0.0 CX8080...
  • Page 31 Control in TwinCAT. The call is made via the IP address or the device name in a web browser. Further information can be taken from the documentation on the web visualization (see TwinCAT Supplements PLC HMI Web). Example CX8080 Version: 1.0.0...
  • Page 32: Real Time Clock (Rtc)

    No password is set in the delivery condition. After entering the target address, the user interface of the CE device is available for remote control on the Download : http://infosys.beckhoff.com/content/1033/cx8080_hw/Resources/zip/1608562059.zip 4.3.5 Real Time Clock (RTC) The RTC is read out via the FB_LocalSystemTime function blocks and can be set with the NT_SetLocalTime block (see TcUtilities.lib).
  • Page 33: 1-Second Ups (Uninterruptible Power Supply)

    Loading a backup of the persistent data To load the persistent data from the backup (wp~-file), it has to be enabled in the System Manager. Or via the following registry entry: [HKEY_LOCAL_MACHINE\SOFTWARE\Beckhoff\TwinCAT\Plc]"ClearInvalidPersistentData"= 0 The default factory setting is "1". CX8080...
  • Page 34: Cpu Load

    CPU load itself. The CPU load can be activated for brief diagnostic help; however, we recommend that you deactivate it again after the diagnostics. HKEY_LOCAL_MACHINE/SOFTWARE/BECKHOFF/TWINCAT/RTime/EnableRTimeMeasurement    0 deactivated, 1 activated A TwinCAT restart of the CX80xx is necessary after making the setting.
  • Page 35: Programming

    Programming Programming Library for CX80xx Download : http://infosys.beckhoff.com/content/1033/cx8080_hw/Resources/zip/1608565003.zip Seconds UPS 5.2.1 Function blocks FUNCTION_BLOCK FB_S_UPS_CX80xx The FB_S_UPS function block can be used on the CX80xx with the seconds UPS in order to activate the seconds UPS from the PLC. This allows the persistent data to be saved and a quick shutdown to be performed in the event of a power failure.
  • Page 36 True during the power failure; False if the supply voltage is present. eState                       : Internal state of the function block, for values see E_S_UPS_State. VAR_GLOBAL VAR_GLOBAL     eGlobalSUpsState : E_S_UPS_State;    (* current ups state *) END_VAR E_S_UPS_State eGlobalUpsState      : Internal state of the function block as a global copy of the VAR_OUTPUT eState; for values see E_S_UPS_State. Version: 1.0.0 CX8080...
  • Page 37 Programming Prerequisites Development environ- Target platform Hardware PLC libraries to be ment linked TwinCAT v2.11.0 build Seconds UPS TcSystemCX80xx.lib 2220 or higher (R3) CX8080 Version: 1.0.0...
  • Page 38: Data Types

        in allen Modi: Versorgungsspannung ist OK eSUPS_PowerFailure:          in allen 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_NoShutdown: Schreiben der Persistenten Daten ist aktiv eSUPS_QuickShutdown:         im Modus eSUPS_WrPersistData_Shutdown: QuickShutdown ist aktiv  im Modus eSUPS_ImmediateShutdown: QuickShutdown ist aktiv eSUPS_WaitForRecover:        im Modus eSUPS_WrPersistData_NoShutdown: Warten auf Wiederkehr der Spannung  im Modus eSUPS_CheckPowerStatus: Warten auf Wiederkehr der Spannung eSUPS_WaitForPowerOFF:       im Modus eSUPS_WrPersistData_Shutdown: Warten auf das Abschalten durch die USV  im Modus eSUPS_ImmediateShutdown: Warten auf das Abschalten durch die USV Prerequisites Development environ- Target platform Hardware PLC libraries to be ment linked TwinCAT v2.11.0 build Seconds UPS TcSystemCX80xx.lib 2220 or higher (R3) Version: 1.0.0 CX8080...
  • Page 39: Cx8080 Led

    For example, you can use the LEDs to display whether the DHCP server has assigned an IP address to the CX8080/CX809xor, if you are using the RT-Ethernet with bus couplers such as the BK9000, you can display whether all BK9000s are in data exchange. Possible colors are red and green.
  • Page 40 For example, you can use the LEDs to display whether the DHCP server has assigned an IP address to the CX8080/CX809x or, if you are using the RT-Ethernet with bus couplers such as the BK9000, you can display whether all BK9000s are in data exchange. Possible colors are red and green.
  • Page 41: Data Types

    CX8031 is then entered as 8031. VAR_OUTPUT F_CX80xx_ADDRESS     : INT; F_CX80xx_ADDRESS                       : -1, non-implemented CX, address of the switch Prerequisites Development environ- Target platform Hardware PLC libraries to be ment linked TwinCAT v2.11.0 build CX80xx TcSystemCX80xx.lib 2220 or higher (R3) CX8080 Version: 1.0.0...
  • Page 42: Rs232/Rs485

    In KL6xx1 mode, any serial protocols can be implemented. To this end, configure the interface as KL6xx1 mode in the System Manager. This mode behaves like the serial interface terminals from Beckhoff. It only means that the programming and the interface is similar to a serial interface. The Beckhoff supplement blocks (such as ModbusRTU, COMLIB, ...) of the serial interface usually offer the 64-byte mode for the PC interface.
  • Page 43 SW.0 (TA). Only now new data can be transferred from the controller to the interface. Table 2: Status word Length of data in the buffer ((IL bits) Legend CX8080 Version: 1.0.0...
  • Page 44 A simple example based on the RS232 interface is used to explain the interface and the principle of operation. The example sends data via the RS232. The data are received via a bridge (PIN 2 to 3).  http:// infosys.beckhoff.com/content/1033/cx8080_hw/Resources/zip/2495112075.zip Version: 1.0.0 CX8080...
  • Page 45: Ethernet

    Ethernet device in the world. The MAC-ID consists of two parts. The first part (i.e. the first 3 bytes) is a manufacturer identifier. The identifier for Beckhoff is 00 01 05. The next 3 bytes are assigned by the manufacturer and implement a unique serial number.
  • Page 46 Both of these protocols are implemented in parallel on the Bus Coupler, so that no configuration is needed to activate the protocols. ADS can be used on top of either TCP or UDP, but ModbusTCP is always based on TCP/IP. Version: 1.0.0 CX8080...
  • Page 47: Topology Example

    Ethernet 6.1.2 Topology example Observe system load Observe the system load of your CX8080 when using further Ethernet protocols such as ModbusTCP/UDP or WebServices. A high load can slow down Ethernet communication Note significantly. CX8080 Version: 1.0.0...
  • Page 48: Modbustcp

    The corresponding libraries are located in the TwinCAT\Lib directory on the MicroSD card and can be copied to the programming system using an SD card reader. Note CX8010, CX803x, CX805x, CX8080, CX8093, CX8095 The Modbus TCP can only be used with the X001 interface. Note Version: 1.0.0...
  • Page 49: Modbustcp Protocol

    0 Protocol identifier always 0 Length field 0 (if the message is less than 256 bytes in length) Length field Number of following bytes UNIT identifier returned by the slave Modbus Modbus protocol with the function follows CX8080 Version: 1.0.0...
  • Page 50: Mapping Between Modbus And Ads

    The configurator enables the adaptation of the setting. Default XML The standard configuration looks like this: <Configuration>     <!-- Modbus TCP port, default = 502-->     <Port>502</Port>     <!-- optional IP configuration for Modbus TCP server-->     <IpAddr/>     <Mapping>     <InputCoils>         <MappingInfo>         <!-- AdsPort: TwinCAT2 PLC1 = 801, PLC2 = 811...-->         <AdsPort>801</AdsPort>         <StartAddress>0</StartAddress>         <EndAddress>32767</EndAddress>         <!-- IndexGroup 61473 = 0xF021 -> physical plc inputs %IX -->         <IndexGroup>61473</IndexGroup>         <!-- Bit offset-->         <IndexOffset>0</IndexOffset>         </MappingInfo>         <MappingInfo>         <AdsPort>801</AdsPort>         <!-- Modbus input coils -->         <StartAddress>32768</StartAddress>         <EndAddress>33023</EndAddress> Version: 1.0.0 CX8080...
  • Page 51         <MappingInfo>         <AdsPort>801</AdsPort>         <StartAddress>0</StartAddress>         <EndAddress>12287</EndAddress>         <!-- IndexGroup 61488 = 0xF030 -> physical plc output register %Q -->         <IndexGroup>61488</IndexGroup>         <!-- Byte offset-->         <IndexOffset>0</IndexOffset>         </MappingInfo>         <MappingInfo>         <AdsPort>801</AdsPort>         <StartAddress>12288</StartAddress>         <EndAddress>24575</EndAddress>         <!-- IndexGroup 16416 = 0x4020 -> plc memory area %M -->         <IndexGroup>16416</IndexGroup>         <!-- Byte offset-->         <IndexOffset>0</IndexOffset>         </MappingInfo>         <MappingInfo>         <AdsPort>801</AdsPort>         <StartAddress>24576</StartAddress>         <EndAddress>32767</EndAddress>         <!-- IndexGroup 16448 = 0x4040 -> plc data area -->         <IndexGroup>16448</IndexGroup>         <!-- Byte offset-->         <IndexOffset>0</IndexOffset>         </MappingInfo>         <MappingInfo>         <AdsPort>801</AdsPort>         <!-- Modbus output registers -->         <StartAddress>32768</StartAddress>         <EndAddress>33023</EndAddress>         <VarName>.mb_Output_Registers</VarName>         </MappingInfo>     </OutputRegisters>     </Mapping> </Configuration> CX8080 Version: 1.0.0...
  • Page 52: Tcp/Ip

    The corresponding libraries are located in the TwinCAT\Lib directory on the MicroSD card and can be copied to the programming system using an SD card reader. Note CX8010, CX803x, CX805x, CX8080, CX8093, CX8095 The TCP/IP server can only be used with the X001 interface. Note Version: 1.0.0...
  • Page 53: Ads-Communication

    Within a networked system it is thus possible to reach all data from any point. 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.
  • Page 54 Indicates the offset, the byte from which reading or writing is to start. 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. Version: 1.0.0 CX8080...
  • Page 55: Serial Interface

    Serial interface Serial interface RS232/RS485 system overview Currently the RS485 interface is limited. If you want to operate the RS485 interface outside the CX8080 specification, you should consult with Beckhoff. System data RS485 (CX8080) Number of I/O modules Transmission medium screened copper cable, 2 x 0.25 mm²...
  • Page 56   Technical data ZB3180 Protection class IP20 Connector 9-pin D-sub connector, straight or angled cable connection Material Thermoplastic, black Permissible ambient temperature range during 0 °C … +55 °C operation Dimensions 48 x 50 x 19 mm Cable diameter 8.5 mm Version: 1.0.0 CX8080...
  • Page 57: Error Handling And Diagnosis

    Mode Blue TwinCAT in Config Mode no function ERR* Error or Boot Diagnosis red when switching on Software is being loaded Everything OK *) The WD and ERR LED can be set and used by function block. CX8080 Version: 1.0.0...
  • Page 58 4 K-BUS RUN (right center, 2nd K-bus LED RUN Lights up green: K-bus running, row) everything OK 6 K-BUS ERR (bottom right, 3rd K-bus LED ERR Lights up red: K-bus error - see K- row) bus error code Version: 1.0.0 CX8080...
  • Page 59 Bus Coupler (switch off and on again) 7 pulses Process data lengths do Check the Bus Terminals not correspond to the for the configured Bus configuration Terminals 1..n K-bus reset failed Check the Bus Terminals CX8080 Version: 1.0.0...
  • Page 60: Appendix

    5. Switch on TC on the PC in Config Mode (TwinCAT icon blue) and start the System Manager 6. In the System Manager, click on the PC symbol (Choose Target System) or press >F8< 7. The following dialog box opens; click on Search (Ethernet). Version: 1.0.0 CX8080...
  • Page 61   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 incorrect. A network cable that has not been connected can naturally also be the cause, but this should not be the case if point 3 has been done.
  • Page 62 MAC address on the side of the CX80xx. The MAC address is always 6 bytes long and the first three bytes are the vendor ID, which is always 00 01 05 in the case of Beckhoff devices. An "X" next to Connected means that the CX is already known in the system and can be used. To make it known, click in the list on the CX with which you want to connect and then click on "Add route".
  • Page 63 FileName.typ file is sought. 19: Now open the project, then the task and then outputs, in which there must be a variable MAIN.bToggle. You can link this with the hardware. To do this, click on "Linked to...". CX8080 Version: 1.0.0...
  • Page 64 21. As a final step Online/Generate a boot project. This completes the project and your first program is stored on the CX. Congratulations, the foundations have now been laid and are ready to be built on. We wish you every success! Version: 1.0.0 CX8080...
  • Page 65: Image Update

    • Wait until copying has finished, then remove the USB cable • Switch DIP switch 1 to OFF • Switch off the CX80xx • Switch on the CX80xx; it may take a little longer the first time CX8080 Version: 1.0.0...
  • Page 66 • Wait until copying has finished, then remove the MicroSD card • Insert the MicroSD card into the SD slot of the switched-off CX again • Now switch on the CX again; it may take a little longer the first time Version: 1.0.0 CX8080...
  • Page 67: Support And Service

    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: http://www.beckhoff.com You will also find further documentation for Beckhoff components there.

This manual is also suitable for:

Cx8090

Table of Contents