background image

12/14 MN05003004Z-EN

Demands placed on the 
functionality of the 
transparent mode

63

Table 15:

Parameters of the “SysComOpen” function

“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.

Table 16: Parameters of the “SysComClose” function

Figure 90: “SysComOpen” function

Port

Selection of the interface

Parameter:

Specify the interface to be opened.

SysComOpen

Return value 0: 
Return value > 0:

Opening of the RS232 interface was 

not

 successful.

Opening of the RS232 interface was successful.

Figure 91: SysComClose function

dwHandle

Return value of the “SysComOpen” function

SysComClose

Return value TRUE: Closing of the RS232 interface was successful

Summary of Contents for XC-CPU101 Series

Page 1: ...131 2 EN 50178 Temperatura otoczenia C 0 55 Przechowywanie C 25 70 Po o enie monta owe poziomo Wzgl dna wilgotno powietrza bez obroszenia IEC EN 60068 2 30 10 95 Spr one powietrze praca hPa 795 1080 W...

Page 2: ...s s 500000 Izolacja galwaniczna tak Pro l urz dzenia zgodnie z DS 301 V4 PDO Art asyn cyk acyk przy cze wtykany blok zacisk w Rezystory zamykaj ce magistral Zewn Urz dzenie Ilo maksymalnie 126 Uk ad a...

Page 3: ...ormy produktowej zosta y spe nione 10 5 Ochrona przed pora eniem elektrycznym Nie dotyczy poniewa nale y oceni ca szaf sterownicz 10 6 Monta element w eksploatacyjnych Nie dotyczy poniewa nale y oceni...

Page 4: ...otocol for DeviceNet No Supporting protocol for SUCONET Yes Supporting protocol for LON No Supporting protocol for PROFINET IO No Supporting protocol for PROFINET CBA No Supporting protocol for SERCOS...

Page 5: ...pecially designed for North America No Current Limiting Circuit Breaker No Degree of Protection IEC IP20 UL CSA Type Wymiary Pozosta e informacje o produkcie cza instrukcje monta owe XC CPU101 6DO XC...

Page 6: ...28 02 2018 Eaton Industries GmbH http www eaton eu 02 2018 by Eaton Industries GmbH Eaton 262152 ED2018 V41 0 PL 6 6...

Page 7: ...zerelosi utas t s Mont as instrukcija Montavimo instrukcija Instrukcja monta u Navodila za monta o N vod na mont Instruc iuni de montaj UL Use copper conductors only To be used in a pollution degree 2...

Page 8: ...dule Modules d E S 7 max M x 7 m dulos de se alizaci n Moduli di segnale max 7 7 7 Max 7 signaalmodule Max 7 signalmoduler 7 M x 7 m dulos de sinal Max 7 signalmoduler Max 7 signaalimoduulia Max 7 sig...

Page 9: ...vody Liitmikud Csatlakoz k Piesl gumi Jungtys Pod czenia Priklju ki Konektory Conexiuni USB XC CPU201 XC CPU202 CANopen XC101 XC201 XC202 5 V GND USB CAN_L 120 USB CAN_H GND GND CAN_L CAN_H XC CPU101...

Page 10: ...L sti ar atsperkontaktiem uzman gi ieb diet spraud l st ACHTUNG F hren Sie die Federleiste vorsichtig in die Steckerleiste ein D MESIO Lizd jungt ki tuk jungt statykite atsargiai ATTENTION Ins rezles...

Page 11: ...Montaggio Montering Montering Montagem Montering Asennus Mont Paigaldamine Felszerelose Mont a Montavimas Monta Monta a Mont Montarea XIOC BP XIOC BP XIOC TERM en de fr es it zh nl da el ru pt sv fi c...

Page 12: ...ng Demontage Domontage Desmontaje Smontaggio Demontage Afmontering Desmontagem Demontering Irrottaminen Demont Eemaldamine Leszerelose Demont a I montavimas Demonta Demonta a Demont Demontarea XIOC BP...

Page 13: ...xing Schraub Befestigung Vis de fixation Fijaci n por tornillo Fissagio a vite Schroefbevestiging Skruefastg relse Fixa o roscada Skruvanslutning Ruuvikiinnitys roubov upevn n Kruvikinnitus Csavaros r...

Page 14: ...13 IL05003001Z Eaton Industries GmbH Hein Moeller Stra e 7 11 53115 Bonn Germany 2002 by Eaton Industries GmbH www eaton com moeller support 02 13 IL05003001Z P MA Doku All Rights Reserved Printed in...

Page 15: ...n der Industrie in Wohn und Zweckbauten ffentlichen Einrichtungen bei Energie versorgern im Handel und bei OEMs Zu Eatons Electrical Sector geh ren die Marken Cutler Hammer Moeller Micro Innovation Po...

Page 16: ...06 02 2nd edition 10 2002 3rd 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...

Page 17: ...s Ensure a reliable electrical isolation of the low voltage for the 24 volt 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...

Page 18: ...II...

Page 19: ...1 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 La...

Page 20: ..._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 35 Disa...

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

Page 22: ...12 14 MN05003004Z EN 4...

Page 23: ...ogging off j 69 Battery life j 08 03 Reprint 10 69 XC CPU 101 C256k 8DI 6DO XV j 12 03 Completely revised 12 03 Reprint 41 Data remanence 1st paragraph j 04 04 42 Limit values for memory usage j 06 04...

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

Page 25: ...es 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 sy...

Page 26: ...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 The outputs are short circuit proo...

Page 27: ...ion and they start the programmed Interrupt routines The program section which has been processed up to the arrival of the Interrupt signal is interrupted immediately All further Interrupt processes s...

Page 28: ...control functions The available operating and interface control devices are LED display for RUN Stop and general error Operating mode selector switch RUN Stop RS232 interface e g for programming devi...

Page 29: ...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 X Change to th...

Page 30: ...s an RJ45 socket Use the programming cable XT SUB D RJ45 for connecting XC100 The interface is not electrically isolated Interface assignment Data transfer rate modification X Open the Resources r PLC...

Page 31: ...ect the field with the preset baud rate This field now has a grey background X Double click this field once more to choose the Baud rate e g 38400 Bit s Confirm with OK X Select the menu Online r Log...

Page 32: ...wing characteristics Characteristic impedance 100 to 120 O Capacitance 60 pF m The demands placed on the cable connectors and bus termination resistors are specified in ISO 11898 Following you will fi...

Page 33: ...CPUs with text displays from the XV 101 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...

Page 34: ...ull the top of the CPU module forwards X Lift up the CPU module and remove it h Detailed information about the installation of the backplanes and XI OC modules can be found in the manual Hardware and...

Page 35: ...ers contactors solenoid valves Control and signal cables e g digital input lines Measurement and signal cables e g fieldbus connections Take care to implement proper cable routing both inside and outs...

Page 36: ...Power supply of the digital inputs outputs The wiring example indicates the wiring of a separate voltage supply for inputs outputs h You can find wiring examples for the XI OC modules in the manual H...

Page 37: ...ion with the programming system as well as execution and debugging of the application program It only supports one application program Figure 20 Startup behaviour BTS MMC k BTS PLC BTS in MMC Power on...

Page 38: ...C 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 a...

Page 39: ...itch on if an application program is present and the operating mode selector switch is in the Run position The following settings are available WARMSTART default setting COLDSTART STOP Creating and tr...

Page 40: ...slot of the CPU X Establish a serial connection via the RS232 interface of the PC with the XC100 see a page 45 X Activate the Other Parameters tap in the PLC Configuration window X Click on the Start...

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

Page 42: ...12 14 MN05003004Z EN 24...

Page 43: ...nected 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 applicati...

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

Page 45: ...mous controls CAN Device via CANopen AN2700K20GB Engineering of CAN stations AN2700K27GB Counter lib library The COUNTER library provides functions in order to integrate the XIOC 1CNT 100KHZ and XIOC...

Page 46: ...or another task to access this area The description of the functions can be found in the programming software manual MN05010003Z EN previously AWB2700 1437GB manual and in the Library Online help of t...

Page 47: ...n be integrated via a bus system can t be accessed via the Direct peripheral access Addressing is dependent on the slot number 0 to 15 of the signal modules Further differentiation within the slot exi...

Page 48: ...0 to 11 j 0 1 to 15 XIOC 16DX j 0 to 15 j j 0 1 to 15 XIOC 8AI I2 j 0 to 7 1 to 15 XIOC 8AI U1 j 0 to 7 1 to 15 XIOC 8AI U2 j 0 to 7 1 to 15 XIOC 4T PT j 0 to 3 1 to 15 XIOC 2AO U1 2AO I2 j 0 to 3 1 t...

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

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

Page 51: ...or the value transfer remain unchanged Table 9 Error code with direct peripheral access IO_ACCESS_NO_ERROR data type Figure 44 WriteWordDirect function uiSlot Slot number of the signal module For poss...

Page 52: ...but without running a POU 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...

Page 53: ...art 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 l System events The...

Page 54: ...disable deactivate a parameterized physical interrupt by accessing it from the user program EnableInterrupt With this function the physical interrupt which was deactivated beforehand can now be re ena...

Page 55: ...ng In the example a H signal on input I0 0 should branch into an interrupt module and execute it X Create a program module for the normal application PLC PRG for this purpose and a further module with...

Page 56: ...stem events input field for IO Interrupt1 X 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 pre...

Page 57: ...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 stand...

Page 58: ...k to determine the CAN bus loading from the user program is available Command Description Get a list of implemented commands reflect Mirror current command line for test purposes mem Memory dump Synta...

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

Page 60: ...imal 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 when a new project is being cr...

Page 61: ...he Automatic calculation of addresses checkbox the addresses remain unchanged with modifications expansions Check for overlapping addresses If the check for overlapping addresses is activated addresse...

Page 62: ...hange 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...

Page 63: ...ySoft CoDeSys and select the COM1 or COM2 interface X Preselect the values indicated in Figure 59 You can alter the default values by making a double click on the entered value Communication fault 0 L...

Page 64: ...12 14 MN05003004Z EN 46...

Page 65: ...ignal modules can be used Connect appropriate CANopen fieldbus participants to the CANopen interface The basis for the configuration is the following hardware layout Task Make a logical AND linkage of...

Page 66: ...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 variab...

Page 67: ...elevant Parameter manager is only required for a CAN device Standard settings are available for this purpose which means that no modifications must be made X Close this selection with OK X Select the...

Page 68: ...u can continue with the programming or configuration Configure XC100 controller The example makes use of the XC CPU101 C64K 8DI 6DO X Select the Resources register left half of window at bottom to con...

Page 69: ...ler configuration Another window is opened PLC configuration X Click on the register card Additional parameters A window appears with the default values for the XC CPU101 C64K 8DI 6DO Figure 68 Config...

Page 70: ...es The slots EMPTY SLOT are wildcards for central expansion of the signal modules If you want to join up a central digital input module with 16 inputs right next to the CPU then carry out the followin...

Page 71: ...on the plus sign in front of the modules AT IB0 Byte Local Inputs AT QB0 Byte Local Outputs XIOC 16DI SLOT You will now get detailed information with the physical address area of the inputs and output...

Page 72: ...s logical operation is to be presented at output Q0 3 X Select the POUs tab and double click on the PLC PRG element The declaration and program window will be opened X Create the declaration and the p...

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

Page 74: ...eceive 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 no...

Page 75: ...in the CanDevice in the CAN setting tab a figure 80 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...

Page 76: ...nfirm with OK X Log on and carry out the action PLC combinations for routing The following PLC support routing Number of communication channels Several communication channels can be opened e g PC n PL...

Page 77: ...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 im...

Page 78: ...pened the function returns a value greater than 0 X 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...

Page 79: ...ands placed on the functionality of the transparent mode 61 Selection of the parity Selection of the COM interface Number of stop bits Figure 85 Even uneven parity Figure 86 Selection of the COM inter...

Page 80: ...perated via this module and controlled with the TRUE command If the respective interface lines are parameterized with TRUE read write access is possible Parametric programming of the interface In the...

Page 81: ...the TRUE return value when the action has been completed successfully Table 16 Parameters of the SysComClose function Figure 90 SysComOpen function Port Selection of the interface Parameter Specify th...

Page 82: ...andle 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 Limi...

Page 83: ...ction Figure 93 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...

Page 84: ...can be set with this function Table 19 Parameters of the SysComSettings function Figure 94 SysComSettings function dwHandle Return value of the SysComOpen function ComSettings Pointer which points to...

Page 85: ...004Z EN Demands placed on the functionality of the transparent mode 67 Example The example opening a text output and closing of the RS232 interface with the XC100 Figure 95 Programming example for Tra...

Page 86: ...llows the SysComReadControl module read access to the control interface lines of the COM 2 and COM 3 interface Table 20 Parameters of the SysComReadContro function Figure 96 Read access to the control...

Page 87: ...face Table 21 Parameters of the SysComWriteControl function Automatic closing of the interface The transparent mode is automatically ended by the operating system with a PLC state change of the XC100...

Page 88: ...12 14 MN05003004Z EN 70...

Page 89: ...functionality V1 2 F 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...

Page 90: ...12 14 MN05003004Z EN 72 Dimensions XC CPU101 XT FIL 1 line filter Racks XIOC BP XC XIOC BP XC1 100 60 100 90 35 30 8 5 4 5 35 5 88 M 4 14 21 53 5 53 5 50 50 1 3 5 3 60 39 16 3 5 3 90 39 53 5 53 5 50 5...

Page 91: ...mmunity EN 50082 2 Battery Lithium SL 350 3 6 V 0 6 mA Tadiran Battery weight 9 6 g SVHC Substance Lithium Thionylchlorid Substance weight 0 35 g Service life Worst case 3 years typ 5 years Weight kg...

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

Page 93: ...rotection Yes Protection against polarity reversal Yes Digital inputs 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 Limi...

Page 94: ...ervoltage category II 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...

Page 95: ...nel layout 17 CPU module 7 CRC checks 19 Create bootable project postOnline change 21 Creating a program sample project 54 Cycle time max 21 Cycle time monitoring 25 D Data remanence 41 Data transfer...

Page 96: ...e clock 15 Reset 21 Residual cycle 41 RJ45 plug 12 RS232 interface 12 S Segments 42 Select POU type 50 Shielding 17 Single cycle mode 20 Single step mode 20 Start behaviour at Power On 21 Startup beha...

Reviews: