Home
Modular PLC XC-CPU121-2C256K
Contents
1. N Warning Warns of the possibility of serious damage and slight injury A Danger Indicates the risk of major damage to property or serious or fatal injury For clarity of layout we adhere to the following conventions in this manual at the top of left hand pages you will find the Chapter heading at the top of right hand pages the current Section heading exceptions are the first pages of Chapters and empty pages at the end of Chapters 08 10 MN05003002Z EN 08 10 MN05003002Z EN 1 Design of the XC121 The PLC XC121 is designed for application in machine and system control units Software CoDeSys is required for programming The CPU XC CPU121 2C256K can be applied autonomously and connected to the input output devices via the CANopen interface The I O module XIO EXT121 1 of the same construction design which features analogue and digital I Os serves as the local expansion module for the CPU with inputs outputs 1 0 All further X IOC signal modules can be plugged into the module with the exception of the PROFIBUS DP modules The XC121 PLC consists of the e XC CPU121 with power supply unit e 1 0 module XIO EXT121 1 with power supply unit and digital and analogue I Os which are referred to as local I Os in the following e Central XI OC signal modules Maximum basic expansion XC CPU121 XIO EXT121 2 X XIOC BP 2 XIOC B P3 1 2 3 4 5 6 7 Maximum total expansion XC CPU12
2. XC CPU121 functions 08 10 MN05003002Z EN APPLICATION switch S2 Using the 8 pole DIP switch values can be set which are to be evaluated differently to suit the set DIP switch mode It is possible for example with mode Node ID CANT that you are dealing with the set node address Node ID for channel 1 The DIP switch mode is set in the PLC configuration window see following section You can query the set value on the switch in the user program with the GetApplicationSwitch function You can find this function in the library XC121 Util lib It interprets the switch position as a binary value e Switch 1 least significant bit Switch 7 most significant bit e Switch 8 selection of the CAN interface with Node ID routing OFF CAN1 ON CAN2 e g provides the function with the switch position value 3 as indicated on the right 12345678 12345678 ON ON Setting in the default state Setting for address 3 Figure 4 DIP switch application switch DIP switch mode The mode is set in the PLC configuration Activate the Other Parameters tab and select one of the following modes in the DIP Switch Mode field Application Node Id CAN1 Node Id CAN2 Node Id Routing ioii mco Settings Other Parameters r Settings RS232 gt CAN Routingsettings
3. Switch on behaviour After switching on the supply voltage the CPU performs a system self test If the test has been completed successfully the runtime system starts The red and green LED flashes if there is a malfunction After the start of the runtime system the CPU checks if an operating system update is available on the inserted MMC and also if this must be loaded As the PLC does not feature a battery for backup of the main SRAM memory after the start of the runtime system it checks if a boot project is available If this is the case it is loaded in the main SRAM memory and starts Power on No dependent on the position of the operating mode selection switch and the set start behaviour If the flash memory contains no boot project the PLC remains in NOT READY state Switch on behaviour with boot project When the PLC is started a boot project available on the MMC has priority over a project stored in the system memory Flash If the boot projects are different the boot project from the MMC is copied into the system memory Flash and then run Due to the copy process the PLC start up phase will be extended by a few seconds Boot project on MMC Boot project in the system memory Flash Boot project on MMC Boot project in system memory Flash Y Y Boot project in the No system memory Flash Load boot project from system memory Flash into the main memory and
4. Figure 62 Function summary The transparent mode functions are contained in the XC121_SysLibCom lib library The library must therefore be included in the Library Manager You can find the descriptions of the function blocks in the manual CoDeSys Function Blocks for XSoft MN050100027 EN previously AWB2786 1456GB gt If the RS232 interface COM1 of the XC121 is in transparent mode programming via this interface is not possible Transparent mode must first be disabled When transparent mode is closed the original communication parameters are reinitialised The transparent mode is forcibly deactivated when the PLC state changes to the STOP mode or when the SysComClose function is accessed 47 48 08 10 MN05003002Z EN 08 10 MN05003002Z EN Appendix Dimensions XC CPU121 50 35 zl 100 p XIO EXT121 1 50 100 35 a 50 XC CPU121 XIO EXT121 1 16 22 75 3725 Y MA amp 9 49 50 Appendix 24 V DC line filter XT FIL 1 SS SS 2ooboo Y 35 30 08 10 MN05003002Z EN Technical data XC CPU121 XIO EXT121 1
5. 4 800 9 600 19 200 38 400 Setting via function blocks 57 600 Bit s Character formats 8E1 801 8N1 8N2 7E2 702 7N2 7E1 Setting via FB Electrical isolation None Bus termination resistors for RS485 External CAN1 CAN2 interface Data transmission rate Kbit s 10 500 Electrical isolation No Participant 126 Bus terminator Can be switched in for each interface CAN1 CAN2 PDO type Asynchronous cyclic acyclic 1 Higher transfer rates that are selectable in the PLC configuration are not possible 08 10 MN05003002Z EN XIO EXT121 1 Connection by Technical data X1 connector Connector type Springloaded terminal block 20 pole B2L 3 5 Weidm ller Terminal capacity solid mm 0 5 1 X2 X3 connector Connector type Springloaded terminal block 10 pole BLZF 3 5 180 or BLI O 3 5 10F with LEDs Weidm ller Terminal capacity solid mm 0 5 1 Supply voltage 24 V 0 V Hold up time on supply drop out Dropout duration ms 10 Repeat rate S 1 Input voltage V DC 24 Permissible range V DC 20 4 28 8 Power consumption W max 1 68 XI OC signal modules requirement Input current mA 70 XI OC signal modules requirement Signal module output voltage Rated value V DC 5 Output current A 2 5 Short circuit rating Yes Electrically isolated from the supply voltage No Residual hum and ripple 5 Over
6. E No Cancel Load all Figure 51 Query concerning program change Click Yes The program is loaded After a short while a communication error message appears since the baud rate settings of PC and CPU are no longer the same x amp Communication Error 0 Logout Performed Figure 52 Communications fault Acknowledge the message with OK To reestablish communications change the PC s baud rate again 40 08 10 MN05003002Z EN 08 10 MN05003002Z EN 10 Set the system parameters via the STARTUP INI file Parameter overview You can define the system parameters with the INI file and save them on the MMC The PLC accepts the parameters during start up The INI file is always generated with all control specific entries gt table 12 Parameters which you have specified in the PLC configuration do not receive an entry Table 12 Parameters in the INI file Entries COM BAUDRATE CAN1 BAUDRATE CAN1_NODEID CAN2_BAUDRATE CAN2_NODEID CAN_ROUTINGID CAN_ROUTING_CHANNEL Structure of the INI file An INI file is a text file with a defined data format From a section defined with a name in square brackets e g such as STARTUP the system parameters are listed followed by an equals sign and their value Close the line by pressing RETURN COM BAUDRATE 38400 Return Lines commencing with a semicolon are interpreted by the PLC as comments and are ignored CAN ROUTING CHANNEL CAN1 E
7. uiSlot 0 uiBit 8 15 1X2 0 1X2 7 uiSlot 0 uiBit 16 23 Function WriteBitDirect uiSlot uiBit xValue QX0 0 QX0 7 uiSlot 0 uiBit 0 7 Further functions are Byte access Function ReadByteDirect uiSlot uiByte ptr_byValue IBO uiSlot 0 uiByte 0 IB1 uiSlot 0 uiByte 1 IB2 uiSlot 0 uiByte 2 Function WriteByteDirect uiSlot uiByte byValue QBO uiSlot 0 uiByte 0 WORD access Function ReadWordDirect uiSlot uiOffset ptr_wValue IWA uiSlot 0 uiOffset 2 IW6 uiSlot 0 uiOffset 3 IW8 uiSlot 0 uiOffset 4 IW10 uiSlot 0 uiOffset 5 IW12 uiSlot 0 uiOffset 6 IW14 uiSlot 0 uiOffset 7 Function WriteWordDirect uiSlot uiOffset wValue QW2 uiSlot 0 uiOffset 1 QWA uiSlot 0 uiOffset 2 08 10 MN05003002Z EN Error code with direct peripheral access Verify all functions as far as possible for the validity of the call parameters Verification is undertaken to determine if the access occurs in dependance on the parameterized signal module and the physical existence of the signal module If a fault is determined access is not undertaken and an error code is output The data fields for the value transfer remain unchanged The Disablelnterrupt and Enablelnterrupt functions do not generate an error code The following return values are possible Table 10 Error codes with direct peripheral access IO ACCESS NO ERROR No error IO ACCESS IN
8. 1 Operating mode switch functions x Switch Function position S5 ST Applikation H1 H2 O 0 STOP O 24VDC O O 1 RUN Set the operating mode switch to position 1 and then 3 s press the set button in order to start the CPU 2 3 7 Bop X1 X2 x3 X4 X5 X6 8 Restore factory default state When you press the SET button for at least three seconds A the values are read CPU gt STOP Figure 3 Overview XC CPU121 08 10 MN050030027 EN Remove the Multimedia card beforehand otherwise the program will be erased Legends to figure 3 9 Perform Cold reset When you press the SET button for at least three seconds H1 LED display RUN STOP a Reset is performed CPU gt STOP H2 LED display SF Ps For further information chapter Program START STOP from S1 Operating mode switch page 24 S2 APPLICATION switch 3 Switch for bus termination resistor for CAN1 interface S4 Switch for bus termination resistor for CAN2 interface SET button S5 SE EW The SET button is enabled only in connection with setting 1 8 and m E um 9 of the operating mode switch If you press the SET button while ar E Ca the switch is in position 8 or 9 the Cold reset or Restore X2 COM1 interface R5232 for connection of a programming factory default state are implemented RUN STOP LED flashes device quickly X3 COM2 interface RS232 RS485 X4 CANopen interface CAN1 X5 CANopen interface CAN2 X6 CANopen interface CAN2 X7 Slot for MMC Multimedia Card 10
9. 2 LED status indicator LED Meaning RUN STP SF Off Red System test being run up to 6 seconds after start after 6 seconds if no user program is present CPU in NOT READY Green Red System update in progress Both flashing System test found a fault Green flashing Off Load user program CPU in STOP Green Off Load user program CPU in RUN Green flashing Red Group error diagnosis message issued Green flashing quickly during Reset red dependent on group error Off On Reset through operating mode switch switch position 9 Real time clock The XC121 features a real time clock which can be referenced in the user program via the functions from the SysLibRTC library The functions are described in the SysLibRTC PDF file The file can be found in the Windows start menu under Moeller Software gt easy Soft CoDeSys gt Documentation You can read and set with the browser commands getrtc and setrtc respectively Further information can be found at Section setrtc on page 36 During a voltage loss the clock is backed up for at least 72 hours 12 XC CPU121 functions Limit values for memory usage The data memory of the XC121 is divided into memory segments The memory size of the individual segments can be found in figure 6 The global data avails of multiple segments can be specified to suit the size of the loaded program To view the specified segment size for a
10. Baudrate Startverhalten CAN Baudrate 125KBaud Y 38400 y WARMSTART y Node4D 1 127 127 Maximum Cycle Time Max Cycle Time 20 1000ms zo Channel CAN x Update Operating System CONCA Stat R5232 Fullduplex y art DIP Switch Mode Application v Node Id CAN1 ES Node Id CAN2 Node Id Routing m Mode of the application switch Figure 5 Application This setting has the effect that the DIP switch modes Node Id CAN1 CAN2 and Node Id Routing are not active Node Id CAN1 CAN2 The XC121 can operate for the CAN1 and or CAN2 channel interfaces as a device A Node ID can be set on one of both Node Id CAN1 or Node Id CAN2 channels on the APPLICATION switch For example Node Id 3 has been set in the representation on the right of figure 4 Further information can be found at Section CANopen interface CAN1 CAN2 on page 13 Node Id Routing The XC121 can be used as the target control with routing Access is provided via the CAN1 or CAN2 channel interface Set a Routing Id for the channel on the APPLICATION Switch In figure 4 Routing Id 3 has been set on the switch indicated on the right Further information can be found at Section CANopen interface CAN1 CAN2 on page 13 08 10 MN05003002Z EN Memory card MCC Memory card MCC The MMC serves as mass memory The operating system OS supports memory types with the FAT16 file system The OS
11. Device The first folder CanMaster VAR is fundamentally assigned to the channel CAN 1 The second folder CanDevice VAR is assigned to channel 2 The parameters for channel 2 are set in the PLC Configuration or via the application switch gt Transfer rates higher than 500 kbit s are not possible even though they are selectable in the PLC configuration Using the CAN libraries The CanUser lib and CanUser_Master lib libraries provide the user with cross control access to CAN objects These include in parti cular CAN direct functions function blocks such as direct read and write of CAN telegrams and further CANopen functionality s such as sending and receiving data via SDO functions or access to diag nostics information from the user program CAN Direct You can directly access CAN objects via the function blocks of the SysLibCan library gt Application Note AN2700K27 Four independent ports are set up for each of both CAN interfaces Access to the CAN line connected to CAN1 Access to the CAN line connected to CAN2 CAN1 CAN4 SECOND CAN1 SECOND CAN4 08 10 MN05003002Z EN Bus termination resistors For each of both CAN interfaces you can switch in or out the bus termination resistor The changeover switches 3 and S4 are located beside the plug connectors gt figure 3 o i Switched on bus termination resistor Switched off bus termination resistor Figure 10 Switching the bus
12. General Standards and regulations IEC EN 61131 2 EN 50178 Ambient temperature SC 0 55 Storage C 25 70 Mounting position Horizontal Relative humidity no condensation IEC EN 60068 2 30 10 to 95 Air pressure in operation hPa 795 to 1080 Vibration resistance Frequency 5 to 9 Hz amplitude 3 5 mm 9 to 150 Hz 1 0 g constant acceleration Mechanical shock resistance 15 g 11 ms Overvoltage category ll Pollution degree 2 Enclosure protection IP20 Rated insulation voltage V 500 Interference emission Industry EN 61000 6 4 Interference immunity Industry EN 61000 6 2 Back up of the clock at least 72 hours Weight kg 0 15 Dimensions W x H x D mm 90 x 100 x 47 08 10 MN05003002Z EN Technical data Electromagnetic Compatibility EMC Electrostatic discharge IEC EN 61000 4 2 Level 3 ESD Contact discharge kV 4 Air discharge kV 8 Radiated IEC EN 61 000 4 3 RFI V m 10 Burst Impulse IEC EN 61000 4 4 Level 3 Supply cables kV 2 Signal cables kV 1 Surge IEC EN 61 000 4 5 kV 0 5 Conducted IEC EN 61 000 4 6 V 10 XC CPU121 Connection by Supply voltage Plug Springloaded terminal block 4 pole Terminal capacity mm 0 14 1 AWG28 18 COMI interface Plug RJ45 COM2 CANT CAN2 interfaces Plug Springloaded terminal block 6 pole Terminal capa
13. PLC type select the Resources tab in the object organizer and double click Target Settings In the dialog select the Memory Layout tab Target Settings x Configuration Target Platform Memory Layout General Network fun Size Code 16440 256 KB Global fis a000 16 KB Memory 1884000 16kB Input 6 0 4KB 4KB 8 KB per segment max 14 segments Output Retain Figure 6 Memory layout To allow maximum usage of the entire available memory range for global data set the number of global data segments to 14 when you create a new project The number of segments is set to 1 by default Changing segment allocation Select in the directory Project Options gt Compilation options the Number of data segments field and enter 14 for the number of segments with the selected PLC type XC121 Serial interface COM1 COM2 The CPU features two serial interfaces COM1 and COM2 COM1 programming interface transparent mode Through the programming interface COM1 RS232 communication between CPU and the programming device takes place The interface is initialised with the following default parameters when the PLC is started Data length 8 bit Parity none Stop bits 1 Baud rate 38400 Baud gt More detailed information about transparent mode can be found from page 47 08 10 MN05003002Z EN Table3 Assignment
14. eee ees 30 Wiring inputs outputs mounting example 16 Real time clock 0 cece eee eee eee eee nn 11 PETECE de Ne s D MNE N or pk sen AE ae den Mk 36 Removing XC121 from top hat rail 15 A ea 25 27 Restoring factory default state 9 Retentive variables ooooooooooommmmm m 24 Routingld YY YY YF FFF o 10 RUNS ES EIS da 2s thao Et 9 Runtime system 0 eee eee eee 23 S XC MP 12 Serial interface COM1 COM2 uu 12
15. fig 22 Table 6 Analog values 0 10V 0 20mA dec hex Analog inputs 0 0 0 000 5 10 511 1FF 10 20 1023 3FF Analog outputs 0 0 000 5 2047 TFF 10 4095 FFF 08 10 MN05003002Z EN O D Simulated temperature C 2 Measured XC 121 decimal value dec 200 107 ec 200 180 155 Em 1504 160 203 140 251 a 120 297 507 100 344 I nn S gt pu 100 200 300 400 596 600 700 800 900 1000 1100 dez 80 390 504 60 435 40 480 E 20 525 200 0 569 20 614 Figure 22 Pt100 calibration curve for XC121 40 657 x He Simulator burster precision 60 701 RTD Simulator 4530 80 745 100 788 120 831 140 873 160 916 180 958 200 1000 08 10 MN05003002Z EN 5 Configuration of the XIO EXT121 1 In order to expand the XC121 with the I O module XIO EXT 121 1 the folder No local 1 0 must be replaced in the PLC Configurator by the element XIO EXT121 1 KE PLC Configuration n xl El Configuration xC 4 AD Ml Replace element No local 1 0 Calculate addresses XIO EXT121 1 Cut Gro Copy Ctr C Paste Gtr rv Delete Del Figure 23 Configuration of XIO EXT121 1 The new window displays all inputs and outputs of the I O module f PLC Configuration Configuration XC CPU121 20256K C 8 Inputs Outputs 10 AT QBO BYTE 8 Inputs Outputs CHANNEL Q AT 96IB1 BYTE 8
16. no further away than the control panel Internal lightning protection Internal lightning protection covers all those measures taken to reduce the effects of a lightning strike and the resulting electrical and magnetic fields on metallic installation and electrical plant 08 10 MN05003002Z EN These measures are Equipotential bonding earthing e Shielding using overvoltage protection devices Please consult the following manuals for advice on cable routing and shielding measures e AWB27 1287 EMC Engineering Guidelines for Automation Systems e TB27 001 GB Electromagnetic Compatibility EMC for Automation systems e TB02 022 GB Electromagnetic Compatibility EMC for Machinery and Plants Connections Connecting the power supply zivbc 0V avoc ov vava x1 x3 XIO EXT121 1 Figure 17 Wiring example XC CPU121 and XIO EXT121 1 left common power supply right separate supplies D Main switch 2 Protective cut out G 24 V DC supply voltage 4 Earthed operation In floating i e unearthed operation an isolation monitor must be used IEC 204 1 EN 60204 1 DIN EN 60204 1 6 Ferrite ring 24 V DC line filter ensures that a current of up to 2 2 A maximum is available at a rated voltage of 24 V DC Ensures that the EMC stipulations for devices are fulfilled when the filter is used The f
17. of the inputs The inputs I 1 0 DIO to 1 7 DI7 on plug connector X2 can be used as standard or as interrupt inputs The inputs I 2 0 DI8 and 2 1 DI9 are standard inputs The individual interrupt inputs are assigned with their interrupt function only after the inputs are allocated with their edge type which triggers the interrupt The allocation is implemented in the PLC Configurator in the Other Parameters tab under Local Interrupts 27 28 Operation f PLC Configuration x Heng Base parameters Other Paramete r Local Interrupts 11 0 rising edge 11 1 none none 11 2 11 3 11 4 none 1 5 none 5 18 none y 11 7 none trailing edge both none Figure 28 Defining the edge type on the local interrupt The link between the IO interrupt and POU is made in the task configurator The interrupt channels 1 to 8 channels are allocated directly to the inputs 11 0 to 11 7 The priority of the inputs is fixed channel 1 input 1 0 has the highest priority channel 8 input 1 7 has the lowest priority see the example 08 10 MN05003002Z EN Example for interrupt processing A Basic task contains a POU PLC PRG A further POU Fastprog should be processed if an L gt H rising edge on the input 11 2 generates an interrupt Create the POUs PLC PRG and Fastprog as shown in figure 29 PLC PRG PRG ST 0001 PROGRAM PLC
18. termination resistors Properties of the CANopen cable Use only cable approved for CANopen applications and with the following characteristics e Characteristic impedance 100 to 120 O e Capacitance lt 60 pF m The demands placed on the cable connectors and bus termination resistors are specified in ISO 11898 Following you will find some demands and stipulations listed for the CANopen network Table 4 lists default parameters for CANopen networks with fewer than 64 CANopen stations Table 4 Standard parameters for CANopen network cable according to the ISO 11898 5 8 pes du E g 8 S o t Se a z So 2 t E 52 E EM E 3 3 9 o u CB 3 o o 3 S ta o ca ro m mQ m mm2 Q kbit s 0 40 70 0 25 0 34 124 1000 at 40 m 40 300 lt 60 0 34 0 6 150 300 gt 500 at 100 m 300 600 40 0 5 0 6 150 300 gt 100 at 500 m 600 1000 lt 26 0 75 0 8 150 300 gt 50 at 1000 m 08 10 MN05003002Z EN 3 Mounting Mounting the XC121 on a top hat rail Hook the XC CPU121 XIO EXT121 1 onto the mounting rail from above Pull the locking slider downwards 1 Press the bottom of the module against the mounting rail LE Push the locking slider up again 3 Make sure that the module is securely attached to the top hat rail ot u Figure 11 Mounting of the XC121 Figure 12 Removing the XC121 Mounting the XIO EXT121 1 Figure 13 Mounting the XIO EXT
19. the terminals DXO to DX7 of connector X3 Each terminal connection can be set QX0 0 to QX0 7 or read IX0 0 to IX0 7 from the user program Interrogate the inputs of the plug X2 with IX1 0 DIO to IX1 7 DI7 and IX2 0 DI8 1X2 1 DI9 Connections Two connector devices are available e without LED e with LED LED TEE Connector type BLI O 3 5 10F HiT Connector type BLZF 3 5 180 Figure 20 Connector types You can use both connector types for the adapter extension X2 and or X3 The analog sensors actuators are connected to plug connector X1 X1 x2 X3 24 V DC DIO 24 V DC DM ov on DXO Al0 Al0 DI2 DX1 AN All DI3 DX2 Al2 Al2 DI4 DX3 Al3 Al3 DI5 DX4 Al4 Al4 DI6 DX5 Al5 Al5 DI7 DX6 AQ0 AQ0 DI8 DX7 AQ1 AQ1 DI9 ov connected internally Figure 21 Designation of the plug connector and the inputs outputs 19 20 Engineering Table 5 Analog input output properties Analog type Resolution Operand Analog inputs Terminal X1 0 10V 10 Bit IW4 AIO 0 10V 10 Bit IW6 All 0 20 mA 10 Bit IW8 AI2 0 20 mA 10 Bit IW10 A3 Pt100 10 Bit IW12 AM Pt100 10 Bit IW14 AIS Analog outputs 0 10V 12 Bit QW2 AQO 0 10V 12 Bit QUA AQ1 1 Assigned temperature values gt
20. 08 10 MNO5003002Z EN User Manual replaces 04 08 AWB2724 1578G Modular PLC XC CPU121 2C256K E T N Powering Business Worldwide All brand and product names are trademarks or registered trademarks of the owner concerned Emergency On Call Service Please call your local representative http www eaton com moeller aftersales or Hotline After Sales Service 49 0 180 5 223822 de en AfterSalesEGBonn eaton com Original Operating Instructions The German language edition of this document is the original operating manual Translation of the original operating manual All editions of this document other than those in German language are translations of the original German manual 15t published 2005 edition date 08 05 2nd edition 2007 edition date 04 07 3rd edition 2007 edition date 05 07 4th edition 2008 edition date 04 08 5th edition 2010 edition date 08 10 see revision protocol in the About this manual chapter 2005 Eaton Industries GmbH 53105 Bonn Editor Thomas Kracht Translation globaldocs GmbH All rights reserved including those of the translation 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 Eaton Industries GmbH Bonn Subject to alteration without notice Eaton Industries GmbH Safety instructions A Danger Danger
21. 1 XIO EXT121 XIOC BP 2 XIOC BP 3 XIOC BP EXT Slot XC CPU121 XIO EXT121 XI OC modules CPU Local I Os Central I Os Figure 1 Design architecture The CPU and the CPU I O module have the backplane with three slots as their base platform Connect the XIO EXT121 module with the CPU in order to expand the CPU with I Os You can then connect the backplanes XIOC BP 3 and XIOC BP 2 into which the XI OC signal modules are inserted An expansion within the XI OC backplane is implemented using the backplane XIOC BP EXT In the basic version with the XI OC backplane a maximum of seven slots are available with a maximum of 15 slots for the XI OC signal modules when full expansion is implemented 2 x XIOC BP 2 XIOC BP 3 Figure 2 Expansion with XIOC signal modules Detailed information concerning the backplanes and the XI OC signal modules can be found in the XI OC Signal Modules manual MN05002002Z EN previously AWB2725 1452GB 10 11 12 13 14 15 Slot 08 10 MN05003002Z EN 08 10 MN05003002Z EN 2 XC CPU121 functions The functions are described in detail in the following Operating mode switch S1 With the operating mode switch you can set the functions shown in Table 1 XC CPU 121 Table
22. 121 1 on the XC121 15 16 Mounting 08 10 MN05003002Z EN APPLICATION switch setting XC CPU121 2C256K VO1 Power Supply 24 VDC 0 06 A STOP RUN SF SET P 800 RS 232 RS485 CANI CAN2 Figure 14 APPLICATION switch setting Input output wiring a all 10 EXT121 1 x Vx x ese X Of OOOOOOOO NI E Figure 15 Input output wiring 08 10 MN05003002Z EN 4 Engineering Control panel layout The layout of the components inside the control panel is a major factor for achieving interference free functioning of the plant or machinery During the project planning and design phase as well as its implementation care must be taken that the power and control sections are separated The power section includes e Contactors e Coupling interfacing components e Transformers e Frequency inverters e Converters In order to effectively exclude any electro
23. 96 of end of scale Input resistance kQ 200 Analog inputs 0 20 mA Number of channels 2 Input voltage range mA 0 20 Resolution Bit 10 Conversion time ms 25 Overall accuracy 1 96 of end of scale Input resistance Q 50 Pt100 Number of channels 2 Temperature range 8C 200 200 Resistance range Q 18 5 175 8 Precision 10 digits Analog outputs Number of channels 2 Output voltage range V 0 10 Resolution Bit 12 Conversion time ms 5 Overall accuracy lt 1 of end of scale External load resistance kQ 10 1 Assigned temperature values fig 22 08 10 MN05003002Z EN 24 V DC line filter XT FIL 1 General Technical data Standards and regulations IEC EN 61131 2 EN 50178 Ambient temperature C 0 55 Storage C 25 70 Mounting position Horizontal vertical Relative humidity no condensation IEC EN 60068 2 30 10 to 95 Air pressure in operation hPa 795 to 1080 Vibration resistance Frequency 5 to 9 Hz amplitude 3 5 mm 9 to 150 Hz 1 0 g constant acceleration Mechanical shock resistance 15 g 11 ms Impact resistance 500 g 50 mm 25 g Overvoltage category ll Pollution degree 2 Enclosure protection IP20 Rated impulse voltage V 850 Interference emission Industry EN 61000 6 4 Interference immunity Industry EN 61000 6 2 Weight g 95 Dimensions W x H x D mm 35 x 90 x 30 Connecting terminals Screw t
24. H 3 2 1 GND CAN L CANopen CAN H X6 6 5 4 3 GND 2 CANL CANopen 1 CANH Figure 7 CANopen interface overview X4 5 6 6 pole plug in springloaded terminal block 3 4 Switch for bus termination resistor R1 2 Bus termination resistor 120 Q Both CANopen interfaces are designed conform to the CIA specification DS 301 V4 0 The can be operated independently of each other both as a CAN Master as well as a CAN Device XC121 as a CAN Device CAN1 and or CAN2 In figure 8 an XC121 has been configured with two CAN Device channels Each channel used must be assigned with a Node Id which serves as an address You can choose between two different methods to set the Node ld e Setting via the PLC Configurator e Setting via the APPLICATION switch gt The setting on the APPLICATION switch for Node Id and Routing Id have priority over the configurator setting CANopen interface CAN1 CAN2 Setting via the PLC Configurator Open the Other Parameters tab in the PLC Configurator In the DIP Switch Mode field gt figure 5 the operating mode Node ID CAN1 or Node ID CAN2 may not be selected Click on the first folder CANDevice VAR The Base settings tab is displayed gt The first folder CANDevice VAR is fundamentally assigned to the channel CAN1 The following folder contains channel CAN2 Enter any bus name instead of CAN1 CAN1 has no significance Change over to the CA
25. Interrupt Inputs CHANNEL 1 j AT 1B2 BYTE 2 Inputs CHANNEL 1 AT 96h 4 WORD 10Bit 0 10VDC Input CHANNEL AT IW6 WORD 10Bit 0 10VDC Input CHANNEL AT IWW8 WORD 10Bit 0 20mA Input CHANNEL AT 96h 1 0 WORD 10Bit 0 10mA Input CHANNEL AT SW 2 WORD 10Bit PT100 Input CHANNEL AT 96h 4 WORD 10Bit PT100 Input CHANNEL AT QW2 WORD 12Bit 0 10VDC Output CHANN AT 96 Q4 WORD 12Bit 0 10VDC Output CHANN fff jOC Modules SLOT gt Figure 24 Configuring the inputs and outputs The following overview indicates the assignment of the input output syntax as indicated in the configurator to the connections on the plug connector Table 7 Overview of the 1 0 signals analog Plug Connector Operand Operand Type l Q connector I Q l Q analog type Word Word X1 AIO IW4 10 10 V DC Alt IW6 10 10 V DC Al2 IW8 10 20 mA AI3 IW10 10 20 mA Al4 IW12 Pt100 AI5 IW14 I Pt100 A00 QW2 Q0 10 V DC AQ1 QWA Q0 10 V DC Table 8 Overview of the I O signals digital Plug Connector Operand Operand Q Type connector 1 Q E a Q type Bit Byte Bit Byte digital X2 DIO IX1 0 1B1 DI7 IX1 7 DI8 IX2 0 IB2 DI9 IX2 1 X3 DXO IX0 0 IBO OX00 QBO IQ DX7 1X0 7 OX0 7 See also Designation of the plug connector and the inputs outputs figure 21 on page 19 21 22 08 10 MN05003002Z EN 08 10 MN05003002Z EN 6 Operation
26. Mode Application Figure 56 CANopen routing settings The following illustrations indicate independently of the routing settings where the baud rate and the Node ID of the PLCs which have been configured as masters or devices are to be entered The settings are to made in the master PLC in the CAN Parameters tab or with the device PLC in the CAN Settings tab ff PLC Configuration EH Configuration XC E 5 AT 1B0 Bi Base parameters CAN parameters Moi Baud rate 125000 a Com Cycle EMPTY SLC Period usec 0 EMPTY SLC P Sync Window EMPTY SLC Lenght user 0 4 EMPTY SLC Sync COB ID i28 tivate Y 4 EMPTY SLC y sonne v 4 EMPTY SLC Node Id 1 IV Autostart IV Support DSP301 W4 01 and DSP306 Heartbeat Master ms Jo Figure 57 CAN master parameters fff PLC Base settings CAN settings Defau Node id 3 Device Type 04131 Baud rate 125000 IV Automatic startup r Node guard Figure 58 CAN device parameters 46 Programming via CANopen network Routing Example The example below illustrates the procedure for accessing a PLC program CANopen Figure 59 Diagnostics possibilities i XC100 with node ID 1 2 XC200 with node ID 2 3 XN PLC with Node ID 3 instead of the XN PLC you can also use an XC121 You have conne
27. N settings tab and set the Node Id and the baud rate gt Set the parameters on the CAN2 channel using the same method ff PLC Configuration E Configuration XC CPU z 2 fffjdO EXT1 21 1 8L Base settings CAN settings E Bus identifier CANT A Name of updatetask 4 gt E Configuration J FT L Base settings CAN settings D doen L gaycanDevcevar Medie P Baud rate 125000 El I rf Auto start Figure 8 Node ld setting via configurator CAN1 Device Setting via the APPLICATION switch The Node ld of an interface CAN1 or CAN2 can be set via the APPLICATION switch the Node Id of further interfaces must be set in the PLC Configurator For this purpose the Node Id CAN must be set in the DIP Switch Mode gt figure 5 on page 10 Now set the Node Id in the APPLICATION switch on switches 1 to 7 switch 8 has no function Settings Switch 1 7 Node Id 1 127 with invalid address O the default node Id 127 is used Switch 8 No function How to set the baud rate Click on the folder CAN Device Var open the CAN settings and enter the baud rate 14 XC CPU121 functions Setting of the XC121 as a CAN Master CAN Device The figure shows an example for the XC121 as a CAN Master and as a CAN Device Mio local vorsLon SAN CanMaster VAR GAN CanDevice VAR mimi Figure 9 XC121 as CAN Master and as a CAN
28. P 24 Program start STOP gt RUN 24 Behaviour after power off or power interruption 24 Program stop RUN gt STOP 25 Program processing and system time 25 Cycle time monitoring 25 Reset 25 Reset warm 25 Cold reset 25 Full reset 25 Reset for restoring the factory defaults 25 Behaviour of the variables after a Reset 25 Test and commissioning 26 Breakpoint single step mode 26 Single cycle mode 26 Forcing variables and I Os 26 CoDeSys status indication 26 System events 27 Interrupt processing 27 Parametric programming of the inputs 27 Example for interrupt processing 28 Timer interrupt 29 Direct I O access 30 ReadBitDirect 30 Error code with direct peripheral access 31 Creating and transferring boot project Bil Saving boot project on MMC Bil Erase boot project 31 Operating system download update 32 Transferring the operating system from the PC into the PLC 32 Transferring the OS from the PC into the MMC 33 Transferring the OS from the MMC into the PLC 33 User program source code 33 7 Browser commands 35 reflect 36 canload 36 setrtc 36 8 Libraries function blocks and functions 37 Using libraries 37 Installing additional system libraries 37 XC121 specific functions 38 Library XC121 Util lib 38 Function CAN BUSLOAD 38 Function GETAPPLICATIONSWITCH 38 9 Connection set up PC XC121 39 Communication setting
29. PRG DO02 VAR 000 a UINT O004END VAR 4 D001 a za 1 Fastprog PRG SIY DDD1 PROGRAM Fastprog DOD1 o b 1 ami Figure 29 Writing a program Change over to the PLC Configuration and allocate the rising edge type to the input 11 2 f PLC Configuration x 2d Config i Base parameters Other Paramete r Local Interrupts 1 0 rising edge Nt none y none 11 2 11 3 11 4 none E u 11 7 none trailing edge both Figure 30 Interrupt edge selection Change over to the Task configuration and open the System events folder 08 10 MN05003002Z EN Interrupt processing i Timer interrupt Task Co Dix With the timer interrupt a periodically active interrupt is triggered 5 z cf SIEBEN The periodic duration can be set from 500 2500000 i microseconds The timer starts in dependance on a Boolean O Start Called when progr et galed wnomprogr variable It interrupts the user program and executes a user defined application routine O Warmstart Called when progr O Stop Called when progr O IO Interrupt 1 Interrupt Channel 1 O IO Interrupt 2 Interrupt Channel 2 v IO Interrupt 3 Interrupt Channel 3 O IO Interrupt 4 Interrupt Channel 4 IO Interrupt 5 Interrupt Channel 5 You have to include the XC121_UTIL lib library in your user program to program the TimerlnterruptEnable function Create PO
30. The program can be restarted Cold reset The program is stopped All variables are initialised The program can be restarted Full reset e The program in the PLC and the boot project are deleted With inserted MMC All project specific files and the boot project are erased All user specific files and the startup ini file remain unchanged The PLC is set into the NOT READY state Reset for restoring the factory defaults A prerequisite for the reset is that the operating mode switch is in position 8 If you then press the SET button all interfaces are initialised with their default parameters A loaded user program all variables and the boot project are erased in the system memory Flash and on the MMC Behaviour of the variables after a Reset Variable type Reset Non retentive Retain Warm reset Activation of the initial values Values remain in memory Cold reset Activation of the initial values Full reset Activation of the initial values 1 After a full reset the program must be reloaded In online operation you can then restart the PLC 25 26 Operation 08 10 MN05003002Z EN Test and commissioning The PLC supports the following test and commissioning features Breakpoint single step mode e Single cycle mode e Forcing Online modification Progression display Power Flow Breakpoint single step mode You can set breakpoints within the user program If an
31. U Interface for Event I0 Interrupt 3 TOINTERRUPTS TIMERINTERRUPTENABLE BOOL xEnable TimerlnterruptEnable BOOL Figure 31 Enabling an interrupt DWORD dwTimerTickUS Enable IO Interrupt 3 by clicking in the checkbox on the left Figure 33 The TimerlnterruptEnable function beside the name IO Interrupt 3 The box is checked to indicate that it has been activated Mark the area of column Called POU and the area and the line IO Interrupt 3 The value is accepted with the start of the timer and can not be Set the cursor on the marked area and press the function key F2 modified for the run time If the time falls below 500 or exceeds 2500000 the function returns FALSE and the timer is not started At input dwTimerTickUS enter the delay time The Help Manager window opens in which all predefined programs ate listed Creating application routine time Int Open the Task Configuration sub directory with a double dick in the Resources directory m ask Conil O gt Click on the System events folder The System events tab B rask TB semen is active name Description called O Start Called when program O Coldstart Called when program O Warmstart Called when program O Stop Called when program O IO Interrupt 1 Interrupt Channel 1 O IO Interrupt 2 Interrupt Channel 2 v 10 Interrupt 3 Interrupt Channel 3 System events Name Descrip
32. V 12 Assignment of the interface COM2 4 Change to Eaton terminology 4 Additional documentation In some places this manual contains references to more detailed descriptions in other manuals With the installation of the product CD these documents will be stored on the computer as PDF file To find the documents quickly select the Windows start menu Programme Moeller Software gt easy Soft CoDeSys gt Documentation It is also possible to download the PDF files from the FTP server The up to date data is always available here ftp ftp moeller net DOCUMENTATION AWB_MANUALS Concrete information regarding communication with CAN stations and their configuration can be found in the following listed documentation e AN27K19GB Communication between two controls using network variables via CANopen AN2700K19G pdf AN27K20GB Coupling multiple autonomous controls CAN Device via CANopen AN2700K20G pdf AN27K27GB Engineering of CAN stations AN2700K27D pdf To be found in Windows start menu under Moeller Software gt easy Soft CoDeSys gt Application examples MN050100012 previously AWB2786 1554GB Library description CANUser lib CANUser_Master lib To be found in Windows start menu under Moeller Software gt easy Soft CoDeSys gt Documentation Reading conventions Select File gt New means activate the instruction New in the File menu V Caution Indicates a risk of material damage
33. VALIDE SLOTNUMBER Slot 0 or greater than 15 IO ACCESS INVALID OFFSET BitWord offset is too large IO ACCESS DENIED Invalid access e g write access to input module read access to output module or access to non available address range offset too large No module available at the parameterized slot IO ACCESS NO MODULE IO ACCESS INVALID No or incorrect pointer to the output Buffer variables Event is not 0 or 1 with WriteBitDirect IO ACCESS INVALIDE Value Creating and transferring boot project Creating and transferring boot project The CPU processes the user program stored in the main memory As the main memory is not backed up the program is erased during a voltage loss A boot project must be created in order to save the program retentively The following steps are required From the Online menu select Login Select the Create boot project command The following prompt appears AA 2 Do you want to stop the program on the target prior to flashing E No Cancel Figure 37 Create bootable project Click Yes The following dialog appears briefly x flashing program Figure 38 Creating a boot project The boot project has been created when this dialog disappears again You can now restart the PLC See Section Switch on behaviour with boot project on page 23 Saving boot project on MMC The boot project in the sys
34. Y Y FY 15 System parameter setting 41 XIO EXT121 1 on the XC121 15 System s lf TEST x cinch wed cece tec ee haces 23 Mounting position PLC in the control panel 17 SYSTEM UME L ve areis ses usen entes secs been an 25 N NOdeID 1 na RS 45 Target Drops ooo Ro totes odo c LES 45 CANT CAN2 ern 10 TCP IP connection for routing 44 ROULING eisin w O a 10 Test communication from browser to PLC and back 36 Settings 1 oe A ton Aes 13 Test f netions were gas Fy alee dele mavens 26 Node number FF ud 45 Timer interrupt Y YY Y Y Y Yu 29 Total expansion maximum u 7 Transfer rate CANopen Y ee eee 14 MES cod AE 10 Transparent mode Sur ar sum tenete xh ns 12 47 Operating mode switch 22 22222 9 Operating system update 22 222222 22 23 Operating system download update 32 Uninterruptible power supply 24 P PIC DIOWSEM ses ral e ide 35 Variables Power off interruption of the power supply 24 Behaviour after reset a na 25 Program processing Y YY YY 25 Behaviour at start YY Y Ru 24 Program stop caricia tte A 25 Ventilation e RR Y Byd I Ry dr 17 Programming interface eae 12 Programming software ud 7 WI Inni eU EA e ete RU MUR 17 Wiring example connecting the power supply 18 R ReadBitDirect ce
35. bjects 14 CAN Master configure XC121 14 CAN master parameters d 45 CAN settings tab in the easySoft CoDeSys 13 CAN Device configure XC121 o ooooooo o o 13 canload browser command 36 CANopen Cable properties Y Y Y FY 14 Interfacea use ee 13 Network demands LL Y ud 14 routing settings ccc cece YY Yu 45 Channel parameter setting 2 222 nee 46 Code Soure ee 33 CoDeSys gateway SerVer V eee 44 Cold Teseth aa iie i E WAR A O RG 9 Commissioning Y YY YR ud 26 Communication parameters 39 Configuration XC121 asa CAN Master 14 XC121 asa CAN Device ooooooocccccocoo oo 13 XIO EXT121 1 coccion 21 Connecting actuators Y Y YR 19 Connecting sensors Y YY YR 19 Connecting the power supply Y 18 Connection PC XN PLC Y YY uu 39 Core cross section CANopen cable 14 Cycle time monitoring 2 2222 25 Data access to MMC YY Y Y Y uu 11 Delaytimeentry Y Y YF nenn 29 Delete memory card content 11 Diagnostics possibilities 46 DIP SWITCH as ara a Gut EG ad 10 DIP Swit mode ee stets 10 Direct 1Oraccass an aui ie ad 30 Direct peripheral access n nunn cece eee eee ee 31 Download operatin
36. can also be transferred onto the MMC in order to transfer it to another XC121 from there gt section Operating system download update on page 32 The file system ofthe memory card is not transaction safe Ensure that all program files are closed before you insert or remove the MMC or switch off the voltage V Caution Data access on the MMC Using browser commands and functions you can download and transfer general files as well as the boot project or the source code of the project onto the MMC Use the copyprojtomm browser command for example to copy the boot project on the MMC A short description of the browser commands can be found from page 35 The files on the MMC can be accessed with the FileOpen or FileRead functions from the user program These functions are described in the library XC121 File lib and in the manual easySoft CoDeSys Function Blocks MN05010002Z EN previously AWB2786 1456GB Erasing functions If a full reset command is executed in online mode in the PLC Configuration the operating system and the project on the MMC are deleted The parameters of the STARTUP INI file are retained You can use the following browser commands e format deletes the entire content on the MMC Femoveprojfrommmc deletes the project and the INI file on the MMC The data on the CPU is retained section Delete INI file on page 42 LED status indication RUN STOP and SF Table
37. city mm 0 14 0 5 AWG28 20 Supply voltage 24 V 0 V Input voltage V DC 24 Permissible range V DC 20 4 28 8 Power consumption W Up to 1 44 Input current mA 60 Residual hum and ripple 5 Overvoltage protection Yes Polarity protection Yes Switch on current surge Not limited limiting only by a supply side 24 V DC PSU Hold up time on supply drop out Dropout duration ms 10 Repeat rate S 1 External supply filter Type XT FIL 1 see the technical data on page 55 Internal supply filter Yes 52 08 10 MN05003002Z EN Appendix CPU Microprocessor Infineon XC161 Memory Program code kByte 256 Program data kByte 14 segments of 16 KB each Marker Input Output Retain data kByte 16 4 4 8 Cycle time for 1 k instructions Bit Byte ms 0 3 Interfaces COM1 RS232 interface without handshake line Data transfer rate for programming bit s 19 200 38 400 Default 57 600 Bit s Character format 8 bit data no parity 1 stop bit Connection by RJ45 socket Electrical isolation none in the transparent mode Data transfer rate bit s 300 600 1 200 2 400 4 800 9 600 19 200 38 400 57 600 115 200 Bit s Character formats 8E1 801 8N1 8N2 7E2 702 7N2 7E1 Number of transmission bytes in a block 190 bytes Number of received bytes in a block 190 bytes COM2 RS232 RS485 without handshake lines Data transfer rate transparent mode bit s 300 600 1 200 2 400
38. cted the PC to the PLC with node ID 2 and want to access the target PLC with node ID 3 Open the project of the target PLC Node ID 3 whose program you wish to edit or test First configure the parameters for the hardware connection PC PLC node ID 2 From the Online menu select Communication Parameters Click the New button under local channels The New Channel window appears Select the channel in the Device field XC200 Serial RS232 Level 2 Route or TCP IP Level 2 Route In the Name field you can assign a new name e g Rout 232 Confirm with OK and return to the original window Communication Parameters x r Channels Rif RE Name value Comment Cance Communication Parameters New Channel Device ES Cancel 35 Serial R5232 driver Serial Modem 35 Modem driver CANopen DSP302 35 CANopen DSP302 dris Tcp lp Level 2 Route 35 Tcp lp Level 2 Router Serial R5232 Level 2 Route 35 R5232 Level 2 Router Serial RS232 Figure 60 Channel parameter setting 08 10 MN05003002Z EN You have now determined the parameters for the hardware connection between the PC and the PLC node ID 2 Call up the communications parameters in the Online menu once again and select the control which you want to program test Enter the number 3 as the target ID in the example The target ID is identical to the Node ID Click in t
39. direct i sac ee terns 30 57 58 index 08 10 MN050030022 EN L Layout of s o po acc et as E ash auk 17 SET button isses 9 LED status indicator Fe ee ee 11 Shielding EREEESZZZEREEZEZZEEEEEZZZEREEZZEEE 17 Libraries Single cycle mode YY Y AG 26 CANUser lib CANUser Master lib 5 Single step mode 2 esses eee eeee ees 26 SUSO ea etat 11 SICE COQB acte are pc top gp deed ae rk 33 XC121 Ella ll di ia 11 Start behaviour Y Lu 23 42 XC121_SysLibCom lib EEE 47 Starting the CPU RR aad 9 XC121 Utildib L L Lu 10 27 29 38 Start up behaviour setting in easySoft CoDeSys 24 Libraries installing Y Y FF AG 37 STARTUP INI D M 41 Lighting Poe 18 Status indicator Local expansion module ooooooooccoo 7 in the easySoft CoDeSys 22 2000 26 Loop resistance CANopen cable 14 on the LED 2 se eee ee eee eee 11 Jc EE 9 25 Structure XC12 1 22 ae as etas a 7 M Memory Henan dais p 12 Suppressor circuitry for interference sources 17 Memory card 2222222 11 Switch off of the supply voltage 24 Memory usage limit values o o 12 Switch on behaviour o ooooooooooomm o 23 42 MM ute Cut he et ler Met s Mt ope MR AL MAA A 11 System clock back up VVV lt Y YF uu 11 Mounting System events een we we eee ee 25 27 XC121 ontop hat rail Y
40. e Node ID Device Procedure Connect the PC to the routing PLC Select the target PLC with which you want to communicate for the project First of all determine the communication parameters for the connection between the PC and the PLC which is connected to the PC Enter the target PLC s target ID target ID node ID as shown in the example and log on You can run the following functions e Program download Online modification e Program test Debugging e Create bootable project e Filing source code Note for project creation The Node ID Node number and the baud rate of the target PLC to the routing function can be defined in the gt figure 56 Additional parameters window in the PLC Configuration Enter the baud rate on the CANopen bus and the Node ID node number in the RS232 gt CAN routing settings field Node ID and baud rate are transferred with the project download gt To guarantee a fast data transfer the routing should be performed only with a CANopen baud rate of at least 125 Kbit s Addressing lolxi Settings Other Parameters Settings A5232 gt CAN Routingsettings Baudrate Startverhalten CAN Baudrate 125KBaud E y WARMSTART Node AD 1 127 127 Maximum Cycle Time Max Cycle Time 20 1000ms 20 Channel CAN1 r Update Operating System penses R5232 Fullduplex y Start r DIP Switch
41. erminal Conductor cross section Screw terminals Stranded with bootlace ferrule mm2 0 2 2 5 AWG22 12 solid core mm2 0 2 2 5 AWG22 12 Power supply Input voltage V DC 24 Permissible range V DC 20 4 28 8 Residual hum and ripple 5 Overvoltage protection Yes Electrical isolation Input voltage to PE Yes Input voltage to output voltage No Output voltage to PE Yes Output voltage VDC 24 Output current A 2 2 55 56 08 10 MN05003002Z EN 08 10 MN05003002Z EN Index Addressing PLC on CANopen fieldbus 45 Analog inputs outputs Y YY 20 Application routine y 25 29 30 APPLICATION switch Y YY FY Yd 10 Setting ac nr YH 16 Backplari x ce A AR A SR na aner 7 Backup time battery AU 11 Basic expansion maximum ssssssssse 7 Battery bullet brad 24 Baud rate CAN bus 222 222 13 Baud rate specifying changing 39 Block size for data transfer o ooooooooooo 44 Boot project Bst aaret 23 Breakpoint annen tree tet cete 26 Browser commands AU 35 Bus length CANopen RA 14 Bus termination resistor 13 14 Bus utilization CANopen fieldbus 36 38 Cabinet layout FF Ya 17 Cable routing eae en tr a i 17 Cable CANopen properties Y 14 CAN device parameters 2 22 none 45 CAN Direct Direct access to CAN o
42. errupted after the transfer process has been completed Renewed connection is possible If a program with a modified routing node ID is loaded into the target PLC the target PLC accepts the modified routing node ID however the communication connection will be interrupted Reconnection with a corrected routing Node ID is possible If a PLC receives a program without valid routing parameters Baud rate Node ID this PLC cannot be connected via a routing connection The routing is independent of the configuration master slave a target PLC that has not been configured as a master or as a slave can be accessed It must only receive the basic parameters such as Node ID and baud rate as well as a simple program 08 10 MN05003002Z EN Addressing PLCs on the CANopen bus can be configured as a master or as a device The PLCs are assigned with a node ID node number address in order to uniquely identify them To use the routing function to access a target PLC you must assign a further node ID to the PLC Routing PLC Target PLC XC100 121 200 XN PLC XC100 121 200 XN PLC PC master device device ne gt Routing Node ID n Node ID 1 Node ID n lb El RS232 CANopen Figure 55 XC100 121 200 XN PLC on the CANopen bus routing principle 1 The following applies for the Node ID of the device function and the Node ID of the routing function The Routing Node ID must not be equal to th
43. g system 00oooooooo 32 Electromagnetic contamination 17 Engineeringr Sense ante an 17 Event task ii en irn asked 25 FOreing arte ee y en 26 Forcing variables and I Os Y 26 Format browser command with delete function 11 Function CAN BUSLOAD sese eee een 38 Coldireset 4 2 2 A aA dus 9 Enablelntertptco soie soe Qo e OO sd 27 File ODE a o se cie tiet to aderenti ene 11 A TURT TA ey 11 GETAPPLICATIONSWITCH r n FFY 38 GetApplicationSwitch Y Yu 10 Read DIEGCE 5 i nn PR ge YDD y veg 30 removeprojfrommme ud 11 TimerlnterruptEnable Y YY Yu 29 Function blocks cece eee eee Y AU 37 FUNCION Lagar aaa kreert re FYR rang afa 37 for transparent mode yd 47 on the real time clock 11 Operating mode switch 0oooooooo o 9 Hardware timer 25 VO module kid ced 7 Inductor s g se sake wd UR eO ebd eds 17 INI file predati ease tnt tet rhet 41 Initial value activation Y Yu 25 Interface CANODOH a rad are e dava mie 13 Communication parameter definition 39 Connection with routing 43 OVetVIe Wh en BA Yes 9 Serial COM1 COM2 2222 YY Y Y Yd 12 Interference factors ud 17 Inter a 3 oor cet ait a A dn dy dt 27 29 Interrupt Source cott ote ae ete ettet 29 Interruption of power supply ooooooooo o 24 O access
44. he field on the Value column on the right beside the target ID term in order to enter the target ID Enter the figure 3 and confirm with OK Log on and carry out the action Communication Parameters xl r Channels 3 Serial RS232 Level 2 Ro Remove Gateway Update Motorola byteorder No Targetld Figure 61 Setting the target ID of the target PLC PLC combinations for routing The following PLC support routing From P XC100 XC121 XC200 XN PLC CANopen To O XC100 x x x x XC121 x x x x XC200 x x x x XN PLC x x x x CANopen 08 10 MN05003002Z EN 12 RS232 interface in transparent mode In transparent mode the data transfer occurs between the XC121 and data terminals e g terminals printers PCs measurement devices without interpretation of the data Switch the RS232 serial interface of the XC121 COM1 into transparent mode with the user program For running the transparent mode there are functions available for opening and dosing the interface for sending and receiving data and for setting the interface parameters can not use the SysComReadControl and gt Because the interface s control lines are not active you SysComWriteControl functions SysComClose FUN SysComGetv ersion1 000 Fl SysCom pen FUN SysComRead FUN SysComReadControl FUN SysComSetSettings FUN SysCom w rite FUN SysComWriteControl FUN
45. hibited and enabled from the user program Functions Disablelnterrupt and Enablelnterrupt in library XC121 UTIL lib are available for this purpose Direct 1 0 access Via function Direct IO access the CPU directly accesses the local inputs and outputs of the XIO EXT121 1 module Access is not implemented via the input output map gt Direct access to the data of the XI OC modules is not supported Use functions such as e g ReadBitDirect of the library XC121 Util lib for direct access to the current IO states and data The function ReadBitDirect is described as an example for all other functions ReadBitDirect The bit of an input can be read directly with this function The state of an input bit is stored in the variables which point to the parameterized pointer ptr xValue The pointer variable will not be changed when a fault occurs during processing FUNCTION ReadBitDirect UINT VAR INPUT uiSlot UINT Slot 0 7 uiBit UINT Bitposition 0 63 ptr xvalue POINTER TO BOOL Pointer to read data value END VAR VAR END VAR Returnvalue O or Errorcode gt 0 READBITDIRECT uiSlot UINT uiBit UINT ptr xvalue POINTER TO BOOL ReadBitDirect UINTI Figure 36 Function READBITDIRECT 08 10 MN05003002Z EN Bit access Function ReadBitDirect uiSlot uiBit ptr_xValue IX0 0 1X0 7 uiSlot 0 uiBit 0 7 IX1 0 1X1 7
46. ilter is not a component of the CPU and must therefore be ordered separately Type XT FIL 1 Article no 285316 Supplier Eaton Industries GmbH gt Dimensions on page 50 gt Technical data on page 55 1 Internal jumper 2 Additional PE connection via contact spring on rear 08 10 MN05003002Z EN gt When the XC CPU121 is switched on connected with the XIO EXT121 Each device features a separate supply voltage connection The voltage on both devices must be switched on to start the CPU If only one of the devices is switched on the CPU will not run a program and the LEDs will remain off Connecting the XC CPU121 supply voltage 24 V DC e Figure 18 Voltage connection of the XC CPU121 24 V DC Q 0V Refer to figure 21 for the voltage supply of the XIO ETX121 1 plug connector X1 Connecting sensors and actuators The digital sensors and actuators can be connected directly to plug connectors X2 and X3 24V DC 0v gt 4 DXO DX1 DX5 DX LOV amp Bla Connector type 5 BLZF 3 5 180 24V DC l Y Connector type BLI O 3 5 10F Figure 19 Connecting inputs outputs to X2 X3 If you use the connector type with LED display BLI 03 5 10F on plug connector X2 you have to connect the terminal DI9 to 0 V The sensors and or actuators can be connected at
47. instruction has a breakpoint attached then the program will halt before execution of the program line The following program instructions can be executed in single step mode step by step Cycle time monitoring is disabled Warning Any outputs already set when the program reaches the breakpoint remain set gt Use breakpoint single step mode and single cycle mode only in the application s actual main program Do not use them in den event routines for example for start stop and interrupt events as this can cause problems in the control sequence The software CoDeSys does not prevent the use of breakpoints in the event routines Single cycle mode In single cycle operation one program cycle is performed in real time The outputs are enabled during the cycle The cycle time monitoring is active Warning Any outputs already set when the program reaches the breakpoint remain set Forcing variables and I Os All variables of a user program can be forced into fixed values Forced local outputs of the XI ON modules are only switched through to the 1 0 in the RUN state gt Thel O connected through the CANopen field bus can not be forced CoDeSys status indication e The signal states of the physical Boolean inputs are displayed in both the CPU s RUN state and in STOP The signal states of the physical Boolean inputs are only displayed in RUN state in the STOP state they are designated with FALSE All o
48. interrupt has ended Caution All the outputs controlled H signals up to this point remain active and cant be switched off The interrupts are enabled in the RUN state of the CPU and inhibited in the STOP state Interrupt sources which are not enabled in the configuration do not initiate an interrupt If a POU is not assigned to an enabled interrupt source the interrupt is recognised and executed but without running a POU If interrupts occur too frequently during operation of the program the programmed task time may be exceeded and the Watchdog will initiate a RESET You can inhibit and release interrupts from the program The Disablelnterrupt and Enablelnterrupt functions are provided for this purpose A call parameter in the CoDeSys determines if an individual interrupt or all interrupts are enabled or inhibited Enabling of an inhibited interrupt must be performed with the same parameter used to inhibit it Both the Disableinterrupt and Enablelnterrupt functions are components of the XC121 Util lib library This library must if not already done so be integrated into the library manager of the CoDeSys Disablelnterrupt With this function you disable deactivate a parameterized physical interrupt by accessing it from the user program Enablelnterrupt With this function the physical interrupt which was deactivated beforehand can now be re enabled as an active interrupt Parametric programming
49. is not initialized Click the OS File button and select the required operating system file hex gt The files last opened can be selected from the list field dropdown menu 08 10 MN05003002Z EN Select file for transfer 2 xi Suchen in 3 version 01 00 Build 10013 Buildfiles ss SysCput21 hex le Update XC121 Vioc xx 1000chex Hex Fies hex y Abbrechen Dateityp Figure 40 Operating system file selection The target type and file version are displayed Press the Transfer OS to MMC button The transfer begins Programming of the flash EPROMs takes about 20 to 30 seconds Donotswitch off the supply voltage during the transfer or while the warning symbol appears with Programming Flash m PLC Information 3 z PLC Type OS File p Exit XC CPU121 2C256K Current OS Version Mere Ue Renae HERE wal ALE V00 02 Build 0027 DOES r File Information Targettype 0 XC CPU121 2C256K OS Version in file V01 00 Build 1003 Programming Flash r Status Download Operating System v Programming Flash AN Figure 41 Warning during download Wait for the following dialog 08 10 MN05003002Z EN ial Download operating system x m PLC Information PLC Type DS File Es XC CPU121 2C256K Current OS Version Transfer O5 cii Transfer OS to PLC V00 02 Build 0027 Dow
50. issue the START command for example after loading a program The CPU must be in STOP state and the operating mode switch in the RUN position e Setthe operating mode switch to its RUN position The position of the operating mode switch has priority over the online command Table 9 Behaviour of the variables at PLC start Start up condition Variable type Non retentive Retentive COLDSTART Activation of the initial values WARMSTART Activation of the Values initial values remain in memory Program loaded and started in Activation of the initial values online operation Start Stop Start Values remain in memory Behaviour after power off or power interruption If you switch off or interrupt the CPU voltage the program cycle or task is interrupted immediately The retentive data integrity is no longer given All outputs are set to 0 or switched off The behaviour of retentive variables in shown in Table 9 The remaining program cycle will not be completed when power is reconnected If inconsistent data is not acceptable in your application you can for example use an uninterruptible power supply UPS with back up The PLC restarts as defined by the settings in the PLC Configuration window gt figure 26 08 10 MN05003002Z EN Program stop RUN gt STOP When you set the operating mode switch to STOP the CPU changes to STOP state as soon as the program cycle is completed The output
51. itch Click on the Other Parameters tab in the PLC Configurator tab gt figure 5 on page 10 gt Set the Node Id Routing mode in the DIP Switch Mode field Set the baud rate in the RS232 gt CAN Routing field The following baud rates are possible 50 100 125 250 and 500 kBaud default 125 kBaud Set the Routing Node Id and the CAN interface on the APPLICATION switch Switch 1 7 Routing Node ID 1 127 with invalid address 0 the default node Id 127 is used Switch 8 OFF CAN1 ON CAN2 gt The settings on the APPLICATION switch have priority over the configurator setting For further information chapter APPLICATION switch S2 on page 10 Routing through XC200 To perform a program transfer or routing using TCP IP through a connection between XC200 and PC you must first set the block size for the transferred data The packet size 4 KByte or 128 KByte depends on the transfer type program transfer or routing and the operating system table 13 Table 13 Block size for data transfer Program file transfer Routing OS OS OS OS V1 03 03 V1 03 03 lt V1 03 03 V1 03 03 Block size 128 Kbyte 4 128 kByte Routing 4 Kbyte Default not possible 128 Kbyte Caution The program download with a block size of 4 Kbyte to a PLC with an operating system version earlier than V1 03 03 will cause faulty behaviour If aprogram download is performed the progres
52. ith CoDeSys COM BAUDRATE 38400 The parameters from the INI file have priority before the parameters of the PLC configuration After a program download or after loading of the boot project the parameters from the PLC configuration are not used e Parameters of the PLC configuration for CAN Level 2 Route CAN ROUTINGID 127 CAN ROUTING CHANNEL CAN1 CAN1 BAUDRATE 125 CAN1 NODEID CAN2_BAUDRATE CAN2 NODEID Changing settings If you insert an MMC with an INI file into the XC121 and switch on the XC121 the XC121 accepts the parameters of the INI file on the MMC No parameters from the loaded project are accepted The parameters are retained until the browser command removestartupini has been entered and the XC121 is then switched on or off The XC121 now operates with the parameters of the project Delete INI file There are two browser commands available to access the MMC e removestartupini Deletes the INI file on the MMC and the data on the CPU The data from the project is accepted next time the device is switched on removeprojfrommmc deletes the project and the INI file on the MMC The data on the CPU is retained Start behaviour of the XC121 with inserted MMC containing INI file During switch on of the XC121 the data of the INI file are transferred to the XC121 They remain active after a new program is loaded until you run the browser command removestartupini gt Ifa full reset command i
53. le routing both inside and outside the control panel to keep interference as low as possible Avoid parallel routing of sections of cable in different power categories As a basis rule keep AC cable separated from DC cables Keep to the following minimum spacing at least 10 cm between power cables and signal cables at least 30 cm between power cables and data or analog cables When routing cables make sure that the outgoing and return leads of a circuit pair are routed together The currents flowing in opposite directions thus cancel each other out as a summation and the electromagnetic fields cancel each other out Suppressor circuitry for interference sources Connect all suppressor circuits as close to the source of interference contactors relays solenoids as possible gt Switched inductors should always have suppressor circuitry fitted Shielding Use shielded cables for the connections to the data interfaces The general rule is the lower the coupling impedance the better the shielding effect 17 18 Engineering Lighting protection External lightning protection All cables that go outside buildings must be shielded Metal conduit is best for this purpose Fit signal cables with overvoltage protection such as varistors or other surge voltage protectors Where possible protective elements should be fitted at the point of entry of the cable into the building but
54. magnetic contamination itis a good idea to divide the system into sections according to their power and interference levels In small switchgear cabinets it is often enough to provided a sheet steel dividing wall to reduce interference factors Ventilation A clear space of at least 50 mm must be kept between passive components to ensure adequate ventilation If the neighbouring components are active elements such as power supplies or transformers then the minimum spacing should be 75 mm The values given in the technical specifications must be observed Layout of units Mount the PLC horizontally in a control panel Cable duct Dd D XC CPU121 Adive Tom XIO EXT121 lt elements gt Figure 16 Cabinet layout D Spacing gt 50 mm 2 Spacing gt 75 mm Preventing interference Cable routing and wiring Cables are divided into the following categories e Power cables e g cables that carry high currents or cables to converters contactors or solenoids e Control and signal cables e g for digital inputs Measurement and signal cables e g for fieldbus connections gt Always route power cables and control cables as far apart as possible This avoid capacitive and inductive coupling If separate routing is not possible then the first priority must be to shield the cable responsible for the interference Take care to implement proper cab
55. me Max Cycle Time 20 1000ms 20 57600 v CAN Baudrate 125KBaud y Node ID 1 127 127 Channel CAN1 y Communication settings of the PC You can use either the COM1 or the COM2 port of the PC Define the communication parameters of the interface in the software CoDeSys In the Online menu select Communication Parameters Specify the port COM1 or COM2 section Changing settings Use the remaining settings as shown in figure 49 Confirm the settings with OK Log on to the PLC Communication Parameters Sera R5232 Name r Channels Cancel COM1 Baudrate 38400 Parity No Hemove Stop bits 1 Gateway Motorola byteorder No E EE EIE P Update Figure 49 Defining the PC s communication settings Changing settings To change settings such as the baud rate or the port do the following Double dick the displayed value for example 38400 The field becomes grey Enter the desired value You can double click the field again to select the required baud rate e g 57600 bit s Update Operating System realitet R5232 Fullduplex y Start m DIP Switch Mode Application Figure 50 Specifying the CPU s communication settings Log on to the PLC The following prompt appears Li x The program has changed Do you want to load the changes ONLINE CHANGE
56. ngld Display of the routing Node ID and the routing browser command can be found if you place a before TAE the selected browser command followed by a space and press the Enter Return key metrics Output PLC information The description of the available commands can be found ee EFE PN A in the programming software manual MN05010003Z remove Erase boot project in the FLASH EN in the section Resources gt PLC Browsen removeprojfrommmc Delete the boot project from the MMC The XC CPU121 supports the browser commands from Table 11 removestartupini Delete the initialisation file from the MMC getswitchpos Output switch position getrtc Read real time clock setrtc Set real time clock Further information concerning the commands marked with can be found in the following pages 36 Browser commands reflect Reflects the command line for testing communications between browser and PLC This command is not transmitted to the PLC Example PR Em vll reflect 5 reflect imi AZ Figure 43 Browser command reflect canload Displays the utilization of the CANopen field bus Example 15 x canload h L canload CAN Busload 0 Percent Baudrate 125 k Integration Time 510 ms Al HZ Figure 44 Browser command canload This browser command returns for example the following information CAN busload 0 Percent e Baud rate 125 Kbit s e Integration Time 510 ms Caution With a bus utiliza
57. nload r File Information Targettype 0 XC CPU121 2C256K OS Version in file V01 00 Build 1003 OS successful transfered r Status Download Operating System v Programming Flash v Figure 42 OS successfully transferred to the PLC Click in this window on the Exit button Transferring the OS from the PC into the MMC If an OS is loaded into the MMC the OS and the boot project on the MMC and the user program in the PLC are deleted The procedure is similar to the description in Section Transferring the operating system from the PC into the PLC Click in this case on the Transfer OS to MMC button figure 39 on page 32 Transferring the OS from the MMC into the PLC Insert the MMC into the PLC when it is switched off gt Switch on the PLC The OS of the PLC is updated during the switch on process and a boot project is loaded into the PLC The transfer can take more than 30 seconds as the CPU must be booted several times gt Do not interrupt the process e g by switching off the supply voltage User program source code User program source code It is possible to save the source code of the user program on the MMC 33 34 08 10 MN05003002Z EN 08 10 MN05003002Z EN 7 Browser commands The PLC browser is a text based control monitor Here the Table 11 Browser commands commands to query ce
58. ntegrationTime CAN_BUSLOAD BOOL POINTER TO BYTE p_bBusload Figure 47 Function CAN_BUSLOAD Function GETAPPLICATIONSWITCH With this function you can query the position of the application switch After an H signal at input xEnable the value to which the switch is set is displayed GETAPPLICATIONSWITCH BOOL xEnable GetApplicationSwitch USINT Figure 48 Function GETAPPLICATIONSWITCH 08 10 MN05003002Z EN 9 Connection set up PC XC121 To establish a connection between PC and XC121 the two devices communication parameters must be the same To match them first adjust the PC s communication settings to the CPU s settings Use the CPU s default parameters transferring them as shown in figure 49 have already been changed In that case try a baud rate of gt If you get an error message the CPU s default settings 57600 bit s You can then change the CPU s parameters figure 50 always making sure that you have the same settings on the PC Communication settings baud rate of the CPU In the Resources tab select PLC Configuration gt In the PLC Configuration dialog click the Other Parameters tab In the Baudrate list field select the baud rate for example 57 600 bit s as shown in figure 50 iBixi mico Seltings Other Parameters r Settings r R 232 gt CAN Routingsettings Baudrate Startverhalten WARMSTART y Maximum Cycle Ti
59. of the programming interface Signal 8 RD 7 7 GND 6 6 5 4 5 TxD 3 4 GND 2 3 1 2 1 COM2 transparent mode More detailed information about transparent mode can be found from page 47 The COM2 interface can be switched between RS232 full duplex and RS 485 half duplex The setting is performed in the PLC Configuration It is not galvanically isolated and can only be accessed via the function blocks of the user program You cannot use this interface as a programming interface It is initialised with the following default parameters Data length 8 bit Parity none Stop bits 1 Baud rate 38400 Baud Further communication parameters can be found at Section Technical data on page 50 Control lines of the RS232 are not supported COM2 RS232 RS485 Signal Signal i 6 RxD 5 5 TxD 4 4 Vcc 3 GND GND 1 2 Tx Rx 1 Tx Rx J 1 external bus termination resistor 120 Q first and last device at bus A 6 pole plug in springloaded terminal block is used as the connector type 08 10 MN05003002Z EN CANopen interface CAN1 CAN2 The PLC features two CANopen interfaces They are designated as CAN1 and CAN2 The CAN2 interface has assignment designs It is available on X5 as well as X6 p R1 X4 S3 GND 6 5 CAN L CANopen 4 CAN H 3 GND 2 CAN L CANopen 1 CAN H R2 X5 54 GND CAN L CANopen 6 5 4 CAN
60. ous electrical voltage Before commencing the installation Disconnect the power supply of the device Ensure that devices cannot be accidentally restarted Verify isolation from the supply Earth and short circuit the device Cover or enclose any adjacent live components Follow the engineering instructions IL04020001E for the device concerned Only suitably qualified personnel in accordance with EN 50110 1 2 VDE 0105 Part 100 may work on this device system Before installation and before touching the device ensure that you are free of electrostatic charge The functional earth FE PES must be connected to the protective earth PE or the potential equalisation The system installer is responsible for implementing this connection Connecting cables and signal lines should be installed so that inductive or capacitive interference does not impair the automation functions Install automation devices and related operating elements in such a way that they are well protected against unintentional operation Suitable safety hardware and software measures should be implemented for the I O interface so that an open circuit on the signal side does not result in undefined states in the automation devices Ensure a reliable electrical isolation of the extra low voltage of the 24 V supply Only use power supply units complying with IEC 60364 4 41 VDE 0100 Part 410 or HD384 4 41 S2 Deviations of the mains voltage from the
61. rated value must not exceed the tolerance limits given in the specifications otherwise this may cause malfunction and dangerous operation Emergency stop devices complying with IEC EN 60204 1 must be effective in all operating modes of the automation devices Unlatching the emergency stop devices must not cause a restart Devices that are designed for mounting in housings or control cabinets must only be operated and controlled after they have been installed and with the housing closed Desktop or portable units must only be operated and controlled in enclosed housings Measures should be taken to ensure the proper restart of programs interrupted after a voltage dip or failure This should not cause dangerous operating states even for a short time If necessary emergency stop devices should be implemented Wherever faults in the automation system may cause injury or material damage external measures must be implemented to ensure a safe operating state in the event of a fault or malfunction for example by means of separate limit switches mechanical interlocks etc Depending on their degree of protection adjustable frequency drives may contain live bright metal parts moving or rotating components or hot surfaces during and immediately after operation Removal of the required covers improper installation or incorrect operation of motor or adjustable frequency drive may cause the failure of the device and may lead to serious inju
62. rtain information from the control are gt Get a list of implemented commends entered in the input line and sent as a string to the control The response string is indicated by a result window of the browser reflect Mirror current command line for test purposes This functionality can be used for diagnostics and debugging mem memory dump Syntax mem lt start addr gt lt end addr gt gt The browser commands can only be used online memc As mem addresses start address of the code range To run these commands memd As mem addresses start address of the data Under Resources in the object organiser double click PLC range Browser pinf Output project information A new window PLC Browser appears in the workspace ppt Output module pointer table gt Click EN dpt Output data pointer table pid Output project ID The selection field lists the available browser commands cycle Output cycle time Double click the required command to select it canload Display traffic loading of the local CAN busses CAN1 CAN2 2 command now appears in the PLC Browser copyprojtommc Copy the current boot project on the MMC window createstartupini Generation of the initialisation file on the MMC Press the enter button in order to view the response of the PLC rm Format the MMC memory card to the browser command in the event window GetNodeld Display of the CANopen Node IDs of both CAN interfaces gt More detailed information DDU He serten GetRouti
63. ry or damage The applicable national accident prevention and safety regulations apply to all work carried on live adjustable frequency drives The electrical installation must be carried out in accordance with the relevant regulations e g with regard to cable cross sections fuses PE Transport installation commissioning and maintenance work must be carried out only by qualified personnel IEC 60364 HD 384 and national occupational safety regulations Installations containing adjustable frequency drives must be provided with additional monitoring and protective devices in accordance with the applicable safety regulations Modifications to the adjustable frequency drives using the operating software are permitted All covers and doors must be kept closed during operation To reduce the hazards for people or equipment the user must include in the machine design measures that restrict the consequences of a malfunction or failure of the drive increased motor speed or sudden standstill of motor These measures include Other independent devices for monitoring safety related variables speed travel end positions etc Electrical or non electrical system wide measures electrical or mechanical interlocks Never touch live parts or cable connections of the adjustable frequency drive after it has been disconnected from the power supply Due to the charge in the capacitors these parts may still be live after di
64. s are set to 0 You can stop the program in one of two ways e In online operation issue the STOP command e Set the operating mode switch to its STOP position gt The position of the operating mode switch has priority over the online setting Program processing and system time The user program is processed cyclically The states of the inputs are read before the start of each program cycle and the output states are written to the outputs at the end of the cycle As a result of the software architecture of the run time system timing divergence s may occur between individual processing cycles You can also program application routines that are started by the occurrence of system events gt section System events on page 27 Cycle time monitoring A hardware timer monitors the cycles of the user program and the individual event tasks If the cycle time exceeds a user defined value the PLC goes into STOP state and the outputs are switched off You can specify the timeout value on the Other Parameters tab in the PLC Configuration window between 20 ms default value and 1000 ms Program processing and system time Reset There are four different Reset commands e Reset warm e Cold reset e Full reset e Reset for restoring the factory defaults Reset warm The program is stopped e The non retentive variables are initialised the Retain variables are retained
65. s bar on the programming device monitor will only change erratically about every 10 seconds The block size can be changed only directly in the Windows Registry gt You can change this setting only if you have administrator rights on your PC 08 10 MN05003002Z EN Changing the block size Close all CoDeSys applications Close the CoDeSys gateway server About Help Change password Inspection b Pex e By xsort UT ew mae SL S Wh Figure 54 Closing the CoDeSys gateway server Change the block size to the required value The CoDeSys installation folder contains the following reg files for entering the block size in the Windows Registry BlockSizeDefault reg Enters a block size of 20000hex 128 KByte default value in the Registry Enters a block size of 1 000hex 4 Kbyte in the Registry BlockSizeRout reg Alternatively you can use the BlockSizeEditor application to change the block size The download block size is defined in the following Registry key HKEY_LOCAL_MACHINE SOFTWARE 3S Smart Software Solutions GmbH Gateway Server Drivers Standard Settings Tcp Ip Level 2 Route Blocksize dword 00020000 The default block size is 20 000hex 128 KByte the block size for routing is 1000hex 4 KByte Notes e f large files are written to the target PLC or read from the PLC it is possible that the online connection will be int
66. s executed in online mode in the PLC Configuration the OS and the project on the MMC are deleted The INI file is retained section Memory card MCC on page 11 08 10 MN05003002Z EN 11 Programming via CANopen network Routing Routing means to establish an online connection from a programming device PC to any routing capable PLC in a CAN network without having to directly connect the programming device to the target PLC The target can instead be connected to any other PLC in the network All actions that are available through a direct PC PLC connection can also be implemented through the routing connection e Program download Online modifications Program test Debugging e Generation of boot projects e Writing files in the PLC e Reading files from the PLC Routing offers an advantage which makes it is possible to access all routing capable PLCs on the CAN bus from any PLC which is connected with the programming device You select the control with which you want to communicate by the project selection This provides an easy way of controlling remote PLCs However the data transfer from routing connections is significantly slower than with direct serial or TCP IP connections This results for example in slower display refresh rates of variables and longer download times Prerequisites The following prerequisites must be fulfilled to use routing Both PLCs must be connected via the CAN bus The PLC
67. s must both have the same active CAN baud rate The valid routing Node ID must be set on both PLCs The routing PLC and the target PLC must both support routing Routing properties of the XC121 The XC121 supports the routing via the CAN bus Routing can be implemented without prior download of a user program default CAN1 125 kBaud Node Id 127 The target PLC must not be configured as a CAN Master or CAN Device for this purpose You can for example load a program from the PC via a PLC of the XC device series into the XC121 Assign a Routing Node Id to the XC121 target PLC in this case CANT CAN2 RS232 CANI OM CANT CAN2 Figure 53 Program download per Routing You can optionally connect the target PLC via the interfaces CAN1 or CAN2 gt Ifyou use the XC121 as the routing PLC you may only use the CAN1 channel for the connection leading further You can choose between two different methods to set the routing Node ld e Setting via the PLC Configurator e Setting via the APPLICATION switch Setting via the PLC Configurator gt Click on the Other Parameters tab in the Configurator folder gt figure 5 Node Id Routing may not be selected in the DIP Switch Mode field Enter the CAN baud rate in the RS232 gt CAN Routing settings field as well as the Node Id and the Channel CAN1 or CAN2 43 44 Programming via CANopen network Routing Setting via the APPLICATION sw
68. s of the PC 39 Communication settings baud rate of the CPU 39 08 10 MN05003002Z EN Contents 10 Set the system parameters via the STARTUP INI file 41 Parameter overview 41 Structure of the INI file 41 INI file generation 41 Entries of the INI file 42 Start behaviour of the XC121 with inserted MMC containing INI file 42 Changing settings 42 Delete INI file 42 11 Programming via CANopen network Routing 43 Prerequisites 43 Routing properties of the XC121 43 Setting via the PLC Configurator 43 Setting via the APPLICATION switch 44 Routing through XC200 44 Notes 44 Addressing 45 Procedure 45 PLC combinations for routing 46 12 RS232 interface in transparent mode 47 Appendix 49 Dimensions 49 Technical data 50 XC CPU121 XIO EXT121 1 50 XC CPU121 51 XIO EXT121 1 53 24 V DC line filter XT FIL 1 55 Index 57 08 10 MN05003002Z EN 08 10 MN05003002Z EN About this manual List of revisions Edition date Page Keywrd New Modifiation Omitted 0407 1 COM2 transparent mode Signal SA 14 Using the CAN libraries Vv 18 Connecting the power supply V 19 Connecting sensors and actuators 4 53 Delay time V 54 Pt100 JV 05 07 18 Connecting the power supply 4 04 08 51 54 Technical data XC CPU121 XIO EXT121 1 4 4 JV 13 17 Figures 4 08 10 20 Pt100 calibrating curve for XC121 Jv Simulator burster precision 54 Technical data XIO EXT121 1 precision
69. sconnection Fit appropriate warning signs 08 10 MN05003002Z EN Contents About this manual 5 List of revisions 5 Additional documentation 5 Reading conventions 5 1 Design of the XC121 7 2 XC CPU121 functions 9 Operating mode switch S1 9 SET button S5 9 APPLICATION switch S2 10 DIP switch mode 10 Memory card MCC 11 Data access on the MMC 11 Erasing functions 11 LED status indication RUN STOP and SF 11 Real time clock 11 Limit values for memory usage 12 Serial interface COM1 COM2 12 CANopen interface CAN1 CAN2 13 XC121 as a CAN Device CAN1 and or CAN2 13 Setting of the XC121 as a CAN Master CAN Device 14 Using the CAN libraries 14 CAN Direct 14 Bus termination resistors 14 Properties of the CANopen cable 14 3 Mounting 15 Mounting the XC121 on a top hat rail 15 Mounting the XIO EXT121 1 15 APPLICATION switch setting 16 Input output wiring 16 4 Engineering 17 Control panel layout 17 Ventilation 17 Layout of units 17 Preventing interference 17 Suppressor circuitry for interference sources 17 Shielding 17 Lighting protection 18 Connections 18 Connecting the power supply 18 Connecting sensors and actuators 19 5 Configuration of the XIO EXT121 1 21 08 10 MN05003002Z EN Contents 6 Operation 23 Switch on behaviour 23 Switch on behaviour with boot project 23 Configuring the start up behaviour with CoDeSys 24 Program START STO
70. start RUN STOP switch in RUN O RUN READY Figure 25 Switch on behaviour with boot project Load boot project from MMC into the main memory and start Save boot project from the MMC in system memory Flash Load boot project from system memory Flash into the main memory and start O NOT READY 23 24 Operation 08 10 MN05003002Z EN Configuring the start up behaviour with CoDeSys With the setting of the start up behaviour you determine the start behaviour of the PLC when the supply voltage is switched on You can change the settings under PLC Configuration Activate the Other Parameters tab there and select the desired start condition from the dropdown list HALT e WARMSTART e COLDSTART Refer to Table 9 for the behaviour of the variables to suit the set start conditions f PLC Configuration ni xi ag idc Settings Other Parameters Settings r RS232 gt CAN Routingsettir Baudrate Startverhalten 57600 I WARMSTART CAN Baudrate 125KBaud HALT WARMSTART I Maximum Cy COLDSTART Max Cycle Time 20 1000ms 20 Node ID 1 127 127 Channel cant 1r COM2 Mode R5232 Fullduplex B r DIP Switch Mode Update Operating System Start Application Figure 26 Definition of start behaviour Program START STOP Program start STOP gt RUN You can start the program in one of two ways e n online operation
71. tem memory Flash can also be stored on the MMC This occurs by using the copyprojtommc browser command Erase boot project The Remove browser command deletes the boot project stored in the system memory Flash as well as any project stored on the MMC The boot project on the MMC is only erased with the removeprojfrommmc browser command 31 32 Operation Operating system download update You can replace the XC121 operating system OS with a current version which is always available for download at the Eaton website http www eaton com moeller support It is also included on each CoDeSys CD Caution When you download the OS all files saved on the PLC are deleted the existing boot project as well as the user program You have two options to transfer the OS e Directly from the PC to the PLC e From the PC to the MMC Transferring the operating system from the PC into the PLC Open an CoDeSys project and activate under Resources PLC Configuration and select the Other Parameters tab figure 5 Click on the Start button The Download operating system dialog opens r PLC Information OSFile v Transfer OG to MME Transfer OS to PLE gt File Information 3 Download 0 COM Port not initialized m Status Download Operating System X Programming Flash x Figure 39 Download operating system The system reports that the COM port
72. the Library Manager element From the Insert menu select Additional Library The Open dialog appears gt Select the library to install and click Open The library now appears in the Library Manager 37 38 Libraries function blocks and functions 08 10 MN05003002Z EN XC121 specific functions Library XC121 Util lib This library contains the functions shown in the illustration below EG WUtillib 2 AME Standard lib 7 6 SYSLIBCALLBACK LIB 31 3 04 09 33 C3 CAN Utiities El CAN_BUSLOAD FUN J Direct ccess ReadBitDirect FUN E ReadByteDirect FUN ReadwordDirect FUN WriteBitDirect FUN WriteByteDirect FUN WriteWordDirect FUN nterrupt Disablelnterrupt FUN Enablelnterrupt FUN Timer i E TimerlnterruptEnable FUN Figure 46 Functions of the library XC121_Util lib gt The Timer functions are described in Section Timer interrupt on page 29 Function CAN_BUSLOAD This function can be called cyclically in a user program If a read cycle has been completed successfully the function returns TRUE and writes the determined integration time and the bus utilization values to the passed addresses If the bus load calculation is not yet completed or the CAN controller has not yet been initialized the function returns FALSE For information about evaluating the returned value see canload on page 36 CAN_BUSLOAD POINTER TO DWORD p_dwi
73. the Library Manager are assigned to the project after saving When you open the project the libraries are then automatically called up as well The following overview lists the documents in which the function blocks and functions are described Document Library AWB 2700 1437 Standard lib Util lib XC121 Util lib Online help or PDF files can be SysLib lib found in the Windows start menu under Moeller Software gt easy Soft CoDeSys gt Documentation MN05010002Z EN previously AWB2786 1456 X540 MoellerFB lib Visu lib AN2700K20 3S CANopenDevice lib 3S CANopenManager lib AN2700K19 3S CANopenNetVar lib AN2700K27 SysLibCan lib MN05010001Z EN previously AWB 2786 1554GB CANUserLib lib CANUser_Master lib Installing additional system libraries You can install libraries manually as follows XSoft XN PLC DOK1 pro File Edit Project Insert Extras Online Window Help E El Additional Librar Resources 8 03 Global Variables 1 library Standard lib 7 A library SYSLIBCALL i Library Manager EN Log 3 Parameter Manage Ej PLC Browser GE PLC Configuration A Sampling Trace j aw Target Settings A Task configuration H Bistable Function Blocks CJ Counter CJ String Functions E Timer BG Trigger Figure 45 Libraries installing manually In your project click the Resources tab in the object organiser gt Double click
74. ther variables are displayed with the current variable value 08 10 MN05003002Z EN System events System events You can respond to PLC system events with a user application routine POU that runs once when a particular event occurs Its execution is time monitored The time base is the configured longest permissible cycle time Events are STOP User program stop does not apply to cycle time timeout or hardware watchdogs START START User program start cold and warm start COLDSTART Cold start of the user program WARMSTART Warm start of the user program E Task configuration TER sl System events Name Description O Start Called when program starts O Coldstart Called when program starts with O Warmstart Called when program starts with O Stop Called when program stops O IO Interrupt 1 Interrupt Channel 1 called POU Interface for Event Start Figure 27 System events gt Single step mode can not be used for system event program blocks Interrupt processing If an interrupt occurs the operating system runs the POU which is linked to the interrupt source Warning The execution of the interrupt POU is not time monitored Inadvertently programmed endless loops cant be exited The POU initiated by the interrupt is always run to completion and cannot be interrupted by a new interrupt A new interrupt is only carried out after the current
75. tion called Called when program starts Called when program starts with coldstart Called when program starts with warmstart Called when program stops M Timer Interr Timer Interrupt Channel 1 Zeit Int m Create POU Interface for Event Timer Interrupt TIMER INTERRUPT IV Structured i i gt OD Figure 34 Select the Timer Interrupt system event Select the Fastprog POU and confirm with OK Click the Timer Interrupt checkbox to activate the timer Save the project You can now test it interrupt In the field in the called POU column enter the name time Int for the application routine Click again on the name Timer Interrupt Now the Create POU button becomes active and indicates the name of the POU Click on this button In the POUs window a folder POU with the names is added Open the POU and write your user program The variable b is incremented by one with every rising edge on input I1 2 30 Operation easy Soft CoDeSys EC4P tim pro F File Edit Project Insert Extras Online Window Help ae aaa aa y elas Time int PRG O001 PROGRAM Tir PLC PRG PRG T ime_int PRG Figure 35 Writing an application routine The interrupt can be interrupted by higher priority system interrupts Cycle time monitoring is active during execution of the timer interrupt The Timer interrupt can be in
76. tion of 75 percent or higher the warning ATTENTION HIGH BUSLOAD also appears Overload of the local CAN bus in conjunction with further short term load peaks can lead to CAN data loss In addition to the browser command function CAN BUSLOAD can be used to determine the CAN bus utilization from the user program see Section Function CAN BUSLOAD on page 38 08 10 MN05003002Z EN setrtc Sets or changes the PLC date and or time Syntax setrtc YY MM DD DW HH MM SS gt Legend _ Space YY The last two digits of the year 00 F YY F 99 MM Month 01 F YY F 12 DD Day 01 F DD F 31 DW Weekday 01 F DW F 07 01 Monday 07 Sunday HH Hour 00 F HH F 23 MM Minute 00 F MM F 59 SS Second 00 F SS F 59 08 10 MN05003002Z EN 8 Libraries function blocks and functions The libraries contain IEC function blocks and functions that you can use for example for the following tasks Data exchange through the CANopen bus Controlling the real time clock e Determining bus load of the CANopen bus e Triggering interrupts e Sending receiving data through the interfaces The libraries are located in the folders e Lib Common for all PLCs e Lib CPU121 for the PLC XC121 Using libraries When you open a project libraries Standard lib and SYSLIBCALLBACK lib are copied in to the Library Manager If you need further libraries for your application you have to install these manually The libraries in
77. voltage protection Yes Polarity protection Yes Switch on current surge A max 1 Digital inputs Number with X2 9 with connector BLI O 3 5 10F 10 with connector BLZF 3 5 180 Number with X3 8 can also be used as outputs rated voltage VDC 24 for 0 signal V lt gt for 1 signal V gt 15 Rated current with 1 signal mA 3 3 Delay time X2 DIO DI3 us 20 X2 DI4 DI9 us 250 X2 DX0 DX7 ms 20 Electrical isolation No Digital outputs Number with X3 8 can also be used as inputs rated voltage Ue V DC 24 Permissible range VDC 20 4 28 8 Residual hum and ripple V o 53 54 Appendix 08 10 MN05003002Z EN rated current Je with 1 signal A 0 5 at 24 V DC Simultaneity factor 1 Relative ON time ms 100 96 Lamp load without Ry W 5 Electrical isolation Yes Residual current per channel with 0 signal mA 0 1 Max output voltage At 0 ext load 10 MQ V 2 5 at 1 with Ie 0 5 A U Ue 1V Short circuit protection Yes Short circuit detection threshold for Ra 10 MO 0 7 z Ie x 2 per output Total short circuit current A 16 Peak short circuit current A 32 max operating frequency ops h 40000 Can be switched in parallel Yes in groups Q0 Q3 or Q4 Q7 Data for the analog I O Analog inputs 0 10 V Number of channels 2 Input voltage range V 0 10 Resolution Bit 10 Conversion time ms 5 Overall accuracy 1
78. xample Default STARTUP INI for XC121 STARTUP TARGET XC CPU121 2C256K COM Baudrate 38400 CAN1 Baudrate 125 CAN1 NODEID 2 CAN2 Baudrate 125 CAN2 NODEID 2 CAN ROUTINGID 127 CAN ROUTING CHANNEL CAN1 INI file generation The INI file is generated with the browser command createstartupini on the MMC card The current parameter values are applied to the system parameters The programming interface is loaded with the following parameter COM BAUDRATE 38400 The parameters from the program PLC configuration have no default values e g CAN ROUTINGID CAN ROUTING CHANNEL CANI BAUDRATE CANI NODEID A file which already exists cannot be changed or overwritten by the browser command createstartupini If you still enter the command a warning appears In order to create a new file the existing file must be deleted first gt section Delete INI file on page 42 The parameters can be changed with a text editor if you insert the MMC into the MMC slot of a PC The STARTUP INI file is located in the MOELLER XC CPU121 2C256K BOOTPRJ directory During online operation you can execute the Load file from PLC and Write file in PLC commands in the Online menu 41 42 Set the system parameters via the STARTUP INI file 08 10 MN05003002Z EN Entries of the INI file e Entry for specification of the target system TARGET XC CPU121 2C256K e Parameters for programming via the serial communication w
Download Pdf Manuals
Related Search
Related Contents
Mode d`emploi Référence HQ22242, HQ22243 Nous vous félicitons EN FI SV NO DA DE NL FR ES PL RU ZH PT IT Smart-V-Link 取扱説明書 R&S FSW-K84/-K85 1xEVDO User Manual TS-9208H-9216H User Manual - NDT Consultants Ltd Brickcom WCB-100AE-VGA webcam Copyright © All rights reserved.
Failed to retrieve file