Siemens Simatic SM331 Скачать руководство пользователя страница 5

 

SM331; AI 8x12 Bit Getting Started part 1:  4 -20mA 
Getting Started, 11/2006, A5E00253410-02 

1-1

 

Preface 

1

1.1

 

General 

Purpose of the Getting Started 

The Getting Started gives you a complete overview of the commissioning of the analog 

module SM331. It assists you in the installation and configuration of the hardware of a 4-

20mA sensor and the configuration with SIMATIC S7 Manager. 
The intended readership of Getting Started is a novice with only basic experience in 

configuration, commissioning and servicing of automation systems. 

What to expect 

The procedures, from mounting the module to storing analog values in the STEP7 user 

program, are explained step-by-step and in detail based on an example. In the following 

sections you will be introduced to: 

 

Problem analysis 

 

Mechanical setup of the example station 

 

Electrical connection of the example station 

 

Configure hardware with SIMATIC Manager 

 

Creating a small user program with STEP7 which stores the read analog values in a data 

block 

 

Triggering and interpreting diagnostic and hardware interrupts 

Содержание Simatic SM331

Страница 1: ..._ ______________ ______________ ______________ Preface 1 Requirements 2 Introduction 3 Mechanical setup of the example station 4 Electrical connection 5 Configuration of the SIMATIC Manager 6 Testing the user program 7 Diagnostic interrupt 8 Hardware interrupt 9 Appendix A SIMATIC SM331 AI 8x12 Bit Getting Started part 1 4 20mA Getting Started 11 2006 A5E00253410 02 ...

Страница 2: ...n Commissioning and operation of a device system may only be performed by qualified personnel Within the context of the safety notes in this documentation qualified persons are defined as persons who are authorized to commission ground and label devices systems and circuits in accordance with established safety practices and standards Prescribed Usage Note the following Warning This device may onl...

Страница 3: ...1 Overview 5 1 5 2 Wiring the power supply module and the CPU 5 2 5 3 Wiring of the analog module 5 4 5 3 1 Requirement 5 4 5 3 2 Current transducer wiring principle 5 4 5 3 3 Wiring of the analog module 5 5 5 3 4 Test 5 8 6 Configuration of the SIMATIC Manager 6 1 6 1 Creating a new STEP7 project 6 1 6 1 1 Creating a new project 6 1 6 1 2 CPU selection 6 3 6 1 3 Defining the basic user program 6 ...

Страница 4: ... 8 8 Diagnostic interrupt 8 1 8 1 Reading diagnostic information from a PG 8 1 8 2 General diagnostics 8 3 8 3 Channel dependent diagnostic interrupts 8 4 8 3 1 There are five channel dependent diagnostic interrupts 8 4 8 3 2 Configuration programming error 8 4 8 3 3 Common mode error 8 4 8 3 4 Wire break 8 5 8 3 5 Underflow 8 5 8 3 6 Overflow 8 6 9 Hardware interrupt 9 1 9 1 Hardware interrupt 9 ...

Страница 5: ...s a novice with only basic experience in configuration commissioning and servicing of automation systems What to expect The procedures from mounting the module to storing analog values in the STEP7 user program are explained step by step and in detail based on an example In the following sections you will be introduced to Problem analysis Mechanical setup of the example station Electrical connecti...

Страница 6: ...Preface 1 1 General SM331 AI 8x12 Bit Getting Started part 1 4 20mA 1 2 Getting Started 11 2006 A5E00253410 02 ...

Страница 7: ...e The scope of delivery of the analog module consists of 2 parts The module itself A front connector which enables you to conveniently connect the power supply and the data cables Analog module components Quantity Article Order number 1 SM 331 Electrically ISOLATED 8 AI ALARM DIAGNOSTICS 6ES7331 7KF02 0AB0 1 20 pin FRONT CONNECTOR with spring contacts 6ES7392 1BJ00 0AA0 The general SIMATIC compone...

Страница 8: ...erently General tools and materials Quantity Article Order number various M6 bolts and nuts Length depending on the mounting position commonly available 1 Screwdriver with 3 5 mm blade commonly available 1 Screwdriver with 4 5 mm blade commonly available 1 Side cutters and wire stripping tools commonly available 1 Tool for crimping wire end ferrules commonly available X m Cable for grounding the m...

Страница 9: ...t two sensors to be able to trigger hardware interrupts You have the analog input module SM331 AI8x12 Bit order number 6ES7 331 7KF02 0AB0 available The module is diagnostic and hardware interrupt capable and can process up to 8 analog inputs The module is diagnostic and hardware interrupt capable and can process up to 8 analog inputs e g 4 20 mA PT 100 thermocouple 38 60 9 9 9 36 RU 6 VWHP H DPSO...

Страница 10: ...the CPU Wiring of the analog module Standard pin assignment of two measurement transducer types Wiring of unused inputs Configuring the SIMATIC Manager Using the project wizard Completing the automatically generated hardware configuration Integrating the supplied user program source User program testing Interpreting the read values Converting the measured values into readable analog values Utilizi...

Страница 11: ... a basic setup of general SIMATIC S7 300 components The order of the mounting takes place from left to right Power supply PS307 CPU 315 2DP SM331 Instructions without SM331 step Graphic controller Description 1 Screw on the mounting rail screw size M6 so that at least 40 mm space remains above and below the rail When mounting it on a grounded steel panel or on a grounded device mounting panel made...

Страница 12: ...r Description 3 Mounting the power supply Hang the power supply on to the top end of the rail Screw it tight to the rail underneath 4 Connect the bus connector delivered with the SM331 to the left connector on the back of the CPU 5 Mounting the CPU Hang the CPU on to the top end of the rail Push it all the way left to the power supply Push it down Screw it tight to the rail underneath ...

Страница 13: ...f analog module components 4 2 1 General Overview Before the actual mounting of the SM331 the module has to be completed with a front connector and the desired measurement mode of the inputs is set In this section you will learn about The components you need The properties of the analog input module What a measuring range module is and how it is configured Mounting a configured module ...

Страница 14: ...e consists of the following components Module SM331 in our example 6ES7331 7KF02 0AB0 20 pin front connector There are two different types of front connectors With spring contacts order number 6ES7392 1BJ00 0AA0 With screw contacts order number 6ES7392 1AJ00 0AA0 Figure 4 1 Components of the SM331 The scope of delivery of SM331 Components Module Labeling strips Bus connectors 2 cable ties not in t...

Страница 15: ... channel group User defined measuring mode per channel group Voltage Current Resistance Temperature Programmable diagnostic interrupt Two channels with limit alarms only channel 0 and channel 2 are configurable Electrically isolated against backplane bus Electrically isolated against load voltage exception at least one module is set to position D The module is a universal analog module designed fo...

Страница 16: ...erminal The module SM331 has 4 measuring range modules one per channel group The measuring range modules can be set to 4 different positions A B C or D 0HDVXULQJ PRGH KDQQHO JURXS 0HDVXULQJ UDQJH PRGXOH 3RVLWLRQ YROWDJH VHW IRU 5LVN RI GDPDJH ZKHQ PHDVXULQJ UDQJH LV LQFRUUHFWO VHW DQJHU RI GDPDJH ZKHQ PHDVXULQJ UDQJH LV LQFRUUHFWO VHW Figure 4 2 4 measuring range modules with default setting B Vol...

Страница 17: ...D Current 2 wire transducer In our example a sensor with a 4 to 20mA 2 wire transducer is connected to channel group 1 at input 0 A 4 wire transducer is connected to channel group 2 at inputs 2 and 3 Therefore the first measuring range module should have position D and the second should have position C Positioning of the measuring range modules step Graphic controller Description 1 With a screwdri...

Страница 18: ...et to position D 4 2 5 Mounting the SM331 module Proceed as follows After you have prepared the analog module accordingly mount it to the rail as well step Graphic controller Description 1 Mounting the SM331 Hang the SM311 to the top end of the rail Push it all the way to the left up to the CPU Push it down Screw it tight to the rail underneath 2 Mounting the front connector Press the upper releas...

Страница 19: ...w Overview This chapter shows you how the various parts of the example station are electrically wired from the power supply to the analog module Warning You might get an electrical shock if the power supply PS307 is turned on or the power cord is connected to the line Always switch off power before you start wiring the S7 300 ...

Страница 20: ...he power supply module and the CPU SM331 AI 8x12 Bit Getting Started part 1 4 20mA 5 2 Getting Started 11 2006 A5E00253410 02 5 2 Wiring the power supply module and the CPU Overview Figure 5 1 Wiring the power supply module and the CPU ...

Страница 21: ... 3 Remove the insulation from the power cord attach the cable end sleeves for stranded conductors and connect it to the power supply 4 Screw down the clamp of the cable grip 5 Insert two connecting cables between the power supply and the CPU and tighten them 6 Verify that the setting of the selector switch matches your mains voltage The default line voltage setting for the power supply module is 2...

Страница 22: ... Current transducer wiring principle Options Depending on the current transducer you use you have to modify the wiring of the power supply We differentiate between the wiring of a 2 wire current transducer and a 4 wire current transducer Wiring principles of a 2 wire current transducer This transducer type is supplied with power from the analog input module 3 3 0 0 0 0 0 0DQD 6HQVRU H J SUHVVXUH J...

Страница 23: ... RXU ZLUH WUDQV GXFHU RJLF DFN SDQH EXV Figure 5 3 Wiring 4 Wire current transducer 5 3 3 Wiring of the analog module Tasks The wiring of the analog module consists of the following tasks Connecting the power supply red cable Connecting the 2 wire current transducer green cables Terminating unused channels with a resistor Connecting the 4 wire current transducer green cables Connecting the 4 wire ...

Страница 24: ...2006 A5E00253410 02 SM331 Front connector wiring Figure 5 4 SM331 Front connector wiring Notice Possible destruction of the module If you connect a defective 4 wire current transducer to an input which is configured for a 2 wire transducer the module may be destroyed The required wiring tasks are explained below step by step ...

Страница 25: ...nal 2 M sensor 1 Terminal 3 M sensor 1 Standard wiring for 2 wire current transducer 5 Connect terminal 4 and 5 with a 1 5 to 3 3 kΩ resistor In order to maintain the diagnostic capability of channel group 0 the second unused input must be connected to a resistor 6 Terminal 6 M sensor 2 Terminal 7 M sensor 2 7 Terminal 8 M sensor 3 Terminal 9 M sensor 3 Standard wiring for 4 wire current transduce...

Страница 26: ...g Started 11 2006 A5E00253410 02 5 3 4 Test Proceed as follows If you want to test the wiring you may now switch the power supply on Do not forget to set the CPU to STOP see the red circle Figure 5 5 Successful wiring CPU in position STOP If a red LED is lit then there is an error in the wiring Verify your wiring ...

Страница 27: ...P7 V5 2 or later for configuring the new CPU 315 2 DP Start SIMATIC Manager by clicking the SIMATIC Manager icon on your Windows Desktop and create a new project with the STEP7 New Project wizard 0HDVXULQJ PRGH KDQQHO JURXS 0HDVXULQJ UDQJH PRGXOH 3RVLWLRQ YROWDJH VHW IRU 5LVN RI GDPDJH ZKHQ PHDVXULQJ UDQJH LV LQFRUUHFWO VHW DQJHU RI GDPDJH ZKHQ PHDVXULQJ UDQJH LV LQFRUUHFWO VHW Figure 6 1 Start th...

Страница 28: ...g Started 11 2006 A5E00253410 02 A project wizard introduction window appears The wizard guides you through the procedure for creating a new project Figure 6 2 Wizard New Project start The following must be specified during the creation procedure The CPU type The basic user program The organization blocks Project name Click Next ...

Страница 29: ... Started part 1 4 20mA Getting Started 11 2006 A5E00253410 02 6 3 6 1 2 CPU selection Proceed as follows Choose the CPU 315 2DP for the example project You can also use our example for a different CPU Select the appropriate CPU in this case Figure 6 3 New Project wizard selecting a CPU Click Next ...

Страница 30: ...owing organization blocks OBs OB1 cyclically executed block OB40 hardware interrupt OB82 diagnostic interrupt OB1 is required in every project and is called cyclically OB40 is called when a hardware interrupt occurs OB 82 is called when a diagnostic interrupt occurs If you use a module with diagnostic capabilities and OB82 is not inserted the CPU changes to STOP mode when a diagnostic alarm occurs...

Страница 31: ...4 20mA Getting Started 11 2006 A5E00253410 02 6 3 6 1 4 Assigning the project name Proceed as follows Select the Project name text box and overwrite the name in it with Getting Started S7 SM331 Figure 6 5 New Project wizard Assigning the project name Click Finish The basic STEP7 project is created automatically ...

Страница 32: ...2 Bit Getting Started part 1 4 20mA 6 6 Getting Started 11 2006 A5E00253410 02 6 1 5 Result S7 project is created Result The wizard has created the project Getting Started S7 SM331 You can see the inserted organization blocks in the right window Figure 6 6 New Project wizard results ...

Страница 33: ...P7 wizard has created a basic S7 project You also need a complete hardware configuration in order to create the system data for the CPU Proceed as follows You can create the hardware configuration of the example station with SIMATIC Manager To do this select the folder SIMATIC 300 Station in the left window Start the hardware configuration by double clicking the folder Hardware in the right window...

Страница 34: ...wer supply module from the hardware catalog If the hardware catalog is not visible open it with the shortcut key Ctrl K or by clicking the catalog icon blue arrow In the hardware catalog you can browse through the folder SIMATIC 300 to the folder PS 300 Select the PS307 5A and drag it into slot 1 see red arrow Figure 6 8 Hardware configuration Basic configuration Result PS 307 5A appears in the co...

Страница 35: ...dules For this project we use an SM331 AI8x12 bit with the order number 6ES7 331 7KF02 0AB0 The order number is displayed at the bottom of the hardware catalog see blue arrow Figure 6 9 Hardware configuration SM331 insert Drag the module into the first available field at slot 4 of your rack see red arrow You have inserted all the modules into the hardware configuration In the next step you configu...

Страница 36: ... sensor types diagnostics and interrupt capabilities Mounting the example station The table shows which parameters have to be set for our example station SM331 functions of the example station Functions Description Process reactions Diagnostics enabled Hardware interrupt when limit exceeded enabled Encoder 1 2 Wire current transducer Group diagnostics Check for wire break Measuring range 6 mA and ...

Страница 37: ...e the following functions Diagnostic interrupt enabled Hardware interrupt enabled Input 0 1 Type of measurement 2DMU Group diagnostics enabled Wire break enabled Input 2 3 Type of measurement 2DMU Group diagnostics enabled Wire break enabled Input 4 5 and 6 7 Type of measurement Disabled Interference frequency Select your power frequency 50 Hz or 60 Hz Hardware interrupt trigger Upper limit value ...

Страница 38: ... group Resolution accuracy The analog value is stored in a 16 bit word Integration time The module requires a certain amount of time to measure the analog signal This time is called integration time The higher the required accuracy is the longer the module needs for measuring the voltage Basic processing time Besides the integration time the module also needs a certain amount of time to provide th...

Страница 39: ...gramming device In SIMATIC Manager click File S7 Memory Card Delete The MCC will be deleted 2 Switch off the power supply to the CPU Insert the MMC into the CPU Switch on the power supply 3 If the CPU is in RUN mode set it to STOP mode 4 Switch the power supply on again If the STOP LED blinks the CPU requests a reset Acknowledge this by turning the mode switch to MRES for a moment 5 Connect the CP...

Страница 40: ...onfiguration SM331 AI 8x12 Bit Getting Started part 1 4 20mA 6 14 Getting Started 11 2006 A5E00253410 02 Downloading hardware configuration Download the hardware configuration into the CPU with HW Config Figure 6 11 Download CPU hardware configuration 1 ...

Страница 41: ...etting Started 11 2006 A5E00253410 02 6 3 Click the Load to module icon shown in the red circle When the dialog window Select target module appears click OK Figure 6 12 Download CPU hardware configuration 2 The dialog window Select target address is shown Click OK The system data will now be transferred to the CPU ...

Страница 42: ...31 AI 8x12 Bit Getting Started part 1 4 20mA 6 16 Getting Started 11 2006 A5E00253410 02 Starting the CPU Switch the CPU to RUN If the hardware configuration was undertaken correctly two red LEDs RUN and DC5V should be lit on the CPU Figure 6 13 CPU in error free state ...

Страница 43: ...the hardware interrupt status when the acknowledge marker M200 0 is TRUE Save the status in a marker word MW100 when a hardware interrupt occurs The structure of the user program is depicted in the following table Call type Responsible organization block Task to be programmed Used block or marker Cyclic execution OB1 Save analog input values DB1 Convert and store the sensor values FC1 DB2 Acknowle...

Страница 44: ... blocks in the Blocks folder of STEP7 You can insert the user program from an SCL source into the project In this Getting started we describe this method Creating a user program in STEP7 requires three steps 1 Downloading the source file directly from the HTML page 2 Importing a source file 3 Compiling the source Downloading the source file You can download the source file directly from the HTML p...

Страница 45: ...Bit Getting Started part 1 4 20mA Getting Started 11 2006 A5E00253410 02 6 3 Importing a source file You can import the source file into SIMATIC Manager as follows Right click the folder Sources Select Insert new Object External Source Figure 6 14 Importing an external source ...

Страница 46: ...ted part 1 4 20mA 6 20 Getting Started 11 2006 A5E00253410 02 In the Insert external source dialog browse for the source file GSSM331T1DE AWL which you have already downloaded and saved on your hard disk Select the source file GSSM331T1DE AWL red arrow Figure 6 15 Importing an external source ...

Страница 47: ...ser program SM331 AI 8x12 Bit Getting Started part 1 4 20mA Getting Started 11 2006 A5E00253410 02 6 3 Click Open SIMATIC Manager has opened the source file In the right window you can see the source file inserted Figure 6 16 Compiling the source code ...

Страница 48: ...rted 11 2006 A5E00253410 02 Compiling the source code In order to create an executable STEP7 program the STL source has to be compiled Double click the source file GSSM331T1DE in the Sources folder The source code editor opens In the window of the source code editor you can view the source code Figure 6 17 Source code editor ...

Страница 49: ...M331 AI 8x12 Bit Getting Started part 1 4 20mA Getting Started 11 2006 A5E00253410 02 6 3 After the source code is loaded start the compilation Press the shortcut key Ctrl B or select File Compile The compilation starts immediately Figure 6 18 Compiling STL source ...

Страница 50: ...er 6 3 STEP 7 user program SM331 AI 8x12 Bit Getting Started part 1 4 20mA 6 24 Getting Started 11 2006 A5E00253410 02 In case of warning or error messages check the source code Figure 6 19 Source code editor messages after compilation ...

Страница 51: ...8x12 Bit Getting Started part 1 4 20mA Getting Started 11 2006 A5E00253410 02 6 3 Close the source code editor After compiling the STL source without errors the following blocks should appear in the Blocks folder OB1 OB40 OB82 FC1 DB1 and DB2 Figure 6 20 Generated blocks ...

Страница 52: ...Configuration of the SIMATIC Manager 6 3 STEP 7 user program SM331 AI 8x12 Bit Getting Started part 1 4 20mA 6 26 Getting Started 11 2006 A5E00253410 02 ...

Страница 53: ...e user program into the automation system To do this proceed as follows Downloading the system data and user program Step Graphic controller Description 1 Using the SIMATIC Manager download the user program and the system data containing the hardware configuration into the CPU 2 Follow the instructions displayed on the screen If all sensors are properly connected the CPU and the SM331 do not displ...

Страница 54: ...Bit Getting Started part 1 4 20mA 7 2 Getting Started 11 2006 A5E00253410 02 Smart Label The labeling strips for the modules were created with Siemens S7 Smart Label order no 2XV9 450 1SL01 0YX0 A labeling strip in its actual size Figure 7 1 S7 SmartLabel labeling strip for the example ...

Страница 55: ...ting Started 11 2006 A5E00253410 02 7 3 7 2 Visualization of the sensor values Proceed as follows In order to visualize the sensor values insert a variable table as follows into the project To do this select from the context menu of the Blocks folder Insert new object Variable Table Figure 7 2 Insert Variable Table ...

Страница 56: ...x12 Bit Getting Started part 1 4 20mA 7 4 Getting Started 11 2006 A5E00253410 02 Fill the new variable table as follows 1 In this area you can monitor the channel values 2 In this area you can see the analog values 3 In this area you can monitor and control the status signals ...

Страница 57: ...DBW 6 Channel 3 Display of analog value DB1 DBW 8 Channel 4 Display of analog value DB1 DBW 10 Channel 5 Display of analog value DB1 DBW 12 Channel 6 Display of analog value DB1 DBW 14 Channel 7 Display of analog value DB2 DBD 0 Transducer1 current mA DB2 DBD 4 Transducer2 current mA DB2 DBD 8 Transducer3 current mA MW 100 Status hardware interrupt MW 200 0 Acknowledge hardware interrupt M101 0 Ch...

Страница 58: ...ted 11 2006 A5E00253410 02 Monitoring values In order to monitor values open the online view of the controller by clicking the eye glasses symbol Now you can monitor the values in the data blocks and markers Figure 7 3 Online view of the variable table 1 Channel values in hex format 2 Converted analog value 3 Status information ...

Страница 59: ...ant to activate or deactivate acknowledgement into the column Control Value and click the icon with the two arrows Controlling variables 1 Channel value 2 Analog value 3 Status Peculiarity in monitoring the values While monitoring the values you will surely notice that the channel values are different from the analog values The reason for this is that the analog module only supports the binary for...

Страница 60: ... to a tolerance band before the overflow range is reached Within this range the resolution is not optimal though 6C00 20 mA 5100 15 mA 1 4 mA 578 7 nA 0 4 mA Rated range The nominal range is the normal range for recording measurement values This range guarantees optimal resolution FFFF ED00 1 185 mA Underload range Range corresponding to the overload range but for low values ECFF 8000 Underflow Fr...

Страница 61: ...ts enable the user program to react to hardware errors Modules must have diagnostic capabilities in order to generate diagnostic interrupts In OB82 you program the reaction to diagnostic interrupts Display The analog input module SM331 AI8x12 has diagnostic capabilities Diagnostic interrupts that occur are signaled by the red SF LED on the SM331 and on the CPU Figure 8 1 Hardware error ...

Страница 62: ... 11 2006 A5E00253410 02 The cause of the error can be determined online by requesting the hardware status In order to determine the state of module online proceed as follows Select the SM331 in the hardware configuration Click the menu command CPU Module Information in order to perform a hardware diagnostics Figure 8 2 Module status ...

Страница 63: ...1 4 20mA Getting Started 11 2006 A5E00253410 02 8 3 8 2 General diagnostics Diagnostic interrupt tab On the Diagnostic Interrupt tab you will find information for the reported error The interrupts are not channel dependent and apply to the entire module Figure 8 3 Diagnostics for SM331 ...

Страница 64: ... Note Here we show you only the channel specific diagnostics for the measuring modes 2 or 4 wire current transducers Other measuring modes are similar but not described here 8 3 2 Configuration programming error Meaning The position of the measuring range modules does not match the measuring mode set in the hardware configuration 8 3 3 Common mode error Meaning The voltage difference Ucm between t...

Страница 65: ... 4 to 20 mA current transducer the diagnostic message Analog input wire break is shown in the module diagnostics when the current goes below 3 6 mA Figure 8 4 Left Diagnostic message with wire break Right Variable table The display of the analog values shows an underflow Hex 8000 immediately even if the current measured is clearly above 1 1185 mA Underloading 3 6 mA is only possible if wire break ...

Страница 66: ...02 8 3 6 Overflow Meaning If the current exceeds 22 81 mA an overflow message stating Analog in put measuring range High limit exceeded is displayed The display of the analog value HEX 7FFF is in the overflow range Figure 8 5 Left Diagnostic message with overflow Right Variable table Note Disabled channels also have 7FFF hex as the analog display value ...

Страница 67: ...ied in mA Example You have connected a pressure sensor with a 4 20mA transducer to channel 0 Here the limit values should be specified in mA and not in Pascal Pa limit values In order to trigger a hardware interrupt the limit values have to be within the nominal values of the measuring mode Example If wire break detection 3 6 mA is enabled and you choose 3 5 mA for the low limit value this setting...

Страница 68: ...LRODWLRQ RI WKH OR OLPLW DW FKDQQHO 8SSHU OLPLW YDOXH YLRODWHG FKDQQHO 8SSHU OLPLW YDOXH YLRODWHG FKDQQHO Figure 9 1 OB40 start information In the example and triggered a hardware interrupt In the example OB40 only transfers LD8 and LD9 into a marker word MW100 The marker word is monitored in the existing variable table You can acknowledge the marker word in OB1 by setting marker bit M200 0 or by ...

Страница 69: ...channel values VERSION 1 0 STRUCT CH_0 WORD Channel 0 CH_1 WORD Channel 1 CH_2 WORD Channel 2 CH_3 WORD Channel 3 CH_4 WORD Channel 4 CH_5 WORD Channel 5 CH_6 WORD Channel 6 CH_7 WORD Channel 7 END_STRUCT BEGIN CH_0 W 16 0 CH_1 W 16 0 CH_2 W 16 0 CH_3 W 16 0 CH_4 W 16 0 CH_5 W 16 0 CH_6 W 16 0 CH_7 W 16 0 END_DATA_BLOCK DATA_BLOCK DB 2 TITLE Current transducer in mA VERSION 1 0 STRUCT SE_1 REAL Se...

Страница 70: ...R T TDoubleInt Current 1728 L R T 1 728000e 003 Current 4 20 L R T 4 000000e 000 Current Offset correction END_FUNCTION ORGANIZATION_BLOCK OB 1 TITLE Main Program Sweep Cycle VERSION 1 0 VAR_TEMP OB1_EV_CLASS BYTE Bits 0 3 1 Coming event Bits 4 7 1 Event class 1 OB1_SCAN_1 BYTE 1 Cold restart scan 1 of OB 1 3 Scan 2 n of OB 1 OB1_PRIORITY BYTE Priority of OB Execution OB1_OB_NUMBR BYTE 1 Organizat...

Страница 71: ... Channel 3 T DB1 DBW 6 L PEW 264 Channel 4 T DB1 DBW 8 L PEW 266 Channel 5 T DB1 DBW 10 L PEW 268 Channel 6 T DB1 DBW 12 L PEW 270 Channel 7 T DB1 DBW 14 NETWORK TITLE Conversion Conversion of the channel s raw data into current values mA CALL FC 1 Raw Current DB1 DBW 0 DB2 DBD 0 CALL FC 1 Raw Current DB1 DBW 4 DB2 DBD 4 CALL FC 1 Raw Current DB1 DBW 6 DB2 DBD 8 NETWORK TITLE Reset hardware interr...

Страница 72: ...T_INF BYTE 16 41 OB 40 has started OB40_PRIORITY BYTE Priority of OB Execution OB40_OB_NUMBR BYTE 40 Organization block 40 OB40 OB40_RESERVED_1 BYTE Reserved for system OB40_IO_FLAG BYTE 16 54 input module 16 55 output module OB40_MDL_ADDR WORD Base address of module initiating interrupt OB40_POINT_ADDR DWORD Interrupt status of the module OB40_DATE_TIME DATE_AND_TIME Date and time OB40 started EN...

Страница 73: ...annel 2 upper limit value SPBNB L004 L W 16 8 L MW 100 OW T MW 100 L004 NOP 0 NETWORK TITLE Sensor 3 Channel 3 Lower limit value Only for demonstration purposes Channel 3 has now hardware interrupt capabilities U L 9 3 Channel 3 low limit value SPBNB L005 L W 16 10 L MW 100 OW T MW 100 L005 NOP 0 NETWORK TITLE Sensor 3 Channel 3 Upper limit value Only for demonstration purposes Channel 3 has now h...

Страница 74: ...Appendix A 1 Source of the user program SM331 AI 8x12 Bit Getting Started part 1 4 20mA A 6 Getting Started 11 2006 A5E00253410 02 ...

Страница 75: ...rdware configuration 6 7 Channel group Not used 5 7 Characteristics Analog module 4 5 Check Line voltage 5 3 Clear Reset 6 13 Common mode error 8 4 Components SM331 4 4 Components of the Product SM331 modules 4 4 Configuration Calling 6 11 Configuration programming error 8 4 Configuration language STL 6 4 Configuring Analog module 6 10 CPU 315 2DP 6 1 Hardware configuration 6 7 with SIMATIC Manage...

Страница 76: ...isplay 8 3 Errors Connecting up 5 8 F Fill out Variable table 7 4 Finish Hardware configuration 6 12 Front connector Installing 4 8 H Hardware and software for analog modules 2 1 Hardware catalog opening 6 8 Hardware configuration calling 6 7 Configuring 6 7 Downloading 6 14 Finishing 6 12 Hardware fault find 8 2 Hardware interrupt limit values 9 1 Hardware interrupt 6 12 9 1 I Importing Source fi...

Страница 77: ...supply 4 2 Selecting CPU 6 3 Load power supply 6 8 Organization blocks 6 4 Target addresses 6 15 Sensor values Visualize 7 3 Settings Parameters 6 10 test 6 13 SIMATIC Manager 6 1 Hardware configuration 6 7 start 6 1 SM331 Components 4 4 Installing 4 8 SM331 Front connector Wiring 5 7 SM331 modules Components of the Product 4 4 Smart Label 7 2 source code Compiling 6 22 Download A 1 User Program A...

Страница 78: ...re 6 17 Testing 7 1 V Values Controlling 7 7 Monitor 7 6 Variable description 7 5 Variable table Fill out 7 4 Visualize Sensor values 7 3 W Wire break 8 5 Wiring Analog module 5 4 5 5 SM331 Front connector 5 7 Wiring the power supply and CPU 5 2 Wiring principle 2 Wire current transducer 5 4 4 Wire current transducer 5 5 Current transducers 5 4 Wizard New Project 6 1 ...

Отзывы: