Home
XC100 Modular PLC
Contents
1. l 06 3 S us Q S B S 14 S LH Y d 5 001 G0 69 696969 amp G9 i mue amp G6 65 69 9 amp amp amp amp noma oo00 S eko ERE Y Racks XIOC BP XC1 XIOC BP XC e Hl lx LET is pe 9 sioe RD QM Pac ee DT a eS o j a J m ips orbus vade eod gt gc eL E ce e Y i F i m lt lt 0g ain 0g gt Ss Ss a Lp px A DER I EAT Me E EI cies M EAE EDU EE 2 m D SD E toD m E 2 a a r 0g T 0g TES SES 72 10 10 MN05003004Z EN Technical data Technical data XC CPU101 C K 8DI 6DO XV General Standards IEC EN 61131 2 EN 50178 Ambient temperature C 0 to 55 Storage C 25 to 70 Mounting position horizontal Relati
2. Figure 1 Layout of the XC CPU101 with XIOC modules Further details about the CPU can be found in the next section Detailed information about the module racks and XIOC modules can be found in the manual Hardware and Engineering XIOC Signal modules This manual is provided as a PDF file h1452g pdf on the CD The latest versions of specific manuals can be found at http www eaton com moeller gt Support Search item MN05002002Z EN CPU with PSU and local inputs outputs The CPU module of the XC100 has a compact design that is divided into two functional units e Processor unit with interfaces e 24 V PSU with integral digital inputs eight and digital outputs six E o NS Figure 2 Assembly of the CPU module XC CPU101 D Processor unit 2 24 V PSU with local inputs outputs 24 V PSU with local inputs outputs The power supply unit provides the operating voltages required by the processor unit and the inputs outputs local and decentralized Task The power supply transforms the 24 V DC supply voltage into the voltages required by the system These voltages are fed to the bus on the basic rack unit and any expansion rack units that are present The special feature of connection to the 24 V supply voltage is that the processor unit and the local inputs outputs can be fed separately One 24 V connection is provided for the proce
3. SysComClose function The function closes any RS232 interface opened in transparent mode During closing the communication parameters which were set last are restored The function returns the TRUE return value when the action has been completed successfully Figure 91 bCom lib 18 11 0 SysComGetVersion1 000 FUN SysComOpen FUN SysComRead FUN SysComReadControl FUN SysComSetSettings FUN SysComWrite FUN SysComWriteControl FUN Library Manager iBi xi 4 FUNCTION SysComClose BOOL Requires Operating System Version v2 00 IVAR INPUT dwHandle END VAR SysComClose function Table 16 Parameters of the SysComClose function DWORD SYSCOMCLOSE dwHandle DWORD SysComClose BOOLI dwHandle Return value of the SysComOpen function SysComClose Return value TRUE Closing of the RS232 interface was successful 63 64 RS232 interface in transparent mode COM 1 2 3 SysComRead function Data received via the RS232 interface in transparent mode can be read with this function FUNCTION SysComRead DWORD MAR INPUT dwHandle DWORD dwBuffer amp ddress DYWORD dwBytesToRead DYWORD dwTimeout DWORD END VAR SysComClose FUN SysComGetVersion1 000 FUN SysComOpen FUN ysComRead FUN 10 10 MN05003004Z EN Inl x Requires Operating System Version gt 2 00 SysComReadControl FUN SysComSetSet
4. 1to3 Functions ReadBitDirect A bit of an input module can be read directly with this function The state of an input bit is stored in the variables which indicate to the parameterized pointer ptr_xValue The pointer variable will not be changed when a fault occurs during processing Library Mana E iojxi XC100_Util lib 1 CAN_BUSLOAD FUN ier re O iin us m zt 3 TimerlnterruptEnable FL n o a p Disablelnterrupt FUN WriteBitDirect FUN WriteWordDirect FUN FUNCTION ReadBitDirect UINT MAR INPUT uiSlot uiBit ptr xValue UINT sl UINT d POINTER TO BOOL e Retumvalue 0 or Errorcode gt 0 Slot 15 Bitposition 0 63 Pointerto read data value uiSlot UINT uiBit UINT ptr xvalue POINTER TO BOOL READBITDIRECT ReadBitDirect UINT Figure 41 ReadBitDirect function 10 10 MN05003004Z EN Direct peripheral access Table 5 Parameters of the ReadBitDirect function uiSlot Slot number of the signal module For possible parameters see table 4 on page 29 uiBit Bit position within the input value of the signal module For possible parameters see table 4 on page 29 ptr xValue Pointer to the variable value ReadBitDirect Display of the fault code see table 9 on page 33 ReadWordDirect A word of an input module can be read directly with this function The state of an input word
5. Creating a sample project Name of the new POU Type of the POU Language of the POU Cancel Program 6 IL C Function Block C LD C Function C FBD Retum Type C SFC eoor E e C crc Figure 66 Select POU type gt Confirm with OK and save the file under sample 1 A window will now appear in which you can continue with the programming or configuration XSoft beispiel 1gb pro lol xi File Edit Project Insert Extras Online Window Help E PLC PRG PRG EET x 2 a Lin 1 Col 1 ONLINE OV READ Figure 67 POU type Program in IL representation Configure XC100 controller PLC_PRG PRG IL 0001 PROGRAM PLC PRG D002 VAR B003JEND VAR The example makes use of the XC CPU101 C64K 8DI 6DO gt Select the Resources register left half of window at bottom to configure the XC100 with the local and central inputs and outputs 10 10 MN05003004Z EN 10 10 MN05003004Z EN XSoft Untitled File Edit Project Insert Extras Online Window Help Procedure lnl x alem X Ej i 35 Resources B C library RTCLib lib 18 1 j PLC Browser 0 PLC Configuration Sampling Trace e Target Settings 8 Task configuration DQ Watch and Receipt M CJ Global Variables library Counter lib 18 1 library Standard lib 7 6 library SYSLIBCALLBA ii Library Manager En Log di Parameter Manager PLC PRG PRG ST 0001
6. Input 1 0019 IF CloseTrigger Q TRUE THEN 0020 SysComClose dwHandle dwSioHandle dwSioHandle 0 0021 END_IF 0023 IF Timer Q TRUE AND dwSioHandle gt 0 THEN 0024 nvVvriteLength SysComVyrite dwHandle dwSioHandle dwBuffer amp ddress zADR WriteBuffer 0025 dwBytesToVvrite LEN WyriteBuffen dwTimeOut 0 0026 END IF X mimi Hz Figure 95 Programming example for Transparent mode 68 RS232 interface in transparent 10 10 MN05003004Z EN mode COM 1 2 3 SysComReadControl function With the onboard RS232 interface of the CPU101 the control cables lines are not available Therefore the SysComReadControl module is not to be used for this interface The XIOC SER hardware interface module has control interface lines available This allows the SysComReadControl module read access to the control interface lines of the COM 2 and COM 3 interface Li imis XC10 LibCom lib 18 11 03 FUNCTION SysComReadControl BOOL Requires Operating System Version V2 00 MAR INPUT dwHandle DWORD Control POINTER TO COMCONTROL SysComClose FUN END VAR SysComGetVersion1 000 FUN SysComOpen FUN SysComRead FUN sComR eadControl FUN SysComSetSettings FUN SYSCOMREADCONTROL SysComWrite FUN SysComWiteControl FUN dwHandle DWORD SysComReadControl BOOLI Control POINTER TO COMCONTROL Figure 96 Read access to the control interface lines of the COM 2 or C
7. User Manual Modular PLC XC CPU101 XV E T N Powering Business Worldwide rr i NON E 10 10 MN05003004Z EN replaces 01 08 AWB2724 1453GB 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 1st published 2002 edition date 06 02 2nd edition 10 2002 3 d edition 04 2003 4th edition 08 2003 5th edition 11 2003 6th edition 12 2003 7th edition 06 2004 8th edition 11 2004 9th edition 03 2005 10th edition 01 2008 11th edition 10 2010 see revision protocol in the About this manual chapter Eaton Industries GmbH 53105 Bonn Authors Werner Albrecht Peter Roersch Editor Thomas Kracht Barbara Petrick Translator 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
8. e Counter lib e SYSLIBCALLBACK LIB In these libraries general IEC modules and functions for the XC PLCs are included You will find the above mentioned libraries in the easySoft CoDeSys under Resources gt Library manager Further libraries which are subsequently installed are also displayed in the library manager The description of the function blocks and functions can be found in the Library Online help of the programming system gt Start the easySoft CoDeSys click on the Help button and select Contents In this window you can choose between Contents Index and Search Library manager The installed libraries are placed in the Library Manager ini x Standard lib 7 00 RTCLib lib 1 8 11 03 08 29 08 Counter lib 1 8 11 03 08 29 08 SYSLIBCALLBACK LIB 1 8 11 03 08 29 08 l Figure 27 Standard libraries in the library manager 25 26 Program processing and system time Target system specific libraries For the XC100 target system the Lib Common and Lib CPU101 libraries are required abd Look in c Moeller z e f cr E3 ir LIB_HPG200 XC_101_256K XC 600 LIB HPG300 XC 101 256K XV XVC100 Lib NTRT XC 101 64K Lib xvci00 XC 101 64K XV Cixsc 101 128k C3xc 201 ECSizk XC 101 128K XV XC 201 ECSI2K XV Sse seccmesseeefy Files of type xsot Library lib gt Cancel Figure 28 Target system specific libraries Lib_Common The basic functi
9. g EMPTY SLOT SLOT g EMPTY SLOT SLOT g EMPTY SLOT SLOT g EMPTY SLOT SLOT g EMPTY SLOT SLO gt Figure 71 Basic configuration of the XC100 local I Os r R8232 CAN Routingsettings CAN Baudrate 125KBaud Node Id 1 127 127 ONLINE DV READ If you want to join up a central digital input module with 16 inputs right next to the CPU then carry out the following steps gt Mark the first EMPTY SLOT and then click the right mouse button A window is opened gt Select the field Replace element The window that is now opened lists the signal modules which are available gt Select the module XIOC 16DI 10 10 MN05003004Z EN Procedure The configuration now looks as follows fff PLC Configuration E Configuration XC CPU101 C64K 8DI BDO AT IB0 BYTE Local Inputs CHA Base parameters 1 AT QBO0 BYTE Local Outputs CI F Module id 25857 Node D number j EMPTY SLOTISLOT j EMPTY SLOTISLOT Input address 182 j EMPTY sLOTISLOT j EMPTY SLOTISLOT EXTENSION SLOT SLOT j EMPTY SLOT SLOT EMPTY SLOT SLOT EMPTY SLOT SLOT EMPTY SLOT SLOT EMPTY SLOT SLOT EMPTY SLOT SLOT EMPTY SLOT SLOT EMPTY SLOT SLOT EMPTY SLOT SLOT CE wn Figure 72 Configuration XC CPU101 C64K 8DI 6DO gt In addition click on the plus sign in front of the modules AT IBO Byt
10. The application program in the controller is completely deleted After this the controller is in the NOT READY state The boot project and the operating system on the MMC will also be deleted Program parameterization An application program has various parameters that can be set or adjusted in the programming system Maximum program cycle time e Start behaviour at Power On e Parameters for CAN Routing Maximum program cycle time The maximum cycle time for the application program can be set in the range from 20 ms to 1000 ms The default value is 20 ms Start behaviour at Power On This setting defines how the controller should respond after switch on if an application program is present and the operating mode selector switch is in the Run position The following settings are available e WARMSTART default setting e COLDSTART e STOP Creating and transferring a boot project A boot project is generated by a loaded user program and saved on the MMC The following steps are necessary in order to create a boot project gt Insert an MMC into the MEM Card slot of the CPU gt Change over to the Online folder gt Select the Login command gt Select the Create boot project command The boot project is dependent to the operating system version with which it was generated If you wish to transfer the boot project on a PLC into a further PLC remove the MMC with boot project
11. real time clock and SetRealTimeClock setting of the real time clock function blocks can continue to be used However they are not supported by the XC200 and XN PLC CANopen controls More information about the function blocks can be found in the separate Function blocks for easySoft CoDeSys MN05010002Z EN previously AWB2786 1456GB manual CPU XC CPU101 XV The XC CPU101 8DI 6DO XV units are equipped with an expandable operating system The functionality of the system permits operation of these CPUs with text displays from the XV 101 gt The text displays are described in the separate manual Hardware and Engineering MN04802001Z EN previously AWB2726 1461GB Battery A lithium battery type 1 2 AA 3 6 V is used for data saving The battery compartment can be found on the left side of the CPU unit behind a cover plate The charge level of the battery is monitored If the battery voltage falls below a fixed preset level then a general error message will be generated The battery buffer times are e Worst case 3 years continuous buffering Typical 5 years of continuous buffering Attention To avoid loss of data the battery must be changed when the low threshold level has been reached Ordering designation of the battery XT CPU BAT 1 Design of the XC100 10 10 MN05003004Z EN CPU installation P Detailed information about the installation of
12. 47 Configure XC100 controller 50 Writing a program 54 7 Programming via CANopen network Routing 55 Prerequisites 55 Notes 56 Addressing 56 Communication with the target PLC 57 PLC combinations for routing 58 Number of communication channels 58 8 RS232 interface in transparent mode COM 1 2 3 59 Demands placed on the functionality of the transparent mode 60 SysComOpen function 60 SysComClose function 63 SysComRead function 64 SysComWrite function 65 SysComSetSettings functions 66 SysComReadControl function 68 SysComWriteControl function 69 Automatic closing of the interface 69 Appendix 71 Compatibility 71 Dimensions 72 XC CPU101 72 XT FIL 1 line filter 72 Racks 72 Technical data 73 Index 71 10 10 MN05003004Z EN 10 10 MN05003004Z EN About this manual List of revisions Edition date Page Keyword New Modificatio Omitted n 10 02 70 External filter If required V 04 03 20 Warm start V 29 Direct peripheral access V 22 Updating the operating system OS V 34 Interrupt processing V 11 Data access to the multimedia card V 40 Browser commands V 51 Routing V 08 03 All Baud rate modified from 57600 to 38400 V 20 Status indication easySoft CoDeSys V 32 Communication interrupted message V 39 System events V 45 Communication fault 0
13. BAUD_19200 83 COMPARITY ENUM BAUD 38400 83 COMPORTS ENUM BAUD_57600 Mg COMSETTINGS STRUCT BAUD_115200 BAUD_38400 COMSTOPBITS ENUM END_TYPE Figure 83 Baud rate selection Number of data bits Library Manager bCom lib 18 lt 4 TYPE COMDATALEN DATA 8BIT O DATA 7BIT DATA 8BIT END TYPE 813 COMPARITY ENUM Ma COMPORTS ENUM j Ma COMSETTINGS STRUCT lili COMSTOPBITS ENUM Figure 84 Number of data bits 10 10 MN05003004Z EN 10 10 MN05003004Z EN Demands placed on the functionality of the transparent mode Selection of the parity rary Manag TYPE COMPARITY NO PARITY 0 ODD PARITY EVEN PARITY NO PARITY m2 COMBAUDRATE ENUM END_TYPE 91 1 COMCONTROL STRUCT m2 COMDATALEN ENUM ITY ENUM ma COMPORTS ENUM m2 COMSETTINGS STRUCT 91 COMSTOPBITS ENUM Figure 85 Even uneven parity Selection of the COM interface TYPE COMPORTS COMI 1 COMI OnBoardRS232 OD CON COM2 3 XIOC SER Module Slot 1 15 Data types COM3 COMI jma COMBAUDRATE ENUM END_TYPE 91 1 COMCONTROL STRUCT m2 COMDATALEN ENUM m2 COMSETTINGS STRUCT m3 COMSTOPBITS ENUM Figure 86 Selection of the COM interface Number of stop bits Library Manager ibCom lib 18 11 03 bas COMSTOPBITS ONE_STOPBIT 0 TWO STOPBITS 2 ONE_STOPBIT 3 Data types END_TYPE
14. Eaton Industries GmbH Bonn Subject to alteration without notice Eaton Industries GmbH Safety instructions Danger AN Dangerous electrical voltage Before commencing the installation e Disconnect the power supply of the device e Ensure that devices cannot be accidentally restarted e Verify isolation from the supply e Earth and short circuit e Cover or enclose neighbouring units that are live e Follow the engineering instructions AWA of the device concerned e Only suitably qualified personnel in accordance with EN 50110 1 2 VDE 0105 Part 100 may work on this device system e Before installation and before touching the device ensure that you are free of electrostatic charge e The functional earth FE must be connected to the protective earth PE or to the potential equalisation The system installer is responsible for implementing this connection e Connecting cables and signal lines should be installed so that inductive or capacitive interference does not impair the automation functions e Install automation devices and related operating elements in such a way that they are well protected against unintentional operation e Suitable safety hardware and software measures should be implemented for the I O interface so that a line or wire breakage on the signal side does not result in undefined states in the automation devices Ensure a reliable electrical isolation of the low voltage for the 24 vo
15. IBO BY Base parameters CAN parameters Mor Baud rate 125000 Com Cycle Period sec 0 j EMPTY SLC j EMPTY SLC A Sync Window p EMPTY SLC Lenght usec 0 j EMPTY SLC Sync COB ID 128 tivate v EMPTY SLC d uvae IV 4 EMPTY SLC Node4d 1 IV Autostart M Support DSP301V4 01 and DSP306 Heartbeat Master ms Jo Figure 79 CAN Master Node ID for basis communication 10 10 MN05003004Z EN Communication with the target PLC gt Connect the PC to the routing PLC gt Select the target PLC with which you want to communicate for the project gt Determine the communication settings for the PC and the PLC connected to the PC gt Enter the target ID Target ID Node ID of the target PLC as in the example and log on You can run the following functions Program download ONLINE modification Program test Debugging Create bootable project Filing source code Note for project creation Assign two Node IDs to the target PLC gt One ID for basic communication gt One ID for routing If you are using an XC100 enter the same number for both IDs The routing ID and the baud rate of the target PLC XC 100 to the routing function can be defined in the Additional parameters window in the PLC Configuration Enter the baud rate and the node ID in the RS232 gt CAN routing settings field The CAN baud rate depends on the operating system ve
16. Logging off V 69 Battery life V 08 03 Reprint 10 XC CPU 101 C256k 8DI 6DO XV V 69 12 03 Completely revised 12 03 Reprint 41 Data remanence 1st paragraph V 04 04 42 Limit values for memory usage V 06 04 18 External 24 V DC line filter for the XC100 power vV V 68 supply 72 11 04 11 MMC V 19 Startup behaviour V 21 Full reset V 21 Creating and transferring a boot project V 22 Updating the operating system OS V 03 05 42 Segment size of the XC CPU101 C256k V 43 Addressing inputs outputs and markers V 44 Diagnostics V 55 Programming via CANopen network Routing V 01 08 21 Create boot project after online change V 41 Data remanence V 55 Programming via CANopen network Routing V 10 10 All Change to Eaton terminology V About this manual Abbreviations and symbols Symbols used in this manual have the following meanings MWS Menu selector switch BAS Operating mode switch CPU Central processing unit CRC Cyclic redundancy check MMC Multimedia card 1 0 Inputs outputs gt indicates instructions to be followed Select File gt New means activate the instruction New in the File menu YV Attention Warns of the risk of material damage A Caution Warns of the possibility of serious damage and slight injury AN Warning Indicates the risk of major damage to property or serious or fatal injury For clarity o
17. XC100 not permissible 0 to 40 C max 1 5 A1 Distribution 0 to 55 C max 1 5 A1 fuse board Control panel gt 40 C max 1 5 Al 0 to 40 C max 3 2 A 1 On the outputs of the CPU made of ABS enclosure material a utilization factor g of 0 5 applies gt Limitations in performance for the digital 1 0 modules with ABS enclosures are described in the documentation for the XIOC signal modules MN05002002Z EN previously AWB2725 1452GB If there is an interruption break or collapse of the 24 V supply threshold is about 10 V then a power down logic switches of the 5 V supply to the signal modules central 1 0 The sequence is initiated by the PFI signal and leads to a power down through the CPU Local digital inputs The 18 pole terminal block which has the power supply to the CPU the local I Os and the physical connection to the local inputs outputs is located on the right half of the CPU behind the front enclosure The eight digital inputs and six semiconductor outputs are designed for 24 V signals and have a common 0VQ 24VQ power supply which is potentially isolated right up to the bus Local digital inputs outputs The outputs Q0 0 to Q0 5 can be loaded with 500 mA a duty factor ED of 100 and a utilization factor g of 1 Attention Please observe the limitations of performance for the outputs with ABS enclosures in table 1 The outputs are short circuit proof A short circuit state should h
18. function block The following possibilities are available Type of diagnostics Function block Library Documentation Inspection of the XI OC modules XDiag_SystemDiag xSysDiagLib MN05010002Z EN Does the configuration of the hardware correspond with the configurator previously e Is the module function ok AWB2786 1456GB Note These tests are undertaken once during switch on or after loading start of the program Inspection of the XIOC NET DP M module and the stations on the DP line XDiag_SystemDiag XSysDiagLib MN05010002Z EN XDiag_ModuleDiag previously AWB2786 1456GB DiagGetState BusDiag MN05002002Z EN previously AWB2725 1452GB Inspection of the XIOC NET DP S module XDiag_SystemDiag xSysDiagLib MN05010002Z EN XDiag_ModuleDiag previously AWB2786 1456GB DP slave provides the master with additional diagnostics data XDPS_SendDiag xSysNetDPSDiag MN05002002Z EN previously AWB2725 1452GB 10 10 MN05003004Z EN 5 Establishing a PC XC100 connection This section describes the measures that are required to link a PC to the XC100 so that the PC can be used as a programming device hardware and software Establishing a connection via the RS232 interface Communication is implemented via the non optocoupled serial RS232 interface You can use either the COM1 or the COM2 port for the PC interface Please use the XT SUB D RJ45 programming cable to make the physical connection Programming cable The programming cable
19. is made up as shown below RJ45 plugs programming cable SUBD socket 1 2 3 4 5 6 7 8 Figure 58 Pin assignment RS232 programming cable Communication Parameters Software easySoft CoDeSys The communication parameters are determined by means of easySoft CoDeSys gt Call up the menu item Online gt Communication Parameters in easySoft CoDeSys and select the COM1 or COM2 interface gt Preselect the values indicated in Figure 59 You can alter the default values by making a double click on the entered value gt Further notes on the communication parameters can be found in the programming software manual MN05010003Z EN previously AWB2700 1437GB Communication fault 0 Logging off A connection can not be established between the programming PC and the XC100 please check e the physical connection e the baud rate of the communication parameters in the easySoft CoDeSys e the baud rate in the XC100 set as default to 38400 kBit s e the baud rate of the CAN connection if the CAN fieldbus is used that the interface parameters in the easySoft CoDeSys and in the XC100 correspond m Channels Seria RS232 Motorola byteor No Cancel Remove Gateway FEE EE Update Figure 59 Select communication parameters 45 46 10 10 MN05003004Z EN 10 10 MN05003004Z EN 6 Creating a sample project The following example aim
20. memory card and to transfer it from there to other PLCs section Updating the operating system OS on page 22 Erasing functions Use the browser Format command in order to erase the entire content on the MMC You can delete the boot project and the operating system on the MMC using the Reset Original command Data access to the multimedia card The XC100 File library is contained in the Lib CPU101 It provides the elements for access to the MMC It is necessary to add the respective library to the Library manager gt Change to the library manager and position the mouse pointer on the field for the libraries Then press the right hand mouse button gt Select the Additional library insert command in the new opened information window gt Select the Lib CPU101 library and then the XC100 File file Open this file The module is integrated into the library manager with the Open command The following functions are now available FileClose FileDelete FileGetSize FileOpen FileRead FileRename FileSetPos FileWrite Further information about these modules can be found in the Libraries of the XC100 File lib section and the in the manual Function Blocks for easySoft CoDeSys MN05010002Z EN previously AWB2786 1456GB V Attention e The FAT16 file system is not transaction safe e The control voltage control may not be switched off when a File service is still open e A volta
21. module the control lines are available and are operated via the SysComReadControl and SysComWriteControl function calls If transparent mode is active no communication is possible with the programming system 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 changes to the STOP mode A prerequisite for operating the RS232 interface in transparent mode is hardware version 02 and operating system version V02 00 or higher 59 60 RS232 interface in transparent mode COM 1 2 3 Demands placed on the functionality of the transparent mode SysComOpen function The function opens the RS232 interface for transparent mode After the interface has been successfully opened the function returns a value greater than 0 gt Enter this value with the following functions as the dwHandle parameter If a fault has occurred the feedback value is equal to 0 Transparent mode of the interface will not be enabled For operation of the serial interface the following parameters ENUMERATION types List types are available Baud rate for COM 1 COM 2 COM 3 brary Manager i TYPE COMBAUDRATE BAUD 300 1 BAUD 600 C3 Data types BAUD 1200 Hiit C ATE ENUM BAUD 2400 82 COMCONTROL STRUCT BAUD 4800 83 COMDATALEN ENUM BAUD_9600
22. the backplanes and XI OC modules can be found in the manual Hardware and Engineering XI OC Signal Modules MN05002002Z EN previously AWB2725 1452GB Here you can also find further information on the various types of module rack and the individual slot assignments for the CPU and the XI OC signal modules gt Insert the loop on the bottom of the CPU module into the hole in the module rack 1 gt Press the top of the CPU module onto the module rack until you hear it click into position Figure 15 CPU installation 2j Detaching the CPU gt Press in the catch 0 gt Keep the catch pressed in and pull the top of the CPU module forwards 2 gt Lift up the CPU module and remove it 3 E lt E Figure 16 Detaching the modules 10 10 MN05003004Z EN 2 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 electromagnetic contamination it is a good idea to divide the system into sections according
23. this moment any outputs set will remain set Single cycle mode In single cycle operation one program cycle is performed in real time The outputs are enabled during the cycle At the end of the cycle the output states are cancelled and the outputs are switched off The cycle time monitoring is active Forcing All the variables in an application program can be forced to a given setting If variables for physical outputs of the local I Os are forced they will only be connected through to the peripherals in the Run state Status indication easySoft CoDeSys e The signal state of the physical Boolean inputs are displayed in Start and Stop mode e The signal state of the physical Boolean outputs are only displayed in Start RUN mode e The display for a low signal is displayed with FALSE and has a black background e The display for a high signal is displayed with TRUE and has a blue background All other variables are only displayed in Start mode with the current respective variable value 10 10 MN05003004Z EN Programreset Programreset The application program can be reset to one of the following levels e Warm reset e Cold reset e Full reset Warm reset This correspond to the initialisation during a warm start see section Warm start on page 20 Cold reset This correspond to the initialisation during a cold start see section Cold start on page 20 Full reset
24. 05003004Z EN 24 V DC Filter XT FIL 1 General Standards IEC EN 61131 2 EN 50178 Ambient temperature C 0 to 55 Storage e 25 to 70 Mounting position Horizontal vertical Relative humidity non condensing IEC EN 60068 2 30 10 to 95 Air pressure operation hPa 795 to 1080 Vibration resistance 10 to 57 Hz 0 075 mm 57 to 150 Hz 1 0 g Mechanical shock resistance 15 g 11 ms Impact resistance 500 g 50 mm 25 g Overvoltage category Il Pollution degree 2 Degree of protection IP20 Rated impulse voltage V 850 Emitted interference EN 50081 2 Class A Interference immunity EN 50082 2 Weight g 95 Dimensions W x H x D mm 35 x 90 x 30 Terminations Screw terminal Terminal capacity Screw terminals Flexible with ferrule mm 0 2 to 2 5 AWG22 12 solid mm 0 2 to 2 5 AWG22 12 Power supply Input voltage VDC 24 Permissible range VDC 20 4 to 28 8 Residual ripple 25 Overvoltage protection Yes Potential isolation Input voltage against PE Yes Input voltage against output voltage No Output voltage to PE Yes Output voltage VDC 24 Output current A 2 2 10 10 MN05003004Z EN Index A Abbreviations 6 D Data remanence is crus eed edd e 41 Address overlaps n on nannu ccc cece eee e eee ees 43 Data transfer rate modification Lus 12 Address Tange a a Taaa 22 43 4 45 441 1n 43 Datassavihg 4 eset Monat aD Mats 10 15 Addressing Declaration come E s ote pte or dt 54 PLC on CAN Bus 0000
25. 1437GB manual and in the Library Online help of the programming system ysSemCreate FUN SysSemDelete FUN SysSemEnter FUN SysSemLeave FUN SysSemTry FUN Pous 3 Dat S visu Glob Figure 36 Functions of the SysLibSem lib 10 10 MN05003004Z EN VISU library The VISU library provides functions with which process visualisation can be implemented in the easySoft CoDeSys The description of the VISU library can be found in the Function blocks for easySoft CoDeSys manual MN05010003Z EN previously AWB2786 1456GB in the Visualisation modules VISU lib section i Library Manager TT ClearLines FB ClearScreen FB EnableDisplay FB GetDisplaylnfo FB GetT extAddress FUN GetTextDBinfo FB Input alue FB SetBacklight FB SetContrast FB SetCursor FB WiiteBargraph FB WriteLine FB WriteMultiString FB WriteMultiStringT extDB FB WriteMulti alue FB WriteS tring FB WriteStringT extDB FB WriteSysD ate FB WriteSysD ay FB WriteSysT ime FB g WriteValue FB A Dat a visu Glob Figure 37 Functions of the VISU lib XC100 File lib library The XC100 File lib library provides functions with which the easySoft CoDeSys can access the file system of the Multimedia Card MMC The description of the XC100 File lib library can be found in the Function blocks for easySoft CoDeSys manual MN05010002Z EN previousl
26. 200 from version V2001 03 01 58 10 10 MN05003004Z EN Number of communication channels Several communication channels can be opened e g PC lt gt PLC 2 PC PLC 3 in dependence on the PLC communication channel which is connected to the PC The status display of control 2 and 3 can be implemented simultaneously Table 14 Type and number of communication channels Communications PLC Max channel channel count TCP IP Level2Route XC200 5 Serial RS 232 Level2Route XC EC4 200 1 10 10 MN05003004Z EN 8 RS232 interface in transparent mode COM 1 2 3 The transparent mode serves data exchange with data terminals e g terminals printers PCs measurement devices etc via the RS232 serial interface connection The data transfer is transparent i e the data is transferred without it being interpreted further This functionality is provided on the XC100 by the XC100_SysLibCom library The library must be integrated into the Library Manager The library contains functions for opening and closing the interface for sending and receiving data and for setting the interface parameters and control cables If control lines of the integrated XC100 interfaces on the RS232 are contacted in the function module they will not function as the control lines do not physically exist However these XC100_SysLibCom functions are implemented for reasons of compatibility With the XIOC SER hardware interface
27. 256K 8DI 6DO Program code 128 Kbyte 128 Kbyte 256 kByte 256 kByte Program data of which Markers 4 kByte 8 kByte 16 kByte 4 kByte 8 kByte 16 kByte The XC CPU XV types have an additional 64 kByte flash memory for text Retain data Task The task of the CPU is to generate output signals from the incoming local and central decentralized signal in accordance with the application program Input output signal can be for instance digital or analog signals commands from the text display output to the text display connections to the programming system connections to the CANopen bus interface connections to fieldbus modules if present connections to intelligent signal modules if present 1 Only with XC CPU XV Use of the CPU types XC100 Text display XV 101 CPU types K42 K84 XC CPU101 J XC CPU101 XV JA JV J 10 10 MN05003004Z EN Surface mounting Px GPIO j my 80C164 SAAN i SPI m 4_ FLASH XV Z LCD 1 TON tent reet Eee dee eee Panel t UART Figure 7 Block diagram of the XC CPU101 D State indication RUN Stop SF 2 Operating mode selector switch Multimedia card 4 Programming device interface RS232 on XC CPU101 CANopen fieldbus interface 6 Voltage monitoring I O bus inte
28. 4 Program and declaration window gt Create the declaration and the program as shown in the following diagram and then compile the project XSoft beispiel 1gb pro File Edit Project Insert Extras Online Window Help SAC 3 Eie rni PLC PRG PRG IL 0001 PROGRAM PLC PRG Input 0 AT 1x0 0 BOOL Input 1 AT IX2 7 BOOL Output 0 AT 9500 3 BOOL LD Input AND Input 1 ST Output 0 Implementation of POU Rea Implementation of POU dCounter VriteCounter Lin 5 Col 27 ONLINE OV READ Figure 75 Compiled program gt Load the project into the controller gt Test the project 54 10 10 MN05003004Z EN 10 10 MN05003004Z EN 7 Programming via CANopen network Routing Routing is the capability to establish an Online connection from a programming device PC to any desired routing capable control in a CAN network without having to directly connect the programming device directly with the target PLC It 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 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 has the advantage that a PLC connected to the programming PC can access all routing capable PLCs on the CAN bus Y
29. CAP E 25 Multimedia card 2 0 cece eee eee eee 11 MAL RE SE EE TCP IP connection for routing 000e 55 N s n b PRECES MEN REN DUET x Terminal assignments 00 cece eee ees 9 Peu Meee eee aaa eae neuen quiae Test and commissioning 0cc eee ee eee 20 0 Operating mode selector switch nuanua 11 Uneven Word addresses 23 Operating states TWO EE E E E E 41 Uninterruptible power supply 41 Outputs Addressing 43 E Ventilation Joss uc tus oder etam ed ee Shen ad usd 17 P Parameterisation a a a a a a a A a a E S A 21 Versions CPU o oo eese 10 Program processing s s s suana 25 Program run interrupted n ananunua 20 Program transfer n anaua cece e eee eee 41 Warm start LLL LLL LLL LLL Lulu 20 Programming cable for RS232 interface 45 Wine ie de EL 17 PSU e MR a a oR RA e A a 7 Wiring example Power supply of the digital inputs outputs 18 Power supply unit 20 00 cee ee eee 18 R Real time clock du rr Paw ad ce 15 Wold addresses NeVeR ecce eter 43 Resets c disi Loic Leid be otka Saleh dd Locus Maki 21 Residual cycle 1 cc cece cece ee eee eens 41 RM5plug 6 eee eee e 12 XC100 configuration 0 eee eee eee ee 50 RS232 interface 12 XIOC modules ccc LL 7
30. Handle Return value of the SysComOpen function ComSettings Pointer which points to the memory range in which the interface parameter is stored SysComSetSettings Return value TRUE if the interface has been parameterized successfully otherwise FALSE 10 10 MN05003004Z EN 10 10 MN05003004Z EN Demands placed on the functionality of the transparent mode Example The example opening a text output and closing of the RS232 interface with the XC100 LA ox 0001 PROGRAM PLC PRG DOO2 VAR dwSioHandle DWORD OpenTrigger F_TRIG CloseTrigger F_TRIG WriteBuffer STRING 26 nvVriteLength DWORD typComSettings COMSETTINGS Input 0 BOOL Input 1 BOOL typComSetSettings BOOL I 0002 OpenTrigger CLK Input 0 0003 IF OpenTrigger Q TRUE THEN 0004 dwSioHandle SysComOpen Port C0M1 0005 IF dwSioHandle 0 THEN 0006 typComSettings typBaudRate Baud 19200 4800 9600 19200 0007 38400 57600 Bit s 0008 typComSettings typDataLength Data_8BIT 7 8 Bit 0009 typComSettings typPARITY NO PARITY NO ODD EVEN Parity 0010 typComSettings typPORT COM1 COM1 XC100 0011 typComSettings typStopBits ONE STOPBIT 1 2 StopBit 0012 SysComSetSettings dwHandle dwSioHandle 0013 ComSettings ADR typComSettings 0014 END IF 0015 WriteBuffer End ofthe transmission text 0016 END IF 0017 Closing ofthe interface 0019 CloseTrigger CLK
31. M 3 interface Table 21 Parameters of the SysComWriteControl function dwHandle Return value of the SysComOpen function Control COM 1 Function discontinued COM 2 COM 3 TRUE write command on the control lines cables of the hardware interface SysComReadControl COM 1 Function discontinued COM 2 COM 3 Feedback TRUE read command was successful FALSE read command was not successful Automatic closing of the interface The transparent mode is automatically ended by the operating system with a PLC state change of the XC100 to STOP The interface is reinitialised with the interface parameters last used 69 70 10 10 MN05003004Z EN 10 10 MN05003004Z EN Appendix Compatibility e The compatibility for older operating systems of the The functional range of the XC CPU101 is dependant on the XC101 is guaranteed ents t te hardware HW the installed operating system BTS and the Due to the modified control configuration with existing version of the programming software projects it might be necessary that the control configuration may need to be re entered The following overview informs you about the functionality in e f a project with a new control configuration is loaded dependence on the hardware BTS and easySoft CoDeSys versions onto an XC101 with an older operating system version only the functions of the olde
32. M variables Data that are remanent for a cold start VAR RETAIN Persistent are not supported Remanence non volatility of the data is guaranteed when the PLC is switched off if a battery is inserted If it was not possible to finish a cycle that was being processed because of a supply interruption then the data will not be consistent since the interruption could have occurred at any point of the cycle When the voltage supply recovers the residual cycle will not be completed The control starts according to the set start behaviour If this is to be prevented appropriate measures must be taken as part of the engineering One solution for this problem is an uninterruptible power supply with additional accumulator buffering Program transfer The transfer of an application program always takes place via the battery buffered SRAM area in the controller Afterwards a backup can be created on the multimedia card by using the Create boot project command A program backup can only be created while the system is in the HALT state The internal FLASH memory of the CPU cant be used as storage for a program backup Operating states In the following overview you will find the state definitions of XC100 The LED displays of the corresponding states are also detailed State Display Definition RUN STOP SF System test off off System test in progress System update on on System update in progress
33. OM 3 interface Table 20 Parameters of the SysComReadContro function dwHandle Return value of the SysComOpen function Control COM 1 Function discontinued COM 2 COM 3 TRUE read command on the control lines cables of the hardware interface SysComReadControl COM 1 Function discontinued COM 2 COM 3 TRUE read command was successful FALSE read command was not successful 10 10 MN05003004Z EN Demands placed on the functionality of the transparent mode SysComWriteControl function With the integrated RS232 interface of the CPU101 the control cables lines are not available Therefore the SysComWriteControl module is not to be used for this interface The XIOC SER hardware interface module has control interface lines available This allows the SysComWriteControl module write access to the control interface lines of the COM 2 and COM 3 interface CITRUS umi XC10 een aR FUNCTION SysComwriteControl BOOL Requires Operating System Version gt v2 00 D MAR INPUT O dwHandle DWORD Control POINTER TO COMCONTROL SysComClose FUN END VAR SysComGetVersion1 000 FUN SysComO pen FUN SysComRead FUN SysComReadControl FUN SysComSetSettings FUN SYSCOMWRITECONTROL SysComWrite FUN dwHandle DWORD SysComWiriteControl BOOLI Control POINTER TO COMCONTROL Figure 97 Write access to the control interface lines of the COM 2 or CO
34. PROGRAM PLC PRG O002 VAR B003END VAR Lin 1 Col 1 ONLINE DV READ Figure 68 Configure XC100 controller Double click on the directory Controller configuration Another window is opened PLC configuration XSoft Untitled File Edit Project Insert Extras Online Window Help ini x als IS ael i e a E Fy E Global Variables Resources library Counter lib 18 1 CJ library ATCLib lib 18 1 library Standard lib 7 6 library SYSLIBCALLBA i Library Manager EA Log Parameter Manager E PLC Browser FEE PLC Configuration Sampling Trace an Target Settings i3 Task configuration A Watch and Receipt M fff PLC Configuration j HAConfiguration XC CPU101 CB4K 8DI BDO tings Other Parameters Automatic calculation of addressesIV Check for overlapping addresses v O_O V READ Figure 69 Basic configuration of the XC100 settings gt Click on the register card Additional parameters A window appears with the default values for the XC CPU101 C64K 8DI 6DO 51 Creating a sample project XSoft Untitled File Edit Project Insert Extras Online Window Help 10 10 MN05003004Z EN sll x BSB Al lso H 2 24q Balsa Global Variables library Counter lib 18 1 library RTCLib lib 18 1 AT QB Settings Other Parameters m Settings Baudrate 38400 library Standard lib 7 6 li
35. Switch on OK off off System test finished without error Switch on not OK blinks blinks System test generated an error NOT READY off on No application program present STOP blinks off Application program loaded PLC in STOP state RUN on off Application program loaded PLC in RUN state STOP RUN with on on General error general error diagnosis message diagnosis available message 41 42 Program processing and system time 10 10 MN05003004Z EN Limit values for memory usage The data memory of the XC100 is divided into memory segments The segment sizes are shown in figure 54 The global data utilises multiple segments The required amount can be specified to suit the size of the loaded program The segment size for the different control types can be found under Target Settings gt Memory Layout Target Settings Configuration Target Platform Memory Layout General Network function r Size Code 16 40000 256 KB Global r684000 15 KB per segment number of Memory r684000 16 KB segments Input 164000 16 KB Dutput 1684000 15 KB Retain i684000 16 KB Figure 54 Segment size of the XC CPU101 C256k The hexadecimal values of the other PLC types must be converted to decimal values In order to ensure that you use the available memory for the global data in an optimum and efficient manner we recommend that you make the following settings wh
36. Sys manual MN05010002Z EN previously AWB2786 1456GB in the Clock modules RTCLib lib section i Library Manager eT RTCLib lib 18 11 03 08 29 08 a Dat S visu Glob Figure 34 Function blocks of the RTCLib lib 27 28 Program processing and system time SYSLIBCALLBACK LIB library The SYSLIBCALLBACK LIB provides defined callback functions for activation of run time events e g logon and logoff of the event functions The description of the library can be found in the programming software manual MN05010003Z EN previously AWB2700 1437GB and in the Library Online help of the programming system tbr Yano MICE YY SLIBCALLBACK LIB 18 11 03 SysCallbackRegister FUN SysCallbackUnregister FUN POUs 4 Dat Figure 35 Functions of the SysLibCallBack lib SysLibSem library The SysLibSem library provides functions to generate and use Semaphore an enclosed information medium which cant be interrupted for the synchronisation of tasks Semaphore prevents simultaneous access to critical data which is used by multiple tasks If a task accesses a certain area the mechanism prevents that other tasks access the same area simultaneously Only after the task authorised for access has ended access is it possible for another task to access this area The description of the functions can be found in the programming software manual MN050100032Z EN previously AWB2700
37. Transfer OS to PLC XC CPU101 C256K 8D1 6D0 Current OS Version V03 03 Build 3035 m File Information Targettype n XC CPU101 CxxK 8D1 6D0 Derr OS Version in file 0 03 03 Build 3035 Part 2 of 2 OS successful transfered M Status Download Operating System y Programming Flash v Figure 26 OS successfully transferred to the PLC gt In this window click the Exit button After download of the OS into the PLC the Communication interrupted message may appear as the PLC is rebooted after every download of the OS Renewed login is required after each reboot As soon as you have logged on the following message appears No program on the PLC Should the new program be loaded The program is loaded after you have acknowledged the question with Yes You can then create the boot project Updating the operating system 0S Transferring the operating system 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 to the PLC on page 22 Transferring the operating system from the MMC into the PLC Switch the PLC off and on The transfer can take more than 30 seconds as the CPU must be booted several times Do not interrupt the process e g by switching off the supply voltage Update of furthe
38. UN see section Interrupt Processing see section Direct Periphery Access Function 8 Pous A Dat Figure 40 Functions of the XC100 Util lib You can find the descriptions of the function blocks in the manual Function Blocks for easySoft CoDeSys MN05010002Z EN previously AWB2786 1456GB Direct peripheral access The Direct peripheral access function enables access directly to the local and central input and output signals of the control The I O access does not occur via the input output image The local and central input and output signals you can find the input and output signals of the CPU and the centrally expanded XC 100 control with the XIOC signal modules XIOC signal modules which can be integrated via a bus system can t be accessed via the Direct peripheral access Table4 Direct peripheral access overview Addressing is dependent on the slot number 0 to 15 of the signal modules Further differentiation within the slot exists and relates to bit number 0 to max 63 of the Inputs Outputs Depending on the functionality of the XIOC signal modules access occurs as a bit word or read write operation The access parameter indicates the table 4 The inputs outputs which are required for Direct peripheral access are physically connected in the same manner as normal inputs outputs Module 1 0 bit access 1 0 word access 1 0 slot Read Write Param Module Read Writ
39. UN RIGHT FUN RTC FB TOF FB TON FB TP FB Trigger EJ F_TRIG FB E R_TRIG FB 3 Dat S visu 9 Glob Function blocks and functions of the Standard lib Figure 30 10 10 MN05003004Z EN XS40 MoellerFB lib You can find the descriptions of the XS40_MoellerFB in the Function Blocks for easySoft CoDeSys manual MN050100022Z EN previously AWB2786 1456GB Bi x MollerFB lib 4 6 02 15 16 10 Mi4netDP16 FB Ml4netDP32 FB v4 MV4netDP38 FB MV4netDP70 FB tg DataScale FB IEEE To Real FB Real To IEEE FB DateAndTime DATconcat FB DateConcat FB DateSplit FB DAT split FB TimeConcat FB TimeSplit FB TODconcat FB TODsplit FB MS_TimeFalling FB MS_TimeRising FB S_TimeFalling FB 5 TimeRising FB TimeGenerator FB TimePulse FB 8 PoUs 3 Dat s visu Glob Figure 31 Function blocks of the XS40_MoellerFB lib Libraries of the Lib CPU101 Libraries which are required for the XC100 target system are compiled together in the Lib CPU101 library 1 1 1 1 1 1 21x Lookin Gj Lib_CPUtO1 z e c Ee a 35_CanDrv A COUNTER 1 a XC100_SysLibCan a 35_CanOpenDevice a RTCLib ai C100 SysLibCom j 35 CANopenManager s SysLibCallback a xc100 Util a 35 CANopenMaster is SysLibsem i35 CanOpenNetVar a visu a CANopen Ltilities a XC100_File File nam
40. actors 0 eee eee eee eee 17 g a prog ple proj UE S RNC acs Soke Sexe Sopacaaeiin 21 Interr pts i omoes ete dete dete DEW cased s 34 yc Cycle time monitoring 0 00 cece eee eee 25 78 Index 10 10 MN050030042 EN J UOT uid iore de ahead bch ti per ee bb e ahs 25 Segm tits xoa coe testes estet ste es Yok iet s NN 42 Select POU type ooo odere coo divenire dive des 50 Shielding 3 22 rrt rentre retener 17 L Layout of UNISA ri E R o A ES 17 Single cycle mode CERNERET NM 20 LED indicators 4 Sg a SRI TE ua TRA TE Ce A OR Ce he CR Ce On E TED ede 9 Single step mode Mio iO EVER AO RA AO QUA RE Aron Sb DUNE a 20 Lightning protection 6 1 sees eee eee eee ees 18 Start behaviour at Power On 000eeeee 21 Loading the operating system 0 005 22 Startup behaviour a sd ba duae vds ia taraen 19 20 Status indication easySoft CoDeSys 20 Stop behaviour 0 00 cece eee eee 20 M Markers Addressing c cece eee eees 43 Supply interruption cccccceeeseeeeees Mol LESE Cn Od E LEM d 5 Suppressor circuitry for interference sources 17 Memory usage limit values 2000000 42 siwitch otf babaviaur 20 Memory application program lisse 10 SCC N E AT T a OIE INC 6 Monitoring system voltage nnana nananana 10 ee libr ries eee a ui deat eeu ape 25 Mounting position ccc cece eee eae 17 eh rH
41. alue setting occurs on the dwTimerTickUS input The minimum value is 500 the maximum value is 2500000 microseconds If the upper or lower limit value is exceeded on the dwTimerTickUS function module input the function call returns FALSE as the feedback value and the timer is not started The setpoint value is accepted with the start of the timer and can not be modified for the run time The linking of the timer interrupt with the respective IEC program occurs as with the IO interrupts via Task configuration gt System evento The entered interrupt function is executed immediately as soon as the interrupt occurs The running IEC program cycle can be interrupted at any point The timer interrupt can also itself be interrupted by higher priority system interrupts e g as with CAN Cycle time monitoring is active during execution of the timer interrupt Cycle time monitoring is orientated exclusively to the value entered for the maximum program cyde time If very frequent timer and IO interrupts occur they can lead to the program cycle time being exceeded If the program cycle time is exceeded the XC CPU101 changes from the RUN to the STOP operating status The Timer interrupts can be inhibited and enabled from the user program Use the Disablelnterrupt and Enablelnterrupt functions for this case Program processing and system time DisableInterrupt With this function you disable deactivate a parameterized physical
42. brary SYSLIBCALLBA Library Manager Ey Log j EMPTY E j EMPTY E j EMPTY E m Interrupt Sources F 10 0 none zi Start Behaviour WARMSTART J EMPTY E EMPTY EMPTY EMPTY Parameter Manager j PLC Browser IPE PLC Configuration X Sampling Trace em Target Settings r Maximum Cycle Time Max Cycle Time 20 1000ms o F 10 1 none x F 10 2 none x E Task configuration Q Watch and Receipt M Update Operating System Start g 10 3 none Requires Operation System gt 2 00 Figure 70 Basic configuration of the XC100 additional parameters gt To display the I O configuration click on the plus sign in front of the directory XC CPU101 C64K 8DI 6D0 The local inputs and outputs integral parts of the CPU are already configured e AT 96IBO Byte Local Inputs e AT 96QBO Byte Local Outputs You can also set the parameters for up to 15 central signal modules The slots EMPTY SLOT are wildcards for central expansion of the signal modules fff PLC Configuration ini x a Configuration XC CPU101 C64kK 8DI 6D0 l AT 961B0 BYTE Local Inputs CHANNEL I AT QBO BYTE Local Outputs CHANNEL Q g EMPTY SLOT SLOT g EMPTY SLOT SLOT jj EMPTY SLOT SLOT g EMPTY SLOT SLOT g EMPTY SLOT SLOT g EMPTY SLOT SLOT g EMPTY SLOT SLOT g EMPTY SLOT SLOT j EMPTY SLOT SLOT
43. cable enters the switchgear cabinet 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 These measures are equipotential bonding earthing 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 Plant Wiring examples gt You can find wiring examples for the XI OC modules in the manual Hardware and Engineering XI OC signal Modules MN05002002Z EN previously AWB2725 1452GB 10 10 MN05003004Z EN PSU 0 0 O 24V 0VDC 24 Vo 0 V DC Voltage supply of CPU101 Voltage supply of the i i local digital inputs outputs 1 XC CPU101 CxxK 8DI 6D0 Figure 18 Wiring example for the supply section D Main switches 2 Circuit protection device 24 V DC supply voltage Earthed operation In floating i e unearthed operation an isolation monitor must be used IEC 204 1 EN 60204 1 DIN EN 60204 1 24 V DC line filter ensur
44. cal inputs outputs 7 Task 7 Surface mounting 8 Connecting interrupt inputs 9 Local bus expansion with XIOC BP EXT 10 CPU 10 Task 10 Use of the CPU types 10 Surface mounting 11 LED status indicator 11 Operating mode selector switch 11 Multimedia Card MMC Memory card 11 Programming device interface 12 CANopen interface 14 Real time clock 15 XC CPU101 XV 15 Battery 15 CPU installation 16 Detaching the CPU 16 2 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 Wiring examples 18 PSU 18 Power supply of the digital inputs outputs 18 3 CPU operation 19 Startup behaviour 19 Switch off behaviour 20 Start behaviour 20 Stop behaviour 20 Cold start 20 Warm start 20 Test and commissioning 20 Breakpoint single step mode 20 Single cycle mode 20 Forcing 20 Status indication easySoft CoDeSys 20 Contents 10 10 MN05003004Z EN Programreset 21 Warm reset 21 Cold reset 21 Full reset 21 Program parameterization 21 Maximum program cycle time 21 Start behaviour at Power On 21 Creating and transferring a boot project 21 Create boot project after online change 21 Updating the operating system OS 22 Transferring the operating system from the PC to the PLC 22 Transferring t
45. ctor cross section and the number of bus users connected The following table includes values for the bus length in dependance on the cross section and the connected bus users which guarantee a secure bus connection table corresponds with the stipulations of the ISO 11898 10 10 MN05003004Z EN Table 3 Cable cross section bus length and number of bus slaves conform to ISO 11898 Cable cross section mm Maximum length m n 32 n 64 n 100 0 25 200 170 150 0 5 360 310 270 0 75 550 470 410 n number of connected bus users If the bus length is greater than 250 m and or are more than 64 slaves connected the ISO 11898 demands a residual ripple of the supply voltage of s 5 As the bus cable is connected directly to the COMBICON connector of the CPU additional details concerning stub lines are not required The bus users are configured in the PLC Configuration window of the CPU in the programming software Cable recommendation LAPP cable UNITRONIC BUS LD Real time clock The XC100 features a real time clock which can be referenced in the user program via the functions from the SysLibRTC library The following functions are possible e Display of the battery charge state e Display mode for hours 12 24 hour display e Reading and setting of the real time clock A description of the functions can be found in the SysLibRTC pdf file FortheXC100 the GetRealTimeClock evaluation of the
46. d is physically present or a different module A module that is not present will not have any effect on the start of the application program but if the module is a different type the start will be prevented When the application program starts a distinction is made between see also the following sections e Cold start e Warm start Stop behaviour The processing of the application program always halts at the end of a program cycle Cold start A cold start is initiated during the initial start after loading a program to the PLC and after every Cold reset During this start all the program variables are set to their initialisation values and the program is started Warm start All further starts of the loaded program as well as after Warm resets are warm starts The variables that were declared with RETAIN retain their values the other variables are set to their initialisation values and program is started Test and commissioning The PLC supports the following test and commissioning features Breakpoint single step mode Single cycle mode Forcing Online modification Status indication Power Flow Breakpoint single step mode Breakpoints can be set within the application program If an instruction has a breakpoint attached then the program will halt at this point The following instructions can be executed in single step mode The cycle time monitoring is deactivated VAN Caution At
47. dependent of the Check for overlapping addresses setting If you assign an uneven address to a word addressable module in the entry field address e g IB3 the PLC configurator automatically shows the following even word address IW4 fff PLC Configuration inl x E ifgConfiguration XC CPU101 C 5 AT IB0 BYTE Loca t AT QBO BYTE Loc g EMPTY SLOTISLOT EMPTY SLOTISLOT Base parameters Module id 25857 Node number Input address IB3 Figure 57 Uneven address Address range Addresses can only be assigned within the valid ranges The range details can be found under Target Settings gt Memory Layout gt Size The addresses are checked during compilation It is essential to ensure that the addresses of the configured module are used referenced in the program If the address exceeds the range a fault is signalled PLC Input Output Markers Size Max Max Size Max Max Size Max Max Byte Word Byte Word Byte Word address address address address address address XC100 64k 2k 2047 2046 2k 2047 2046 4k 4095 4094 XC100 128k 4k 4095 4094 4k 4095 4094 8k 8191 8190 XC100 256k 16k 16383 16382 16k 16383 16382 16k 16383 16382 XC200 256k 4k 4095 4094 4k 4095 4094 16k 16383 16382 XC200 512k 4k 4095 4094 4k 4095 4094 16k 16383 16382 43 44 Program processing and system time Free assignment or modification of addresses of input output module
48. e Local Inputs AT 96QBO Byte Local Outputs XIOC 16DI SLOT You will now get detailed information with the physical address area of the inputs and outputs fff PLC Configuration ae a oue E Toe a o AT IBO BYTE Local Inputs CH AT IX0 0 BOOL Bit 0 AT IXO 1 BOOL Bit 1 AT 96 X0 2 BOOL Bit 2 Comment Local Outputs AT IX0 3 BOOL Bit 3 Base parameters ChanneHd 11 AT 9610 4 BOOL Bit 4 AT 9610 5 BOOL Bit 5 Class Q AT 9610 6 BOOL Bit 6 Size 16 amp 8 8 e a8 8 8 8 XIOC 185DI SLOT EMPTY SLOT SLOT EMPTY SLOT SLOT EMPTY SLOT SLOT EMPTY SLOT SLOT EMPTY SLOT SLOT ENSION SLOT SLOT 77 EMPTY SLOT SLOT Figure 73 Address area of the configuration 53 Creating a sample project Writing a program As described in the description of the task on Page 47 a logical AND combination is to be made between input 10 0 and input 12 7 The result of this logical operation is to be presented at output Q0 3 10 0 p AND 90 3 gt Select the POUs tab and double click on the PLC PRG element The declaration and program window will be opened XSoft XC100 Test04_pro 5 x File Edit Project Insert Extras Online Window Help alau eel Sala e Ce 1o 1 PLC PRG PRG ST 5 SE 0001 PROGRAM PLC_PRG Figure 7
49. e iib Files of type xsot Library lib Cancel Figure 32 Function blocks of the Lib CPU101 The libraries designated with 1 include functions for the CANopen fieldbus The CANopen bus expansion is described in the application notes regarding the CANopen bus The application notes provide information concerning the following topics Target system specific libraries XC XION Connection of the XION products AN2700K18GB XC XC Network variables AN2700K19GB Coupling multiple autonomous controls CAN Device via CANopen AN2700K20GB e Engineering of CAN stations AN2700K27GB Counter lib library The COUNTER library provides functions in order to integrate the XIOC 1CNT 100KHZ and XIOC 2CNT 100KHZ counter modules in the XC100 system The description of the COUNTER library can be found in the Function blocks for easySoft CoDeSys manual MN050100022Z EN previously AWB2786 1456GB in the Counter modules counter lib section ubrary Manager x Counter lib 18 11 0 J8 2 CounterControl FB CounterFlags FB ReadCounter FB WriteCounter FB i XIOC_IncEncoder FB POUs 3 Dat a visu ciob Figure 33 Function blocks of the Counter lib RTCLib library The RTCLib library provides read and write functions for access to the real time clock The description of the RTCLib library can be found in the Function blocks for easySoft CoDe
50. e 4 on page 29 xValue Input parameter from Bit type WriteBitDirect Display of the fault code see table 9 on page 33 10 10 MN05003004Z EN Direct peripheral access WriteWordDirect A word of an output module can be written directly with this function At the time of access the respective output image is also refreshed in addition to the physical output A further refresh of the output word occurs at the end of the cycle E Anl xl FUNCTION WriteWordDirect UINT Returnvalue 0 or Errorcode gt 0 VAR_INPUT uiSlot UINT Slot 0 15 5 uiOffset UINT Wordoffset 0 n w alue WORD Data value END VAR VAR END_VAR Disablelnterrupt FUN i E Enablelnterrupt FUN E ReadBitDirect FUN Readw ordDirect FUN WriteBitDirect FUN WRITEWORDDIRECT uiSlot UINT WritewWordDirect UINTI uiOffset UINT Value WORD Figure 44 WriteWordDirect function Table 8 Parameters of the WriteWordDirect function uiSlot Slot number of the signal module For possible parameters see table 4 on page 29 uiOffset Output word within a signal module For possible parameters see table 4 on page 29 wValue Input parameter from Word type WriteWordDirect Display of the fault code see table 9 on page 33 Error code with direct peripheral access All functions verify as far as possible for the validity of the call parame
51. e PLC has an OS from version 03 03 or higher Transferring the operating system from the PC to the PLC If an operating system OS is loaded into the PLC the existing operating system OS as well as the user program are deleted Procedure gt Insert an MMC into the MEM Card slot of the CPU gt Establish a serial connection via the RS232 interface of the PC with the XC100 see page 45 gt Activate the Other Parameters tap in the PLC Configuration window FE Puc configuration o UITSTEST B E E Settings Other Parameters r Settings Interrupt Sources Baudrate Start Behaviour none 38400 v WARMSTART v F bez gt Maximum Cycle Time F Igi none Max Cycle Time 20 1000ms 20 F mM m Update Operating System F 10 3 none gt Lon OrSystem gt V2 00 m R8232 CAN Routingsettings off CAN Baudrate 125KBaud v Nodeld 1 127 127 4 gt Figure 22 Start the download of the XC100 operating system gt Click on the Start button The Download window opens 10 10 MN05003004Z EN I Download operating system xj r PLC Information OS File v Transfer OS to MMC Transfer OS to PLE r File Information 3 Download 0 COM Port not initialized Status Download Operating System X Programming Flash xX Figure 23 Download Selection and informat
52. e Param Module Param XC CPU101 C256K 8DI 6DO V V DI 0 to 7 DO 0 to 5 V V 0 0 XC CPU101 C256K 8DI 6DO XV V V DI 0 to 7 DO 0 to 5 V V 0 0 XC CPU101 C128K 8DI 6DO V V DI 0 to 7 DO 0 to 5 V V 0 0 XC CPU101 C128K 8DI 6DO XV V V DI 0 to 7 DO 0 to 5 V V 0 0 XC CPU101 C64K 8DI 6DO V V DI 0 to 7 DO 0 to 5 V V 0 0 XC CPU101 C64K 8DI 6DO XV V V DI 0 to 7 DO 0 to 5 V V 0 0 XIOC 8DI V 0 to 7 V 0 1to 15 XIOC 16DI V 0 to 15 V 0 1 to 15 XIOC 16DI AC V 0 to 15 V 0 1to 15 29 30 Program processing and system time 10 10 MN05003004Z EN Module 1 0 bit access 1 0 word access 1 0 slot Read Write Param Module Read Write Param Module Param XIOC 8DO V 0 to 7 V 0 1to 15 XIOC 16DO V 0 to 15 V 0 1to 15 XIOC 16DO S V 0 to 15 V 0 1to 15 XIOC 12DO R V 0 to 11 V 0 1to 15 XIOC 16DX V 0 to 15 V V 0 1to 15 XIOC 8AI 12 4 0to 7 1to 15 XIOC 8AI U1 JV 0to7 1to 15 XIOC 8AI U2 JV 0to 7 1to 15 XIOC AT PT 4 0 to 3 1 to 15 XIOC 2A0 U1 2A0 2 V 0 to 3 1to 15 XIOC 4A0 U1 V 0to3 1to 15 XIOC 4A0 U2 V 0to3 1to 15 XIOC 2A0 U2 V 0to 1 1to 15 XIOC 4AI 2AO U1 J V Al 0 to 3 AO 0 to 1 1to 15 XIOC 2AI 1A0 U1 4 V Al 0 to 1 AO 0 1to 15 XIOC 1CNT 100KHZ 1to 15 XIOC 2CNT 100KHZ 1to 15 XIOC 2CNT 2AO INC JV V 1to 15 XIOC SER COM2 COM3 1to 15 XIOC NET DP M
53. ead from the PLC it is possible that the online connection will be interrupted after the transfer process has been completed Renewed connection is possible e f 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 e f a PLC receives a program without valid routing parameters Baud rate Node ID this PLC cannot be connected via a routing connection e 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 Addressing PLCs on the CAN Bus can be configured as a master or as a slave The PLCs are assigned with a Node ID node number address in order to uniquely identify them with the basis communication To use the routing function to access a target PLC you must assign a further routing ID to the routing and target PLC An RS200 or Ethernet interface can be used as a connection between the PC and XC232 Routing control Target controller Master Device PC Node ID 1 Routing ID n Routing ID k NR Node ID m RS232 Ethernet CANopen PE M52127 Figure 77 Routing via XC EC4 200 D Ethernet connection only possible wi
54. ecutable project in A Main memory project working memory Default settings SRAM SRAM 38 4 KB COM1 125 KB CAN RUN STOP switch E MCC Load project in main memory SRAM prepare cold start i RUN RUN READY NOT READY 20 CPU operation 10 10 MN05003004Z EN Switch off behaviour Switch off operating mode selector switch Run gt Stop leads to an interruption of the program run the end of the cycle Running of the program is ended immediately with a voltage dip switching via the PFI signal The outputs are switched off at the same time When the supply voltage returns the controller carries out a restart see section Startup behaviour Start behaviour The start behaviour of the controller depends on e the position of the local operating mode selector switch e the parameter settings for start behaviour that were set in the programming system With the CPU version XV visualisation CPU it is basically possible to operate the system from the system menu in the display The position of the operating mode switch determines whether the operating states changes from Stop to Run This change cant be forced by a corresponding choice within the programming system When a program starts a check is made whether the configured inputs and outputs match those that are actually present A check is also made whether the module that was parameterize
55. ed on a processor with an integrated CAN interface and include battery buffered flash and SRAM memories The CAN fieldbus interface is electrically isolated A battery is required for the operation of the data saving function The monitoring of the system voltage ensures that the data saving routine will be initiated if the voltage goes below a fixed preselected level In order to ensure that the stored energy required for the data saving routine is not used up by I O activities the 5 V system voltage for the I O modules is switched off The internal real time clock facilitates time and date dependent control functions The available operating and interface control devices are e LED display for RUN Stop and general error Operating mode selector switch RUN Stop e RS232 interface e g for programming device interfacing e CANopen interface as a fieldbus interface e Interface for a multimedia memory card MMC The CPUs for XC100 controllers are available in various different versions e XC CPU101 C64K 8DI 6DO XV e XC CPU101 C128K 8DI 6DO XV e XC CPU101 C256K 8DI 6DO XV 10 10 MN05003004Z EN C64K C128K and C256K are a measure for the size of the user memory XV designates a visualisation CPU and permits the direct connection to and control of a text display XV 101 In accordance with the size of the application program the following memory values apply XC CPU101 XV C64K 8DI 6DO C128K 8DI 6DO C
56. eee cence eee 56 DIAQnOStics zx arose ara mero at orata avin aes an ene reor gra 44 Addressing inputs outputs and markers 43 VIA GAN ieee oi en Pe RR 57 Automatic addressing 0 cece eees 43 Direct peripheral access Error COG ma ei ia em n tr bee 33 B Batten fans oa Sa e ES en ER nels Ren Ub st na 15 Battery buffet 1 3 os Aere edes 41 E Electromagnetic contamination sss 17 Battery change sneitt eini eee ee eee eee 15 EMBEINSSIQD 1e tote teu ree ae oe Be 52 Baud rate adjustment 0 0 0 12 Engineering ener etre RR E nt aoe 17 Baud ris 5 tiation anomie dininn eeeed emen cx 56 Erasing Baud rates for CAN connection 0005 57 Boot project uud wie ta e a yegvele tg lead 11 Block diagram Contents from the Multi Media Card 11 CPU eee toed teks es Retbine both hand Rares 11 Operating system 20 c cece eee 11 Power supply module 0 00 cee 8 Error code with direct peripheral access 33 Block size for data transfer 0 00 cee eee ae 55 Ethernet patch cable 0 0 cece eee eee ees 12 Boot project Generating Example project 0 cc cece cent eens 47 tr nsfeming z 2 mette eae te ad podes 21 Bootable project Create 2 ccc ccc sun 41 F POLGING EEEE E E E as d arc 20 Breakpoint eus secuta Ra SEE Rd SET cedet nak cae 20 Function blocks 5 12 o teen eat ta a 25 Browser commands cssc 40 PUNGEONS art NIARN A IRAI AAAA aA 25 Funct
57. en a new project is being created PLC type XC CPU101 C64K 8DI 6DO Number of data segments global 16 XC CPU101 C128K 8DI 6DO 12 XC CPU101 C256K 8DI 6DO 14 The number of segments is set to 1 by default The number of segments is changed as follows gt Select Project gt Options gt Compile options select the data segments field and enter the number of segments listed above for the respective control type LZ xi Category Load amp amp Save User Information Editor Directories Lo Passwords Source download Symbol configuration Project source control Macros Debugging Replace constants IV Nested comments Create binary file of the application Number of data IV Actions hide programs Macro before compile Macro after compile hn Figure 55 Memory management Change the number of data segments 10 10 MN05003004Z EN Addressing inputs outputs and markers Addressing inputs outputs and markers If you open the PLC configuration of a new project you will receive the current view of the default settings of the addressing In this setting the addresses are automatically assigned and address conflicts overlaps are reported MEE m Configuration XC CPU101 C256K 8D 6D0 H E AT IB0 BYTE Settings Other Parameters AT QB0 BYT J EMPTY SLOTIE g EMPTY SLOTIE A sr gt Aut
58. errupt source Execution of the POU is time monitored The parameterized cycle time is used for this cycle time The interrupts are enabled when changed to the RUN state and inhibited when changed to 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 rary Manager Figure 45 User events TYPE INTERRUPT_CHANNEL USER_INTERRUPT_CHANNEL_1 0 USER_INTERRUPT_CHANNEL_2 USER_INTERRUPT_CHANNEL_3 USER_INTERRUPT_CHANNEL_4 USER_INTERRUPT_CHANNEL_5 USER_INTERRUPT_CHANNEL_6 ALL_USER_INTERRUPTS TIMER_INTERRUPT_CHANNEL_1 ALL_LUSER_INTERRUPTS END_TYPE Interrupt prioritising In task configuration you can assign a physical interrupt input 10 0 10 1 10 2 or 10 3 to an interuppt channel Three channels are available Channels 1 to 3 have a high priority channels 4 to 6 have a low priority Lower priority interrupts can be interrupted by those with higher priority Frequent occurrence of an interrupt during a cycle can cause the cycle time to time out and result in a reset being initiated by the Watchdog User interrupts can be inhibited and re enabled from the program The functions Disablelnterrup and Enablelnterrupt are provided for this purpose A call parameter in the easySoft CoDeSys determines if an individual interrupt or all in
59. es 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 filter is not a component of the CPU and must therefore be ordered separately Type XT FIL 1 Article no 285316 Supplier Eaton Industries GmbH Dimensions on page 72 gt Technical data on page 76 1 Internal jumper 2 Additional PE connection via contact spring on rear Power supply of the digital inputs outputs 24V 0V Figure 19 Example for wiring the terminal block The wiring example indicates the wiring of a separate voltage supply for inputs outputs 10 10 MN05003004Z EN 3 CPU operation Startup behaviour After the supply voltage is switched on the CPU will carry out a self test and several CRC checks If a fault is detected it will remain in the Switch on not OK state gt chapter Operating states on page 41 After the tests have been successfully Power on PLC Start completed the operating system OS takes over the communication with the programming system as well as execution and debugging of the application program It only supports one application program BTS MMC z BTS PLC BTS MMC PLC I Application will be deleted 127 CAN Node ID Figure 20 Startup behaviour Boot projekt i Boot project MCC Ex
60. f 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 Additional documentation At different points in this manual references are made to more detailed descriptions in other manuals These are described with their title and documentation number e g MN04802001Z EN All manuals are available in PDF format If for some reason the manual is not supplied on the product CD it is available for download as a PDF file Go to http www eaton com moeller gt Support and enter the document number in the Quick Search field 10 10 MN05003004Z EN 10 10 MN05003004Z EN 1 Design of the XC100 The XC CPU101 controllers referred to below simply as XC100 have been designed for application in machinery and plant control systems These controllers are fitted with interfaces for connecting to a programming device RS232 and for linking to decentralized CANopen expansion units so they can form the core of a comprehensive automation system The XC100 controller has a compact design and can be fitted with either local or decentralized expansion The basic unit consists of Rack A CPU for control or visualisation with integral power supply and local inputs outputs e XIOC signal modules
61. from the source PLC and insert it into the target PLC Then switch the PLC off and on The target PLC can only operate with the new boot project when the source PLC has the same operating system as that which has generated the boot project section Updating the operating system OS on page 22 Create boot project after online change After an online change has been carried out you can create a new boot project Please note the following information easy sof cobesys ET A 1036 This boot project is generated after a preceding online modification Therefore it can only be used with the same operatina system version IF another operatina system version is to be used in the Future please generate the boot project immediately after a complete download of the program Figure 21 Download Selection and information 21 22 CPU operation Updating the operating system OS With the XC100 you have the possibility of replacing the operating system OS supplied with the PLC by a more recent one Eaton offers the most recent operating system version for download on the Internet Notall of the functions of the new operating system OS are supported by the older XC100 versions You have two choices available to transfer the operating system OS Directly from the PC to the PLC e From the PC into the MMC A transfer of the OS from the PC to the MMC of the PLC is possible only when th
62. ft XC100_test01 pro File Edit Project Insert Extras Online Window Help Interrupt prioritising 0 x Interrupt 1 PRG PLC PRG PRG Timer Interrupt PRG SALE HgS SECRE OO00PROGRAM Interrupt 1 Figure 49 PLC PRG and Interrupt 1 modules gt Changeover to the PLC Configuration and assign Interrupt 0 0 from the list field to input I1 Lin 2 Col 1 ONLINE DV READ 37 Program processing and 10 10 MN05003004Z EN system time fff PLC Configuration iali gjConfiguration XC CPU101 C128K 8D1 6D0 Other Parameters Settings r Settings Interrupt Sources Baudrate Start Behaviour fem gt wawsranr m f ioo F 101 Timer Interrupt r Maximum Cycle Time Max Cycle Time 20 1000ms 0 EN r Update Operating System 34 F 10 3 none sm Requires Operation System gt V2 00 R8232 CAN Routingsettings CAN Baudrate 125KBaud Node Id 1 127 127 Figure 50 Assign input 10 0 with interrupt 4 gt Changeover to the Task configuration and tick the box in the System events input field for IO Interrupt1 gt Now stay on the same row and mark the called POU field with the left hand mouse key and press function key F2 The Help Manager window opens in which all predefined programs are listed XSoft XC100 test 1 pro File Edit Pr
63. ge failure or shut down of the supply voltage with an open File service can lead to destruction of the multimedia card 11 12 Design of the XC100 Programming device interface The CPU is fitted with an RS232 interface This serial interface enables a point to point connection The handshake lines are not available Communication between the controller and the programming device takes place through this RS232 interface Physically the interface is an RJ45 socket Use the programming cable XT SUB D RJ45 for connecting XC100 The interface is not electrically isolated Interface assignment RS232 x 8 RxD 7 7 GND Jeg 4 5 DD 4 GND 1 3 3 B 7 B Data transfer rate modification gt Open the Resources gt PLC Configuration dialog field gt Activate the Other parameters tab gt Select the required data transfer rate in the Baudrate list field In the example this is 38400 kBit s fff PLC Configuration Settings Other Parameters 1 AT QB0 BYT r Settings m Interrupt Sources t si g XIOC 15DI SLC Bakaa Start Behaviour H E E em 57600 waRMSTART v F 10 9 none zl B i E 19200 a g EMPTY SLOTIE 38400 X g EMPTY SLOTIE F Tri Maia T 3 EMPTY SLOTIE m Maximum Cycle Time ig EMPTY SLOTIE Max Cycle Time 20 1000ms 20 F 10 2 none zi I d g EMPTY SLOT E dip CanMaster VAF F Update Operati
64. he operating system from the PC into the MMC 23 Transferring the operating system from the MMC into the PLC 23 Update of further XC100 PLCs 23 4 Program processing and system time 25 Cycle time monitoring 25 System libraries function blocks and functions 25 Library manager 25 Target system specific libraries 26 Lib Common 26 Libraries of the Lib CPU101 27 Direct peripheral access 29 Functions 30 Error code with direct peripheral access 33 Interrupt processing 34 Interrupt prioritising 34 Timer interrupt Bb Disablelnterrupt 36 Enablelnterrupt 36 Creating and integrating an interrupt function 37 System events 39 Browser commands 40 canload browser command 40 Data remanence 41 Program transfer 41 Operating states 41 Limit values for memory usage 42 Addressing inputs outputs and markers 43 Activate Automatic addresses 43 Check for overlapping addresses 43 Uneven word addresses 43 Address range 43 Free assignment or modification of addresses of input output modules and diagnostic addresses 44 Run Automatic calculation of addresses 44 Diagnostics 44 5 Establishing a PC XC100 connection 45 Establishing a connection via the RS232 interface XC100 45 Programming cable 45 Software easySoft CoDeSys 45 10 10 MN05003004Z EN Contents 6 Creating a sample project 47 Task 47 Procedure 47 Setting up a target system
65. hout local 1 0 W 6 Overvoltage protection Yes Protection against polarity reversal Yes External supply filter Type XT FIL 1 see the technical data on Page 76 Internal supply filter Yes Inrush current x In Not limited limiting only by a supply side 24 V DC PSU Output voltage for the signal modules Rated value V DC 5 Output current A 3 2 Off load stable Yes Short circuit rating Yes Electrically isolated from supply voltage No CPU Microprocessor Infineon C164 Memory Program code C64K C128K C256K program code C64K C128K C256K kByte 64 128 256 Program data C64K C128K C256K kByte 64 128 256 Marker and or retain data C64K C128K C256K kByte 4 8 16 Cycle time for 1 k of instructions Bit Byte ms 0 5 Interfaces Multimedia card Yes optional 16 MB or 32 MB to be ordered separately Serial interface RS232 without handshake line Transfer rate kBit s 38 4 Connection types RJ45 Electrical isolation No In the transparent mode Data transfer rate 300 600 1200 2400 4800 9600 19200 38400 57600 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 10 10 MN05003004Z EN Technical data XC CPU101 C K 8DI 6DO XV CANopen Maximum data transmission rate bit s Operating system version 2 0 maximum 250000 Operating system versio
66. interrupt by accessing it from the user program Library Manager 100 Ultil lib 18 11 0 FUNCTION Disablelnterrupt BOOL AR INPUT typChannel INTERRUPT CHANNEL END VAR CAN_BUSLOAD FUN Timer i B TimerlnterruptEnable FL E C3 xoc Disablelnterrupt FUN Enablelnterrupt FUN ReadBitDirect FUN ReadWordDirect FUN WiiteBitDirect FUN WriteWordDirect FUN Figure 47 Disablelnterrupt function Enablelnterrupt With this function the physical interrupt which was deactivated beforehand can now be re enabled as an active interrupt lt j FUNCTION Enablelnterrupt BOOL VAR INPUT typChannel INTERRUPT CHANNEL END VAR CAN BUSLOAD FUN B TimerlnterruptEnable FL C3 XIDC Disablelnterrupt FUN Enablelnterrupt FUN ReadBitDirect FUN ReadwWordDirect FUN WiiteBitDirect FUN Wiitew ordDirect FUN Figure 48 Enablelnterrupt function 36 10 10 MN05003004Z EN 10 10 MN05003004Z EN Creating and integrating an interrupt function The formal procedure for the provision and integration of an interrupt function is described in individual steps in the following In the example a H signal on input 10 0 should branch into an interrupt module and execute it gt Create a program module for the normal application PLC PRG for this purpose and a further module with the interrupt functionality Interrupt1 The following figure shows you both modules XSo
67. ion gt Press the Operating System File button and select the required operating system file hex The files opened last can be selected via the drop down menu Select file for transfer 2 x Suchen in C3 Version 3 03 Build 3035 3 c E C101_Update_ 03_03_Part_1 hex C101_Update_ 03_03_Part_2 hex Hex Files hex Y Abbrechen Dateityp Figure 24 Operating system file selection After the operating system file has been selected from version V03 03 you receive information concerning the target type and file version gt Click the Transfer Device button Transfer commences gt If a warning symbol appears in the Download operating system Status field the supply voltage may not be switched off 10 10 MN05003004Z EN x r PLC Information j OSFile v Exit PLI Transfer OS to MMC Transfer OS to PLC C Type XC CPU101 C256K 8DI 6DO Current OS Version V03 03 Build 3035 m File Information Targettype FI XC CPU101 CxxK 8D1 6D0 MEN OS Version in file 056 03 03 Build 3035 Part 2 of 2 Programming FLASH r Status Download Operating System y Programming Flash A Figure 25 Warning during download Wait for the following display Hj Download operating system x r PLC Information 3j DS ile v Exit PLC Type Transfer OS to MMC
68. ions XIOC Disablelnterrupt n n nannaa 36 C Cable TOUtITi oae tei E rectae odes rie 17 Enablelnteir pt c ree 36 CAN ReadBitDirect 0 cece eee eee 30 Device parameters 0 cc cece eee eee eee 57 ReadWordDirect ce coc oec vaay vay 31 Master routing settings 00000 56 WriteBitDirect 2 0 00 cee eee ee 32 CAN telegrams WriteWordDirect 0 cece eee eee 33 Receive send from user program 14 CoDeSys gateway server 2c cece eee 55 Communication parameters 0 00 00 0c 45 H Handshake lines iiie 12 Communication with the target PLC 00 57 Hardware timer oi xoxo te orte or an ee 25 Communications channel lssisessessse 58 Conect PC hos eese EE e abes 45 Conhec orodtamimina dedice mess eiue kis acea 45 l Ini dUCtoOlS 7 eee Lat ele dawg ule big tla ig a n es 17 prog g Connect text displays 0 0 cc cece 15 puts Addressing DRAIN UEM ge Aa Es Cannacion Insert input module in easySoft CoDeSys 52 Pean OMe CON oer cr mre m crm eat 9 Installation CPU 1 aaua 16 Control panel layout 17 Interface CPU module gaierad reniei anae rime te red yg 7 AOpen SAA E TA s CRC hecks ian rere e ch da 19 Interface asslaniment programing device inteniace 12 Create bootable project Interfacing Drs postOnline change cc cece 21 Communication programming device 12 Crtatina amrogram ample project sets ice hotness 54 Interference f
69. is stored in the variables which indicate to the parameterized pointer ptr wValue The pointer variable will not be changed when a fault occurs during processing Library Manager XC100 Ultil lib 18 11 i E TimerlnterruptEnable FL X XIOC i Disablelnterrupt FUN Enablelnterrupt FUN ReadBitDirect FUN VordDirect FUN WiiteBitDirect FUN Figure 42 ReadWordDirect function Table 6 Parameters of the ReadWordDirect function E inl x 2j FUNCTION ReadvVordDirect UINT Returnvalue 0 or Errorcode gt 0 VAR_INPUT uiSlot UINT Slot 0 15 uiOffset UINT Wordoffset 0 n ptr w alue POINTER TO WORD Pointer to read data value END VAR VAR READWORDDIRECT ReadvVordDirect UINTI ptr wValue POINTER TO WORD uiSlot Slot number of the signal module For possible parameters see table 4 on page 29 uiOffset Word offset within a signal module For possible parameters see table 4 on page 29 ptr_wValue Pointer to the variable value ReadWordDirect Display of the fault code see table 9 on page 33 31 Program processing and 10 10 MN05003004Z EN system time WriteBitDirect A bit of an output module can be controlled directly with this function The respective output image is refreshed in addition to the physical output Writing to the output is possible and not subject to limitation for only the local 6 outputs of the XC100 CPU with slot 0 The fol
70. ite DWORD dwTimeout DWORD SysComWrite DWORD SysComwriteControl FUN Figure 93 SysComWrite function Table 18 Parameters of the SysComWrite function dwHandle Return value of the SysComOpen function dwBufferAddress Address under which the output data is stored dwBytesToWrite Number of data bytes to be sent COM 1 max 190 bytes COM 2 3 max 250 bytes dwTimeout Parameter without meaning SysComWrite Return value Informs you about the amount of sent data Caution Test of the buffer address or the buffer size does not occur 65 66 RS232 interface in transparent mode COM 1 2 3 SysComSetSettings functions Interface parameters of the RS232 interface for the transparent mode can be set with this function Library Manager a mi x LibCom lib 18 11 03 FUNCTION SysComSetSettings BOOL Requires Operating System Version gt V2 00 MAR INPUT dwHandle DWORD ComSettings POINTER TO COMSETTINGS END VAR SysComClose FUN SysComGetVersion1 000 FUN SysComO pen FUN SysComRead FUN SysComReadControl FUN SysComSetSettings FUN SysComWite FUN SysComwriteContral FUN SYSCOMSETSETTINGS dwHandle DWORD SysComSetSettings BOOLI ComSettings POINTER TO COMSETTINGS Figure 94 SysComSettings function Table 19 Parameters of the SysComSettings function dw
71. king the CAN Master VAR module into the controller configuration This sequence will not take place automatically but must be explicitly carried out by the user Procedure Setting up a target system After starting easySoft CoDeSys create a new file gt Select the menu item File gt New gt Answer the query about saving the old project XSoft Ea 2 The project has changed Save it before closing No Cancel Figure 61 Save old project Select the target system In the example the system XC CPU101 C64K 8DI 6DO has been selected 47 Creating a sample project XC CPU101 C128K 8DI EDO XC CPUT101 C128K 8DI BDO XVv XC CPUT101 C255K 8DI 5DO XC CPU201 EC512K 8DI 5D XC CPU201 EC512K 8DI 5DO XV XC CPUBOT E1M XC CPUBOT E2M XC CPUBOT E 4M XC CPUBOT E 4M XV XVC100 v2 3 Figure 62 Select target system A double click on the target system leads to the following see figures The register tabs Target platform Memory layout and General just present information about the target system No settings can be made in these tabbed screens Target Settings E xj Configuration Target Platform Memory Layout Beneral Network functionality Visualization Platform Infineon C15x z r Code m DPPs m Libraries Stacksize DPP Code Tables 32 Y None z fisso reso Data Functions DEPT 5 eles z ata Jata length Huge 7 Huge z None a DPP2 fiso fis
72. lick the New button under local channels The New Channel window appears gt Select the channel in the Device window Serial RS232 Level 2 Route or TCP IP Level 2 Route gt You can assign a new name in the Name field e g Rout 232 gt Confirm with OK and return to the original window 57 Communication Parameters x m Channels pz fn Nam cma Communication Parameters New Channet Device IFE Cancel 35 Serial RS232 driver 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 R5232 Serial Modem Figure 82 Channel parameter setting You have now determined the parameters for the hardware connection between the PC and the PLC node ID 2 gt Call up the communications parameters in the Online menu once again and select the control which you want to program test gt Enter the number 3 as the target ID in the example The target ID is identical to the routing ID To enter the target ID click on the field in the Value column to the right of the term Target ID Enter the number 3 there and confirm with OK gt Log on and carry out the action PLC combinations for routing The following PLC support routing From gt XC100 Xc200 EC4 200 XC121 To Y XC100 x x x XC121 XC200 x x EC4 200 X x 1 XC
73. ll only change erratically about every 10 seconds Routing with the XC200 is possible from BTS version 1 03 02 The setting of the block size change of the value in the registry is explained as follows You can change this setting only if you have administrator rights on your PC Changing the block size gt Close all easySoft CoDeSys applications gt Close the CoDeSys gateway server About Help Change password Inspection ic wil Figure 76 Closing the CoDeSys gateway server gt Change the block size to the required value The following reg files are available in the easySoft CoDeSys installation directory to enter the block size in the registry Enters a block size of 20000hex 128 Kbyte default value in the Registry BlockSizeDefault reg Enters a block size of 1 000hex 4 KByte in the Registry BlockSizeRout reg 55 56 Programming via CANopen network Routing 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 20000hex 128 Kbyte the block size for routing is 1 000hex 4 Kbyte Notes e f large files are written to the target PLC or r
74. lowing limitations apply to slots 1 and above An individual output cant be written with a direct peripheral access Writing of an entire output word is always the case This means that the output image which is active at the time of the direct access will be output with the modified output bit Thus an output from other outputs within the output word occurs at the point of time when it is accessed and not at the end of the cycle For this reason with a direct peripheral access to an output bit within a program cyde the remaining outputs of the output word should not be used and evaluated A further refresh of the output word occurs at the end of the cycle Library Manager Ep inl xl C100_Util lip 18 11 03 M FUNCTION WWriteBitDirect UINT Returnvalue 0 or Errorcode gt 0 UINT Slot 0 15 UINT Bitposition 0 63 E CAN BUSLOAD FUN Data value Timer i i E TimerlnteruptEnable FL Bey xoc B Disablelnterrupt FUN 7B Enablelnterrupt FUN ReadBitDirect FUN ReadWordDirect FUN WriteBitDirect FUN uiSlot UINT WriteBitDirect UINT WriteWordDirect FUN uiBit UINT Value BOOL WRITEBITDIRECT Figure 43 WriteBitDirect function Table 7 Parameters of the WriteBitDirect function uiSlot Slot number of the signal module For possible parameters see table 4 on page 29 uiBit Output bit within the signal module For possible parameters see tabl
75. lt supply Only use power supply units complying with IEC 60364 4 41 VDE 0100 Part 410 or HD 384 4 41 S2 Deviations of the mains voltage from the 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 restart Devices that are designed for mounting in housings or control cabinets must only be operated and controlled after they have been installed 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 damage to persons or property 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 10 10 MN05003004Z EN Contents About this manual 5 List of revisions 5 Abbreviations and symbols 6 Additional documentation 6 1 Design of the XC100 7 CPU with PSU and local inputs outputs T 24 V PSU with lo
76. ma COMBAUDRATE ENUM ma COMCONTROL STRUCT ma COMDATALEN ENUM 83 COMPARITY ENUM 93 COMPORTS ENUM bai COMSETTINGS d Figure 87 Stop bits 62 RS232 interface in transparent mode COM 1 2 3 Parametric programming of the control lines cables of the COM 2 COM 3 interface The operation of the control lines cables is implemented with the ComControl module This function only serves the DTR DSR and DCD interface lines of the XIOC SER hardware interface module The ERROR LED available on the module is also operated via this module and controlled with the TRUE command If the respective interface lines are parameterized with TRUE read write access is possible Library Manager E BOOL BOOL CONTROL STRUCT eim 13 COMDATALEN ENUM BOOL 93 COMPARITY ENUM BOOL ma COMPORTS ENUM m COMSETTINGS STRUCT m COMSTOPBITS ENUM not used writeable only XIOC SER readable only XIOC SER not used not used readable only XIOC SER writeable Error Led only XIOC SER zaxi Figure 88 Parametric programming of the control lines of the COM 2 and COM 3 interfaces and the ERR LED Parametric programming of the interface In the ComSettings module the complete interface parameters of the COM 2 or COM3 interface are deposited and stored These parameters are activated by the call up of the module and assigned to
77. n 2 0 maximum 1000000 Potential isolation Yes Device profile According to DS 301 V4 PDO type asyn Cyc acyc Connection Plug in spring loaded terminal block 6 pole Bus terminating resistors External Station Quantity max 126 Watchdog Yes RTC Real Time Clock Yes Power supply of local inputs outputs 24 Vo 0 Vo Input voltage VDC 24 Voltage range VDC 19 2 to 30 observe polarity Potential isolation Power supply against CPU voltage Yes Overvoltage protection Yes Protection against polarity reversal Yes Input current per channel at nominal voltage mA type 3 5 Power loss per channel type 85 mW Switching levels as per EN 61131 2 Limit values type 1 low 5 V DC high 15 V DC Input delay Off On ms type 0 1 On gt Off ms type 0 1 Inputs Quantity 8 Channels with the same reference potential Quantity 8 Status indication LED Digital outputs Power loss per channel QX0 0 and QX0 5 W 0 08 Load circuits QX0 0 and QX0 5 A 0 5 Output delay Off gt On type 0 1 ms On gt Off type 0 1 ms Channels Quantity 6 Channels with the same reference potential Quantity 6 Status indication LED Duty factor ED 100 Utilization factor g 1 1 Observe the limitations with use of the XC CPU101 in an ABS enclosure gt table 1 on Page 8 76 Appendix 10 10 MN
78. ng System 10 3 Jnone Statt Requires Operation System gt 2 00 10 10 MN05003004Z EN Ani xl m R5232 CAN Routingsettings CAN Baudrate 125KBaud x Node Id 1 127 2 mimi Figure 8 Controller configuration Other parameters gt Close the Other Parameters window gt Select the menu Online gt Login 10 10 MN05003004Z EN Online CE had SHITEHESG KEGIN aint Dialog Figure 9 Menu Online The query as illustrated in gt figure 10 appears Figure 10 Query concerning program change gt Use a double click to select the field with the preset baud rate This field now has a grey background gt Double click this field once more to choose the Baud rate e g 38400 Bit s Confirm with OK gt Select the menu Online gt Log in again Once again you will see the following message CPU gt If you answer this query with Yes and you see the following error message shown below for a communication error the baud rates for XC100 and XSoft do not match The next steps show you how to set the baud rate Figure 11 Communication fault gt Acknowledge the error message with OK gt Select the menu Online gt Communication parameters gt figure 9 Now you will see the Communication window as shown in the next diagram Motorola byteorder No Figure 12 Communication parame
79. ntrol panel to keep interference as low as possible gt Avoid parallel routing of sections of cable in different power categories gt As a basis rule keep AC cable separated from DC cables gt Keep to the following minimum spacing atleast 10 cm between power cables and signal cables atleast 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 The generated electromagnetic fields cancel each other out Suppressor circuitry for interference sources gt All suppressor circuitry should be wired in as close to the source of interference contactors relays solenoids as possible Switched inductors should always have suppressor circuitry fitted Shielding gt 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 Engineering Lighting protection External lightning protection All cables that go outside buildings must be shielded Metal conduit is the best solution to this problem For signal cables use overvoltage protection devices such as varistors or other similar devices Install the protection devices as close as possible to the cable entry into the building at the latest there were the
80. oject Insert Extras Online Window Help alau aoak a Task configuration Global Variables E Task configurati oral library Counter lib 18 1 library RTCLib lib 18 1 library Standard lib 7 5 library SYSLIBCALLBA Called when program starts ii Library Manager Called when program starts with coldstart tg Log Called when program starts with warmstart ric s Called when program stops Raia Interrupt Channel 1 Interrupt 1 GE PLC Configuration IO Interrup Interrupt Channel 2 eX Sampling Trace IO Interrup Interrupt Channel 3 e Target Settings IO Interrup Interrupt Channel 4 I l O Interrup Interrupt Channel 5 O Interrup Interrupt Channel 6 X Watch and Receipt Timer Inte Timer Interrupt Channel 1 Help Manager Interrupt 1 PRG PLC PRG PRG Timer Interrupt PRG x User defined Programs Cancel ONLINE OV READ Figure 51 Parameterization of the interrupt source 10 10 MN05003004Z EN System events gt Select the Interrupt 1 PRG POU with a double click and then the POU Timer Interrupt PRG The following window appears XSoft XC100_test01 pro File Edit Project Insert Extras Online Window Help Als B m eescjes es caca 35 Resources H E Global Variables library Counter lib 18 1 library RTCLib lib 18 1 library Standard lib 6 library SYSLIBCALLBA Called when program starts ii Library Manager Called when program starts with c
81. oldstart Eg Log Called when program starts with warmstart E PLC Browser Called when program stops Interrupt Channel 1 Interrupt_1 GE PLC Configuration 7 Interrupt Channel 2 e Sampling Trace IO Interrup Interrupt Channel 3 f amp amp Target Settings O Interrup Interrupt Channel 4 Task configuration I IO Interrup Interrupt Channel 5 IO Interrup Interrupt Channel 6 i Timer Inte Timer Interrupt Channel 1 Timer Interrupt h Watch and Receipt Create POU Interface for Event Timer Interrupt TIMER INTERRUPT ONLINE OV READ Figure 52 Interrupt module completed task configuration gt Save the program created compile it and logon to the PLC and test the functions of the program modules which you have created System events Not only can a task call up a project module for processing a system event event can also call it up The system events which can be used for the purpose are target system dependant They are comprised of the standard system and the target system dependant events Possible events are e g Stop Start Coldstart Warm start IO interrupt Timer interrupt Online modification See also figure 52 The single step mode is not possible with program modules of the system events 40 Program processing and system time 10 10 MN05003004Z EN Browser commands You can directly access the states events in the XC100 with the Br
82. omatic calculation of addressesI Check for overlapping addresses v L1 Figure 56 Default setting of the addressing If you add a module to the PLC in the configurator the configurator will assign this module with an address Further modules are assigned with the next addresses in ascending order You can also assign the addresses freely However if you access the Automatic calculation of addresses function later the addresses are shown in reassigned ascending order Activate Automatic addresses The addresses are automatically assigned or modified if a module is changed or added This can occur with a centrally assigned module as well as a module which is a component of a decentral PROFIBUS DP slave or CAN station If you add a module the addresses of all the subsequent modules independently of the line are offset by the address value of the added module and the added module is assigned with an address Modules which are located in the configuration before the added module are not changed If you remove the tick in the Automatic calculation of addresses checkbox the addresses remain unchanged with modifications expansions Table 10 Address ranges Check for overlapping addresses If the check for overlapping addresses is activated addresses which are assigned twice will be detected and an error message is generated during compilation This setting should not be modified Uneven word addresses In
83. ons which are required for the entire XC target systems are contained in the Lib Common Furthermore this library contains the S40 typical function blocks which have been adopted from the PS40 system to the easySoft CoDeSys system Look in a Lib Common cet Ed3 a Analyzation lae check a Iecsfc STANDARD s SysLibTargetVisu a SysLibVisu x Util_no_Real a X540_MollerFB Files of type xSoft Library lib Cancel Figure 29 Files of the Lib Common Further information concerning the STANDARD lib and XS40 MoellerFB lib libraries can be found following this paragraph More detailed explanations of the other libraries are not undertaken they are explained in the MN05010003Z EN previously AWB2700 1437GB programming software manual and or in the Library Online help of the programming system 10 10 MN05003004Z EN Standard lib The IEC function blocks and standard functions are contained in the Standard lib The description of the function blocks and functions can be found in the programming software manual MN05010003Z EN previously AWB2700 1437GB and in the Library Online help of the programming system IITTLT ENS 6xi idard lib 7 6 02 09 26 00 Bea Bistable Function Blocks i RS FB SEMA FB E SR FB Counter amp CTD FB CTU FB CTUD FB String Functions CONCAT FUN DELETE FUN FIND FUN INSERT FUN LEFT FUN LEN FUN MID FUN REPLACE F
84. ou can determine in the project selection which controller you wish to communicate with This provides an easy way of controlling remote PLCs However the data transfer rate with routing connections is considerably slower than with direct connections serial or TCP IP 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 e The routing PLC and the target PLC must both support routing Both PLCs must be connected via the CAN bus The PLCs must both have the same active CAN baud rate e The valid routing node ID must be set on both PLCs 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 11 Table 11 Block size for data transfer Program file transfer Routing os OS OS OS lt V1 03 02 2V1 03 02 lt V1 03 02 V1 03 02 Block size 128 kByte 128 4 kByte Routing 4 kByte Default not possible 128 kByte Attention The program download with a block size of 4 KByte to a PLC with an operating system version earlier than V1 03 02 will cause faulty behaviour If a program download is performed the progress bar on the programming device monitor wi
85. owever not be permitted to exist over a longer period 10 10 MN05003004Z EN Terminal assignments nnna m m m m ooo oo00 10 1 10 3 10 5 10 7 Q0 1 Q03 Q0 5 0 Vo OV S 69 69 69 69 6969 G9 G9 Figure 4 Connections for PSU and local 1 0 10 0 to 10 7 local digital inputs Q0 0 to Q0 5 local digital outputs OVo 24Vo supply voltage for the local inputs outputs 0V 4 24V supply voltage to the processor unit 24 V PSU with local inputs outputs LED displays The LEDs indicate the signal status for the inputs and outputs An LED that is ON indicates a H level signal on the corresponding terminal 0 1 2 3 Inputs 0 0 to 0 3 4 5 6 7 g Inputs 0 4 to 0 7 E E E Outputs 0 0 and 0 3 Outputs 0 4 and 0 5 Figure 5 LEDs for the integral inputs outputs The two upper rows of LEDs show the signal status for the eight digital inputs of the CPU module 10 0 to 10 7 and the two lower rows show the signal status for the six digital outputs Q0 0 to Q0 5 Connecting interrupt inputs The inputs 10 0 10 1 10 2 10 3 can be used as interrupt inputs The L H edges are evaluated The interrupt inputs act immediately and independently of the cycle time for the application and they start the programmed Interrupt routines The program section which has been processed
86. owser command is called CAN Busload 51 Percent Baud rate 125 Kbaud Integration Time 504 ms fia uibrary manager 90000000 inixi XC100_Util lib 18 11 03 08 FUNCTION CAN BUSLOAD BOOL E 4 VAR INPUT r1 C3 POUs ES CAN Utilities DE El C3 Timer TimerlnterruptE nable FUN Ba x10 Disablelnterrupt FUN iB Enablelnterrupt FUN p_bBusload END_VAR VAR END_VAR p_dwintegrationTime POINTER TO DWORD With a bus loading of 75 percent or higher a warning appears ATTENTION HIGH BUSLOAD Caution 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 a function call for the CAN_BUSLOAD function block to determine the CAN bus loading from the user program is available POINTER TO BYTE ReadBitDirect FUN Readw ordDirect FUN WiiteBitDirect FUN p_dwintegrationTime POINTER TO DWORD CAN_BUSLOAD BOOLI p_bBusload POINTER TO BYTE CAN BUSLOAD WriteWordDirect FUN Figure 53 Function Can Busload 10 10 MN05003004Z EN Data remanence Data remanence The controller has a memory area for remanent data page 10 The variables declared with VAR RETAIN are saved in this area and are thus retentive during a warm start of the application program Caution This does not apply for I Q and
87. owser commands The Online description in the easySoft CoDeSys can be found at Resources PLC Browsep Command Description Command Description Get a list of implemented commands GetNodeld Output CANopen Node ID reflect Mirror current command line for test purposes SetNodeld Set CANopen Node ID mem Memory dump Syntax mem lt start addr gt lt end addr gt metrics Output PLC information memc As mem addresses are added to the start address of the reload Load boot project from the MMC on the PLC coneirange remove Erase boot project from the MMC memd As mem addresses are added to the start address of the mecum Formatting of the MMC data range tswitch Output switch positi pinf Output project information Sb dcs Musici ud Qr tbatt Output battery stat ppt Output module pointer table canta seiner ee getrtc Read out real time clock HH MM SS dpt Output data pointer table z setrtc Set real time clock HH MM SS pid Output project ID canload Displays the load of the CANopen fieldbus cycle Output cycle time canload browser command The canload function is contained in the XC100 Util lib They can be called up as browser commands With this command the current utilization of the CANopen bus is determined The data utilization of the bus is determined via and integration time and determined in relation to the CAN baud rate You will receive the following information after the br
88. r XC100 PLCs If you wish to transfer the new operating system to further PLCs insert the MMC into the PLC which also features an OS from V03 03 or higher The OS of the PLC is updated during the switch on process and a boot project is loaded into the PLC 23 24 10 10 MN05003004Z EN 10 10 MN05003004Z EN 4 Program processing and system time The application 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 physical outputs at the end of the cycle In addition all system activities carried out before or after the processing cycle Among these are e Communication with easySoft CoDeSys e Online modifications e Processing of the CANopen protocol stack etc As a result of the software architecture of the run time system timing jitter may occur between individual processing cycles Cycle time monitoring The cycle time monitoring monitors the cyclic task of the application program using a hardware timer If the time exceeds the parameterized time the outputs of the controller will be disconnected and the XC100 is put into the Stop state System libraries function blocks and functions You can use various system libraries with the respective functions and function blocks for your application Generally the following libraries are available after the target system selection e Standard lib e RICLib lib
89. r operating system are available for use Functionality Hardware version v01 v02 v04 From operating system version easySoft CoDeSys Version Basic functionality V1 2 lt V2 2 5 Rev B PRG default baud rate 57 6 kBit s Only V1 2 V2 3 1 PRG default baud rate 38 4 kBit s V1 3 V2 3 1 Multiple CAN users V1 3 V2 3 1 CAN Device V1 3 V2 3 1 Programming via CANopen Routing V1 3 V2 3 1 MMC access V2 0 E V2 3 1 Interrupt functionality V2 0 V2 3 1 RS232 interface in Transparent mode V2 0 V2 3 1 Peripheral direct access V2 0 V2 3 CAN direct access V2 0 V2 3 1 CAN baud rate up to 500 kBit s V2 0 V2 3 XI OC bus expansion with XIOC BP EXT V1 3 V2 3 2 Introduction of the CAN bus load canload V1 3 V2 3 2 Storage of text data bank on the MMC V1 3 V2 3 2 Storage of project information on the MMC V1 3 V2 3 2 System events warm and cold start V1 3 V2 3 2 Timer interrupt V1 3 V2 3 2 Serial interface module XIOC SER V1 3 V2 3 2 PROFIBUS DP M module V3 01 V2 3 2 SUCONET K slave V3 02 V2 3 2 Update of the MMC s operating system V3 03 V2 3 2 PROFIBUS DP S module V3 10 V2 3 2 Suconet K master module V3 10 V2 3 2 Diagnostics V3 10 V2 3 2 Free address specification DP V3 10 V2 3 2 10 10 MN05003004Z EN Appendix Dimensions XT FIL 1 line filter XC CPU101
90. r to the Stop position all outputs of the decentralized devices will be set to the 0 level 10 10 MN05003004Z EN Bus terminating resistors The ends of the network link must be terminated with 120 2 bus termination resistors Figure 14 Possible configuration of a CANopen bus with bus termination resistors Terminals 1 and 4 2 and 5 3 and 6 are internally connected Properties of the CANopen cable Use only cable approved for CANopen applications and with the following characteristics e Characteristic impedance 100 to 120 Q 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 In the following table standard parameters for the CANopen network with less than 64 CANopen slaves are listed table complies with the stipulations of the ISO 11898 Table2 Standard parameters for CANopen network cable according to the ISO 11898 Bus length Loop Conductor Bus Transfer rate resistance cross termination with cable length section resistor m mQ m kBit s mm Q 0 40 70 0 25 0 34 124 1000 at 40 m 40 300 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 26 0 75 0 8 150 300 gt 50 at 1000 m The length of the CANopen bus cable is dependant on the condu
91. rface XIOC 1 0 bus on module rack LED status indicator gt chapter Operating states on page 41 Operating mode selector switch The operating modes Stop and Run are selected by a rocker switch at the front of the CPU module Please note that the position of the operating mode selector switch sets the behaviour of the CPU The effectiveness of the software settings depends on the position of the operating mode selector switch If the selector switch is changed to the Stop position while the equipment is in the Run mode then the CPU will switch from the operating mode Run to the Stop state at the end of the cycle that is currently running The position of the operating mode selector switch is polled at the end of each cycle and the controller Switches to the selected state chapter CPU operation Multimedia Card MMC Memory card The multimedia card is used as an optional backup medium for the boot project and to save recipe data The operating system supports memory capacities up to a maximum of 128 MByte At present Eaton offers MMCs in the sizes 16 and 32 MByte with the type designations XT MEM MM16M and XT MEM MM32M To write data to the multimedia card just plug it into the corresponding MEM CARD slot in the CPU Use the command create boot project to transfer the project to the MMC CPU From operating system OS version 03 03 it is possible to transfer the operating system to the
92. rsion Table 13 Baud rates for CAN connection Operating System Version Baud rates V 2 0 z v2 0 10000 4 v 20000 v v 50000 4 v 100000 4 v 125000 4 v 250000 4 v 500000 JV 800000 V 1000000 4 To guarantee a fast data transfer the routing should be performed only with a CAN baud rate of at least 125 KBit s The ID for basis communication is defined in the CanDevice in the CAN setting tab figure 80 Communication with the target PLC fff PLC Configuration Base settings CAN settings Defau Node id 3 Device Type 0191 Baud rate 125000 IV Automatic startup r Node guard Figure 80 CAN device parameters ID and baud rate are transferred with the project download Example In the following example which is based on Figure 81 the procedure for access to a PLC program is explained CEN RS Figure 81 Diagnostics possibilities D XC100 with Node ID 1 2 XC200 with node ID 2 routing ID 127 3 PLC e g XC100 with node ID 3 and routing ID 3 You have connected the PC to the PLC with node ID 2 and want to access the target PLC with routing ID 3 gt Open the project of the target PLC whose program you wish to edit or test gt First configure the parameters for the hardware connection PC PLC Node ID 2 gt From the Online menu select Communication Parameters gt C
93. s and diagnostic addresses Depending on the module you can assign modify the input output and the diagnostics marker addresses In order to make the modifications visible in the PLC configurator it is necessary to click once on the PLC Configurator or to select another module after the address has been edited They will be accepted in all cases during compilation Run Automatic calculation of addresses With the Automatic calculation of addresses function which you can run either via the context menu or the menu bar all the respective addresses are recalculated If you are dealing with a bus master module the calculation is also carried out for the modules which are constituents of the slave on the bus line The freely entered addresses of subordinate modules are overwritten when the address of a higher level module is calculated If the addresses have changed and you wish to implement the Automatic calculation of addresses you must first of all activate the change Click first of all on the nodes to drop down the structure or set the cursor in the PLC Configuration field and press the left mouse button If you mark the Configuration XC CPU text and call the Automatic calculation of addresses all the addresses are recalculated Enter the addresses in an ascending order and in continuous blocks 10 10 MN05003004Z EN Diagnostics You can run diagnostics with the help of the diagnostics
94. s to help you learn how to use the easySoft CoDeSys software You create a project by creating a configuration and a program You can then test out the project after it has been downloaded The configuration is created in the easySoft CoDeSys configuration editor A distinction is made between local and central I Os The local digital inputs and outputs are integral parts of the CPU module implemented on the power supply board They are already pre configured in the configuration editor The central inputs outputs are implemented in the signal modules which can be joined up via the module rack Configure them to suit the requirements of the application The available XI OC signal modules can be used Connect appropriate CANopen fieldbus participants to the CANopen interface The basis for the configuration is the following hardware layout Feo c amp e5 9 e e e S e amp amp e5 e9 6 amp amp 9 X0 0 96QX0 3 1X2 7 Figure 60 Hardware layout for the sample project Task Make a logical AND linkage of inputs 10 0 and 12 7 on the XC100 The result of this logical operation should be presented at output Q0 3 The second step is to read in the inputs generate the outputs using a CAN Master Activate the appropriate CAN libraries before lin
95. so None z r Output paUs Heferences M LST Iv MAP p Jv LST with Addresses Default Cancel Figure 63 Target system settings target platform gt If a CANopen slave is to be integrated into the configuration click the Networkfunctionality tab and tick the Support network variables check box You will get a message that this target system supports the CAN network The Support network variables control box must only be activated if you wish to work with network variables When activated the libraries required for operation of network variables are added automatically This function is not required if you use a CAN Master CAN Device 48 10 10 MN05003004Z EN 10 10 MN05003004Z EN Procedure Target Settings fi XC CPU101 C64K 8D1 6D0 v Figure 64 Target system settings CAN network functions 1 gt Activate the Support parameter manager check box in order to view additional information concerning the index ranges The CAN relevant Parameter manager is only required for a CAN device Standard settings are available for this purpose which means that no modifications must be made i Target Settings XC CPU101 C64K 8D1 6D0 iei 1582000 1685fff Figure 65 Target system settings CAN network functions 2 gt Close this selection with OK gt Select the POU type Program and the programming language IL 49 50
96. ssor unit labelled 24V 0V and another 24 V connection for the local inputs outputs labelled 24VQ 0VQ Design of the XC100 Surface mounting Enable vec vo Figure3 Block diagram power supply unit Status indicator for I Os 2 Front connection terminals 3 Internal filter 4 Buffer XIOC I O bus module rack PFI Power Fail Interrupt The voltage connection 0VQ 24Vq is only for the supply voltage to the integral local inputs 8 and outputs 6 and is electrically isolated from the bus The 0V 24V voltage connection is internally filtered and buffered and fed to a voltage transformer which generates the required system voltages The internal power supply for the 5 V system voltage is designed so that the processor unit is supplied with the required current IN Caution When using the XC100 CPU and the XIOC Signal modules in an ABS plastic enclosure the limitations stated in table 1apply ABS enclosures are identified with ABS on the surface which faces the backplane 10 10 MN05003004Z EN Table 1 Limitations which apply when using the XC100 CPU and the XIOC Signal modules in an ABS plastic enclosure Fitted in Installation Current rating of the 5 V location system voltage of the internal 1 0 bus temperature Cl enclosure gt 40 C Use of the
97. terrupts 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 XC100 Util lib library This library must if not already done so be integrated into the library manager of the easySoft CoDeSys 10 10 MN05003004Z EN Interrupt prioritising Timer interrupt An interrupt channel for a timer interrupt is available in addition to the six different interrupt channels for inputs with interrupt capability The start condition and the setpoint value definition are application related in the easySoft CoDeSys The following illustration indicates the function and the parametric programming for the Timer Interrupt This function is contained in the XC101_Util lib lolx 8 FUNCTION TimerlnterruptEnable BOOL MAR INPUT xEnable BOOL TRUE Start Timer FALSE Stop und Reset Timer dwTimerTickUS DWORD Presetvalue in Microseconds END VAR SY POUs ES CAN Utilities B CAN_BUSLOAD FUN aA Timer Disablelnterrupt FUN Enablelnterrupt FUN ReadBitDirect FUN ReadWordDirect FUN WiiteBitDirect FUN B WriteWordDirect FUN TIMERINTERRUPTENABLE xEnable BOOL dwTimerTickUS DWORD TimerinterruptEnable BOOLI Figure 46 Function Timer Interrupt The setpoint v
98. ters Figure 13 Confirmation request after program change gt Again answer this query with Yes gt Select the menu Online gt Start gt figure 9 This puts the controller into the RUN mode The subsequent communication between the XC100 and the PC as the programming device will be made at the selected transmission rate 13 Design of the XC100 CANopen interface The CPUs can be connected to the CANopen bus via the electrically isolated ISO 11898 interface The connector has the following assignment Terminal Signal GND CAN_L CAN_H GND CAN_L 1 CAN_H Connector type 6 pole plug in spring loaded terminal block conductor cross section up to 0 5 mm2 Nw RUD N wl AJ ui o The CPUs can be operated on the CAN bus either as the network NMT master or as the NMT slave The CPU can be used to send receive CAN telegrams directly to from the user program An interruption on the CAN Bus will only be recognised when the respective CAN slave is monitored by the PLC Nodeguarding function Power supply The sequence in which the power supply of the individual CAN slaves is connected does not have an effect on the functionality of the CAN bus Depending on the parametric programming the PLC waits for the non existent slave or starts it at the time at which the slave is interfaced to the CAN network Start Stop behaviour If you set the operating mode selecto
99. ters 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 gt table 9 The data fields for the value transfer remain unchanged Table 9 Error code with direct peripheral access IO ACCESS NO ERROR data type IO ACCESS NO ERROR 0 No error IO ACCESS INVALID 1 Slot 0 or greater than 7 SLOTNUMBER IO ACCESS INVALID OFFSET 2 BitWord offset is too large IO ACCESS DENIED 3 Invalid access e g write access to input module read access to output module or access to non available address range offset too large IO ACCESS NO MODULE 4 No module available at the parameterized slot IO ACCESS INVALID VALUE 4 Result is not 0 or 1 with WriteBitDirect IO ACCESS INVALID _BUFFER 5 No or incorrect pointer to the output variables 34 Program processing and system time 10 10 MN05003004Z EN Interrupt processing In the XC100 it is possible to program and parameterize up to seven interrupt events Interrupts can be activated by e physical inputs 10 0 to 10 3 of the XC CPU101 e XIOC signal modules with interrupt features e TIMER_Interrupt The interrupt events listed in figure 45 are available If an interrupt occurs the runtime module executes the program organisational unit POU which is linked to the int
100. th XC200 10 10 MN05003004Z EN Table 12 Example for setting the Node Id Baud rate PLC Functio Node Routing Baud n ID ID rates T db Routing Master 1 127 125 KB 79 controller Target Device 3 54 125 KB 80 controller gt The following applies for device PLCs The Routing ID must not be equal to the Node ID Basis communication The exception is the XC100 with operating system V2 0 the Routing ID must be equal to the Node ID The Routing ID of the master XC100 XC200 can be set in the PLC configurator under the Other parameters tab f PLC Configuration lol xl Edid 4 Settings Other Parameters 2 h AT 918 Settinnas Interrupt Sources Counte EP AT WM Start Behaviour WARMSTART p Input 0 4 AT l 2 TCP CAN Routingsettings gt P3 AT Vv none v AT l ld 1 127 ars Medeldti 127 o roe 1 AT 36lv EAS Y Net Settings r Input 10 5 AT 96h none v AT 9G MI AT 96 none v AT CAN EASYNel cs E AT x Baudrate 125KB aud ig oe AT i 3 Configure Counter E AT ed Update Operating System Encoder Start All options only available AT 96C za system version gt V1 0 Figure 78 CAN Master routing settings XC200 The ID for basis communication is defined in the CanMaster folder in the CAN parameters tab Figure 79 fff PLC Configuration Configuration KC sa AT
101. the respective hardware interface Library Manager J TYPE COMSETTINGS STRUCT typPort Data types typBaudRate ll COMBAUDRATE ENUM typStopBits 913 COMCONTROL STRUCT aia 91 3 COMDATALEN ENUM END STRUCT 911 COMPARITY ENUM END TYPE m2 COMPORTS ENUM iii COMSETTINGS STRUCT m2 COMSTOPBITS ENUM Figure 89 Interface parameter of the COM 2 or COM 3 interface COMPORTS COMBAUDRATE COMSTOPBITS COMPARITY COMDATALEN Ii xi Enumeration COMPORTS y Enumeration COMBAUDRATE Enumeration COMSTOPBITS Enumeration COMPARITY Enumeration COMDATALEN 10 10 MN05003004Z EN 10 10 MN05003004Z EN SysComClose FUN SysComGetVersion1 000 FUN en FUN SysComRead FUN SysComReadControl FUN SysComSetSettings FUN SysComWrite FUN SysComWriteControl FUN Demands placed on the functionality of the transparent mode 15 x FUNCTION SysComOpen DWORD Requires Operating System Version gt v2 00 COMPORTS SYSCOMOPEN Port COMPORTS SysComOpen DWORD Port Nummer see Enumeration PORTS Figure 90 SysComOpen function Table 15 Parameters of the SysComOpen function Port Selection of the interface Parameter Specify the interface to be opened SysComOpen Return value 0 Opening of the RS232 interface was not successful Return value 0 Opening of the RS232 interface was successful
102. tings FUN SysComWrite FUN SysComWiteControl FUN dwHandle DWORD dwBufferAddress DWORD dwBytesToRead DWORD dwTimeout DWORD SYSCOMREAD SysComRead DWORD Figure 92 SysComRead function Table 17 Parameters of the SysComRead function dwHandle Return value of the SysComOpen function SysComClose Return value TRUE Closing of the RS232 interface was successful dwBufferAddress Address under which the read data is stored dwBytesToRead Limitation of the max number of data bytes COM 1 max 190 bytes COM 2 3 max 250 bytes dwTimeout Parameter without meaning SysComRead Return value Informs you about the number of read data bytes Caution Test of the buffer address or the buffer size does not occur 10 10 MN05003004Z EN Demands placed on the functionality of the transparent mode SysComWrite function This function allows output of the data via the RS232 interface Li alae ibCom lib 18 11 03 24 IFUNCTION SysComWirite DWORD Requires Operating System Version V2 00 MAR INPUT dwHandle DWORD dwBufferAddress DVVORD dwBytesTovrite DWORD dwTimeout DWORD END VAR C3 POUs jE SysComClose FUN SysComGetVersion1 000 FUN SysComOpen FUN SysComRead FUN SysComReadControl FUN SysComSetSettings FUN SYSCOMWRITE dwHandle DWORD dwBufferAddress DWORD dwBytesToWr
103. to their power and interference levels In small switchgear cabinets it is often enough to provide a sheet steel dividing wall to reduce interference factors Ventilation In order to ensure sufficient ventilation a minimum clearance of 50 mm to passive components must be observed If the neighbouring components are active elements such as power supplies or transformers then the minimum spacing should be 75 mm The values that are given in the technical data must be observed Layout of units Build the module racks and the controls into the switchgear cabinet in a horizontal position Figure 17 Control panel layout D Spacing gt 50 mm 2 Spacing 75 mm to active elements Cable duct Preventing interference Cable routing and wiring Cables are divided into the following categories Electric power lines e g power lines carrying high currents or lines to converters contactors solenoid valves e Control and signal cables e g digital input lines Measurement and signal cables e g fieldbus connections Always route power cables and control cables as far apart as possible This avoids 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 cable routing both inside and outside the co
104. up to the arrival of the Interrupt signal is interrupted immediately All further Interrupt processes should be application related programmed nuu oooo Interrupt 1 a 24 Vo l D g 3 as c w G9 ES e E 0 Vq Figure 6 Interrupt input connections 24V 969 69 69 69 69 6969 G9 pe SIS 69 69 69 69 69 G9 OV Design of the XC100 If an XC100 PLC is replaced by an XC200 PLC the interrupt inputs are connected to other physical input addresses gt Local bus expansion with XIOC BP EXT The XIOC BP EXT backplane enables expansion of local system busses from a max of 7 to a max of 15 slots The intelligent modules such as network and gateway modules can only be inserted into I O slots 1 to 3 All other modules can be connected to any slot The possible arrangement of the backplane is described in the documentation of the XIOC signal modules MN05002002Z EN previously AWB2725 1452GB Please pay attention to the current requirements particularly the current supplied by the power supply and the current requirement of the signal modules Further information can be found in the XIOC signal modules MN05002002Z EN previously AWB2725 1452GB documentation Integration of the bus expansion via the software is explained in the Expansion of the XIOC bus section CPU The XC CPU101 XV types of CPU are bas
105. ve humidity non condensing IEC EN 60068 2 30 10 to 95 Air pressure operation hPa 795 to 1080 Vibration resistance 10 to 57 Hz 0 075 mm 57 to 150 Hz 1 0 g Mechanical shock resistance 15 g 11 ms Overvoltage category Il Pollution degree 2 Degree of protection IP20 Rated insulation voltage V 500 Emitted interference EN 50081 2 Class A Interference immunity EN 50082 2 Battery service life Worst case 3 years typ 5 years Weight kg 0 23 Dimensions W x H x D mm 90 x 100 x 100 Terminations Plug in terminal block Terminal capacity Screw terminals Flexible with ferrule mm 0 5 to 1 5 solid mm 0 5 to 2 5 Spring loaded terminals Flexible mm 0 14 to 1 0 solid mm 0 34 to 1 0 Electromagnetic compatibility EMC Electrostatic discharge IEC EN 61000 4 2 Level 3 ESD Contact discharge kV 4 Electro magnetic fields IEC EN 61000 4 3 RFI V m 10 Burst pulses IEC EN 61000 4 4 level 3 Power cables kV 2 Signal cables kV 1 High energy pulses surge IEC EN 61000 4 5 kV 0 5 Conducted IEC EN 1 1 1 1 V 10 73 74 Appendix Supply voltage for the CPU 24 V 0 V 10 10 MN05003004Z EN XC CPU101 C K 8DI 6DO XV Hold up time on supply drop out Duration of brownout ms 10 Repeat rate S 1 Input voltage V DC 24 Permissible range VDC 20 4 to 28 8 Power consumption Ww max 26 Residual ripple 35 Maximum power dissipated wit
106. y AWB2786 1456GB in the File access block XC100 File lib section ini x Library Manager 1 C100 File lib 18 11 03 FileClose FB FileDelete FB FileGetSize FB FileOpen FB FileRead FB FileRename FB FileSetPos FB FileWrite FB a Dat S Visu Figure 38 Functions of the XC100 File lib 10 10 MN05003004Z EN XC100_SysLibCom lib library The XC100_SysLibCom lib library provides functions to operate the RS232 interface in transparent mode The description of the XC100_SysLibCom lib library can be found in the manual in the RS232 interface in transparent mode section FB SysComClose FUN B SysComGetVersion1 000 FUN E SysComOpen FUN SysComRead FUN rE SysComReadControl FUN B SysComSetSettings FUN SysComWrite FUN SysComwriteControl FUN POUs 3 Dat Figure 39 Functions of the XC100 SysLibCom lib Direct peripheral access Library XC100 Util lib The XC100 Util lib library also provides various function blocks e g in order to integrate the following functionality s in the application ioi x XC100_Util lip 18 11 03 ES CAN Utilities B CAN_BUSLOAD FUN Timer see section Browser Command d un E TimerlnterruptEnable FUN Ba XIOC Disablelnterrupt FUN Enablelnterrupt FUN ReadBitDirect FUN ReadwordDirect FUN WriteBitDirect FUN WriteWordDirect F
Download Pdf Manuals
Related Search
Related Contents
PDA Social Media Overview ー. 物理化学的性質並びに成分規格及び使用方法に関する資料 AC PLUS ELECTRONIC POINT OF SALE (EPOS) USER GUIDE MÓDULOS ADICIONALES PARA MOTORES TURBO 4.6 ENTREPISOS SUPERBOARD® Operating Instructions Model No. DP-2330/3030 Webster 2 User Manual HobWeb Philips AVENT SCF753 AIR QUALITY MONITOR Copyright © All rights reserved.
Failed to retrieve file