FM355C Control module

download FM355C Control module

of 9

Transcript of FM355C Control module

  • 8/9/2019 FM355C Control module

    1/20

     ______________ 

     ______________ 

     ______________ 

     ______________ 

     

    Introduction

    1

    Preparations

    2

    Learning units

    3

    Further Information

    4

     

    SIMATIC FM 355 C

    SIMATIC

    FM 355 C

    Getting Started

    Edition 02/2006

    A5E00059348-03

  • 8/9/2019 FM355C Control module

    2/20

     

    afety Guidelines

    This manual contains notices you have to observe in order to ensure your personal safety, as well as to preventdamage to property. The notices referring to your personal safety are highlighted in the manual by a safety alertsymbol, notices referring only to property damage have no safety alert symbol. These notices shown below aregraded according to the degree of danger.

    Danger

    indicates that death or severe personal injury will result if proper precautions are not taken.

    Warning

    indicates that death or severe personal injury may  result if proper precautions are not taken.

    Caution

    with a safety alert symbol, indicates that minor personal injury can result if proper precautions are not taken.

    Caution

    without a safety alert symbol, indicates that property damage can result if proper precautions are not taken.

    Notice

    indicates that an unintended result or situation can occur if the corresponding information is not taken intoaccount.

    If more than one degree of danger is present, the warning notice representing the highest degree of danger willbe used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating toproperty damage.

    Qualified Personnel

    The device/system may only be set up and used in conjunction with this documentation. Commissioning andoperation of a device/system may only be performed by qualified personnel. Within the context of the safety notesin this documentation qualified persons are defined as persons who are authorized to commission, ground andlabel devices, systems and circuits in accordance with established safety practices and standards.

    Prescribed U sage

    Note the following:

    Warning

    This device may only be used for the applications described in the catalog or the technical description and only inconnection with devices or components from other manufacturers which have been approved or recommendedby Siemens. Correct, reliable operation of the product requires proper transport, storage, positioning andassembly as well as careful operation and maintenance.

    Trademarks

    All names identified by ® are registered trademarks of the Siemens AG. The remaining trademarks in thispublication may be trademarks whose use by third parties for their own purposes could violate the rights of the

    owner.

    Disclaimer o f Liability

    We have reviewed the contents of this publication to ensure consistency with the hardware and softwaredescribed. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, theinformation in this publication is reviewed regularly and any necessary corrections are included in subsequenteditions.

    Siemens AG

    Automation and DrivesPostfach 48 4890437 NÜRNBERGGERMANY

    Order No.: A5E00059348-03

    Edition 02/2006

    Copyright © Siemens AG 2006.

    Technical data subject to change

     

  • 8/9/2019 FM355C Control module

    3/20

     

    Table of contents

    1 Introduction............................................................................................................................................. 1-1

    2 Prepara tions ........................................................................................................................................... 2-1

    3 Lea rning units ......................................................................................................................................... 3-1

    3.1 Installing the configuration package on the PG ......................................................................... 3-1

    3.2 FM 355 C, installing and wiring.................................................................................................. 3-1

    3.3 Programming the FM 355 C....................................................................................................... 3-33.4 Saving parameters and downloading these to FM 355 C.......................................................... 3-5

    3.5 Integrating FM 355 C in the user program................................................................................. 3-6

    3.6 Modification of controller parameters by the user program ....................................................... 3-7

    3.7 Download finished example program "SIMATIC 300 Station2 (C)"........................................... 3-7

    3.8 Testing the controller using the loop display and curve recorder .............................................. 3-8

    3.9 PID controller tuning .................................................................................................................. 3-9

    3.10 Tuning temperature controllers.................................................................................................. 3-9

    4 Furth er Inform ation ................................................................................................................................. 4-1

    4.1 Diagnostics................................................................................................................................. 4-1

    4.2 Examples ................................................................................................................................... 4-1

    FM 355 CGetting Started, Edition 02/2006, A5E00059348-03 iii 

  • 8/9/2019 FM355C Control module

    4/20

    Table of contents

    FM 355 Civ  Getting Started, Edition 02/2006, A5E00059348-03

  • 8/9/2019 FM355C Control module

    5/20

     

    Introduction

    1

    Purpose of this docum entation

    Based on a practical example, this manual leads you through the various steps incommissioning a fully functional application, and thus introduces the basic functions ofFM 355 C hardware and software, and corresponding test features. The references to themanual should give you an initial overview of the information it contains.

    Wiring and tuning of the controller will take approx. one to two hours, depending on yourexperience.

    FM 355 CGetting Started, Edition 02/2006, A5E00059348-03 1-1 

  • 8/9/2019 FM355C Control module

    6/20

    Introduction

    FM 355 C1-2  Getting Started, Edition 02/2006, A5E00059348-03

  • 8/9/2019 FM355C Control module

    7/20

     

    Preparations

    2

    Requirements

    Hardware and software requirements:

    • An S7-300 station, consisting of a power supply module and a CPU.

    • STEP 7 (≥V4.02) is properly installed on your PG.

    You have configured a project for the S7-300 station.• The PG is connected to the CPU.

    • You have an FM 355 C and its configuration package, and all necessary accessoriessuch as bus connectors (supplied with your FM), front connectors, encoders (sensors),switches, final control elements (actuators), and wiring material.

    FM 355 CGetting Started, Edition 02/2006, A5E00059348-03 2-1 

  • 8/9/2019 FM355C Control module

    8/20

    Preparations

    FM 355 C2-2  Getting Started, Edition 02/2006, A5E00059348-03

  • 8/9/2019 FM355C Control module

    9/20

     

    Learning units

    3

    3.1

    3.1

    Installing the configuration package on the PG

    Procedure

    The configuration package contains a configuration tool for FM 355 C, all function blocks(FBs) you need to integrate your FM in the CPU user program, and various exampleprograms.

    1. To install the software, place the CD into your drive, and then run SETUP.EXE from thisCD.

    2. Follow the setup instructions (see the FM 355 Controller Module manual, chapter"Assigning parameters to FM 355".)

    3.2 3.2FM 355 C , installing and wiring

    Procedure

    1. Connect the bus connector included with FM 355 C to the bus connector of the CPU.

    2. Place the FM 355 C onto the mounting rail, then swivel it down, and screw-tighten it (referto the FM 355 Controller Module  manual).

    3. Wire the front connectorsThe wiring diagram below shows you the front connector wiring of a controller channelwith voltage input / output. For information about wiring other sensors and actuators, referto the FM 355 Controller Module  manual.

    Always short-circuit any unused analog inputs and the reference junction by wiring these

    to MANA and M, regardless whether or not you configured those inputs on the userinterface.

    You do not necessarily have to wire the digital inputs to operate a controller. Forinformation about the wiring and applications of digital inputs, refer to the FM 355Controller Module  manual.

    FM 355 CGetting Started, Edition 02/2006, A5E00059348-03 3-1 

  • 8/9/2019 FM355C Control module

    10/20

    Learning units

    3.2 FM 355 C, installing and wiring

     

      

      

      

      

      

      

      

      

     

      

     

     

     

     

     

     

    4. Insert the front connectors into the FM 355 C. Make sure it engages with an audible click.

    FM 355 C3-2  Getting Started, Edition 02/2006, A5E00059348-03

  • 8/9/2019 FM355C Control module

    11/20

      Learning units

    3.3 Programming the FM 355 C

    3.3 3.3Programming the FM 355 C

    Further information

    See the FM 355 Controller Module  manual, chapter "Assigning parameters to FM 355".)

    Checking properties

    1. Open your project in SIMATIC Manager (see the FM 355 Controller Module, manual,chapter "Assigning parameters to FM 355".)

    2. Open the "HW Config" configuration table in your project.

    3. Select the FM 355 C with order no. 6ES7 355-0VH10-0AE0 from the hardware catalog,then drag-and-drop it to the required slot (in our example: slot 4.)

    4. Open the "Properties - FM 355 C PID Control" dialog box by double-clicking thisFM 355 C.

    5. Note down the module address defined in the addresses tab (in this example: 256 =100H.) You need this address to integrate the FM 355 C in your user program.

    6. Check out the "basic parameters":

     – Interrupt generation: NO

     – Interrupt selection: none

    This setting prevents the FM from outputting a diagnostics interrupt to the CPU after atransducer error has been detected (see the FM 355 Controller Module  manual, chapter"Faults and diagnostics".)

    7. ClickParameter...

    to open the programming interface. The next sections will only dealwith parameters required for the sample project. We are not going to show and describeall programming interfaces.

    Programm ing the analog input parameters

    In the first step, select a sensor type to enable the module to process an analog input andthe corresponding controller.

    Click of analog input 1.

    1. Click Sensor.

    2. Set the parameter "voltage 0 ... 10 V" as sensor type, then save and confirm your settingsby clicking OK. This also closes the dialog box.

    3. ClickNormalize

    , then define the required physical range of values for the setpoint andactual value.Define a "high" limit which corresponds with 10 V at the input.Define a "low" limit which corresponds with 0 V at the input.Save and confirm your settings with OK .

    4. Close the Analog input 1 window by clicking Close.

    For further information, refer to the Online Help .

    FM 355 CGetting Started, Edition 02/2006, A5E00059348-03 3-3 

  • 8/9/2019 FM355C Control module

    12/20

    Learning units

    3.3 Programming the FM 355 C

    Programm ing the error signal parameter

    Do not change the default controller type "Fixed setpoint or cascade controller."

    1. Click Error signal.2. To see which sources are selected for the setpoint and actual value, click

    Setpoint

    undActual value A . Do not change the default "Setpoint: by function block", and "Actual valueA: conditioned analog input 1," and close both windows by clicking Cancel.

    3. Open theSwitch Safety Setpoint

     window. There, you can define the module's reaction toCPU failure, and its startup characteristics.

    4. On theLimit

    window, define the high and low limits of the setpoint. Save this setting byclicking

    OK

    .

    5. Close the Error signal window.

    For further information, refer to the Online Help .

    Programm ing the controller parameters

    1. Click Control algorithm to view all optional settings. The selection returns a fuzzytemperature control and a PID control option.

    2. PID action control is set by default. Do not change this setting, and then close the"Controller 1" dialog box. The tuning of relevant control parameters is described furtherdown.

    For further information, refer to the Online Help .

    Programm ing the controller output parameters

    1. ClickController output

    . There, you can define the signals or operating states triggering atransition at the controller output - for example, to a safety manipulated value, trackinginput or external preset manipulated value. It is not required to edit those parameters.You can also define the limits of the manipulated value.Using the split-range function, you can prepare the output of the manipulated variable totwo different analog outputs. On this interface, too, you do not need to edit anyparameters.

    2. Open the Switch Safety Manipulated value  dialog box. There, you can define themodule's reaction to transducer errors, and its startup characteristics.

    3. Close the "Controller Output" dialog box.

    For further information, refer to the Online Help .

    Programm ing the analog output parameters

    Click to define the signal to output at analog output 1: Do not modify the defaultmanipulated value A, Controller 1.

    Click to select the type of signal (actuator type) for the analog output 1. Do not changethe 0 ... 10 V default.

    For further information, refer to the Online Help .

    FM 355 C3-4  Getting Started, Edition 02/2006, A5E00059348-03

  • 8/9/2019 FM355C Control module

    13/20

      Learning units

    3.4 Saving parameters and downloading these to FM 355 C

    3.4 3.4Saving parameters and dow nloading these to FM 355 C

    Procedure

    You have successfully completed programming.

    1. Save your settings by selecting File > Save , and then close the programming interfacewith File > Exit.

    2. Close the "Properties - FM355 C PID Control" dialog box by clickingOK

    .

    3. Save your configuration data to the project by selectingStation > Save

    .

    4. When the CPU is in STOP, selectPLC > Dow nload to module

    to download theconfiguration data.

    The data are now downloaded directly to the CPU, and transferred to FM 355 C. Provided

    you backup configuration data on the CPU, the CPU always transfers those data to FM 355C at each STOP to RUN transition.

    Test

    Cycle the power supply to the CPU and FM 355 C off and on. Provided you have properlyprogrammed and wired the module, the red SF LED lights up briefly and goes dark after themodule has successfully completed its internal test. The yellow backup LED is lit when theCPU is in STOP, and is switched off again when the CPU goes into RUN.

    FM 355 CGetting Started, Edition 02/2006, A5E00059348-03 3-5 

  • 8/9/2019 FM355C Control module

    14/20

    Learning units

    3.5 Integrating FM 355 C in the user program

    3.5 3.5Integrating FM 355 C in the user program

    Procedure

    1. In SIMATIC Manager, selectFile > Open ... > Libraries

     to open the FM_PID library.

    2. Copy FB 31 PID_FM from the "FM 355,455 PID Control / Blocks" container of theFM_PID library to the "Blocks" container of your project.

    At FB 31 PID_FM, you can

     – edit operating parameters such as setpoints, or toggle from manual to auto mode

     – read process values from the FM, such as the actual value, the manipulated variable,or the current operating states

     – edit controller parameters based on the process state.

    3. Install a watchdog interrupt OB in your project, for example, OB 35.

    4. Open this OB 35.

    5. Call FB 31 PID_FM in OB 35, then assign this FB call an instance DB. Example: CALL"PID_FM", DB 50

    6. Set the module address you noted down earlier on at parameter MOD_ADDR (see"Programming FM 355 C".)

    7. At the CHANNEL parameter, set the channel number of the controller whose parametersyou want to read/write with this call.

    8. You can define the setpoint at parameter SP_RE. Changing over between manual andautomatic mode and the manual value specification ist possible via the parameters

    LMN_REON and LMN_RE.9. Select File > Save to save OB 35.

    10. Open the symbol editor to assign a symbolic name to the new instance DB, for example,DB_cont1.

    For further information, refer to the FM 355 Controlle Module r   manual.

    FM 355 C3-6  Getting Started, Edition 02/2006, A5E00059348-03

  • 8/9/2019 FM355C Control module

    15/20

      Learning units

    3.6 Modification of controller parameters by the user program

    3.6 3.6Mod ification of con troller parameters by the user program

    Setting parameters

    To let you modify specific parameters while the system is in RUN, FB PID_FM first has toread the FM 355 parameters at startup, as you do not only transfer the deltas, but rather allparameters to the FM. Corresponding declaration at the COM_RST parameter of FB 31PID_FM in OB 100:

    SET

    = "DB_cont1".COM_RST

    FB 31 PID_FM will now read the FM 355 controller parameters at the first call of OB 35, andthen saves these to its instance DB. You can now edit specific values such as the controllerGAIN. Set parameter LOAD_PAR = TRUE in OB 35 to transfer the parameter data from the

    instance DB to FM 355 C. Successful completion of this action is indicated by the reset ofCOM_RST or LOAD_PAR (see the FM 355 Controlle Module r   manual.)

    3.7

    3.7

    Download finished example program SIMATIC 300 Station2 (C)

    Introduction

    We recommend you use the example "SIMATIC 300 Station2 (C)" of the FM_PIDEx projectfor the next tests. This functionality allows you to test the FM 355 C by simulating a processcontrol system in offline mode (see the FM 355 Controller Module  manual.)

    Procedure

    1. In HW Config, replace your FM 355 C with the FM 355 C of the example.

    2. Check the cyclic interrupt clock cycle of OB 35 in HW Config. The execution time shouldbe set to 100 ms.

    3. Safe, compile and download this configuration.

    4. Copy all blocks, except system data and the SFCs 58 and 59, from the blocks containerof the sample project to the blocks container of the user program.

    5. Check the module address setting at the MOD_ADDR parameter of DB 31. This address

    must correspond with the FM 355 C address in HW Config.6. Download those blocks to the CPU.

    FM 355 CGetting Started, Edition 02/2006, A5E00059348-03 3-7 

  • 8/9/2019 FM355C Control module

    16/20

    Learning units

    3.8 Testing the controller using the loop display and curve recorder

    3.8 3.8Testing the controller using the loop display and curve recorde r

    Procedure

    1. You open the loop display in the parameterization interface of the FM 355 C by openingonline

    Test > Loop display

     in the instance DB 31 of the example program. The loopmonitor lets you manually enter setpoints and manipulated values to test the controller.

    2. To open the curve recorder, call instance DB 31 of the example program by selectingTest > Curve Recorder

    in the FM 355 C programming interface. You can use the curverecorder to record the trend of a setpoint step, for example.

    For further information on the loop display and curve recorder, refer to the Online Help (clickHelp

    in the relevant view.)

    Note

    You toggle from PG setpoint mode to PG manipulated value mode by setting theSP_OP_ON, SP_OP, LMNOP_ON and LMN_OP variables at FB 31 PID_FM. Thosevariables are reserved for this function and should not be implemented in the user program.

    FM 355 C3-8  Getting Started, Edition 02/2006, A5E00059348-03

  • 8/9/2019 FM355C Control module

    17/20

      Learning units

    3.9 PID controller tuning

    3.9 3.9PID controller tuning

    Procedure

    1. Open online in the parameterization interface withTest > C ontroller optimization

     of theinstance DB 31 of the example program. Follow the instructions in the message windowrelating to "Controller optimization":

    2. Set the PG option "Manipulated value", and then clickSend

    .

    3. This opens the "Controller optimization: prepare data logging." Confirm the defaults withOK

    .

    4. The message box now requests you to set the manipulated value to the operating point.Select Send to set a manipulated value at the operating point of 0%, for example. Youcan then, after the actual values has settled, confirm your entries by clicking

    OK

     on the

    "Controller optimization" message box.5. Set a manipulated value of 30% in the loop monitor, and then click Send. Data logging is

    now active. Wait for the program to detect the settled state of the actual value. Thisdetection period may seem rather long. However, noise generated by the measuredvalue is frequently superimposed on the actual value. The data logging period wasslightly extended in order to safely eliminate any negative effects of this noise on thecontroller settings.

    6. When the "Reverse excitation" message is output in the "Controller optimization"message box, click

    Close

     to close the loop monitor, and close the message box "Closeloope monitor" with

    OK

    .

    7. Select the transient response, then confirm your entry withOK

    . The next dialog boxshows the determined process and controller parameters. On this dialog box, you canselect a PID and a PI-controller, or only a PI-controller, depending on the process.

    8. ClickLoad PID

     orLoad PI

    . ClickYe s

     on the next "Write parameters for controlleroptimization" dialog box.The controller parameters you determined are now saved to the offline data storage, andto the instance DB of FB 31 PID_FM. You can now transfer those data to FM 355 C bysetting the LOAD_PAR parameter at this instance DB.

    9. Do not forget to download the modified parameters from the offline data storage tosystem data of the CPU. You can only perform this operation in the HW Configconfiguration table. If you forget to do so, the FM 355 C controller parameters will beoverwritten with the old data at the next CPU transition from STOP to RUN.

    3.10 3.10Tuning tem perature controllers

    Information

    For further information, refer to the FM 355 Controlle Moduler  manual, chapter "Parameteroptimization at a temperature controller" and to the Online Help .

    FM 355 CGetting Started, Edition 02/2006, A5E00059348-03 3-9 

  • 8/9/2019 FM355C Control module

    18/20

  • 8/9/2019 FM355C Control module

    19/20

     

    Further Information

    4

    4.1

    4.1

    Diagnostics

    Error diagnostics

    Errors may be caused by faulty parameters, by incorrect wiring, or by a transducer failure.FM 355 C indicates such errors at the group error LED.

    For information on the analysis of such errors, refer to the Controller Module FM 355manual, chapter "Faults and diagnostics."

    4.2

    4.2

    Examples

    Project FM-PIDEx

    The FM_PIDEx project contains an additional set of examples for your orientation. You canalso adapt those examples to suit your application (see the FM 355 Controller Module  manual, chapter "Examples".)

    FM 355 CGetting Started, Edition 02/2006, A5E00059348-03 4-1 

  • 8/9/2019 FM355C Control module

    20/20

    Further Information

    4.2 Examples

    FM 355 C4-2  Getting Started, Edition 02/2006, A5E00059348-03