Summary of Contents for Moeller XControl XC-CPU201 Series
Page 1
Building Automation Industrial Automation Systems Hardware, Engineering and Functional Description Control system XControl CPU module XC-CPU201...(-XV) 12/03 AWB2724-1491GB Think future. Switch to green.
Page 2
No part of this manual may be reproduced in any form (printed, photocopy, microfilm or any other process) or processed, duplicated or distributed by means of electronic systems without written permission of Moeller GmbH, Bonn. Subject to alteration without notice.
Warning! Dangerous electrical voltage! Before commencing the installation • Disconnect the power supply of the device. • Ensure a reliable electrical isolation of the low voltage for the 24 volt supply. Only use power supply units complying with • Ensure that devices cannot be accidentally restarted. IEC 60364-4-41 (VDE 0100 Part 410) or HD 384.4.41 S2.
12/03 AWB2724-1491GB Contents About this manual Assembly Abbreviations and Symbols Advanced documentation Design of the XC200 CPU with PSU and local inputs/outputs Power supply – Assembly Local digital inputs/outputs – Terminal assignments – LED indicators – Local bus expansion with XIOC-BP-EXT –...
Page 6
12/03 AWB2724-1491GB Contents CPU operation Switch-on behaviour – XC200 drives “disk_sys” and “disk_mmc” Switch-off behaviour Start behaviour – Start behaviour at Power-On HALT Cold start WARMSTART Test and commissioning (Debugging) – Breakpoint/single-step mode – Single-cycle mode – Forcing Programreset – Warm reset –...
Page 7
12/03 AWB2724-1491GB Contents PC – XC200 connection set-up Establishing a connection via the RS232 interface (XC200) 41 – Programming cable – Settings in the XSoft Connection set-up via Ethernet – Settings in the XSoft Scan/Modify the IP address Configuration and parameterization of the inputs/outputs Input/output general Incremental encoder –...
CD, it is Operating mode switch available for download as a PDF file. In order to find the document quickly go to http://www.moeller.net/support: Enter the document Central processing unit number as a search term.
12/03 AWB2724-1491GB 1 Design of the XC200 The XC200 controller has a compact design, and can be fitted with CPU with PSU and local inputs/outputs either local or decentralized expansion. The control system The CPU module of the XC200 has a compact design that is consists of: divided into two functional units: •...
12/03 AWB2724-1491GB Design of the XC200 Table 1: Limitations which apply when using the XC200-CPU and the Power supply XIOC-Signal modules in an ABS plastic enclosure Two separate voltage supplies are available for the power supply Fitted in: Installation Current rating of the 5 V of the processor unit and the local inputs/outputs: On the one location system voltage of the...
12/03 AWB2724-1491GB Local digital inputs/outputs Terminal assignments Local bus expansion with XIOC-BP-EXT The XIOC-BP-EXT backplane enables expansion of local system busses from a max. of 7 to a max. of 15 slots. The intelligent modules such as network and gateway modules can only be inserted into I/O slots 1 to 3.
Page 14
12/03 AWB2724-1491GB Design of the XC200 Function 2: Function 4: Interrupt inputs 1 x up/down counter for a data capacity of 32 bits The XC200 supports up to four local user inputs. The digital inputs I0.4 Input assignment: I0.0 Counter counting signal and I0.5 can be parameterized as interrupt inputs.
12/03 AWB2724-1491GB Local digital inputs/outputs Function 5: Direct peripheral access The “Direct peripheral access” function enables access directly to the local and central input and output signals of the control. The I/O access does not occur via the input/output image. Time constraints I0.0 I0.1 placed on the “direct peripheral access”: refer to “Technical data –...
12/03 AWB2724-1491GB Design of the XC200 Connecting the up/down counter Two further interrupt signals are generated by the rotary encoder/ counter functions and are thus no physical inputs as such. Please note that when an XC100 PLC is replaced by an XC200 PLC, the interrupt inputs are situated at other physical input addresses! I0.0...
12/03 AWB2724-1491GB The CPUs for XC200 controllers are available in various different Assembly versions/performance levels: • XC-CPU201-EC256K-8DI-6DO (-XV) • XC-CPU201-EC512K-8DI-6DO (-XV) “EC256K” and “EC512K” are a measure for the size of the user memory. “XV” identifies a visualisation CPU with integrated web SRAM server.
12/03 AWB2724-1491GB Design of the XC200 Memory Card/Multimedia Card (disk_mmc) Crossover cables have the following design features: Note! • The multimedia card (MMC) may not be inserted or removed when the system is operational with the power supply switched on. •...
12/03 AWB2724-1491GB Select the “reboot” browser command. After reboot has been completed, the new baud rate is activated in the XC200. Select the “Serial Communication Parameters” command in “Online” and update the baud rate as described in the following. Figure 13: Communication parameters for programming Use a double-click to select the field with the preset baud rate.
12/03 AWB2724-1491GB Design of the XC200 Cable characteristics CANopen interface Only use the intended cable type for wiring the Ethernet network. The CPUs can be connected to the CANopen bus via the electrically The cable must be at least category “CAT-5” compatible. isolated ISO-11898 interface.
12/03 AWB2724-1491GB Characteristics of the CANopen cable Use only cable that is approved for CANopen application, with the following characteristics: • Characteristic impedance 100 to 120 O • Capacitance < 60 pF/m The demands placed on the cable, connectors and bus termination resistors are specified in the ISO 11898.
CPU and the XI/OC signal modules. The latest versions of specific manuals can be found at http://www.moeller.net/support : Search item: AWB2725-1452GB) Insert the loop on the bottom of the CPU module into the hole in the module rack...
12/03 AWB2724-1491GB 2 Engineering Control panel layout Preventing interference The layout of the components inside the switchgear cabinet is a Cable routing and wiring major factor for achieving interference-free functioning of the Cables are divided into the following categories: plant or machinery. During the project planning and design phase, •...
12/03 AWB2724-1491GB Engineering Lightning protection Wiring example External lightning protection You can find wiring examples for the XI/OC modules in All cables that go outside buildings must be shielded. Metal the manual “Hardware and Engineering, XI/OC signal conduit is the best solution to this problem. Use protective Modules”...
12/03 AWB2724-1491GB 3 CPU operation Switch-on behaviour After the supply voltage has been switched on, the CPU performs disk_mmc Memory card the self-testing routine and CRC checks. When these have been System disk_sys successfully concluded, the run-time system of the XC200 is memory started.
12/03 AWB2724-1491GB CPU operation After voltage recovery, a boot project saved in the XC200 will be Start behaviour at Power-On started in accordance with the position of the operating mode This setting defines how the controller should respond after selector switch and the programmed start conditions. switch-on, if an application program is present and the operating mode selector switch is in the “Run”...
On the XC200 it is possible to replace the operating system (BTS) The application program can be reset to one of the following by a more up-to-date operating system. Moeller offers the levels: respective current operating system version on the Internet at: •...
Page 28
12/03 AWB2724-1491GB CPU operation Figure 22: Updating the operating system of the XC200: Start The “XC201 Image Download Tool” window opens. Click on the “Open image file” button and enter the path in which the update of the operating system is located. Example Figure 23: Download of the XC200 operating system: Selection of the “Targets”...
Page 29
12/03 AWB2724-1491GB Updating the operating system Open the file in which the operating system is stored; in the The transfer of the operating system into the XC200 is started. This example “BTS 050303_Xc201V100b.nbk”. may take a few minutes! Please observe the signal states of the operating LEDs: •...
12/03 AWB2724-1491GB 4 Program processing, multitasking and system times Task configuration The time relevant execution of an IEC program is designated with priority. An output image is written to the physical outputs and the the word “task”. The task is defined by a name, a priority and a image of the inputs is read before every task call.
12/03 AWB2724-1491GB Program processing, multitasking and system times Event controlled task The following figure demonstrates the parametric programming of the task attributes. The task is initiated as soon as the event entered for the variable receives a rising edge. Figure 28: Event controlled task attributes System events The following figures indicate the programming/parametric programming of the system events.
Page 33
12/03 AWB2724-1491GB Task configuration Figure 29: Assignment of the interrupt source with edge evaluation Figure 30: Assignment of interrupt source/POU (Interrupt task) Further information concerning the cyclic and event The sum of the time intervals of the tasks must be controlled tasks as well as the system events can be found sufficiently smaller than the time interval of the in the XSoft manual (AWB2700-1437GB) and in the...
12/03 AWB2724-1491GB Program processing, multitasking and system times Figure 31: Task configuration with differing and equal priority Multitasking A maximum of 10 tasks are allowed with the XC200 control system. The XC200 run time system is a multitasking system. This means that multiple-tasks can be practically performed at the same time.
12/03 AWB2724-1491GB Multitasking Watchdog configuration Furthermore, the watchdog is triggered with an endless loop when the execution time of the task takes longer than the result of the The following settings can be preselected in the XSoft for watchdog time x watchdog sensitivity. This criterion provides a configuration of the watchdog: mechanism for recognition and reaction to endless loops with •...
TZ > IZ TZ > IZ b TZ > WZ TZ f WZ Figure 35: Overview of the libraries in the “Moeller” folder (endless loop) Figure 33: Watchdog deactivated, multiple tasks with differing priority “Lib_Common” library In the “Lib_Common”, further function blocks and...
XS40_MoellerFB.lib “library” “w“ mode This library contains Moeller specific modules and functions which The “w” mode opens the file in write mode. An existing file with have been integrated into the XSoft from the Sucosoft S40. You this name will be overwritten.
Open in “r” mode OpenFile1 := SysFileOpen('\disk_sys\project\File1','r'); Open in “w” mode OpenFile2 := SysFileOpen('\disk_mmc\MOELLER\XC-CPU201-EC512k-8DI-6DO\Project \File2','w'); Open in “a” mode OpenFile3 := SysFileOpen('\disk_usb\MOELLER\XC-CPU201-EC512k-8DI-6DO\Project \File3','a'); In order to close a file again, the “SysFileClose” function is called. CloseFile:=SysFileClose(OpenFile2);...
Page 39
12/03 AWB2724-1491GB Direct peripheral access Table 8: “Direct peripheral access” overview Modules I/O bit access I/O word access I/O slot Read Write Param./Module Read Write Param./ Param. Module XC-CPU201-EC256K-8DI-6DO DI: 0 to 7, DO: 0 to 5 XC-CPU201-EC256K-8DI-6DO-XV DI: 0 to 7, DO: 0 to 5 XC-CPU201-EC512K-8DI-6DO DI: 0 to 7, DO: 0 to 5 XC-CPU201-EC512K-8DI-6DO-XV...
12/03 AWB2724-1491GB Program processing, multitasking and system times ReadBitDirect ReadWordDirect A bit of an input module can be read directly with this function. A word of an input module can be read directly with this function. The The state of an input bit is stored in the variables, which indicate state of an input word is stored in the variables, which indicate to the to the parameterized pointer “ptr_xValue”.
12/03 AWB2724-1491GB Direct peripheral access ReadDWordDirect With this function you can directly read a double word of an input module or an input function such as a counter value of the 32 bit counter. The state of the double word is stored in the variables, which point to the parameterized pointer “ptr_dwValue”.
12/03 AWB2724-1491GB Program processing, multitasking and system times GetSlotPtr IO_ACCESS_NO_MODULE No module available at the parameterized slot This function is not available! IO_ACCESS_ INVALIDE _Buffer No or incorrect pointer to the output variables Error code with “direct peripheral access” IO_ACCESS_ INVALIDE _Value Event is not “0”...
12/03 AWB2724-1491GB Operating states Operating states The following summary provides you with the state definitions for the XC200. The LED indications for the various states are also shown. Table 11: Definition of the states of the XC200 with LED display State Display Definition...
12/03 AWB2724-1491GB 5 PC – XC200 connection set-up This section describes the measures that are required to link a PC to the XC200, so that the PC can be used as a programming device (hardware and software). Establishing a connection via the RS232 interface (XC200) Communication is implemented via the serial RS232 interface.
12/03 AWB2724-1491GB PC – XC200 connection set-up Connection set-up via Ethernet The programming device interface is designed so that it can be operated as an alternative to the Ethernet interface. An Ethernet interface card is required as a PC interface. For establishment of the direct physical connection, please us the generally commercially available Ethernet crossover cable (XT-CAT5-X-2 or XT-CAT5-X-5).
12/03 AWB2724-1491GB Scan/Modify the IP address • xxx is not equal to yyy You are presented with a window indicating a drive and a flashing • the addresses must be between the limits 1 and 254. cursor behind the drive designator. •...
12/03 AWB2724-1491GB 6 Configuration and parameterization of the inputs/outputs Input/output general The hardware necessary for the application and the physical inputs and outputs are determined (configured) in the PLC configurator. At the start of the CPU (change of the operating mode from HALT to RUN) the CPU verifies the conformance of the configured signal modules with their physical availability.
12/03 AWB2724-1491GB Configuration and parameterization of the inputs/ outputs Incremental encoder You can use the local inputs I0.0 to I0.3 as incremental encoder inputs. Parameterization occurs in the “PLC Configuration”. Activate the “Other Parameters” tab in the “PLC Configuration” window and click on the “Configure Counter/ Encoder”...
Page 51
12/03 AWB2724-1491GB Incremental encoder Figure 54: Incremental encoder preselection Another window opens for the configuration. Enter the “Reference Marks” and the “Reference Mode” here. Input an offset value as a reference value if necessary. The internal hardware counter is set to the reference value if an L/ H edge is present on the reference input of the module and one of the following conditions is also fulfilled: •...
12/03 AWB2724-1491GB Configuration and parameterization of the inputs/ outputs Functionality By scanning the inputs in the user program, you can query the information in the table: Scan of the input (Bit, Byte, Word) Information AT %IB0: Byte; (*Local Inputs/Counter*) [CHANNEL(I)] Local input Byte 0 AT %IX0.0: BOOL;...
12/03 AWB2724-1491GB Counter input Counter input You can use the local inputs I0.0 to I0.3 as counter inputs also. Parameterization occurs in the “PLC Configuration”. Activate the “Other Parameters” tab in the “PLC Configuration” window and click on the “Configure Counter/ Encoder”...
12/03 AWB2724-1491GB Configuration and parameterization of the inputs/ outputs Functionality By scanning the inputs in the user program, you can query the information in the table: 32 Bit counter Scan of the input (Bit, Byte, Word) Information AT %IB0: Byte; (*Local Inputs/Counter*) [CHANNEL(I)] Local input Byte 0 AT %IX0.0: BOOL;...
Page 55
12/03 AWB2724-1491GB Counter input Counter 2 x 16 Bit Scan of the input (Bit, Byte, Word) Information AT %IB0: Byte; (*Local Inputs/Counter*) [CHANNEL(I)] Local input Byte 0 AT %IX0.0: BOOL; (*Bit0*) Counter input 0 for 16 Bit data capacity AT %IX0.1: BOOL; (*Bit1*) Counter input 0 for 16 Bit data capacity count direction AT %IX0.2: BOOL;...
12/03 AWB2724-1491GB Configuration and parameterization of the inputs/ outputs Interrupt processing In the XC200 it is possible to program and parameterize up to four DisableInterrupt interrupt events. Interrupts can be activated by: With this function, you disable (deactivate) a parameterized •...
Page 57
12/03 AWB2724-1491GB Interrupt processing Figure 60: Interrupt module “Interrupt6” Changeover to the PLC Configuration and assign Interrupt 6 from the list field to input I0.5. Figure 61: Assign input I0.5 with interrupt 6 Changeover to the “Task configuration” and tick the box in the right hand field for “Interrupt6”.
Page 58
12/03 AWB2724-1491GB Configuration and parameterization of the inputs/ outputs Figure 62: Assignment of an interrupt module to an interrupt event Select the “Interrupt6” program and confirm with OK. The following window appears: Figure 63: Interrupt module completed task configuration Save the program created, compile it and logon to the control and test the functions of the program modules which you have created.
12/03 AWB2724-1491GB 7 XC200 specific modules and functions and commands Three groups belong to the XC200 specific modules: Event functions • Event modules Events are special occurrences from the operating system or • XIOC modules (direct peripheral access) application. These events are stored in a ring buffer. The following •...
12/03 AWB2724-1491GB XC200 specific modules and functions and commands IEC_GetErrorID IEC_GetNrOfErrors This function returns the Module-ID and Error-ID of the requested This function returns the number of entered error messages. error message. Figure 69: Function IEC_GetNrOfErrors Figure 67: Function IEC_GetErrorID with declaration section The description of the error messages and the error identity can be IEC_GetNrOfEvents found in the Online documentation of the XSoft from Version V2.3...
Page 61
12/03 AWB2724-1491GB CAN_Utilities IEC_WriteError IEC_WriteEvent This function writes an error message into the error list of the This function writes an event message into the event list of the control. control. Figure 71: Function IEC_WriteError Figure 72: Function IEC_WriteEvent CAN_Utilities CAN_BUSLOAD The “CAN_BUSLOAD”...
Page 63
12/03 AWB2724-1491GB 8 Browser commands The PLC browser is a text based control (terminal) monitor. Table 13: Standard PLC 2.3 browser commands Commands to query certain information from the control are Command Description entered in the input line and sent as a string to the control. The answer string is represented in a result window of the browser.
12/03 AWB2724-1491GB Browser commands Table 14: Target system specific PLC 2.3 browser commands Communication parameter access Command Description Settings of the communication parameters via Browser commands such as device names, Ethernet addresses, gateway addresses or clearerrorlist Erase error list baud rates of the serial interface, are only modified and not cleareventlist Erase event list directly accepted/saved in the database entry in Windows-CE...
12/03 AWB2724-1491GB Communication parameter access The target name is automatically generated in dependance on the Parameterize date and time (setrtc) IP address and the target system. It can be called via You can reprogram the date and time with the “setrtc” browser “gettargetname”.
12/03 AWB2724-1491GB Browser commands Browser command “canload” for XC200 The “canload” PLC browser command is a constituent of the “XC200_Util.lib” library. It indicates the loading of the CAN bus. Figure 82: “canload” command for display of the CAN bus load Examples for display: Figure 83: Loading of the CAN bus (Example 1) a Loading of the CAN bus in last integration interval.
Access on protected page 0 for every module ID. Access to uneven address Array limit exceeded RTS = runtime system Division by zero CST = Moeller specific device adaption Overflow Exception cant be overlooked Floating decimal point: General fault Modul Event-...
12/03 AWB2724-1491GB Appendix Technical data XC-CPU201-EC256-8DI-6DO(-XV) XC-CPU201-EC512-8DI-6DO(-XV) General Standards and regulations IEC/EN 61131-2 EN 50178 Ambient temperature °C 0 to +55 Storage temperature °C –25 to +70 Mounting position horizontal Relative humidity, no condensation 10 to 95 (IEC/EN 60068-2-30) Air pressure (in operation) 795 to 1080 Vibration resistance 10 to 57 Hz g 0.075 mm...
Page 70
12/03 AWB2724-1491GB Appendix XC-CPU201-EC256-8DI-6DO(-XV) XC-CPU201-EC512-8DI-6DO(-XV) Supply voltage for the CPU (24 V/0 V) Mains failure bridging Drop-out duration Repeat rate Input rated voltage V DC Permissible range V DC 20.4 to 28.8 Current consumption typ. 1.4 Residual hum and ripple Maximum power dissipated (without local I/O) Overvoltage protection Polarity protection...
Page 71
12/03 AWB2724-1491GB Technical data XC-CPU201-EC256-8DI-6DO(-XV) XC-CPU201-EC512-8DI-6DO(-XV) CANopen Maximum data transmission rate kBits/s 20/50/100/125/250/500/800/1000 Electrical isolation Device profile to DS301V4 PDO type asyn., cyc., acyc. Connection Plug-in spring-loaded terminal block, 6-pole Bus termination resistors External Participant max. 126 USB interface, V1.1 Data transfer rate (Autochanging) MBit/s 1.5/12...
Page 72
12/03 AWB2724-1491GB Appendix XC-CPU201-EC256-8DI-6DO(-XV) XC-CPU201-EC512-8DI-6DO(-XV) Input delay Functionality: Normal digital input Off r On typ. 0.1 On r Off typ. 0.1 Functionality: Fast digital input Off r On typ. 7 On r Off typ. 1 Inputs Channels with common reference potential Of which can be used as Interrupt inputs Counter input 32 Bit or...
Page 73
12/03 AWB2724-1491GB Index Abbreviations ....... . 5 Electromagnetic contamination ....19 Error code with “direct peripheral access”...
Page 74
12/03 AWB2724-1491GB Index Memory Card ....... .14 Task monitoring ......30 Memory systems .
Need help?
Do you have a question about the XControl XC-CPU201 Series and is the answer not in the manual?
Questions and answers