background image

Creating an Example Project

07/04 AWB2700-1428GB

28

Setting the target system

Once XSoft has started, create a new file:

X

Choose File 

r

 New menu.

X

Answer the query about saving the old project.

X

Set the target system, e.g. XC-CPU601-E4M.

The following window with four tabs will appear:

X

Select Program as POU type and IL as POU language.

X

Confirm your selection with OK.

A window will appear in which you can program or configure 
systems:

Configure XC600 with local signal modules

A local signal module behaves similar to a decentral (distributed) 
signal module on a PROFIBUS DP gateway. The gateway is 
simulated with the aid of software for the local signal module, so 
that configuration, programming and test for local and decentral 
signal modules are identical. 

Parametric programming of the user parameters is also included 
(

a

figure 49). They determine the behaviour of the gateway e.g. 

with a fault on a signal module.

The parameters are described in the AWB2700-1394 "XI/ON 
PROFIBUS DP" in the “Parametric programming” chapter.

X

Click the Resources tab to configure the XC600 with local 
inputs/outputs.

The following window will appear:

Figure 41 : Main window for target system settings

Figure 42 : Selecting the POU type

Figure 43 : POU type “Program” in IL format

Summary of Contents for XControl XC600

Page 1: ...xx xx Ki 12 03 Printed in the Federal Republic of Germany 0x 02 Article No xxxxxx 4 patpks nycmyn R ckentext A A Think future Switch to green Think future Switch to green Systems Industrial Automatio...

Page 2: ...s manual chapter Moeller GmbH 53105 Bonn Authors Peter Roersch Production Thomas Kracht Translator Patrick Chadwick All rights reserved including those of the translation No part of this manual may be...

Page 3: ...vices 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 m...

Page 4: ...II...

Page 5: ...protection 12 Cable routing and wiring 12 Wiring example Overview 12 Switching supply voltage on off 13 Base modules XC ADP XC ADP XION 14 General 14 Task of the XC ADP module 14 Tasks of the XC ADP X...

Page 6: ...Creating a program for remote outputs on the CANopen bus 35 4 Functions of the Operator Module 37 Initial PLC startup 37 Loading the program into the PLC 37 Starting up the PLC with a bootable and ac...

Page 7: ...etState 53 Function 53 Description 53 Diagnostics for the local XI ON BUS and the PROFIBUS DP CANopen bus 54 Data contents of EXTENDEDINFO for CANopen 55 Example 56 Configuration 56 Programs 57 Append...

Page 8: ...07 04 AWB2700 1428GB 4...

Page 9: ...ler After you have downloaded the project you can then test it as described in a chapter Creating an Example Project on page 27 The program can be started or stopped via the operator module of the PLC...

Page 10: ...f the page shows the chapter title and the top right of the page shows the current section for greater clarity I O module Input output modules UPS Uninterruptible power supply MSS Menu selector switch...

Page 11: ...he boards for the individual function modules meet the PC 104 specifications In addition to dimensions the specifications also stipulate the requirements for the PC 104 bus that connects the modules T...

Page 12: ...with an eccentric disc Using a cheese head screwdriver turn this disc so that it grips underneath the mounting rail and secures the base module The front of the disc has number markings to ensure tha...

Page 13: ...9 Figure 4 Fitting the modules together Important When fitting the modules together ensure that the socket connectors fit exactly into the plug connectors Figure 5 Removing the base module 1 0 Figure...

Page 14: ...until the two catches at the side snap onto the adapter or the neighbouring base module X Use the end bracket and end plate to fix the XI ON modules to the mounting rail X When you have fitted all th...

Page 15: ...nents must be provided in order to ensure sufficient ventilation If active components e g load power supply transformers are fitted next to each other a minimum gap of 7 5 cm must be ensured Observe t...

Page 16: ...to inverters contactors solenoids Control and signal cables e g digital input cables Measuring and signal cables e g fieldbus cables Ensure correct cable routing inside and outside the control cabine...

Page 17: ...med automatically then you must use a delay timer switch to increase the interruption to longer than 2 5 minutes a fig 11 After a short term power failure the controller will switch off after two minu...

Page 18: ...er are provided in the XI ON manuals e g Hardware and Engineering AWB2700 1394 GB Project engineering for the base module XC ADP XION Power supply for the XI ON modules The 24 V DC power supply requir...

Page 19: ...p by means of an uninterruptible power supply UPS If the supply voltage drops the UPS sends a Power Fail signal to the PLC which then initiates a shutdown of the system The UPS will then keep the outp...

Page 20: ...the PC 104 bus Start Stop behaviour Setting the OMS to the STOP position will cause all the outputs of the remote devices to be set to 0 An interruption in the DP segment causes the inputs receive da...

Page 21: ...CANopen or PROFIBUS DP to be configured The input output devices assigned to this module are connected to the module bus system via address CE000 X Assign the memory range beginning with start addres...

Page 22: ...Nopen segment Start Stop behaviour Setting the OMS to the STOP position will cause all the outputs of the remote devices to be set to 0 An interruption in the segment causes the inputs receive data of...

Page 23: ...Normal commercial connectors are available that make it possible to switch the bus termination resistor in or out of circuit with a slide switch on the connector itself e g the SUBCON PLUS CAN connect...

Page 24: ...RUN P The current PLC status is indicated by the three LEDs Parameters such as time and password and the present status of the controller are shown in the display The menu selector switch MSS is used...

Page 25: ...rams and recipes You can use the operator module to copy these programs and recipes from the hard disk to the CompactFlash card The contents of the CompactFlash card can be shown on the display Only t...

Page 26: ...r specific function between the controllers that are linked within a network OD is used in the following description as an abbreviation for Object Directory Layout The module contains a board with the...

Page 27: ...ew settings need to be made These depend on the operating system used The following description is based on the Windows 95 operating system The system description will provide information with other o...

Page 28: ...000 will be displayed If a different value appears here you will have to correct it Creating the connection between PC and XC600 Hardware X Connect the PLC with the PC e g by means of a standard cros...

Page 29: ...address 192 168 119 004 and confirm with OK X Confirm the set parameters X In order to register the new channel for the gateway you must log into the PLC via the Online menu The Login function also lo...

Page 30: ...07 04 AWB2700 1428GB 26...

Page 31: ...the result to an output In the second part you will add a remote I O combination 2 input modules and 2 output modules to the XC600 This is connected to the master via the PROFIBUS DP network An additi...

Page 32: ...entral distributed signal module on a PROFIBUS DP gateway The gateway is simulated with the aid of software for the local signal module so that configuration programming and test for local and decentr...

Page 33: ...0 and press the right mouse button X Choose the menu item Append Subelement and click on the module XC POW50 XI ON UPS Three tabs will be shown in the right panel of the window The basic parameters ha...

Page 34: ...by a T e g T XN 2DI 24VDC P but modules in standardised representation are marked by an S e g S XN 4DI 24VDC P The modules used in the example are type dependent X Click the sign of the selected modu...

Page 35: ...s tab X Make a double click on the PLC PRG element The Declaration and Programming will now be opened X Create the declaration and the program as shown in the figure below X Compile the project and lo...

Page 36: ...r 12000kbit s All other parameters can remain unchanged Adding a remote XI ON gateway X Select the element XC NET DP M and click the right mouse button Choose Append Subelement r XN GW PBDP 12MB The f...

Page 37: ...DP expansion The first input of each XI ON module is to be interrogated Both inputs are linked and the result passed to an output of a module Figure 56 Selecting input output modules Figure 57 Wiring...

Page 38: ...Nopen bus Adding the CANopen module to the XC600 device X Ensure that the default address CC000 is set on the modulea Page 18 X Select Configuration_XC600 in the PLC Configuration window Click on the...

Page 39: ...is assigned a value The example is saved as a separate program and is called from the program ABC Proceed as follows to open the new program X Use the tab to select the POUs folder in the POUs regist...

Page 40: ...07 04 AWB2700 1428GB 36...

Page 41: ...SS once more after ENTER is displayed The SF LED will go out and the exclamation mark will be cleared X Return to the basic menu You can now load a program into the PLC using XSoft or select the main...

Page 42: ...is started The display shows With password An assigned password will freeze the status of the PLC and the parameters at the time the password was assigned In this way the position of the OMS can also...

Page 43: ...ding and starting programs via the OMS RUN P You can use XSoft functions such as Forcing while the program is running RUN Access from the PC is not possible P if the OMS is set to RUN P R if the OMS i...

Page 44: ...ct if any modules are missing or faulty This will be indicated by the SF LED being lit up The following error text will appear in the DIAGNOSTICS r ERROR menu The number 1 in the designation XC NET 1...

Page 45: ...the XC600 Method 1 This function initialises the simple variables and POU variables The variable assigned with RETAIN will be retained The PLC is switched from RUN to STOP status Method 2 This functio...

Page 46: ...X Select a name cursor flashes at the side of the name X Press the MSS Turn the MSS so that the text ENTER appears instead of the menu item BACK X Press the MSS This will display the next higher menu...

Page 47: ...You can use the MSS to select the numbers and upper lower case characters First the numbers are shown at the cursor position then the upper case characters and then the lower case characters X Activa...

Page 48: ...e cursor is positioned on the ENTER menu item X Press the MSS to execute the function The STOP LED will go out The display shows is a symbol It keeps turning as long as the function is in progress Onc...

Page 49: ...tatic parameters The edit mode can be selected by turning the MSS from BACK to EDIT If the MSS is turned further the menu item ENTER will be displayed Pressing the MS when it is in this position means...

Page 50: ...ated by the exclamation mark in the basic menu The messages are displayed with date and time e g If for example the message STOP BP is shown then the CPU has reached a breakpoint in the execution of t...

Page 51: ...orking memory can then be started ACTIVATE COPY and DELETE After calling these functions you will see the program name of the executable program with a full stop character in front of it X Turning the...

Page 52: ...ress has been accepted the system is started up with the new address IP MASK This displays the default value GATEWAY 000 000 000 000 is entered as the address This switches off the Gateway function NA...

Page 53: ...g the password X Turn the MSS so that the display shows PASSWORD Press the MSS so that the display is shown If the position of the OMS was changed a message will indicate how the OMS should be set suc...

Page 54: ...SS until the display shows OFF X Press the MSS The word ENTER will appear on the display X Press the MSS to return to the menu This function can be reactivated at any time If the AUTOCONFIG function i...

Page 55: ...and the POU DiagGetState is called which then resets Bit 2 The error messages in the output array DiagGetState EXTENDEDINFO are also reset POU Program Organization Unit GETBUSSTATE The GETBUSSTATE POU...

Page 56: ...for interrogating PROFIBUS DP participants In this case it contains the number of participants that are reporting diagnostic data Diagnostics of the local XI ON bus With local XI ON modules there is...

Page 57: ...INFO output of the DiagGetState function block is independent of the EXTENDEDINFO ouput of the GETBUSSTATE structure FUNCTION_BLOCK DiagGetState VAR_INPUT ENABLE BOOL DRIVERNAME POINTER TO STRING DEVI...

Page 58: ...ddress EXTENDEDINFO 12 13 Own ID number EXTENDEDINFO 14 Length byte for the manufacturer specific data EXTENDEDINFO 15 99 Free for manufacturer specific diagnosis 2 bytes are available for local and r...

Page 59: ...limit error Bit 6 Operating mode error Example direct starter module XS1 XBM Bit 0 ID error Bit 1 PKZ circuit breaker short circuit Bit 2 PKZ circuit breaker overload Bit 4 DIL1 contactor defect Bit 5...

Page 60: ...The evaluation of the diagnostics data must be performed by the application user The diagnostics data can also be taken directly from the output array DiagGetState EXTENDEDINFO If an error is detecte...

Page 61: ...CANopen PROGRAM DIAG Diagnosis for local XION bus VAR XionDiag DiagGetState Instance creation of POU DiagGetState FeldDiag ARRAY 0 99 OF BYTE Additional field for diagnosis data optional wHelp WORD EN...

Page 62: ...on the number of modules FeldDiag wHelp XionDiag EXTENDEDINFO wHelp Copy the array EXTENDEDINFO FeldDiag END_FOR XionDiag ENABLE FALSE Deactivate FB XionDiag Call FB END_IF END_IF END_IF Figure 70 St...

Page 63: ...ock FB DiagGetState is deactivated Input parameter of the FB a Page 53 Diagstate_DP DRIVERNAME ADR DPDrvName Diagstate_DP DEVICENUMBER 0 Diagstate_DP BUSMEMBERID Adresse_DP Diagstate_DP ENABLE TRUE Di...

Page 64: ...for the CANopen segment PROGRAM DIAGCAN Diagnostics for CANopen VAR Diagstate_CAN DiagGetState Instance creation of POU DiagGetState FeldDiag_can ARRAY 0 23 OF BYTE Additional field for diagnosis dat...

Page 65: ...nal function variable Type BOOL Diagstate_CAN BOLDENABLE 1 FB DiagGetState active END_IF IF Diagstate_CAN ENABLE TRUE THEN Cyclical call if the FB is active IF Diagstate_CAN READY THEN FB ended Are di...

Page 66: ...Diagnostics for the local XI ON BUS and the PROFIBUS DP CANopen bus 07 04 AWB2700 1428GB 62 Figure 72 Status display of EXTENDEDINFO after a short circuit on the 1st output module...

Page 67: ...open the file XSoft ini in the directory XSoft V and insert the following instruction DownloadWaitTime 30000 Disadvantage if another error occurs it will have to wait out this time before it is displa...

Page 68: ...The physical operands such as I Q M cannot be declared as RETAIN variables Other error messages Task monitoring Bus error Checksum error Fieldbus error I O update error Cycle time exceeded Invalid ins...

Page 69: ...sions XC modules XC ADP XION XC ADP XC ADP XION XC CPU601 ExM XC CPU601 ExM XV XC SYS1 XC POW50 UPS XC POW50 XION UPS XC NET DP M XC NET CAN F 3 20 17 5 17 5 17 5 43 115 5 12 6 12 6 121 131 12 6 155 1...

Page 70: ...endix 07 04 AWB2700 1428GB 66 XI ON module base XI ON XC ADP XC POW50 XC NET XC CPU XC SYS1 XC ADP XC POW50 XC NET XC CPU XC SYS1 XC ADP XC ADP 73 1 117 6 128 9 154 5 12 6 121 155 168 10 52 38 55 43 1...

Page 71: ...to 150 Hz g1 0 g Mechanical shock resistance 15 g 11 ms Impact resistance 500 g o 50 mm g25 g Overvoltage category II Pollution degree 2 Protection class 1 Degree of protection IP20 Emission DIN EN 5...

Page 72: ...es Flash disk 64 MB Weight 0 3 kg Communication module XC NET DP M PROFIBUS DP PROFIBUS DP interface RS 485 EN 50170 Baud rate Max 12 Mbaud Potential isolation Yes Max slaves 125 Max input output byte...

Page 73: ...the input voltage 5 5 Weight 0 3 kg 0 3 kg Terminals Pluggable terminals Pluggable terminals Conductor cross sections Stranded with ferrules 0 5 to 2 5 mm2 0 5 to 2 5 mm2 Solid core 0 5 to 2 5 mm2 0...

Page 74: ...07 04 AWB2700 1428GB 70...

Page 75: ...and XI ON modules 14 Control cabinet design 11 Copy program between hard disk and memory card 47 CPU 22 D Date setting 48 Delayed switching power supply 13 Deleting Messages 46 Programs 47 Deleting me...

Page 76: ...n 7 Process signals 7 Processor 22 PROFIBUS DP interface 16 PROFIBUS DP module 16 Program download 22 63 Program name in display 46 Program names 47 Program start 47 Program window 28 Programming lang...

Page 77: ...r parameter definition 31 V Variables declaration 34 Ventilation 11 W Web visualisation via the Internet 63 Wiring 12 between UPS and XC600 13 General example 12 Remote XI ON modules 33 X XC600 start...

Page 78: ...07 04 AWB2700 1428GB 74...

Reviews: