Table of Contents

Advertisement

Quick Links

Application description 05/2014
Monitoring of 24 V load
circuits
S7-300 CPU, SITOP PSE200U with single-channel signaling,
SIMATIC Panel
http://support.automation.siemens.com/WW/view/en/61450284

Advertisement

Table of Contents
loading

Summary of Contents for Siemens SIMATIC S7-300 CPU

  • Page 1 Application description 05/2014 Monitoring of 24 V load circuits S7-300 CPU, SITOP PSE200U with single-channel signaling, SIMATIC Panel http://support.automation.siemens.com/WW/view/en/61450284...
  • Page 2: Warranty And Liability

    Siemens recommends strongly that you regularly check for product updates. For the secure operation of Siemens products and solutions, it is necessary to take suitable preventive action (e.g. cell protection concept) and integrate each component into a holistic, state-of-the-art industrial security concept. Third-party products that may be in use should also be considered.
  • Page 3: Table Of Contents

    Changing the IP address of the PG/PC ..........44 7.1.2 Changing the IP address of the SIMATIC Panel ........ 45 7.1.3 Changing the IP address of SIMATIC S7-300 CPU ......46 Commissioning ................... 49 7.2.1 Transferring the project to the SIMATIC Panel ........49 7.2.2...
  • Page 4 Table of contents 8.4.1 Overload of the motor ................. 64 8.4.2 Short-circuit at the lighting ..............65 8.4.3 Error of the PSE_DIAG (FB50) block ..........66 Links & Literature .................... 67 History....................... 67 Monitoring of 24 V load circuits Entry-ID: 61450284, V1.1, 05/2014...
  • Page 5: Task

    1 Task Task Overview of the automation task Figure 1-1 Visualization Operator panel • Display of the load circuits • Display of the messages Control S7-CPU Digital Input serial coding Power supply and load circuits Power Supply (24V DC) Status S OUT 1 - 4 Load 1 PSE 200U...
  • Page 6 Evaluating the signal course of the status output (S) in the user program of the SIMATIC S7-300 CPU, in order to save the states of outputs OUT 1 to OUT 4 of the PSE200U module in the SIMATIC S7-300 CPU and provide it for the SIMATIC Panel.
  • Page 7: Solution

    2 Solution 2.1 Overview of the general solution Solution Overview of the general solution The PSE_DIAG (FB50) block of library “SITOP_Library_V12_S7-300_S7-400” reads the signal of the state output (S) of the PSE200U module via a digital input at the S7-CPU and evaluates the read signal. The information available from the evaluation is displayed as message on a SIMATIC Panel.
  • Page 8 2 Solution 2.1 Overview of the general solution Components included The following table represents a list of the used hardware components. Table 2-1 Component Description SITOP PSE200U with The PSE200U module is connected to a 24 V DC single-channel signaling power supply.
  • Page 9 2 Solution 2.1 Overview of the general solution The following table represents a list of the used software components. Table 2-2 Block in the Function Comment S7-CPU PSE_DIAG The block: Universal block from the (FB50) SITOP_Library_V12_S7-300_S7-400 evaluates the signal of library;...
  • Page 10: Description Of The Core Functionality

    2 Solution 2.2 Description of the core functionality Description of the core functionality Principle of the core functionality The diagram below shows the sequence of the core functionality in this application. Figure 2-2 OUT 4 OUT 3 S7-CPU OUT 2 OUT 1 IMPULSE CHANNEL_STATE...
  • Page 11 2 Solution 2.2 Description of the core functionality Visualization on the SIMATIC Panel The screens of the SIMATIC Panel are shown below. Table 2-4 Designation Note Start screen Overview Monitoring of 24 V load circuits Entry-ID: 61450284, V1.1, 05/2014...
  • Page 12 2 Solution 2.2 Description of the core functionality Designation Note State of the outputs of the SITOP PSE200U Monitoring of 24 V load circuits Entry-ID: 61450284, V1.1, 05/2014...
  • Page 13: Hardware And Software Components Used

    SITOP PSE200U with 6EP1961-2BA31 Alternatively, you can also use the single-channel signaling version for monitoring higher currents (4 x 3 to 10 A): 6EP961-2BA41 SIMATIC S7-300 CPU 6ES7315-2AG10-0AB0 Alternatively, you can use any S7-300/400 CPU. CP343-1 6GK7343-1EX30-0XE0 Using an S7-CPU with integrated PROFINET interface does not require an Industrial Ethernet CP.
  • Page 14 2 Solution 2.3 Hardware and software components used Downloads of the application The following table includes all downloads of the application. Table 2-7 Component Note 61450284_SITOP_Appl_S7-300_400_CODE_v11.zip This zip file contains the STEP 7 project. 61450284_PSE_DIAG_Applikation_S7-300_DOKU_en.pdf This document. Monitoring of 24 V load circuits Entry-ID: 61450284, V1.1, 05/2014...
  • Page 15: Basics On Control Messages (Plc Alarms)

    3 Basics on Control Messages (PLC Alarms) Basics on Control Messages (PLC Alarms) Messages enable you to recognize processing errors within the automation systems, localize them exactly and remove them. This can considerably shorten the down-times of a plant. Before messages can be output, they need to be configured. The message system in WinCC V12 SP1 enables the display and recording of operating states and failures at a SIMATIC Panel, which are pending or occurring in a plant.
  • Page 16: Functional Mechanisms Of The Application

    4 Functional Mechanisms of the Application 4.1 User program of the S7-CPU Functional Mechanisms of the Application The following sections provide detailed explanations of the following 5 functions: User program of the S7-CPU Signal evaluation with the PSE_DIAG (FB50) block HMI interface Visualization Message generation with the Messages block (FB10)
  • Page 17 4 Functional Mechanisms of the Application 4.1 User program of the S7-CPU Blocks The user program of the SIMATIC S7-300 CPU consists of the following blocks: Table 4-1 Block Symbolic name Description Main In OB1 the Messages block (FB10) including the appropriate instance data block iDB_Messages (DB10) is called cyclically.
  • Page 18: Signal Evaluation With The Pse_Diag (Fb50) Block

    4 Functional Mechanisms of the Application 4.2 Signal evaluation with the PSE_DIAG (FB50) block Data flow The figure below shows the data flow of the application. Figure 4-2 SIMATIC Panel TP900 Comfort Panel PLC alarms SIMATIC S7-1500 CPU States Messages -ALARM_D Main [OB 1]...
  • Page 19 4 Functional Mechanisms of the Application 4.2 Signal evaluation with the PSE_DIAG (FB50) block The block is called cyclically in the cyclic interrupt OB OB35 with the default time interval of 100ms. Figure 4-3 DB50 “iDB_DIAG” FB50 “PSE_DIAG” DONE BOOL BUSY BOOL CHANNEL_STATE...
  • Page 20 4 Functional Mechanisms of the Application 4.2 Signal evaluation with the PSE_DIAG (FB50) block Outputs The outputs of the PSE_DIAG (FB50) block are saved in data block DATA (DB2). The assignment of the outputs is listed in the following table. Table 4-4 Output Data type...
  • Page 21 4 Functional Mechanisms of the Application 4.2 Signal evaluation with the PSE_DIAG (FB50) block CHANNEL_STATE output The following table shows the structure of CHANNEL_STATE: Addresses in data block DATA (DB2) Values depending on output OUT 1 to OUT 4 of the PSE200U module. Table 4-5 CHANNEL_STATE output State of OUT 1 to OUT 4...
  • Page 22: Hmi Interface

    4 Functional Mechanisms of the Application 4.3 HMI interface HMI interface The data required for the visualization is stored in variables of data block DATA (DB2) (see Table_4_6). These variables are integrated into WinCC V12 SP1 and form the HMI interface. Table 4-6 Variable Data type...
  • Page 23: Visualization

    4 Functional Mechanisms of the Application 4.4 Visualization Visualization The “State of the outputs of the SITOP PSE200U” screen displays the variables of the HMI interface at the SIMATIC Panel. The variables of the HMI interface are linked with WinCC basic objects and elements. Figure 4-4 4.4.1 Displaying the states...
  • Page 24: Controls The Remote Reset Input (Rst) Of The Pse200U Module

    4 Functional Mechanisms of the Application 4.4 Visualization States of outputs OUT 1 to OUT 4 of the PSE200U module The individual bits of the CHANNEL_STATE variable contain the states of outputs OUT 1 to OUT 4 of the PSE200U module and are assigned in the text fields. This enables representing the states of outputs OUT 1 to OUT 4 via the background color of the text fields.
  • Page 25: Displaying The Control Messages (Plc Alarms)

    4 Functional Mechanisms of the Application 4.4 Visualization 4.4.3 Displaying the control messages (PLC alarms) States of outputs OUT 1 to OUT 4 When the outputs OUT 1 to OUT 4 of the PSE200U module take on the state 0, the control message (PLC alarm) on the state of the respective output is displayed in the alarm view.
  • Page 26: Message Generation With The Messages Block (Fb10)

    4 Functional Mechanisms of the Application 4.5 Message generation with the Messages block (FB10) Message generation with the Messages block (FB10) The Messages (FB10) block has the task to send 5 PLC alarms to the SIMATIC Panel. Figure 4-5 shows the call of the Messages (FB10) block in the user program of the S7-300/400 CPU.
  • Page 27 4 Functional Mechanisms of the Application 4.5 Message generation with the Messages block (FB10) Overview of inputs The following table shows the assignment of the inputs of the Messages (FB10) block. Table 4-11 Input Data type Variable / Value Description BOOL M0.1 Enabling the Messages...
  • Page 28 4 Functional Mechanisms of the Application 4.5 Message generation with the Messages block (FB10) Input Data type Variable / Value Description SIG_OUT4 BOOL DB2.DBX1.3 Signal that triggers PLC alarm 4. 1 = PLC alarm 4 is triggered (state OUT 4 = 0) 0 = PLC alarm 1 is not triggered (state OUT 4 = 1)
  • Page 29 4 Functional Mechanisms of the Application 4.5 Message generation with the Messages block (FB10) Program details The figure below shows program details on the Messages (FB10) block. Figure 4-6 Messages (FB10) PLC alarms ALARM_D TRUE SIG_OUT1 DW#16#6000_0001 EV_ID1 W#16#EEEE Error Channel 1 DW#16#6000_0002 EV_ID2 EV_ID1...
  • Page 30 4 Functional Mechanisms of the Application 4.5 Message generation with the Messages block (FB10) The following table shows an overview of the five PLC alarms created in the Messages (FB10) block which can now be edited in the message editor Table 4-12 Name Location:...
  • Page 31: Configuration And Settings

    Configuration and Settings The following sections show you how to configure a control message (PLC alarm) in STEP 7 / WinCC V12 SP1 for the SIMATIC S7-300 CPU and the Comfort Panel. Creating the alarm class Alarm classes can be configured at well. They are created and edited in the Alarm class editor.
  • Page 32 5 Configuration and Settings 5.1 Creating the alarm class Action Right-click an empty field in the Alarm class editor and select the context menu “Insert new alarm class”. Assign a unique name for the new alarm class in the “Name” column. The name assigned here is language neutral.
  • Page 33: Configuring Control Messages (Plc Alarms)

    5 Configuration and Settings 5.2 Configuring control messages (PLC alarms) Configuring control messages (PLC alarms) 5.2.1 Filling the block interface of the Messages (FB10) block and calling the ALARM_D message blocks. The PLC alarms are created in the Messages (FB10) block. The table below describes how to create five PLC alarms.
  • Page 34: Alarm_D Message Block

    5 Configuration and Settings 5.2 Configuring control messages (PLC alarms) Action Remarks Then you declare five variables of data type BOOL as input in the block interface of the Messages (FB10) block, e.g. SIG_OUT1 SIG_OUT2 SIG_OUT3 SIG_OUT4 SIG_ERR_PSEDIAG The signals triggering the messages are read via this input. For each PLC alarm you call an ALARM_D message block in the see chapter 5.2.2...
  • Page 35: Inputs And Outputs Of The Alarm_D Message Block

    5 Configuration and Settings 5.2 Configuring control messages (PLC alarms) The following table shows an overview of the inputs and outputs of the ALARM_D message block. Table 5-4 Input/output Data type Description Input BOOL Enabling the ALARM_D message block. 1 = Message block is enabled (PLC alarm is triggered when calling with input SIG=1) Input BOOL...
  • Page 36 5 Configuration and Settings 5.2 Configuring control messages (PLC alarms) Table 5-5 Variable Data type Description #SIG_OUT1 BOOL Variable at input SIG of the first ALARM_D message block (signal, which triggers the first PLC alarm) #SIG_OUT2 BOOL Variable at input SIG of the second ALARM_D message block (signal, which triggers the second PLC alarm) #SIG_OUT3...
  • Page 37 5 Configuration and Settings 5.2 Configuring control messages (PLC alarms) Subsystem of the PLC alarm The following table shows which variable is assigned to the CMP_ID input of the ALARM_D messages block. Table 5-7 Variable Data type Description DW#16#0000_0001 DWORD Value at the CMP_ID input of the first ALARM_D message block DW#16#0000_0002...
  • Page 38: Editing The Plc Alarms In The Alarm Class Editor

    5 Configuration and Settings 5.2 Configuring control messages (PLC alarms) 5.2.4 Editing the PLC alarms in the Alarm class editor In the Alarm class editor you edit the PLC alarms created in the Messages (FB10) block. For editing the PLC alarms, please proceed as follows. Table 5-9 Action In the project navigation, you click on the arrow on the left side of the...
  • Page 39: Display Plc Alarm At The Simatic Panel

    5 Configuration and Settings 5.2 Configuring control messages (PLC alarms) Action In the “Alarm class” column you assign an alarm class to the PLC alarm, e.g. AlarmClass. In the “Acknowledgement” column you specify whether the message requires acknowledgement or not. In this example, the “Acknowledgement” option is deactivated. Therefore, the messages do not require acknowledgement.
  • Page 40: Changing The I/O Addresses

    5 Configuration and Settings 5.3 Changing the I/O addresses Changing the I/O addresses When changing the addresses for the digital inputs and outputs of the S7 station, please proceed according to the following instruction: Chapter 6.1.2 gives an overview of the I/O addresses used in the application. Table 5-10 Action Open the STEP 7 project of the application (see chapter 6.3).
  • Page 41: Installation

    6 Installation 6.1 Hardware configuration Installation Hardware configuration 6.1.1 Structure The figure below shows the hardware setup of the application example. Figure 6-1 CPU DI/DO TP900 Comfort +24V Industrial Ethernet OUT1 OUT2 PG/PC PSE200U +24V Table 6-1 Action Remarks Attach the individual modules to a suitable rack. See chapter Connect the PSE200U module with the 24 V DC power supply.
  • Page 42: Overview Of The I/O Addresses

    6 Installation 6.2 Software installation Note Always follow the installation guidelines for the installation of all components. 6.1.2 Overview of the I/O addresses The following table gives you an overview of the I/O addresses used. Table 6-2 I/O module Connection at the PSE200U Function module I4.0...
  • Page 43: Installing The Application Software

    6 Installation 6.3 Installing the application software Installing the application software This chapter describes the steps for the installation of the sample code. The application software consists of a project with the following content: device configuration user program for the S7-CPU configuration and settings of the SIMATIC Panel The project is available as a zip-file on the HTML page from which you downloaded this document.
  • Page 44: Starting Up The Application

    7 Starting up the Application 7.1 Preparation Starting up the Application Preparation 7.1.1 Changing the IP address of the PG/PC First of all, make sure that the IP address of the PG/PC is located in the same subnet as that of the S7-CPU and of the SIMATIC Panel. The figure below shows the network settings to which you have to change the PG/PC.
  • Page 45: Changing The Ip Address Of The Simatic Panel

    7 Starting up the Application 7.1 Preparation 7.1.2 Changing the IP address of the SIMATIC Panel Before the project can be transferred to the SIMATIC Panel, you have to change the IP address of the SIMATIC Panel as shown in Table 6-3, via which the project is downloaded to the CPU.
  • Page 46: Changing The Ip Address Of Simatic S7-300 Cpu

    7.1 Preparation 7.1.3 Changing the IP address of SIMATIC S7-300 CPU Before the STEP 7 project can be downloaded to the SIMATIC S7-300 CPU, you have to change the IP address of the PROFINET interface, as shown in Table 6-3, via which the project is downloaded to the SIMATIC S7-300 CPU.
  • Page 47 Since the accessible nodes at the selected interface of the PG/PC are displayed in a list. Select the SIMATIC S7-300 CPU from the list of the accessible nodes and click on the “Show” button to go to the SIMATIC S7-300 CPU in the project navigation.
  • Page 48 The interface connected at the SIMATIC S7-300 CPU, is selected in the project navigation. Click on the arrow icon on the left side of the SIMATIC S7-300 CPU in the project navigation to display the “Online & diagnostics” function. Double-click on the “Online & diagnostics” function.
  • Page 49: Commissioning

    7 Starting up the Application 7.2 Commissioning Commissioning 7.2.1 Transferring the project to the SIMATIC Panel Proceed according to the following instruction to transfer the project to the SIMATIC Panel. Table 7-4 Action At the SIMATIC Panel, set the transfer mode. In the Project tree, right-click on the SIMATIC Panel HMI_2[TP900 Comfort].
  • Page 50 7 Starting up the Application 7.2 Commissioning Action In the Project tree, select the SIMATIC Panel HMI_2[TP900 Comfort]. In the toolbar you click on the “Download to device” button to transfer the project to the SIMATIC Panel. The “Extended download to device” dialog box or the “Load preview” dialog box opens automatically.
  • Page 51 7 Starting up the Application 7.2 Commissioning Action In the “Load preview” dialog box, activate the “Overwrite All” action and click on the “Load” button to start loading. Monitoring of 24 V load circuits Entry-ID: 61450284, V1.1, 05/2014...
  • Page 52: Loading The Project Into The S7-Cpu

    In the Project tree, select the S7-300 CPU PLC_2[CPU 315-2 PN/DP]. In the toolbar you click on the “Download to device” button to download project to the SIMATIC S7-300 CPU. The “Extended download to device” or “Load preview” dialog box opens automatically.
  • Page 53 7.2 Commissioning Action The “Extended download to device” dialog box opens automatically only if the access path from the PG/PC to the SIMATIC S7-300 CPU has to be reset. Make the following settings: Type of the PG/PC interface: PN/IE PG/PC interface: network card of the PG/PC Select the S7-300 CPU from the “Compatible devices in target subnet”...
  • Page 54: Using The Application With Step 7 / Wincc V13

    7 Starting up the Application 7.3 Using the application with STEP 7 / WinCC V13 Action In the “Load results” dialog box, activate the “Start all” action and click on the “Finish” button to terminate loading. Using the application with STEP 7 / WinCC V13 Unzip the file “61450284_SITOP_Appl_S7-300_400_CODE_v11.zip”...
  • Page 55 7 Starting up the Application 7.3 Using the application with STEP 7 / WinCC V13 Confirm the following message with “OK”. In STEP 7 / WinCC V13 the upgraded project is created and saved with a new name. Figure 7-2 Execute the “Edit >...
  • Page 56 7 Starting up the Application 7.3 Using the application with STEP 7 / WinCC V13 In the network view of the hardware and network editor, select the SIMATIC Panel and choose the “Change device / version” menu. The “Change device” dialog box opens.
  • Page 57 7 Starting up the Application 7.3 Using the application with STEP 7 / WinCC V13 In the “Change device” dialog box replace the TP900 Comfort V12 by the TP900 Comfort V13. Adopt the settings with “OK”. Figure 7-5 Download the configuration and software to the SIMATIC Panel and SIMATIC S7- 300 CPU.
  • Page 58: Operation Of The Application

    8 Operation of the Application 8.1 Overview Operation of the Application Overview The state of the outputs of the PSE200U module and the respective messages are displayed at the SIMATIC Panel. Figure 8-1 CPU DI/DO TP900 Comfort +24V Industrial Ethernet OUT1 OUT2 PG/PC...
  • Page 59: Start Screen

    Table 8-1 Button Remarks Sample project Opens the screens of the sample project Siemens Industry Online Here you get more information about the Siemens Support Industry Online Support. Change language Switches between German and English language (DE or EN) Sample project...
  • Page 60: Overview" Screen

    8 Operation of the Application 8.3 Sample project 8.3.1 “Overview” screen The “Overview” screen shows an overview of the structure of the sample project. Figure 8-3 The following buttons exist in the “Overview” screen: Table 8-2 Button Remarks Home Opens the start screen Tools Opens the screen where you can execute the following system functions:...
  • Page 61: State Of The Outputs Of The Sitop Pse200U" Screen

    8 Operation of the Application 8.3 Sample project 8.3.2 “State of the outputs of the SITOP PSE200U” screen The states of outputs OUT 1 to OUT 4 of the PSE200 module are represented clearly in the “State of the outputs of the SITOP PSE200U” screen. This enables a simple monitoring of the load circuits connected at output OUT 1 to OUT 4 of the PSE200U module.
  • Page 62 8 Operation of the Application 8.3 Sample project Using the screen The figure below shows the “State of the outputs of the SITOP PSE200U” screen Figure 8-5 Elements in this screen Table 8-3 Description Status display The states of outputs OUT 1 to OUT 4 of the PSE200U module determined in the user program are visualized via text fields.
  • Page 63 State OUT 4 = 1 State OUT 4 = 0 Alarm view For the SIMATIC S7-300 CPU control messages (PLC alarms) are configured and displayed in an alarm view at the SIMATIC Panel. RESET When pressing the “RESET” button, the automatic switch-off of outputs OUT 1 to OUT 4 is reset.
  • Page 64: Examples For The Operation

    8 Operation of the Application 8.4 Examples for the operation Examples for the operation Note The states of outputs OUT 1 to OUT 4 (OUT x) are also displayed at the digital outputs of the DI/DO: OUT x switched on: DOx off (LED for DOx off) OUT x switched off: DOx on (LED for DOx on) 8.4.1 Overload of the motor...
  • Page 65: Short-Circuit At The Lighting

    8 Operation of the Application 8.4 Examples for the operation 8.4.2 Short-circuit at the lighting Table 8-7 Action Remarks Short circuit: PSE200U module: Bridge the lamp connections with wire Output OUT 2 is automatically switched until the LED of output OUT 2 lights red. off and takes on state 0.
  • Page 66: Error Of The Pse_Diag (Fb50) Block

    8 Operation of the Application 8.4 Examples for the operation 8.4.3 Error of the PSE_DIAG (FB50) block Table 8-8 Action Remarks When calling the The value 8001(hex) is displayed in I/O field “STATUS FB PSE_DIAG (FB50) the PSE_DIAG”. cycle time of 100ms is The “Error FB PSE_DIAG”...
  • Page 67: Links & Literature

    9 Links & Literature Links & Literature Table 9-1 Topic Title http://support.automation.siemens.com/WW/view/en/61450284 Link to this document Siemens Industry http://support.automation.siemens.com Online Support http://support.automation.siemens.com/WW/view/en/77991795 Manual STEP 7 V12 SP1 http://support.automation.siemens.com/WW/view/en/78327231 Manual WinCC V12 SP1 Download http://support.automation.siemens.com/WW/view/en/75277515 STEP 7 V12 SP1 http://support.automation.siemens.com/WW/view/en/73956248 Download WinCC V12 SP1 http://support.automation.siemens.com/WW/view/en/78683919...

This manual is also suitable for:

Simatic sitop pse200u

Table of Contents