Moeller XControl XC600 Скачать руководство пользователя страница 55

07/04 AWB2700-1428GB

51

6 Diagnostics for the local XI/ON-BUS and the PROFIBUS-DP / CANopen bus

In the XC600 system, diagnostics are available not only for the 
local input/output modules, but also for the remote modules that 
are linked via the PROFIBUS-DP or CANopen bus segment. The 
local modules are handled in a similar manner to the remote 
modules on the PROFIBUS-DP.

Basic procedure for error handling

1. If a participant detects that an error has occurred, it will send a 

message to the master. The master processes this in the 
GETBUSSTATE POU (

a

Section “POU (Program Organization 

Unit) GETBUSSTATE”, Page 51).

2. Bit 2 is set in one of the user bytes in the output array 

GETBUSSTATE.EXTENDEDINFO (

a

Section “Evaluation of the 

GETBUSSTATE.EXTENDEDINFO array”, Page 52).

3. All user bytes are interrogated by the diagnostics program. If, in 

one of them, Bit 2 is set in a user byte, then the POU 
DiagGetState is called. This has the effect that the message is 
no longer available and Bit 2 of the user byte is reset 
(

a

Section “Function block DiagGetState”, Page 53).

The error message is indicated in various bytes in the output array 
DiagGetState.EXTENDEDINFO. With PROFIBUS-DP, the Bit 3 of 
Byte 8 is set, and an error code appears in the diagnostics byte of 
the diagnostics-capable module (from Byte 17). With CAN, an 
error code is indicated in Bytes 16 and 17.

If the error in the participant has been cleared, then another 
message is sent. Bit 2 is set in the participant byte of the output 
array GETBUSSTATE.EXTENDEDINFO 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 is included in the BusDiag.LIB file. Make 
sure that this file is included in the project. This file, which is 
invisible to the user, is called cyclically by the run-time system. The 
input and output data for the POU, which you can access, are 
stored in a 142-byte data field.

The system establishes such a data field for every configured 
segment.

The input and output data are collected in a single structure, to 
facilitate data access easier. The correlation between the marker 
range (starting with the diagnostic address) and the structure is 
made by the declaration of a directly addressable variable of type 
GETBUSSTATE (not task-specific). Example

You must declare a (global) variable not only for the local XI/ON 
segment but also for every PROFIBUS DP or CANopen bus 
segment.

h

Design the program for diagnostics so that you first 
interrogate the local segment for messages, and then the 
remote segments, one after another. The diagnostics 
program should be implemented as a separate task, with 
a task interval of 50 msec.

h

From XSoft V2.3.1, the module for diagnosis of the DP 
segment with the internal BOLDENABLE variable must be 
called a few times. The programming can be seen in the 
DIAGDP example program.

Data field

Content

MB0

Data for the 1st bus system, e.g. local XI/ON bus

MB1

MBxx etc.

MB142

Data for the 2nd bus system, e.g. local XION bus

MB143

MBxx etc.

MB284

Data for the 3rd bus system, e.g. local XION bus

MB285

MBxx etc.

MB0, MB142, MB284, etc. are diagnostic addresses.

DP_segment AT %MB142: GETBUSSTATE;

Содержание XControl XC600

Страница 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...

Страница 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...

Страница 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...

Страница 4: ...II...

Страница 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...

Страница 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...

Страница 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...

Страница 8: ...07 04 AWB2700 1428GB 4...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 30: ...07 04 AWB2700 1428GB 26...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 40: ...07 04 AWB2700 1428GB 36...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 74: ...07 04 AWB2700 1428GB 70...

Страница 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...

Страница 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...

Страница 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...

Страница 78: ...07 04 AWB2700 1428GB 74...

Отзывы: