Home

1 2 3 4 5 6 7 8 AB FM 352-5 Boolean - Service, Support

image

Contents

1. Output power supply status LEDs Input Output status LEDs Three position switch to set operating mode Note The reset ce 24V encoder position MRES Ha or digital input is spring loaded male status LEDs with no detent fics 8 Door over J Hac 19 power connector Evle noi Removable ile 1m E 24 VDC power 7 M 9 e connector Removable terminal connector Figure 1 2 Main Features of the FM 352 5 Module Other Physical Features 1 4 Other features found on the module as shown in Figure 1 2 include the following Three position switch to set the operating mode of the module Slot for the Micro Memory Card MMC which stores the program in non volatile memory Removable terminal connector for wiring inputs and outputs FM 352 5 Boolean Coprocessor 2810032 0001 Product Overview Front Connector The removable front connector allows the following connection options e 24 V digital inputs 8 inputs up to 12 inputs if the 24 V encoder is not connected e 24 V digital outputs 8 outputs e Connections for 24 V user supplied power e Encoder signals an incremental encoder RS 422 an SSI absolute encoder or a 24 V single ended encoder e 5V and 24 V connections to supply power to the encoders Wiring Diagram A simplified wiring diagram is provided on the inside of the terminal connector door as
2. Figure 4 5 FM 352 5 Properties Dialog Parameters Tab FM 352 5 Boolean Coprocessor 2810032 0001 4 9 Configuring the FM 352 5 Selecting Diagnostic Parameters Table 4 1 provides a list of the module diagnostic and process alarms that can be set in the FM 352 5 module These are dynamic parameters that can be changed under program control during Run mode using SFC 55 to write Data Record 1 see Section 5 8 Table 4 1 Diagnostic Alarm Parameters Missing auxiliary supply 1L power supply alarm Enable Disable Disable voltage 1L reverse polarity low voltage internal fault etc Missing input output 2L power supply alarm Enable Disable Disable supply voltage 2L reverse polarity low voltage internal fault etc Encoder sensor supply Fault in the encoder power Enable Disable Disable fault supply or wiring Missing encoder supply 3L power supply alarm Enable Disable Disable voltage 3L reverse polarity low voltage internal fault etc SSI frame overrun Incorrect frame size Enable Disable Disable power loss in the encoder broken wire etc Differential encoder Cut or disconnected cable Enable Disable Disable broken wire incorrect pin assignment encoder malfunction short circuited encoder signals etc MMC diagnostic MMC program missing or Enable Disable Disable invalid etc Output diagnostics Alarms for outputs QO to Enable Disable Disable Q7
3. Figure 5 22 Timing Diagram for Off Delay Timer TOF Table 5 33 Off Delay Timer TOF PT INT DINT Input Duration of the off delay time in Constant 10 us units PT must be constant positive Note No logic is allowed on the EN input FM 352 5 Boolean Coprocessor 5 50 2810032 0001 Programming and Operating the FM 352 5 Clock Pulse Generator CP_Gen The Clock Pulse Generator FB119 allows you to output a pulse at a specified frequency from less than 1 Hz to a maximum of 50 kHz When the signal state at the input ENABLE is 1 a clock pulse is generated at the output Q as shown in Figure 5 23 The output frequency is determined by inverting the value of the word input PERIOD which is an unsigned integer represented as a hex value multiplied by 20 us The frequency is equal to 50 000 PERIOD The PERIOD is equal to 50 000 divided by the desired frequency For example e When PERIOD W 16 C350 a frequency of 1 Hz is output e When PERIOD W 16 1 a frequency of 50 kHz is output Signal states ENABLE Time Figure 5 23 Timing Diagram for Clock Pulse Generator CP_Gen Table 5 34 Clock Pulse Generator CP_Gen CP_Gen ENABLE Q PERIOD WORD Constant or The number of 20 us steps in variable the period connector or PERIOD CPU_Out Note No logic is allowed on the EN input FM 352 5 Boo
4. _ _ 30 N 4 R Violet _ 31 N Casing Outside shield _ Shield contact Pin numbers correspond to cable connector 6FX2003 0CE12 for encoder 6FX2001 2xxx Figure 3 2 Wire Connections for 5 V Encoder from Incremental Encoder Cable Figure 3 3 shows the pin assignments for an incremental encoder cable available from Siemens and the corresponding connections to the terminal block on the FM 352 5 for the 24 V encoder interface The last four characters of the order number specify the cable length 6FX5002 2CA12 0xx0 gt Terminal Connections Incremental Encoder Cable on FM 352 5 Module Pin Signal Color 24 V Encoder 10 M Encoder White Yellow 23 3M 11 M Sense White Blue 12 P Encoder White Black _ 25 DC24V 2 P Sense White Red 7 Uas Red 5 A Yellow 37 A 6 A Green 8 B Black _ 38 B 1 B Brown 3 R Blue 39 N 4 R Violet Casing Outside shield Shield contact Pin numbers correspond to cable connector 6FX2003 0CE12 for encoder 6FX2001 2xxx Figure 3 3 Wire Connections for 24 V Encoder from Incremental Encoder Cable FM 352 5 Boolean Coprocessor 3 8 2810032 0001 Wiring the FM 352 5 FM 352 5 Boolean Coprocessor 2810032 0001 Figure 3 4 shows the pi
5. FF MoreFFs 0 External Outputs Figure 5 12 Multi Phase Clocking and I O Timeline FM 352 5 Boolean Coprocessor 2810032 0001 5 23 Programming and Operating the FM 352 5 5 3 Overview 5 24 Setting up the Interface FB DB Set The FM352 5 Library contains two Interface FBs that allow the S7 CPU user program OB1 for example to control the mode and operating states of the FM352 5 module You need to insert a call in OB1 to the appropriate Interface FB that handles the exchange of data between the CPU and the FM 352 5 module If a programmed MMC is installed in the module at power up the FM352 5 copies its program from the MMC to the FPGA sets Normal mode and enters operating state STOP With no programmed MMC installed the FM352 5 copies its internal program to the FPGA sets Normal mode and enters operating state STOP If configured to operate in a coprocessor environment subsequent mode and operating state transitions are determined by the appropriate Interface FB in conjunction with the RUN STOP switch located on the FM352 5 s front panel FM 352 5 Boolean Coprocessor 2810032 0001 Programming and Operating the FM 352 5 Calling the Debug Interface FB The transition from Normal to Debug mode is initiated by the CPU user program calling the Debug Interface FB FB30 in the FM352 5 Library As a result of this mode transition command the FM352 5 replaces the program in the FPGA with its i
6. N 3 I N ay 1 ee y A ne oo ve oo in FM 352 5 Boolean Coprocessor 2810032 0001 xi Contents Figures A 2 Switching Frequency vs Ambient Temperature at 500 mA Output Load A 11 A 3 Switching Frequency vs Maximum Output Current at 60 C A 11 z FM 352 5 Boolean Coprocessor xII 2810032 0001 Contents Tables 3 1 Terminal Connector Assignments Pins 1 to 20 00005 3 2 Terminal Connector Assignments Pins 21 to 40 0005 3 3 Assignment of Cable Cross Sections and Terminal Elements 4 1 Diagnostic Alarm Parameters 0 c cece eee ees 4 2 Configuration Parameters 0 00 c cece 4 3 Typical Delays for 24 V InputS 0 000 ccc eee 13 5 1 Example Declaration for the Application FB Input Section 5 2 Example Declaration for the Application FB Output Section 5 3 Example Declaration for the Application FB Static Section 5 4 Example Declaration for the Application FB Encoder Structure 5 5 Example Declaration for the Application FB FM Library FBs 5 6 Example Declaration for the Application FB Additional Instructions 5 7 Example Declaration for the Application FB Connectors 5 8 Instruction Operands 000 cece ttt eee es 5 9 Interface FB Parameter Definitions 00 0 cece eee eee 5 10 Examp
7. J Conn arrX Conn arrD DIn 5 4 IN QH Con 5 ICon 0 IN1 CPU_Out T Conn arrD L 10400 IN2 1 PV TPT ETE iConjo Figure 5 10 Examples of Connectors 5 20 FM 352 5 Boolean Coprocessor 2810032 0001 Programming and Operating the FM 352 5 Multi phase Clocking The FM 352 5 module uses an onboard processor the FPGA to execute code in parallel rather than sequentially as standard programmable controllers do This type of execution results in extremely fast and stable scan times In previous hardware implementations this parallel operation could lead to race conditions in certain networks the programmer would have to be aware of this possibility and add delay elements to align the signals correctly Multi phase clocking is a technique designed into the FM 352 5 translator software to manage the correct time sequencing of retentive elements relative to connectors in the different networks of the application program Twelve clock phases are available eleven to clock elements with storage flip flops counters etc and the twelfth to clock the outputs The module s 12 phase clock uses the connectors to synchronize the execution of previous or subsequent elements in the instruction networks The FM 352 5 translator implements the following two rules e f a connector is referenced as an input to an element before an output to the connector this element sees the connector s value from the previous scan
8. FM 352 5 Boolean Coprocessor 2810032 0001 4 5 Configuring the FM 352 5 Inserting an S7 300 Station Follow these steps to insert a SIMATIC S7 300 station 1 Expand the RACK 300 folder oa A WO DY In the hardware catalog expand the SIMATIC 300 object Select an appropriate rack for your application Double click or drag and drop the rack into the station window Select and insert an appropriate power supply module from the PS 300 folder Select and insert an appropriate CPU from the CPU 300 folder Inserting the FM 352 5 Module Follow these steps to insert the FM 352 5 module in a SIMATIC S7 300 station 4 6 1 In the hardware catalog expand the FM 300 folder 2 Expand the FM Coprocessors folder 3 4 Select the FM 352 5 Boolean Coprocessor module Select a valid slot in the rack and double click the module in the catalog or drag and drop the module into a valid slot in the S7 300 station FM 352 5 Boolean Coprocessor 2810032 0001 Configuring the FM 352 5 4 4 Assigning Properties and Parameters Accessing the Properties Dialog After the FM 352 5 module has been placed in a valid slot of the S7 300 station you need to configure the module by assigning certain properties and parameters Double click on the FM 352 5 module entry This opens the Properties dialog which contains four tabs for assigning properties and parameters The General tab shown in Figure 4 3 displays basi
9. Monitoring the Program Execution STEP 7 provides several methods for monitoring the execution of your program Refer to STEP 7 documentation for information on how to use the program monitoring functions The flow of data between the project program the Interface FB the Application FB with its instance DB and the module inputs and outputs during debug mode operation is described on page 5 26 and shown graphically in Figure 5 14 By using an iterative process of editing the Application FB and re downloading it each time to check the execution results you can test the program to meet your needs before downloading it to the FM 352 5 module Saving the Program to the CPU Project After you are satisfied that the Application FB executes correctly save any changes you made to the Application FB in the CPU project In the LAD FBD editor window click the Save button or select the menu command File gt Save FM 352 5 Boolean Coprocessor 5 32 2810032 0001 Programming and Operating the FM 352 5 5 5 Downloading the Program to the FM 352 5 Compiling the Application FB In order to create the special SDB which contains the hardware configuration and the Application FB in a form that can be read by the FPGA you need to compile the Application FB for the FM 352 5 After creating and debugging your application program follow these steps to compile program and hardware information to the SDB needed for the FM 352 5 module 1 Open
10. You can disable the consistancy check in the Advanced Parameters section of the Parameters dialog If the MMC or the system data block in the CPU has the consistancy check disabled the consistancy check is not performed and any program will be allowed to execute FM 352 5 Boolean Coprocessor 2810032 0001 4 15 Configuring the FM 352 5 4 7 Saving and Compiling the Hardware Configuration Saving the Configuration 4 16 After you have selected or configured the module parameters and the diagnostic functions you need to save the configuration To save the FM 352 5 configuration parameters follow these steps 1 Click OK on the FM 352 5 Properties dialog 2 Click the Save and Compile button or use the menu command Station gt Save and Compile in the HW Config main screen as shown in Figure 4 6 3 Download the compiled module configuration to the S7 CPU by clicking on the Download to Module button or use the menu command PLC gt Download in the HW Config main screen as shown in Figure 4 6 GHW Config SIMATIC 300 Station Edit Insert PLC View Options Window Help All SIMATIC 300 Configuration re _ Oy x a _ J 0 UR Click the Save and Compile J button or use the menu command f PS 307 5A Station gt Save and Compile E CPU 315 Then download hardware LE FM 352 5 configuration to S7 CPU 2 3 4 5 B Fi 8 ne Figure 4 6 Saving and Compilin
11. e Ifa connector is referenced as an input to an element after an output to the connector this element sees the connector s value from the current scan The use of 12 phase clocking means you can connect up to 11 storage elements in series without worrying about extending the scan time If you insert too many elements in series the software displays an error message that helps you take the necessary action to meet the phase clock rules Another advantage of multi phase clocking is that it generates the same logical sequence of the program in the FPGA as when the S7 CPU executes the program in Debug mode The retentive elements are the following e Timers e Counters e Flip flops e Edge detectors e Shift registers e Binary scalers FM 352 5 Boolean Coprocessor 2810032 0001 5 21 Programming and Operating the FM 352 5 5 22 Figure 5 11 shows examples of multi phase clocking of retentive elements with connectors Conn arrX FF ThirdFF Conl2 DOut 1 In this network the connector Conn arrXCon 2 is from the previous scan because it is referenced before any outputs to it ThirdFF is clocked with phase 1 RS r a C4 Din 2 S In this network MoreFFs 0 is clocked with phase 1 and MoreFFs 1 is clocked with phase 2 The output DOut 2 is clocked on the last phase The midline output connector Conn arrXCon 2 is valid after the phase 1 clock FF MoreFF
12. FM 352 5 Boolean Coprocessor 1 8 2810032 0001 Installing and Removing the FM 352 5 2 Chapter Overview a O e L I FM 352 5 Boolean Coprocessor 2810032 0001 2 1 Installing and Removing the FM 352 5 2 1 Installation Rules Planning the Mechanical Installation For operating the FM 352 5 module in an S7 300 system information on the options of mechanical installation and how you must proceed during the project planning can be found in the S7 300 Programmable Controller Hardware and Installation Manual Only supplementary information is given in this chapter The remainder of this section and section 2 2 refer to S7 300 system installation Section 2 3 describes installation in a stand alone system Installation of the Rail Horizontal installation of the rail is preferable If you install the rail vertically take into consideration the restrictions on ambient temperature a maximum of 40 C 104 F Configuring the Mechanical Layout If the FM 352 5 module is to be configured for operation in an S7 300 system observe the following rules when planning the mechanical installation of your controller system e The maximum number of modules is restricted by the length of the rail and the width of the modules The FM 352 5 takes up 80 mm 3 15 in of space e The number of modules that can be installed to the right of the CPU is limited by the sum of their current consumptions from the S7 300 backplane bus The c
13. FM 352 5 Boolean Coprocessor 5 42 2810032 0001 Programming and Operating the FM 352 5 Reset Set Flip Flop RS This instruction is found in the standard list of STEP 7 instructions You must label each RS instruction with a unique element that is declared in the structure FF RS Reset Set Flip Flop is reset if the signal state is 1 at the R input and O at the S input It is set if the signal state is O at the R input and 1 at the S input If the RLO is 1 at both inputs the RS is set Table 5 23 Reset Set Flip Flop RS lt FElabel gt OR BOOL Enables reset operation BOOL Enables set operation 8 BOOL Signal state of output FF label BOOL FF identifier Positive RLO Edge Detection P This instruction is found in the standard list of STEP 7 instructions P Positive RLO Edge Detection detects a signal change in the lt address gt from 0 to 1 and displays it as RLO 1 after the instruction The current signal state in the RLO is compared with the signal state of the address the edge memory bit If the signal state of the address is 0 and the RLO was 1 before the instruction the RLO will be 1 pulse after this instruction and 0 in all other cases The RLO prior to the instruction is stored in the address Table 5 24 Midline Output Connector lt address gt lt address gt BOOL Input Edge memory bit storing the P previous signal state of RLO FM 352 5 Boolean Coproces
14. This rollover is reported in the underflow status bit e It increments to the upper limit of the counter rolls over to the lower limit and continues counting This rollover is not reported in the overflow or underflow status bits Figure 6 3 illustrates the functionality of the periodic counting mode Counter upper limit Count range maximum value Load up value Count range minimum value Counter lower limit up counting up d counting down Main count direction up H hold active Reset value 0 R reset active L load active Figure 6 3 Periodic Counting Mode FM 352 5 Boolean Coprocessor 2810032 0001 6 9 Encoder Signals and their Evaluation 6 3 Differential Encoder Signals Differential Encoder Signals The differential encoder supplies the differential signals A A B B and N N to the module The signals A B and N are the inverted signals of A B and N The signals A and B are phase shifted by 90 each Encoders with these six signals are known as symmetric or differential encoders Signals A and B are used for counting Signal N is used for setting the counter to the Reset value if parameterized accordingly Figure 6 4 shows the time sequence of these signals Terminal 26 SignalA 27 Signal 28 Signal B 29 Signal B 30 Signal N 31 Signal N Direction of count
15. 2810032 0001 4 1 Configuring the FM 352 5 4 1 Installing the Configuration Programming Software Contents of the CD ROM Package The CD ROM for the FM 352 5 module contains the following items e FM 352 5 Hardware Configuration software including help files and compiler e FM 352 5 library of function blocks FBs and associated help files e User manual in PDF format e GSD file contains module parameter data for non S7 masters e Example programs e S7 PLCSIM software package that simulates S7 CPUs for testing program execution refer to the online S7 PLCSIM user manual and help system for complete information on how to use the software Hardware Requirements The FM 352 5 Hardware Configuration software and the associated files are intended to work with SIMATIC STEP 7 If your computer meets the hardware requirements to support STEP 7 then your computer will also support the installation of the FM 352 5 Hardware Configuration software The FM 352 5 Hardware Configuration software operates with Windows 98 Windows NT and Windows 2000 Starting the Installation Setup The setup utility installs the software components in the same manner as STEP 7 and other STEP 7 components Select the language you want to use for the installation process and follow the instructions as they appear on screen FM 352 5 Function Block Library 4 2 After installing the software you will find an FM 352 5 Library of FBs in the Program
16. DB3 DB5 DB6 DB30 DB31 VAT_1 and SFC64 5 Copy the Symbols object from the Example Program to your program folder 6 Return to the HW Config window and double click on the FM 352 5 to access the Properties dialog for the FM 352 5 module 7 Select the Addresses tab and assign the input and output addresses Note The example program uses address 256 in FB30 and FB31 for the inputs and outputs If you select a different address you will need to change the address parameters in FB30 and FB31 to match what you have selected 8 Select the Parameters tab 9 Open the Basic Parameters folder and click the checkbox to enable Interrupt generation For Interrupt selection select Process interrupts from the pull down menu Then open the Process Interrupts Enable folder and click the checkboxes to enable all 8 process interrupts FM 352 5 Boolean Coprocessor 2810032 0001 Programming and Operating the FM 352 5 Downloading and Running the Example Program Continue with the following steps to load run and monitor the Getting Started application example 1 Select the Programming tab and click the Compile button to compile the FM program FB3 Click OK on the information dialog and then click OK to close the FM 352 5 Properties dialog From the HW Config window select the menu command Station gt Save and Compile to save and compile the entire hardware configuration From the SIMATIC
17. FM 352 5 Boolean Coprocessor 2810032 0001 5 7 Programming and Operating the FM 352 5 This part of the static section contains multiple instance declarations of each FB from the FM 352 5 Library as shown in Table 5 5 These names can be changed Table 5 5 Example Declaration Table for the Application FB FM Library FBs Adaress Becaaion nome we Comment atic J N r le i FB121 from the FM 352 5 library C eoo stat oon orme teit down counter e12 C meofsa sre sae CS Note Your project must contain all FBs that are listed in the declaration section of the application FB in order to be accessible for execution Any declared FBs that have no corresponding FB in the project will appear in red FM 352 5 Boolean Coprocessor 5 8 2810032 0001 Programming and Operating the FM 352 5 This part of the static section contains declarations for flip flop instructions and positive and negative edge instructions as shown in Table 5 6 These names can be changed Table 5 6 Example Declaration Table for the Application FB Additional Instructions marese Becaaion nome we comm 1254 0 stat FF STRUCT Resources for R S and S R Each element must be a BOOL or an array of BOOL 0 0 stat FirstF F BOOL Number of elements can be increased as needed C oefsa mae fe OO a E C ofsa ooo eo aoj mosmor OOOO 1258 0 stat Edge STRUCT Resources for Edge detects Each element must be a BOOL or
18. handling the product or toa particular part of the documentation Qualified Personnel Only qualified personnel should be allowed to install and work on this equipment Qualified persons are defined as persons who are authorized to commission to ground and to tag circuits equipment and systems in accordance with established safety practices and standards Correct Usage Warning ZN This product may only be used for the applications described in the user manual and only with devices or components from other manufacturers which have been approved or recommended by Siemens This product can only function correctly and safely if it is transported stored set up and installed cor rectly and operated and maintained as recommended Trademarks SIMATIC SIMATIC HMI and SIMATIC NET are registered trademarks of SIEMENS AG Some of other designations used in these documents are also registered trademarks the owner s rights may be violated if they are used by third parties for their own purposes Copyright Siemens Energy amp Automation Inc 2001 All rights reserved The reproduction transmission or use of this document or its contents is not permitted without express written authority Offenders will be liable for damages All rights including rights created by patent grant or registration of a utility model or design are reserved Siemens Energy amp Automation Inc 3333 Old Milton Parkway Alpharetta
19. individually enabled Process interrupts Process interrupts 0 to 7 Enable Disable Disable individually enabled The FM 352 5 module can have an output ON time of less than 5 us In order for the FPGA to be able to respond to an output overload by setting the diagnostic bit the pulse width of the output ON time must be greater than 2 ms FM 352 5 Boolean Coprocessor 4 10 2810032 0001 Configuring the FM 352 5 Selecting Configuration Parameters Table 4 2 provides a list of the configuration parameters that can be set in the FM 352 5 module These are static parameters that determine how the module operates Table 4 2 Configuration Parameters Interrupt generation Enable Disable Interrupt selection None Diagnostic interrupts Process interrupts Diagnostic and Process interrupts Input filter time constants 0 5 10 15 20 50 microseconds and 0 1 6 milliseconds delay see Section 4 5 microseconds for more information about input filtering Stand alone operation Module stops if stand alone module is Module stops if allowed to operate if stand alone stand alone Encoder type selection No encoder SSI encoder 5V differential No encoder encoder 24V single ended encoder interface SSI Encoder Shift register length 13 bits 25 bits 13 bits Clock rate 125 kHz 250 kHz 500 kHz 1 MHz 125 kHz Delay time monoflop 16 32 48 64 microseconds 64 us delay Data shift direction Left Right Left Data shift 0 to 12
20. 0001 A 1 Specifications A 1 Standards Certificates and Approvals Introduction This chapter contains the following information about the FM 352 5 e The most important standards that the FM 352 5 complies with e The certificates and approvals of the FM 352 5 The general technical specifications comprise the standards and test specifications with which the FM 352 5 complies as well as the criteria on the basis of which the FM 352 5 module was tested IEC 1131 The FM 352 5 module fulfills the requirements and criteria of IEC 1131 Part 2 CE Marking Our products meet the requirements and protection objectives of the following EC Directives and comply with the harmonized European Standards EN that have been published in the Official Gazettes of the European Community for programmable logic controllers e 89 336 EEC Electromagnetic Compatibility EMC Directive e 73 23 EEC Electrical Equipment for Use within Fixed Voltage Ranges Low Voltage Directive The EC declarations of conformity are being kept available for the responsible authorities at Siemens Aktiengesellschaft Bereich Automatisierungstechnik A amp DASE4 Postfach 1963 D 92209 Amberg Germany UL Approval UL Recognition Mark Underwriters Laboratories UL based on UL 508 standard file no E116536 CSA Certification A 2 CSA Certification Mark Canadian Standards Association CSA based on Standard C22 2 No 142 file no LR 48323 FM 352 5 Boo
21. 2810032 0001 7 1 Diagnostics and Troubleshooting 7 1 Reading the Status LEDs Status LEDs The status LEDs on the front of the module indicate the following conditions as described in Table 7 1 Table 7 1 Status LED Definitions SE m Red Indicates a fault condition in the module MCF Indicates a fault condition in the MMC of the module when blinking it indicates an active MMC operation DC5V ml Green Indicates the power status of the module IOF Indicates an I O fault condition output overload missing 2L or 3L broken wire SSI fault RUN Green Indicates the module is in RUN mode STOP Yellow Indicates the module is in STOP mode 10 to 111 Green Indicates the On status of each input point Qotoa7 m Green Indicates the On status of each output point 5VF Indicates an overload in the 5 V power supply output m Red Indicates an overload in the 24 V power supply output Green The RUN and STOP LEDs blink alternately to indicate Yellow that the module is receiving a download from the CPU FM 352 5 Boolean Coprocessor 7 2 2810032 0001 Diagnostics and Troubleshooting 7 2 Diagnostic Messages Responding to Diagnostic Interrupts If you want your program to respond to an internal or external module fault you can parameterize a diagnostics interrupt that stops the cyclical program of the CPU and calls the diagnostics interrupt OB OB8
22. 352 5 Boolean Coprocessor Module The entire SIMATIC Manual Collection is also available on CD ROM Standards Certificates and Approvals The FM 352 5 fulfills the requirements and criteria of IEC 1131 Part 2 and the requirements for obtaining the CE marking The following agency approvals apply UL recognition mark UL 508 standard CSA certification standard C22 2 No 142 and FM Class l Division 2 Please refer to Section A 1 for further details on standards certificates and approvals FM 352 5 Boolean Coprocessor 2810032 0001 Preface Aids to Finding Information You can access specific information in the manual by using the following aids e At the beginning of the manual you will find a comprehensive table of contents and lists of the figures and tables contained in the manual e Inthe different chapters you will find subheadings that allow you to gain an overview of what is contained in each section e At the end of the manual you will find a comprehensive index enabling rapid access to the information you are looking for Technical Support If you have questions concerning the information on the FM 352 5 module contained in this manual contact your Siemens Energy amp Automation Inc distributor or sales office If you require assistance in contacting your distributor or sales office in the United States phone 1 800 964 4114 For additional technical assistance call the Siemens Technical Services Group
23. 5 Boolean Coprocessor 2810032 0001 5 27 Programming and Operating the FM 352 5 Data Flow in Normal Mode In Normal mode execution of the Application FB occurs within the FPGA Field Programmable Gate Array of the FM 352 5 module The Application FB has been compiled and copied to the MMC card which is installed in the FM 352 5 module At power up the FPGA reads the image of the FB that has been stored in the MMC Any time power to the system is lost or interrupted the FPGA program is lost When power is restored the FPGA again reads the program from the MMC Figure 5 16 shows the flow of input and output data between the main project OB1 and the FM 352 5 module inputs and outputs through the interface FB The Interface FB transfers CPU_Out data from the CPU to the module and CPU_In data from the module to the CPU S7 CPU WNE TI FM 352 5 Module Inputs _ Interface lt OB1 hE ooo 4 2 CPU_Out Output CPU_Out space 14 data bytes 2 control bytes a 3 CPU_In CPU In 4 14 data bytes 2 status byt 2 status bytes cs Module Outputs Figure 5 16 Data Exchange in Normal Mode FM 352 5 Boolean Coprocessor 5 28 2810032 0001 Programming and Operating the FM 352 5 Defining the Interface FB Parameters Table 5 9 lists the parameters of the Interface FB and describe
24. B 1 Parts Lists Table B 3 lists some of the recommended parts that can be used with the FM 352 5 module The XXXX digits at the end of a part number indicates that the catalog offers several different versions of the part which are designated by different part numbers Table B 3 Recommended Parts for the FM 352 5 Module ee Cable connector Connects to encoder 12 wire 6FX2003 0CE12 connector package of 3 Cable Suitable for all encoders 12 wire 6FX2008 1BD21 3AA0 200 meters other lengths are available refer to your catalog for other part numbers Shield Contact Element Fixing bracket with two bolts for 6ES7 390 5AA00 0AA0 attaching shield terminals to the rail Terminal Element For one cable with a shield diameter 6 S7 390 5BA00 0AAO of 3 to 8 mm 0 12 to 0 31 in Terminal Element For one cable with a shield diameter 6ES7 390 5CA00 0AA0 of 4 to 13 mm 0 16 to 0 51 in FM 352 5 Boolean Coprocessor B 2 2810032 0001 Index Numbers 24 V encoder signal 24 VDC supply 5 V encoder signals 6 10 A Address for questions iv Addresses input and output 4 8 Agency approvals Application examp Application FB le 5 36 5 23 B Basic tasks overview 1 8 Binary scaler 5 47 BiScale binary scaler Bit shift registe Blocks FBs library 4 2 Burst pulses A 4 C Cables encoder connections 3 8 3 9 shielded connecting CD ROM FM 352 5 configuration software 4 2 SIMATI
25. CPU_Out Conn arr CPU_Out Conn arr Cur_Val IN OUT Enc_CV2 Cmpint IN OUT DiCon 1 Cmpint IN OUT DICon 3 Figure 5 9 Example of MOVE and I _DI Instructions for Typecasting FM 352 5 Boolean Coprocessor 5 19 2810032 0001 Programming and Operating the FM 352 5 Connectors Connectors are a special type of operand required by the FM 352 5 to provide control functionality similar to M memory elements in standard S7 programs Figure 5 10 shows how connectors are used with previous or subsequent elements In this network the connectors are referenced before they are output so they are from the previous scan Conn arrX Conn arrX Con 8 Con 9 DOut 1 __ I I Ne 7 In this network the connector output Conn arrXxCon 8 connects to any subsequent references Conn arrx DIn 6 Con 8 __ I N Y The midline output Conn arrXCon 9 connects to any subsequent references Midline outputs are allowed for connectors only Conn arrx CPU_In Bi DIn 6 Con 9 ts 11 FD FI Since the connectors in this network are referenced after they are output they are from the same scan and thus they represent a direct connection Conn arrX Conn arrX CPU_In Bi Con 8 Con 9 ts 12 i J I Connectors can be BOOL INT DINT BYTE or WORD data types j Conn arrX TmrP1 CMP gt D Con 7 EN ENO
26. Config window and double click on the FM 352 5 to access the Properties dialog Select the Programming tab and click the Download button During the download process to the FM 352 5 module the RUN and STOP status LEDs blink on and off Once the download process has successfully completed the FM 352 5 module remains in STOP until you switch the module execution mode to Normal by writing a True to the M0 0 address in the VAT_1 table The Normal Interface FB then sends a Run command to the module You can observe the same program execution in Normal mode as described in steps 1 2 and 3 above FM 352 5 Boolean Coprocessor 2810032 0001 5 37 Programming and Operating the FM 352 5 5 8 Controlling Dynamic Parameters Using System Function 55 to Write Dynamic Parameters With SFC 55 WR_PARM write parameters you can modify the dynamic parameters in Data Record 1 and transfer them to the FM 352 5 module These parameters take effect when SFC 55 is called However the parameters transferred to the module do not overwrite the parameters of the module in the corresponding SDB if they exist there After a CPU transition of RUN to STOP and STOP to RUN or a power cycle the original parameters are back in force again Parameterization Data Record 1 Dynamic Parameters The dynamic parameters of Data Record 1 include diagnostic alarm enables and process alarm enables Table 5 14 defines the dynamic parameters in Data Record 1
27. Elements of the STEP 7 LAD FBD editor The FB library includes timers counters shift registers and other instructions that are intended for use only with the FM 352 5 module Some of these FBs have 16 bit and 32 bit versions of the same function In addition you can select a subset of the standard STEP 7 bit logic instructions such as contacts and coils as you create your program see Figures 5 2 and 5 3 When you have created a project in the STEP 7 environment for your control process you can copy any of the FBs that you intend to use from the Program Elements to the blocks directory of your project You can also insert them later as needed while you are creating your program FM 352 5 Boolean Coprocessor 2810032 0001 Configuring the FM 352 5 Using STEP 7 with the FM 352 5 To configure program and operate the FM 352 5 module you use STEP 7 and the FM 352 5 Configuration software to perform the following functions e Set up the hardware configuration for your project e Set the parameters of the FM 352 5 e Create edit or debug your control program e Download the program to the FM 352 5 module e Copy the program to the micro memory card MMC e Set the operating mode of the PLC and or the module e Monitor the status of the running program FM 352 5 Boolean Coprocessor 2810032 0001 4 3 Configuring the FM 352 5 4 2 Overview of Hardware Configuration Basic Steps for Installing and Configuring the FM 352 5 Mod
28. Encoder Ne quadrature signals Ensure that your installation conforms to the Incorrect pin assignment encoder specifications and to the FM 352 5 module requirements Encoder signals short circuited Check the parameters that you assigned in the Hardware Configuration parameter The encoder is not operating dialog to ensure correct setup Note When the wire break diagnostic is enabled and the SSI absolute encoder is not selected signals A A B B and N N signals are checked When the wire break diagnostic is enabled for an SSI absolute encoder only signals A and A are checked FM 352 5 Boolean Coprocessor 2810032 0001 7 7 FM 352 5 Boolean Coprocessor 2810032 0001 Using the FM 352 5 with Non S7 Masters 8 Chapter Overview Se o O Trae Prerequisites for Non S7 Users 8 2 FM 352 5 Boolean Coprocessor 2810032 0001 8 1 Using the FM 352 5 with Non S7 Masters 8 1 Overview Prerequisites for Non S7 Users The FM 352 5 module can be used in a non S7 PLC system via a PROFIBUS DP I O channel The module is designed to operate as a 16 byte in 16 byte out module when installed in an ET 200M rack The PROFIBUS DP interface is provided by an IM153 1 or IM153 2 module Tools and Prerequisites 8 2 The non S7 PLC must have DP Master capability and its configuration tool must be capable of importing the GSD file for the ET 200M The FM 352 5 must have an MMC which has been programmed by STEP 7 The co
29. Encoders is FM 352 5 Boolean Coprocessor Vill 2810032 0001 Contents SSI Encoder Overview 0 00 cece eee eens Delay TIME e203 c0 boetie dad EATE EE EEE RAA gic eae Shift Register Frame Length 00 cece eee eee eee Clock Rate edaba sac edt Baas ght parce acdaite aE Pade ee nadate aca Data Shift Direction 0060 c cece eee Normalization Data Shift Length MS lMOJEN a reas piae ada aaa i aa a E a a debe es eeueh fe donee 7 Diagnostics and Troubleshooting 7 1 Reading the Status LEDS unana nanunua eee Status LEDS seigad a a a a E A aE N 7 2 7 2 Diagnostic Messages sss srrirrsiarainra kanai nA RENAN EANN EA RERA Responding to Diagnostic Interrupts ssssaaaaaaaa anaana Events that can Initiate Diagnostics Interrupts Enabling the Diagnostics Interrupts 0 cece eee ee Responses to a Diagnostics Interrupt 0e0 eee eee Reading the Data Record from the Module 00eee Data Record 0 Diagnostic Assignments 0c eens Data Record 1 Diagnostic Assignments 00 seen eee Data Record 128 Diagnostic Assignments 00eee Wire Break Diagnostics 0 cee eects 8 Using the FM 352 5 with Non S7 Masters 8 1 Prerequisites for Non S7 Users 0 00 cece eee eee OVEINIOW sneha cach deiner obs Ob on tbat east hs ener a Tools and Prerequisites cossus 0 0 eects 8 2 Non S7 CPU System Requi
30. GA 30202 Disclaimer of Liability We have checked the contents of this manual for agreement with the hard ware and software described Since deviations cannot be precluded entirely we cannot guarantee full agreement However the data in this manual are reviewed regularly and any necessary corrections included in subsequent editions Suggestions for improvement are welcomed Siemens SE amp A 2001 Technical data subject to change Siemens Energy amp Automation Inc Preface Purpose of the Manual This manual describes the purpose features and operating functions of the SIMATIC S7 FM 352 5 Boolean Coprocessor Module This manual also enables you to install configure program and operate the FM 352 5 Module Contents of the Manual This manual describes the FM 352 5 hardware and the software required to configure and program the module It consists of chapters containing instructions and reference chapters technical specifications This manual deals with the following topics e Installing and wiring the FM 352 5 module e Configuring the FM 352 5 module e Assigning operating mode parameters to the FM 352 5 module e Programming the FM 352 5 module e Operating the module e Troubleshooting and diagnostics Related Documentation CD ROM Consult the documentation for the SIMATIC S7 300 Programmable Controller system and the STEP 7 programming software for complete information on installing and programming the FM
31. PT has expired output Q remains set to 0 The ET output provides the time that has passed since the last rising edge at the IN input Its maximum value is the value of the PT input ET is reset when the IN input changes to 0 Signal states 1 IN 0 eS Q PT PT 0 PT ET pf yf 0 Lo Time Figure 5 21 Timing Diagram for On Delay Timer TON Table 5 32 On Delay Timer TON PT INT DINT Input Duration of the on delay time in Constant 10 us units PT must be constant positive Note No logic is allowed on the EN input FM 352 5 Boolean Coprocessor 2810032 0001 5 49 Programming and Operating the FM 352 5 Off Delay Timers TOF16 and TOF32 This timer is available in two versions 16 bit FB118 and 32 bit FB115 timers TOF 16 and TOF32 delay a falling edge by the time PT A rising edge at the IN input causes a rising edge at output Q A falling edge at the IN input causes a falling edge at output Q delayed by the time PT If the IN input changes back to 1 before the time PT has expired output Q remains set to 1 The ET output provides the time that has elapsed since the last falling edge at the IN input Its maximum value is however the value of the PT input ET is reset when the IN input changes to 1 Signal states Q PT PT pan pan PT ET 0 Time
32. active state is 1 Active state 0 0 0 0 0 Consistency check by Checks for a hardware configuration Enabled module match between FM and CPU see Section 4 6 for more information FM 352 5 Boolean Coprocessor 4 12 2810032 0001 Configuring the FM 352 5 4 5 Selecting Input Filters Description of Filter Behavior The filters in the FM 352 5 module are noise filters Noise bursts are filtered out of the input signal if the noise burst is less than the delay time Pulses that are equal to the delay time or longer will be passed through to your program The filters delay the input signal for the delay time The input delay for a given input will be determined by the input type the voltage swing of the signals the time an input is held active or inactive and the delay filter selected 24 V Input Characteristics The 24 V inputs are a slower input type and have the most variation due to the input signal characteristics The 24 V inputs have an asymetrical response to the input voltage the input is faster for turning on than turning off and a saturation effect the longer an input is on the longer it takes to turn off e Turn on time is faster than turn off time turn on time is typically 1 4 us faster than turn off time e Turn on time is faster with a higher voltage input a 20 V input level is typically 0 25 us slower than a 30 V input level e Turn off time is faster with a lower voltage input a 20 V input level
33. ee System Configuration for Debugging your Program Basic Tasks to Set Up and Operate the FM 352 5 005 Front Terminal Connector of the FM 352 5 00 cc eee Wire Connections for 5 V Encoder from Incremental Encoder Cable Wire Connections for 24 V Encoder from Incremental Encoder Cable Wire Connections for SSI Encoder from SSI Encoder Cable Attaching Shielded Cables to Shield Contact Element Installing and Configuring the Hardware 0 cece eee eee Hardware Configuration Window 00 cece eee FM 352 5 Properties Dialog General Tab 02 0c eee eeee FM 352 5 Properties Dialog Addresses Tab 0 0020005 FM 352 5 Properties Dialog Parameters Tab 0020005 Saving and Compiling the Hardware Configuration 005 FM 352 5 Properties Dialog Programming Tab 0 Creating the Program 0 0 eects Valid Instructions from STEP 7 for FM 352 5 0 0 2 eee ee Valid Convert and Move Instructions from STEP 7 for FM 352 5 FM 352 5 Library of FBS 1 eae Input and Output Operands Allowed by FM 352 5 000 Example of a 32 Bit Pulse Timer from the Library FBs Examples of Shift Registers from the Library FBS 5 Examples of MOVE Instruction with Typecasting Example of MOVE and I _DI Instructions for Typeca
34. environment 1 6 installation operation Standards iiil Standards certificates and approvals A 2 Startup of the system after specific events 3 2 Static lanene Status bits declarations 5 6 Status bytes module 8 5 power supply SSI encoder Status indicators STEP 7 for configuring FM 352 5 module 4 3 program development environment 1 6 SIMATIC Manager 4 5 standard instructions 5 13 5 14 version 1 3 Storage conditions Support technical Switch operating mode System configurations 1 6 T Tasks overview 1 8 FM 352 5 Boolean Coprocessor 2810032 0001 Technical specifications A 7 climatic environmental conditions electromagnetic compatibility A 4 mechanical environmental conditions A 5 shipping and storage conditions A 4 Technical support ivi Terminal connector Test voltage A 6 Timers TOF off delay timer TON on delay timer Tools required for installation 2 2 TP pulse timer 5 48 Troubleshooting 7 1 U UL approval Up counter 5 52 Up Down counter 5 54 User data interface User FB 5 35 23 W Wire break diagnostic parameter 4 10 Wiring inputs and outputs power supplies 3 7 terminal assignments 3 5 Index 5 FM 352 5 Boolean Coprocessor 2810032 0001 To SIEMENS ENERGY amp AUTOMATION INC ATTN TECHNICAL COMMUNICATIONS M S 519 3000 BILL GARLAND ROAD PO BOX 1255 JOHNSON CITY TN US
35. is less than or equal to 0 Table 5 37 Up Down Counter CTUD EN CU CD R PV ENO BOOL Reset input R is dominant over Qu ut Load BOOL Input Load input LOAD input is QD dominant over CD PV INT DINT Input Preset value The counter is Constant preset to PV when the signal level at the LOAD input is 1 5 54 QU BOOL Output Status of the counter QU has the following value or CTUD32 a ery e 0 otherwise BOOL Output Status of the counter QD has the following value e 1ifCV lt 0 e 0 otherwise CV INT DINT Output Current count value Possible values 32768 to 32767 for 16 bit 2 147 483 648 to 2 147 483 647 for 32 bit FM 352 5 Boolean Coprocessor 2810032 0001 Programming and Operating the FM 352 5 Bit Shift Registers SHIFT SHIFT2 SHIFT4 SHIFTS8 The SHIFT instruction is available in four versions FB124 through FB127 defined by the number of bits shifted in parallel When the Clock input transitions from 0 to 1 the value at the Data input is shifted into the first stage of the shift register and is shifted for each subsequent Clock edge The output is set by the last position in the shift register When the EN and Reset are both on all of the stages of the shift register are reset to 0 Note The maximum number of shift registers supported by the FM 352 5 module is 10 Table 5 38 Bit Shift Register SHIFT Reset BOOL Input A 1 at this input and a1 at the EN
36. is typically 0 6 us faster than a 30 V input level e Turn off time is slower when the input on time is longer inputs that are on for 0 5 us typically turn off 1 4 us faster than inputs that are on for 6 us The turn off time does not increase for on times greater than 6 us Table 4 3 gives the typical ON OFF delays for each delay filter Table 4 3 Typical Delays for 24 V Inputs eas sds FM 352 5 Boolean Coprocessor 2810032 0001 4 13 Configuring the FM 352 5 RS 422 Differential Input Characteristics RS 422 differential inputs are the fastest type and have the least variation due to the input signal characteristics The RS 422 inputs are typically 0 6 us faster turning on and 2 us faster turning off than the 24 V inputs 24 V Input Filtering The discrete 24V inputs of the FM352 5 are standard inputs with minimal filtering You can configure the inputs to have additional delay filtering The most rapid response to an input change is provided when you select 0 delay input filter for an input Each input has selectable delay filtering and you can select a different filter for each input SSI Encoder Input Filtering SSI encoders do not use the input delay filters Only the minimal hardware input filter is present on the SSI encoder input signals Reference to the SSI encoder inputs in the user program will use the filtered input as specified in the parameterization Quadrature Encoder Input Filtering Quadrature enco
37. or equal to 0 Table 5 36 Down Counter CTD16 CD BOOL Counter Counter input o e 2 BOOL Input aret ome input LOAD input is dominant over CD Input Preset value The counter is Constant preset to PV when the signal level at the LOAD input is1 BOOL Output Status of the counter Q has the following value e 1ifCVs0O e 0 otherwise CV INT Output Current count value possible value 32768 to 32767 FM 352 5 Boolean Coprocessor 2810032 0001 5 53 Programming and Operating the FM 352 5 Up Down Counters CTUD16 and CTUD32 The CTUD counter is available in two versions 16 bit FB123 and 32 bit FB120 up down counters The count value is changed by a rising edge as follows e At input CU it is incremented by 1 If the count value reaches the upper limit it is no longer incremented e At input CD it is decremented by 1 If the count value reaches the lower limit it is no longer decremented If there is a rising edge at both input CU and input CD in one cycle the counter retains its current value A signal level 1 at the LOAD input presets the counter to the value PV regardless of the values at the CU and CD inputs The signal level 1 at the R input resets the counter to the value 0 regardless of the values at the CU CD and LOAD inputs The QU output indicates whether the current count value is greater than or equal to the preset value PV the QD output indicates whether the value
38. overview starting 4 5114 6 l _DI convert integer to double integer Identification label 1 5 IEC 204 3 2 Indicators status 1 4 7 2 Information aids to finding iv Input declarations 5 4 normally closed normally open 5 4 Input data bytes Input filters Input output addresses assigning 4 8 Inserting the FM module 4 6 Installation rules 2 2 FM 352 5 Boolean Coprocessor 2810032 0001 Index Installing configuration software 4 2 the FM module Instance data block 5 12 Instruction operands 5 16 Instruction set 5 40 5 56 binary scaler 5 47 bit shift registe clock pulse generator 5 51 compare function down counter 5 53 hie midline output connector 5 41 MOVE negative edge detection negative RLO edge detection 5 44 normally closed input 5 40 normally open input 5 40 NOT 5 41 off delay timer on delay timer 5 49 output coil positive edge detection positive RLO edge detection 5 43 pulse timer 5 48 reset set flip flop parameters Internet address Interrupts declarations diagnostic 7 3 L Labeling strip 1 5 FM 352 5 Boolean Coprocessor 2810032 0001 Ladder logic instructions 5 40 5 56 binary scaler 5 47 bit shift registe clock pulse generator 5 51 compare function down counter 5 53 hie midline output connector 5 41 MOVE negative edge detection negative RLO edge detection 5 44 n
39. physical outputs of the module and the 14 byte structure that is used by the CPU user program as outputs from the FM 352 5 module Table 5 2 Example Declaration Table for the Application FB Output Section adaress eceraion neme Tee Comment ARRAY 0 7 24 V digital outputs returned from this scan 18 0 CPU_In STRUCT 14 bytes you assign as inputs returned to the CPU O oa oo o O favre iP SSCSC S 6 0 out T1_CV DINT some can be DINT DINT must start at 2 6 or 10 Enc_CVv1 DINT But total structure length is limited to14 bytes met CCC CdS OSC FM 352 5 Boolean Coprocessor 2810032 0001 5 5 Programming and Operating the FM 352 5 Assigning Static Elements The static section of the declaration table contains the internal resources of the FM 352 5 module to be used in the program The first two sections consist of 8 process interrupt bits and module status bits from the FM 352 5 module as shown in Table 5 3 The module status bits cannot be changed Table 5 3 Example Declaration Table for the Application FB Static Section Kaross eceraion neme we omm Static Section This definition is position specific The first 8 bits are interpreted as hardware interrupts process alarms that trigger OB40 You can specify a list of BOOL or an Array of BOOL but not both You can also assign names to the elements 32 0 stat Intr ARRAY 0 7 Resources for module interrupts Upper limit fixed D
40. resets all the stages of the eet shift register to 0 EN ENO Data BOOL Data input for the shift register nesel Out BOOL Input Edge pulse input that moves Data the data input through the shift register Clock Length Constant Length of the shift register Length Range 2to4096 SHIFT or SHIFT2 2to 2048 SHIFT2 SHIFT4 2101024 SHIFT4 SHIFT8 2 to 512 SHIFT8 BOOL Output of the shift register FM 352 5 Boolean Coprocessor 2810032 0001 5 55 Programming and Operating the FM 352 5 Ladder Representation Ladder Representation Ladder Representation SHIFT2 SHIFT4 SHIFT8 FM 352 5 Boolean Coprocessor 5 56 2810032 0001 Encoder Signals and their Evaluation Chapter Overview a Tet ieee T 8 Coming Modes Prine roerenat Enos E es _ DieeniatereoderSinae f BAV Srgeenes Ereosersoas f EE Cee smoes FM 352 5 Boolean Coprocessor 2810032 0001 6 1 Encoder Signals and their Evaluation 6 1 Types of Encoders Encoder Types The FM 352 5 module allows you to connect one of the following encoder types e RS 422 differential incremental encoder 16 bit or 32 bit counter e 24V single ended incremental encoder 16 bit or 32 bit counter e SSI absolute encoder 13 bit or 25 bit resolution Any inputs that are not required by the encoder type selected are available as general purpose inputs Encoder Interface Signals Table 6 1 lists the signals t
41. signal type Edge Level Load value source value source Constant Module Constant Module application Constant source es HW SW a HW and SW HW or SW Count range minimum Count range minimum minimum fEntryfield fiela Count range maximum C E field 32767 16 bit or oR 32 bit Main count direction Count up Count down Hardware hold source Inputs 0 to 14 Input 8 Enter a value within the range of 32768 to 32767 for a 16 bit counter or 2147483648 to 2147483647 for a 32 bit counter FM 352 5 Boolean Coprocessor 2810032 0001 6 3 Encoder Signals and their Evaluation Table 6 3 shows the encoder structure as it appears in the declaration table of the Application FB This provides the status information and software controls of the encoder Table 6 3 Example Declaration Table for the Application FB Encoder Structure marese Becaaion Wane we Comment 38 0 0 stat Encoder STRUCT Encoder structure Do not change m 0 m C a Status direction 0 counting up 1 counting down 01 1 stat o Home e BOOL Status 1 encoder is at home position Status 1 home has occurred since power cycle BOOL Status 1 overflow displayed for 1 scan Underflow BOOL Status 1 underflow displayed for 1 scan 05 5 stat SSiFrame Boo O Status SSI data framing error or power loss Status 0 SSI encoder has not yet shifted valid data 1 data available 41
42. storing the M_BIT previous signal state of lt address gt FM 352 5 Boolean Coprocessor 5 44 2810032 0001 Programming and Operating the FM 352 5 Negative Edge Detection NEG This instruction is found in the standard list of STEP 7 instructions You must label the M_BIT input with a unique element that is declared in the structure Edge NEG Negative Edge Detection compares the signal state of lt address gt with the signal state from the previous scan which is stored in M_BIT If the current RLO state before the instruction is 1 and the state of the lt address gt bit is 0 and the previous state of that bit was 1 detection of falling edge the RLO bit will be 1 after this instruction Table 5 27 Negative Edge Detection NEG Q M_BIT BOOL Edge label Edge memory bit storing the M_BIT previous signal state of lt address gt Compare Function CMP This instruction is found in the standard list of STEP 7 instructions It can be programmed with 16 bit or 32 bit values The Compare function can be used like a normal contact It can be located at any position where a normal contact could be placed IN1 and IN2 are compared according to the type of comparison you choose If the comparison is true the RLO of the function is 1 Table 5 28 Compare Function CMP CMP Constant lt Operator gt _ IN2 INT DINT Input Second value to compare Constant IN1 Type of operator Relational Operator i
43. that you can modify with SFC 55 Table 5 14 Parameterization Data Record 1 Caye Bte Bre Bis Bia Bte Bha Biti SED o m maL Eser mo a a SS Dow A ee ee EALAR Oe Ox tl Gi e swe a a S a E E a paer pats pacs paea paes pace paet Paco Name Description of Alarm Enable Value M1L Missing auxiliary supply voltage 1L 0 Disable 1 Enable M2L Missing input output supply voltage 2L 0 Disable 1 Enable ESSF Encoder sensor supply fault overload 0 Disable 1 Enable M3L Missing encoder supply voltage 3L 0 Disable 1 Enable SSIF SSI frame overrun 0 Disable 1 Enable DBW Differential encoder broken wire 0 Disable 1 Enable 07 00 Output Overload individual enables 0 Disable 1 Enable MMC Micro Memory Card diagnostic 0 Disable 1 Enable PAE Process interrupt individual enables 0 Disable 1 Enable Note Unused bits are reserved and should be set to 0 FM 352 5 Boolean Coprocessor 5 38 2810032 0001 Programming and Operating the FM 352 5 5 9 Memory Operations Resetting the Memory Resetting the memory of the FM 352 5 causes the FPGA to read the image from the MMC No program memory contents are maintained All outputs are turned off and counters and timers are reset To reset the memory of the FM 352 5 module follow these steps 1 Set the mode switch on the module to the STOP position 2 Press the mode switch to the MRES position see Figure 5 18
44. the Application FB s Instance DB and 7 writes the output results to the module which then actuates the outputs e B The Debug Interface FB also copies the program execution results back to the CPU_In space of the OB1 FM 352 5 Boolean Coprocessor 2810032 0001 Programming and Operating the FM 352 5 Calling the Normal Interface FB The transition from Debug to Normal can be initiated by clicking the Download button on the FM 352 5 Configuration software Programming tab When the download to the FM352 5 begins the module enters operating state STOP and copies the downloaded file to the FPGA The MMC is not changed by the download The FM352 5 module remains in Normal mode when the download completes and maintains operating state STOP until the CPU user program calls the Normal Interface FB FB31 in the FM352 5 Library with a 1 at the Run input and the RUN STOP switch in the RUN position With this call the FM352 5 module starts to execute the program that was downloaded to the FPGA Figure 5 15 shows the structure of the FB labeled FM Interface Normal that is used to call the Application FB in Normal mode FM Normal Instance FM Interface Normal EN ENO 10 0 Run Error M2 0 10 1 OneScan Status MW20 W 16 100 LADDR_lIn W 16 100 LADDR_Out DB5 DBBO CPU_Out DB6 DBBO CPU_In Figure 5 15 Interface FB for Normal Mode Execution FM 352
45. the System after Specific Events 000005 Line Voltage vias cite kei icine ele OE dg does ee ed 24 VDC Supply i i iria Tadi ao inndras a doiana eee Protection against Outside Electrical Influences FM 352 5 Boolean Coprocessor 2810032 0001 Vv Contents 3 2 Terminal Assignments of the Front Connector 00000 View of the Terminal Connector and Cover Label Terminal Connector Assignments 000 eee eee eee 3 3 Wiring the Module 0 cece Wiring the Front Connector 000 c eee aceea Wiring the Power Supplies 0000 0c cee ee eee eee 3 4 Connecting Encoder Cables 0 00 cee eee eens 3 8 3 5 Connecting Shielded Cables via a Shield Contact Element 3 10 4 Configuring the FM 352 5 4 1 Installing the Configuration Programming Software Contents of the CD ROM Package cce eee cence Hardware Requirements 00 eee eeeeeee Starting the Installation Setup 0 0 0 cece eee eee FM 352 5 Function Block Library 00 cece eee ee eee Using STEP 7 with the FM 352 5 0 ee eee 4 2 Overview of Hardware Configuration 0000 e cece ee eee Basic Steps for Installing and Configuring the FM 352 5 Module 4 3 Setting Up the Hardware Configuration 0 cee ee eee Creating a Project 0 cece eee ens Accessing Hardwar
46. the functionality of the single counting mode Counter upper limit Load value up L R Count range minimum value Counter lower limit up counting up d counting down Main count direction up H hold active Reset value minimum value R reset active L load active Figure 6 2 Single Counting Mode FM 352 5 Boolean Coprocessor 6 8 2810032 0001 Encoder Signals and their Evaluation Periodic Counting In the periodic counting mode you can specify the count range e Count range 16 bit counter 32768 to 32767 e Count range 32 bit counter 2 147 483 648 to 2 147 483 647 You must initialize the counter to a known value with a Reset or Load before you begin counting You can program the Reset signal to load the counter with 0 the minimum or maximum value or the Load value When the Main Count Direction is set to Count Up the counter behaves in the following ways e t increments to the maximum value then rolls over to the minimum value and continues counting This rollover is reported in the overflow status bit e It decrements to the lower limit of the counter rolls over to the upper limit and continues counting This rollover is not reported in the overflow or underflow status bits When the Main Count Direction is set to Count Down the counter behaves in one of the following ways e it decrements to the minimum value then rolls over to the maximum value and continues counting
47. to 100 kHz at an output load of 500 mA C Output Load 500 mA 70 60 50 40 30 20 10 0 Ambient Operating Temperature 0 20 40 60 80 100 kHz Switching frequency in kHz of active channels other channels are off or disconnected Figure A 2 Switching Frequency vs Ambient Temperature at 500 mA Output Load Figure A 3 shows how the output channels are derated for maximum load current as the switching frequency increases up to 100 kHz at 60 C operating temperature mA Operating Temperature 60 C 600 5 500 5 O 400 Legend ne oO 9 300 E 200 amp gt 100 0 0 20 40 60 80 100 kHz Switching frequency in kHz of active channels other channels are off or disconnected Figure A 3 Switching Frequency vs Maximum Output Current at 60 C FM 352 5 Boolean Coprocessor 2810032 0001 A 11 Specifications FPGA Resources Used by Instructions The total resources available in the FPGA is 1200 slices Of this total 436 slices are the fixed resources used or overhead The following list shows the maximum number of slices each instruction requires The actual total may be less after the program has been compiled To estimate the size of your program add the fixed resources 436 the encoder selected and the slices for each instruction in your program The compiler provides an exact utilization percentage at compile time Table A 1 Resources of FPGA Used by Instructio
48. 0001 6 11 Encoder Signals and their Evaluation 6 5 Pulse Evaluation Introduction The counters of the FM 352 5 count the edges of t he signals Normally the edge at A is evaluated for a single evaluation x1 To achieve a higher resolution you can assign the parameter for the encoder signal evaluation to use double or quadruple x2 or x4 evaluation of the signals Use the Parameters tab in the FM 352 5 Configuration dialog to select the type of encoder signal evaluation The A and B signals must be displaced by 90 to s quadruple evaluation Pulse and Direction elect single double or When you select Pulse amp Direction for the encoder signal evaluation type the module counts on the rising edge of each signal A the counter increments when signal B is 1 high pulse When signal B is 0 low the counter decrements Signal A an an Signal B as f Down direction level Up Up count pulses Down count pulses Figure 6 6 Pulse amp Direction Counting FM 352 5 Boolean Coprocessor 2810032 0001 Encoder Signals and their Evaluation Single Evaluation Single evaluation x1 means that only one edge of A is evaluated e The counter increments on a rising edge of A when B is low e The counter decrements on a falling edge of A when B is low Figure 6 7 shows single evaluation of the signals Signal A e
49. 1 are available for use as 5 V differential discrete inputs 12 13 and 14 in addition to the 24 V inputs pins 36 through 39 Table 3 2 Terminal Connector Assignments Pins 21 to 40 Encoder Function ae wo noe m Seaman vee Par ate ___Powerforsection8 encodercreuity S 2 aM ____Groundtorsection 3 encoder circutty m ___Groundforsection3 encodercicuity 24 Output svor 52V encodersuppy Peo 25 ouput zavout 24Vencodersuppy Rea 26 Input Encoder Phase A Master Listen 112 SSI D data SSI D data 27 Input Encoder Phase A SSI D data SSI D data inverse inverse inverse 28 Input Encoder Phase B 113 SSI CK shift clock 29 Input Encoder Phase B 113 SSI CK shift inverse clock inverse Pa 31 Input Encoder Marker N 14 114 114 inverse 32 Output Encoder SSI CK shift clock 33 Output Encoder SSI CK shift clock inverse Car ma 19 19 19 19 PhaseA Green Cao input mf im 1 _ _Warkor Green Pao aM __Groundfer seston encodercrauty FM 352 5 Boolean Coprocessor 3 6 2810032 0001 Wiring the FM 352 5 3 3 Wiring the Module Wiring the Front Connector To attach the signal wires of your process to the terminal connector of the FM 352 5 module follow these steps 1 If you want to route the wires out at the bottom of the module start at terminal 40 or 20 Connect the wires to the terminals in alternating order
50. 2 Events that can Initiate Diagnostics Interrupts The following events or conditions initiate diagnostic interrupts Module parameterization missing Error in module parameterization Watchdog tripped Processor failure Flash memory error Power up RAM test failure You can parameterize the following conditions to initiate diagnostic interrupts Output overload External auxiliary voltage missing 1L Missing input output supply voltage 2L Missing encoder supply voltage 3L Overloaded encoder supply 24 V or 5 V Broken wire RS 422 differential encoder only MMC error Enabling the Diagnostics Interrupts The Hardware Configuration dialog provides a Parameters tab where you can select which diagnostics you want to enable You also select whether the module is to initiate diagnostics interrupts and or process interrupts FM 352 5 Boolean Coprocessor 2810032 0001 7 3 Diagnostics and Troubleshooting Responses to a Diagnostics Interrupt If an event occurs that can initiate a diagnostics interrupt the following happens e The diagnostic information is stored in Data Records 0 1 and 128 e The SF error LED lights up e The diagnostics interrupt OB is called OB82 e The diagnostics Data Record 0 is entered in the start information of OB82 If OB82 has not been programmed the CPU goes to STOP mode Reading the Data Record from the Module The diagnostics Data Record 0 is automatically transferred to the start inf
51. 2 2 stat o Load o O BOOL BOOL sw S W Load input for incremental encoder S W Load input for incremental encoder for incremental encoder ae 0 ma ai Val DINT Current value for the incremental encoder DINT for 32 bit encoder INT for 16 bit Load_Val DINT Load value for the encoder DINT or INT FM 352 5 Boolean Coprocessor 6 4 2810032 0001 Encoder Signals and their Evaluation 6 2 Counting Modes for the Incremental Encoders Counting Modes The FM 352 5 module supports a 16 bit or a 32 bit incremental encoder counter The counter can function in one of three modes e Continuous e Single e Periodic Each mode is described in this section Selecting Edge or Level Reset The Reset function for each of the three counting modes can be set for edge or level and behaves in the following ways e Edge Hold is dominant If Hold and Reset are activated simultaneously no reset occurs If Hold is removed first the count is reset If both Hold and Reset are removed simultaneously the count is reset If Reset is removed before Hold no reset will occur e Level Reset is dominant If Hold and Reset are activated simultaneously the count is reset and then held Encoder Status Bits As described in this section the module returns status bits to indicate the following conditions e Count direction indicates the direction of the last count e Overflow indicates that the counter has reached the maximum value
52. 2810032 0001 Wiring the FM 352 5 Chapter Overview este tn e General Rules and Regulations 3 2 FM 352 5 Boolean Coprocessor 2810032 0001 3 1 Wiring the FM 352 5 3 1 General Rules and Regulations Introduction When operating the FM 352 5 as a component part of a plant or system certain rules and regulations have to be followed depending on where the device is to be used This chapter provides an overview of the most important rules you have to observe when integrating the FM 352 5 in a plant or system Specific Applications Note the safety and accident prevention regulations that apply to specific applications for example machine protection guidelines Emergency Stop Devices Emergency stop devices complying with IEC 204 which corresponds to DIN VDE 113 must remain effective in all the operating modes of the plant or system Startup of the System after Specific Events The following table tells you what you should do when the system starts up after the occurrence of specific events Startup follows a voltage drop or failure No dangerous operating states must occur If Startup of the FM 352 5 follows an necessary force an emergency stop interruption of bus communication Startup follows unlocking of the There must not be an uncontrolled or undefined emergency stop device start up Line Voltage The following table tells you what you have to do with regard to the line voltage Permanently
53. 2L powers the input and output circuitry I 0 to 7 and Q 0 to Q 7 in the module Connect your 24 VDC power supply to the 2L and 2M terminal connections shown in Table 3 1 to provide this power source Power supply 3L powers the encoder interface circuitry I 8 to 14 It also provides a 24 V and a 5 2 V current limited supply to power the encoders Only one of the output supplies can be used at a time Connect your 24 VDC power supply to the 3L and 3M terminal connections shown in Table 3 1 to provide this power source FM 352 5 Boolean Coprocessor 2810032 0001 3 7 Wiring the FM 352 5 3 4 Connecting Encoder Cables Figure 3 2 shows the pin assignments for an incremental encoder cable available from Siemens and the corresponding connections to the terminal block on the FM 352 5 for the 5 V encoder interface The last four characters of the order number specify the cable length 6FX5002 2CA12 0xx0 gt Terminal Connections Incremental Encoder Cable on FM 352 5 Module Pin Signal Color 5 V Encoder 10 M Encoder White Yellow 23 3M 11 M Sense White Blue 12 P Encoder White Black _ 24 DC5V 25 DC24V 2 P Sense White Red 7 Uas Red 5 A Yellow 26 A 6 A Green _ _ 27 A 8 B Black _ 28 B 1 B Brown _ 29 B 3 R Blue
54. 5 Boolean Coprocessor 2810032 0001 Programming and Operating the FM 352 5 Examples of Library FBs Figure 5 6 shows an example of a 32 bit pulse timer FB113 from the FM 352 5 Library This timer is declared as a multiple instance call in the Stat area Conn arrX TmrP1 CMP gt D Conf EN ENO Conn arrX Conn arrD DIn 5 4 IN QF Cond ICon 0 IN1 CPU_Out T Conn arrD L 10400 IN2 1_PV TPT ETF iconjo Figure 5 6 Example of a 32 Bit Pulse Timer from the Library FBs Figure 5 7 shows examples of two shift registers FB124 and FB125 from the FM352 5 Library Each shift register is declared as a separate instance Internal stages cannot be accessed that is only the output stage can be accessed inside the program SReg1 SReg2 EN ENO EN ENO DIn 0 Reset Out DOut 5 DIn 2 Reset Outi DOut 6 DIn 1 Data DIn 3 Data1 Out2 DOut 7 DIn 1 2 Clock DIn 4 Data2 240 Length DIn 13 Clock 1056 Length Figure 5 7 Examples of Shift Registers from the Library FBs FM 352 5 Boolean Coprocessor 5 18 2810032 0001 Programming and Operating the FM 352 5 Figure 5 8 shows examples of how the MOVE instruction can be used to connect values to the CPU inputs The MOVE instruction can also be used to convert values from one data type to another where needed
55. 7 Encoder Signals and their Evaluation Single Counting In the single counting mode you can specify the count range as listed below depending on whether you select the 16 bit counter or the 32 bit counter e Count range 16 bit counter 32768 to 32767 e Count range 32 bit counter 2 147 483 648 to 2 147 483 647 You must initialize the counter to a known value with a Reset or Load before you begin counting You can program the Reset signal to load the counter with 0 the minimum or maximum value or the Load value When the Main Count Direction is set to Count Up the counter behaves in the following ways e It increments to the maximum value then rolls over to the minimum value and holds this value until reset or loaded This rollover is reported in the overflow status bit e It decrements to the lower limit of the counter rolls over to the upper limit and continues counting This rollover is not reported in the overflow or underflow status bits When the Main Count Direction is set to Count Down the counter behaves in the following ways e t decrements to the minimum value then rolls over to the maximum value and holds this value until reset or loaded This rollover is reported in the underflow status bit e It increments to the upper limit of the counter rolls over to the lower limit and continues counting This rollover is not reported in the overflow or underflow status bits Figure 6 2 illustrates
56. A 37605 1255 From Name Job Title Company Name Street City and State Country Telephone Please check any industry that applies to you O Automotive O Pharmaceutical O Chemical g Plastic O Electrical Machinery O Pulp and Paper O Food O Textiles O Instrument and Control O Transportation O Non electrical Machinery O Other g Petrochemical FM 352 5 Boolean Coprocessor 2810032 0001 1 Remarks Form Your comments and recommendations will help us to improve the quality and usefulness of our publications Please take the first available opportunity to fill out this questionnaire and return it to Siemens Please give each of the following questions your own personal mark within a range from 1 very good to 5 very poor Do the contents meet your requirements Is the information you need easy to find Is the text easy to understand Does the level of technical detail meet your requirements gi e O No Please rate the quality of the graphics and tables Additional comments FM 352 5 Boolean Coprocessor 2 2810032 0001
57. C documentation set iii CE marking A 2 Climatic environmental conditions A 5 Clock pulse generator 5 51 Clock rate 6 15 CMP compare function Compare function Compiling program Configuration parameters 4 11 saving and compiling software installation 4 2 systems 1 6 Connector front 1 5 3 4 3 6 Connectors declarations examples FM 352 5 Boolean Coprocessor 2810032 0001 Consistency check Contents of the manual iii Continuous counting mode Control programming Control bytes Count ranges continuous counting 6 7 periodic countin single counting Counter 6 9 6 7 6 8 Counting modes for incremental encoders 16 5 316 9 CP_Gen clock pulse generator CPU data exchange with FM module 1 3 5 26 5 28 system configuration CPU_In data structure 5 5 5 31 CPU_Out data structure 5 4 5 30 CSA certification A 2 CTD down counter CTU up counter CTUD up down counter 5 54 D Data block creating 4 17 data flow in debug mode 5 26 updating instance 5 12 Data bytes 8 4 Data consistency 5 11 Data record O diagnostics 7 4 Data shift 6 16 Data shift direction Debug interface FB Debug mode operation 5 26 Debugging the program Definition of electromagnetic compatibility A 4 Degree of protection IP 20 A 6 Delay timel 6 15 Delay time for inputs 4 13 Index 1 Index Diagnostic parameters 4 10 Diagnosti
58. FF MoreFF s 0 Conn arrx s i Din 1 RS Con 2 RS DOut 2 r ace R ac DIn 2 4S DIn 3 4S Since Conn arrXCon 2 was set with a midline output between the phase 1 and phase 2 clocks in the network above MoreFFs 2 in this network is assigned to the phase 2 clock FF MoreFF Conn arrX 2 Con 2 RS DOut 3 rR a 4 DIn 4 4S Figure 5 11 Examples of Multi phase Clocking of Retentive Elements FM 352 5 Boolean Coprocessor 2810032 0001 Programming and Operating the FM 352 5 Figure 5 12 shows a graphic representation of how inputs and outputs are handled by the multi phase clock execution of the FM 352 5 module The total response time is calculated by adding the input delays scan time and output delays as shown in the figure Inputs from the CPU are delayed by its scan I O scan and the module s microprocessor scan Outputs to the CPU are delayed by the module s microprocessor scan the I O scan and the CPU scan Refer to Figure 5 11 for the explanation of the example program logic that determines when the FF MoreFFs x elements are clocked External Inputs y Input circuit delay input filter delay Yy Inputs 12 phase code execution Inputs m 1 us gt Y Y e e 10 11 0 71 2 3 4 5 6 7 8 9 10 11 0 1 2 Outputs FF MoreFFs 1 Outputs FF MoreFFs 2
59. MOVE EN ENO Encoder C ur_Val IN OUT CPU_In En c_CV1 Conn arrD ICon 0 MOVE EN ENO IN OUT The MOVE instruction can be used to connect values to the CPU inputs With no logic on EN the MOVE is translated as a connector With logic on EN the MOVE value is retentive requiring storage CPU L cv _In T1 The MOVE instruction can be used to typecast a BYTE from the CPU output space to an INT to be used for compares or presets This works for positive numbers only since the MOVE does not sign extend MOVE EN ENO CPU_Out T 2 PV 4 IN OUT Conn arrl Con 3 CPU_Out C mpByte MOVE EN ENO IN OUT Con n lCon input space The MOVE instruction can be used to typecast an INT current value to a BYTE in the CPU MOVE EN ENO Conn arrl Con 2 IN OUT CPU_In T2 _CVasByte Conn arrl Con 0 MOVE EN ENO CPU_In C1 IN OUT _CVasByte Figure 5 8 Examples of MOVE Instruction with Typecasting Figure 5 9 shows how the MOVE instruction can be used to typecast from DINT to INT You can do this only if the DINT value is within the limits for INT You can also typecast from INT to DINT but in order to preserve the sign extension you need to use the _ DI instruction MOVE MOVE _DI EN ENO EN ENO EN ENO Encoder CPU_In
60. Manager window download the entire S7 Program Blocks folder including the system data to the S7 CPU Set the Run Stop switch on the CPU to the RUN P position and the FM 352 5 module to the RUN position Observe the status LEDs on each module and note that the CPU transitions to RUN but the FM module still indicates STOP The SF status LED is also on because the module is in STOP Open the VAT_1 object Select the menu command Variable gt Monitor or click the Monitor variable button then select the menu command Variable gt Modify or click the Modify variable button in the VAT_1 This sets the module mode to Debug RUN The LEDs on the FM 352 5 module now indicate that the module has transitioned to RUN Monitoring the Example Program Execution With the FM 352 5 module now in RUN mode you can monitor the example program execution In Debug mode STEP 7 allows you to use all of its monitoring features to monitor the execution of FB3 1 Note that the LEDs for outputs Q6 and Q7 start blinking at the rate of 2 Hz and 1 Hz respectively Each of these outputs is driven by a CP_Gen instruction Outputs QO through Q4 blink in sequence along with the corresponding CPU_In Bits 0 4 in the VAT table Interrupts 0 through 4 from the module at addresses M7 0 through M7 4 in the VAT table also blink in sequence These are driven by OB40 in response to process interrupts from the module Now return to the HW
61. P 20 protection in accordance with IEC 529 which means e Protection against contact with standard test probes e Protection against foreign bodies with a diameter greater than 12 5 mm e No special protection against water Rated Voltage for Operation The FM 352 5 works with the rated voltage and corresponding tolerances specified in the following table Rated Voltage Tolerance Range 24 VDC 20 4 VDC to 28 8 VDC FM 352 5 Boolean Coprocessor A 6 2810032 0001 Specifications A 5 Dimensions and Weight Data for Selecting a Sensor Technical Specifications Dimensions W x H x D Weight Data for Specific Modules Number of inputs Number of outputs Voltage Currents Potentials 24 VDC Class 2 power Power rated voltage of the electronics 1L 2L 3L e Reverse polarity protection Isolation e Between the field side I O card 2L and the encoder card 3L Between the field side I O card 2L and logic Between Aux supply 1L and logic Between Aux supply 1L and field side of encoder or I O card 2L or 3L Potential differences between M terminals and central ground Insulation tested with Current consumption From input voltage 1L 20 4 28 8 V From input voltage 2L 20 4 28 8 V From input voltage 3L with 5 2 V or 24 V encoder From input voltage 3L 20 4 28 8 V e From backplane bus Power dissipation of the module 80 x 125 x 130 mm Approx 434 g with 1L co
62. Periodic counting mode 6 9 Physical features of the module 1 4 Polarity encoder signals POS positive edge detection 5 44 Index 4 Positive edge detection 5 44 Positive RLO edge detection 5 43 Power supplies wiring 3 Program oreo environment 1 6 Pram elements 5 13 5 14 5 15 Me configuration dialog tab 4 17 overview overview of tasks 5 2 Programming control setting 4 17 Project creating 4 5 Properties dialog accessing 4 4 7 Protection against outside electrical influences 3 3 Pulse evaluation Pulse timer 5 48 Q Quadruple evaluation of encoder pulse Questions R Rated voltage Regulations 3 2 Related documentation jiii Removing the module Resetting memory 5 39 Resources FPGA Response time 1 8 RS reset set flip flop Running example program S S7 control environment S7 300 station inser Safety class A 6 6 Saving hardware configuration program Setup software installation Shield contact element 3 10 3 11 Shield terminal 3 10 SHIFT bit shift register 5 Shift register length 6 15 Shipping conditions SIMATIC Manager 4 5 Single counting mode 6 8 FM 352 5 Boolean Coprocessor 2810032 0001 Index Single evaluation of encoder pulse 6 13 Single scan mode 5 34 Software installation 4 2 Specific applications Specifications A 1 SR set reset flip flop SSI encoder signals 6 15 6 16 Stand alone control
63. S Ce fpem p a o somara reame ercoaercomerae FM 352 5 Boolean Coprocessor 2810032 0001 Using the FM 352 5 with Non S7 Masters Bit Definitions of the Power Supply Status Byte The bits of the power supply status byte defined in Table 8 8 allow your program to determine the status of each of the power supplies to the module Table 8 8 Power Supply Status Byte Cena Demen Response rom moguie 1 missing auxiliary supply voltage 1L 6 Missing2L O O 1 missing input output supply voltage 2L 4 Missing3L o 1 missing encoder supply voltage 3L e E e SSCS A e SSCS o fpe o Bit Definitions of the SSI Encoder Status Byte The bits of the SSI encoder status byte defined in Table 8 9 allow your program to determine the status of the SSI encoder Table 8 9 SSI Encoder Status Byte Ce Demon Response rom wooo e preemia roten wre 1 braken wre or encoder mafinlon ded C OSS Bit Definitions of the MMC Status Byte The bits of the MMC status byte defined in Table 8 10 allow your program to determine the status of the MMC Table 8 10 MMC Status Byte o pee CCS FM 352 5 Boolean Coprocessor 2810032 0001 8 7 FM 352 5 Boolean Coprocessor 2810032 0001 Specifications Chapter Overview Standards Certificates and Approvals Electromagnetic Compatibility and Shipping and Storage Conditions 10 11 N Ss onwwectrowcten S and Rated Voltage FM 352 5 Boolean Coprocessor 2810032
64. SIEMENS SIMATIC S7 FM 352 5 Boolean Coprocessor User Manual 2810032 0001 Edition 1 07 2001 Product Overview Installing and Removing the FM 352 5 Wiring the FM 352 5 Configuring the FM 352 5 Programming and Operating the FM 352 5 Encoder Signals and their Evaluation Diagnostics and Troubleshooting Using the FM 352 5 with Non S7 Masters Appendices Specifications Parts Lists GA AAA eAeRE Safety Guidelines This manual contains notices which you should observe to ensure your own personal safety as well as to protect the product and connected equipment These notices are highlighted in the manual by a warning triangle and are marked as follows according to the level of danger Danger gt precautions are not taken indicates that death severe personal injury or substantial property damage will result if proper Warning gt precautions are not taken indicates that death severe personal injury or substantial property damage can result if proper Caution gt used with the safety alert symbol indicates a potentially hazardous situation which if not avoided may result in minor or moderate personal injury or property damage Caution used without the safety alert symbol indicates a potentially hazardous situation which if not avoided may result in property damage Note draws your attention to particularly important information on the product
65. Stus 0000 Continue curent normatmode foo01 Nommalmode STOP 0001 Normalmode STOP foo 0010 Nomarmoe RN ffon forot Debugmode sro fono Debugmode rn 1010 Single scan mode SCANonce O 1000 Single scan mode no change idle MMcStaus oo moa SCS oor nommes oo Banorna i on 100 111 MMC and Data Record 0 128 do not match applies to S7 masters only Ifthe Single Scan bit is set to 1 the module executes one scan when the RUN bit transitions from 0 to 1 FM 352 5 Boolean Coprocessor 2810032 0001 8 5 Using the FM 352 5 with Non S7 Masters Bit Definitions of the Encoder Status Bytes The bits of the status bytes defined in Table 8 5 and Table 8 6 allow your program to determine the status of the encoder Table 8 5 Encoder Status Byte 1 Pret Reeves S po Encoder selected 1 encoder has been selected Table 8 6 Encoder Status Byte 2 ena Detniion Response rom moaue e sstem resser O a ovem i overtew afte encoder 1 encoder is at home reset position o se Merode counter or SST encoders s2 bis These bits may change faster than the PLC scan and would not be visible most of the time Bit Definitions of the Encoder Control Byte 8 6 The bits of the control byte defined in Table 8 7 allow your program to control the operation of the encoder Table 8 7 Encoder Control Byte eke betntion ___Commandiowoaue Tfresoed SSS Ce feme eS Ce fem e
66. Tah EE 24 32 33 35 36 38 39 40 FM 352 5 Boolean Coprocessor 2810032 0001 5 1 Programming and Operating the FM 352 5 5 1 Getting Started Introduction This chapter contains the information needed to create and debug a program for the FM 352 5 You will also need to refer to STEP 7 version 5 1 SP2 or greater documentation for complete information on creating programs as STEP 7 is the programming environment required to write monitor and debug your program Overview of Tasks Figure 5 1 provides a quick summary of the order of tasks needed to create a program for the FM 352 5 Section 5 2 Assign element names in the declaration section of the FB Use STEP 7 LAD FBD Editor to write your program in the Application FB Save program in STEP 7 editor Use the Syntax check button in the FM 352 5 Configuration Tool Programming dialog tab to check for any syntax errors that are not found by the STEP 7 LAD FBD editor Set up the Interface FB DB set in OB1 Section 5 3 Debug Application program Section 5 4 e Download program to S7 CPU S7 314 or greater e Use STEP 7 to monitor the FB as it executes e Save Application FB as part of the CPU project Download program to the FM 352 5 module Section 5 5 e Compile the Application FB in the Programming tab e Download program to FM 352 5 module v Use STEP 7 to copy the program to the Micro Memory Card MMC wi
67. Up Down Figure 6 4 Signals of the Differential Incremental Encoder The module recognizes the direction of count from the phase relationship of signal A to B Note When a quadrature encoder is selected the broken wire diagnostic function checks the signal status of A A B B and N N If one of the inputs is not used you must strap it in order to provide a non zero differential voltage Otherwise the undriven input will cause a broken wire indication To avoid a broken wire diagnostic tie the unused input signals X to 5V and X to GND FM 352 5 Boolean Coprocessor 6 10 2810032 0001 Encoder Signals and their Evaluation 6 4 24 V Single ended Encoder Signals Incremental 24 V Encoder Signals The incremental 24 V encoder supplies the signals A B and N in the same phase relationship as the signals A B and N in the case of the differential incremental encoder The signals A and B are phase shifted by 90 each Encoders that do not supply inverse signals are known as asymmetric encoders Figure 6 5 shows the sequence over time of the 24 V pulse encoder signals with direction level and the resulting count pulses Terminal 37 SignalA 38 Signal B as Down direction level Up Up count pulses Down count pulses Figure 6 5 Signals of a 24 V Pulse Encoder with Direction Level FM 352 5 Boolean Coprocessor 2810032
68. a number of built in input and output points up to 15 inputs and 8 outputs In addition to the normal I O points the module can support one of three encoder types incremental differential 24 V single ended and SSI absolute encoders If you select either the SSI encoder or the differential encoder then the 24 V encoder inputs are available for use as discrete inputs numbers 8 to 11 If you do not use any of the encoder interfaces the differential pins are available to provide three discrete differential inputs numbers 12 13 and 14 7 CP FM 352 5 _S7 CPU MMC 7 Module Digital E Inputs inputs Interface lt FB Encoder oe CPU_Out inputs TDU 14 data bytes Interface FB 2 control byt handles data ee control oyies exchange between CPU In CPU and CPUN FM 352 5 module 1 me ce status bytes u y Module Digital Outputs outputs Figure 1 1 FM 352 5 Operation in Coprocessor Configuration FM 352 5 Boolean Coprocessor 2810032 0001 Product Overview Configuring the Hardware You configure the FM 352 5 module using the FM 352 5 Configuration software with the standard Hardware Configuration application of STEP 7 The hardware configuration dialogs for the FM 352 5 module allow you to set the following properties and parameters e Address assignments where you can
69. am elements lf Libraries lf Standard Library lf FM 352 5 a aa a pete STEP coe AE FB113 TP32 A FB114 TON32 A FB115 TOF32 A FB116 TP1E A FB117 TONIE A FB118 TOFIG A FB119 CF Gen A FB120 CTUD32 A FB121 CTU cof FB122 CTD1B oof FB123 0 CTUDIB lk FB124 SHIFT oof FB125 SHIFT2 A FB126 SHIFT4 fF FB127 SHIFTS H E Example Program BiScale FM352_5 Figure 5 4 FM 352 5 Library of FBs FM 352 5 Boolean Coprocessor 2810032 0001 Programming and Operating the FM 352 5 Instruction Operands Because the program in the Application FB is intended to function in the FM 352 5 module the operands cannot access any of the S7 CPU memory areas Table 5 8 shows the instruction operands that can be used in your program Table 5 8 Instruction Operands Instruction Operands Declaration Section Input Operands FM 352 5 inputs Input Table 5 1 Digital inputs of the FM 352 5 CPU outputs Input Table 5 1 14 bytes from the CPU as inputs to the FM Connectors Static Table 5 7 5 7 Similar to M memory elements in S7 programs Constants non boolean Sa ee Module status bits Static Table 5 3 5 3 Diagnostic interrupts Encoder status bits and Static 5 4 Encoder structure Set Cur_Val to current value INT or DINT according to size of configured encoder eral FM 352 5 outputs Output Table 5 2 E Digital outputs of the FM 352 5 CPU inputs Output Table 5 2 14 bytes from the FM returned as inputs to th
70. ample When you install the FM 352 5 software package a sample project is also installed in the STEP 7 Sample Projects folder The English sample project is in the following folder ASTEP 7 EXAMPLES zEn29_01 The example program can help you become familiar with the steps needed to geta program running in the FM 352 5 module The Blocks folder has the components for a Getting Started function block that you can copy to your STEP 7 project then compile and download to your system to see a working program execute Installing and Configuring the Module Follow these steps to set up the project and configure the FM 352 5 module for the Getting Started application example 1 Install the FM 352 5 module in a local rack with an S7 3xx CPU Apply power to the CPU and the 1L and 2L connections on the FM 352 5 module 2 Install the FM 352 5 Configuration P rogramming software as described in Section 4 1 3 Create a STEP 7 project see Section 4 3 Insert an S 7 300 station and create the hardware configuration see Section 4 3 to match the CPU and FM 352 5 module as installed in Step 1 above Save and compile the hardware configuration by selecting the menu command Station gt Save and Compile 4 In the SIMATIC Manager window open the Sample Projects directory and copy the following objects from the zEn29_01 FM352 5 Prog Blocks folder to your program Blocks folder OB1 OB40 FB3 FB30 FB31 FB113 FB114 FB119
71. an array of BOOL 0 0 stat FirstEdge BOOL Number of elements can be increased as needed P02 set mase eo fC E SC S SCS Cofea o SSS C mofa i eo OOOO Ceja O wos FM 352 5 Boolean Coprocessor 2810032 0001 5 9 Programming and Operating the FM 352 5 This part of the static section contains declarations for connectors as shown in Table 5 7 These names can be changed Table 5 7 Example Declaration Table for the Application FB Connectors Adaress Becnaon nome we Comment Static Section This definition is not position specific You can change the names inside the structure but not Conn You can use any combination of BOOL INT DINT or Array of BOOL INT or DINT OS a E C eja ooo p y e a E C O os Temp Section This definition is position specific The name cannot be changed For use where an output coil is required by STEP 7 to execute the instruction but is not needed by your program FM 352 5 Boolean Coprocessor 5 10 2810032 0001 Programming and Operating the FM 352 5 Ensuring Data Consistency When transferring data to the FM 352 5 via the 14 bytes you need to consider the following points to ensure data consistency For consistency of data type DINT or less e For data type DINT the address must be 2 6 or 10 in the structure e For data type INT the address must be on an even number boundary e No precautions need to be taken if the data is BYTE or smaller For consi
72. and passed it incremented by 1 The overflow bit is on for one scan e Underflow indicates that the counter has reached the minimum value and passed it decremented by 1 The underflow bit is on for one scan e Homed indicates that the encoder has reached its home position since the last power cycle and that position data is accurate the encoder is synchronized e Home indicates that the encoder is currently at the home position which is defined as a reset of the counter The encoder status bits except for Homed are reset when the module is placed in STOP FM 352 5 Boolean Coprocessor 2810032 0001 6 5 Encoder Signals and their Evaluation Counter Behavior Common to the Three Counting Modes If the counter is loaded with a value outside the count range then the counter counts in the requested direction and rolls over at the upper limit This rollover is not reported in the overflow or underflow status bits Once the counter value is within the specified range it remains within the range until a Load or Reset loads it outside the range The counting process can be started or stopped using the software Hold or Reset signals but the counter is neither held nor reset when the module goes to STOP mode Software controls Reset Hold and Load are cleared by module STOP The counter continues to count based on hardware inputs The counter is not affected when the PLC goes to STOP mode The current count value can be loade
73. and hold it until the STOP status LED turns off then back on about 3 seconds 3 Release the mode switch allowing it to return to the STOP position 4 Press the mode switch to the MRES position and hold it until the STOP status LED stops blinking Programmed MMC Operating Mode Switch Note The memory reset position MRES is spring loaded with no detent To reset memory Set switch to STOP 2 Press to MRES and hold 3 seconds 3 Release 4 Press to MRES and hold until LED stops blinking Figure 5 18 Resetting the Memory Removing the MMC during Operation You can remove the MMC while the module is in RUN mode without having any impact on the operation of the module as long as a power cycle does not occur You can also switch the module operating modes between RUN and STOP without the MMC installed as long as a power cycle does not occur Once a power cycle occurs the FM 352 5 module transitions to STOP and cannot return to RUN mode until a valid MMC is re inserted FM 352 5 Boolean Coprocessor 5 39 Programming and Operating the FM 352 5 5 10 Instruction Set for Ladder Logic Programming The following instructions are supported by the Ladder Logic editor and instruction browser of STEP 7 The bit logic instructions contacts and coils and some additional instructions come from the standard list of STEP 7 instructions The FM 352 5 specific function block instru
74. ator CP_Gen 0 cece cece eee 5 35 Up Counter CTU16 0 02 0c eects 5 36 Down Counter CTD16 0 cece eee ete 5 37 Up Down Counter CTUD 0c cece eae 5 38 Bit Shift Register SHIFT 0 0 cece eee eee 6 1 Encoder SignalS 0c cece cee tet a E A E aE 6 2 Operating Controls for Incremental Encoders 0eeeeeeee 6 3 Example Declaration for the Application FB Encoder Structure 7 1 Status LED Definitions 0 ccs 7 2 Assignments of Diagnostic Data Record 0 0 0c e eee eeee 7 3 Assignments of Diagnostic Data Record 1 00 02 e eee eee 7 4 Assignments of Diagnostic Data Record 128 000 eee FM 352 5 Boolean Coprocessor iis 2810032 0001 XIII Contents Tables 7 5 Encoder Wire Break Diagnostic 0 eee 8 1 User Data Input and Output Bytes in Normal Mode 8 2 User Data Input and Output Bytes in Debug Mode 8 3 Control Bytes and Status Bytes for the FM 352 5 8 4 Bit Definitions of the Control and Status Bytes 04 8 5 Encoder Status Byte 1 1 2 0 0 cece enn 8 6 Encoder Status Byte 2 1 0 eee 8 7 Encoder Control Byte cee tees 8 8 Power Supply Status Byte cece cette nes 8 9 SSI Encoder Status Byte 1 0 eee 8 10 MMC Status Byte 2 tenes A 1 Resources of FPGA Used by Instructions 000 eee B 1 Parts for the FM 352 5 Module 1 c
75. bits number of bit positions to 0 bits shift data in specified direction SSI mode Master Listen Master FM 352 5 Boolean Coprocessor 2810032 0001 4 11 Configuring the FM 352 5 Table 4 2 Configuration Parameters continued 5V and 24V Encoders Signal interpretation Pulse amp direction x1 x2 x4 Pulse direction Counter type Continuous Periodic Single Continuous Counter size 16 bits 32 bits 16 bits Reset source None HW SW HW and SW HW or SW None Reset value source Constant 0 Min Max value Load value Constant 0 Reset signal type Edge Level Edge Load value source Constant Module application None Hold source None HW SW HW and SW HW or SW Constant Load value value loaded 2 5 to 215 1 16 bit counter when load signal is active 231 to 231 1 32 bit counter Count range Min 215 to 215 1 16 bit counter minimum count value 231 to 231 1 32 bit counter continuous 32768 or 2 147 483 648 Count range Max 215 to 215 1 16 bit counter 32767 maximum count value 231 to 231 1 32 bit counter 2 147 483 647 continuous 32767 or 2 147 483 647 Main count direction Count up Count down Count up Hardware hold source Inputs 0 through 14 Input 8 24V Hardware reset source Inputs 0 through 14 Input 11 24V Polarity of A input Active state is 0 active state is 1 Active state 0 Polarity of B input Active state is 0 active state is 1 Active state 0 Polarity of N input Active state is 0
76. c identification and descriptive information You can also use this dialog to enter comment information op e RO S4 FM 352 5 Figure 4 3 FM 352 5 Properties Dialog General Tab FM 352 5 Boolean Coprocessor 2810032 0001 4 7 Configuring the FM 352 5 Setting Input and Output Addresses The Addresses tab shown in Figure 4 4 displays the system selected address assignments for the inputs and outputs You can change these addresses by unchecking the System Selection checkbox The Start field can then be edited Properties FM352 5 RO S4 Programming Parameters Clear checkbox to allow changing the start address with CPUs that support address selection S Rrocessmageyratiion Kai OCEsSS image Nove H Figure 4 4 FM 352 5 Properties Dialog Addresses Tab 256 Process Image Partition Hardware interrupt triggers Nove OB A FM 352 5 Boolean Coprocessor 4 8 2810032 0001 Configuring the FM 352 5 Setting Module Parameters 3 The Parameters tab shown in Figure 4 5 provides a hierarchical view of the different functions and diagnostics of the FM 352 5 module for which you can assign parameters that govern how the module operates The parameters listed and described in Table 4 1 and Table 4 2 include the following Enabling module diagnostics Enabling output diagnostics Enabling process interrupts Selecting input filte
77. cc cee ene B 2 Spare Parts for the FM 352 5 Module 0 0c eee ee eee B 3 Recommended Parts for the FM 352 5 Module FM 352 5 Boolean Coprocessor XIV 2810032 0001 Product Overview Chapter Overview Sesion Caseton id ai Fneionsatmerramsnome E Sem Contor I Overview of Basic Tasks FM 352 5 Boolean Coprocessor 2810032 0001 1 1 Product Overview 1 1 Overview 1 2 Functions of the FM 352 5 Module The FM 352 5 is a high speed Boolean coprocessor that allows you to provide independent and extremely fast control of a process within a larger control system The FM 352 5 module can be configured to operate in the following ways e The FM 352 5 module can operate in a coprocessor configuration within an S7 programmable controller system In this configuration the FM 352 5 exchanges input output data and status and control information with the master CPU as shown in Figure 1 1 e In a distributed configuration the FM 352 5 module functions as a module of an ET200M normal PROFIBUS DP slave to an S7 or non S7 master e The FM 352 5 module can also operate as a stand alone controller independently of any PLC system The FM 352 5 module uses an onboard processor a Field Programmable Gate Array FPGA to execute code in parallel rather than sequentially as standard programmable controllers do This type of execution results in extremely fast and stable scan times The module controls
78. ce 00 0 c cece Emission of Radio Interference 0 00 c cece eee eee eens Shipping and Storage Conditions 0 cee cee es A 3 Mechanical and Climatic Environmental Conditions Climatic Environmental Conditions 0 0 0 0 cee cee Testing Mechanical Environmental Conditions A 4 Information on Insulation Testing Safety Class Degree of Protection and Rated Voltage vices cner ese peeve ed enee bbe renee peed Rees DES ERS T st Voltages seit owiie dear ys Ghad we ede S eae Pollution Severity Overvoltage Category 0c eee eee ee Salety ClaSS rnia tac bik ed kiaii rii pa aaa igre alee ads IP 20 Degree of Protection 0 0 cece eee eee eee Rated Voltage for Operation 0 0 cece eee A 5 Technical Specifications 0 0 tees A 6 Functional Block Diagram 0 eee A 7 Operational Specifications 00 c cece eee Switching Frequency Derating Charts FPGA Resources Used by Instructions B Parts Lists Parts Included with the FM 352 5 0 0 0 c cece eee B 1 Accessory Components for the FM 352 5 0 cece eee ene B 1 Index FM 352 5 Boolean Coprocessor Xx 2810032 0001 Contents Figures A 1 FM 352 5 Operation in Coprocessor Configuration 006 Main Features of the FM 352 5 Module 000 eeeeeeeeee Examples of System Configurations c cece eee
79. clock rate of 125 kHz 250 kHz 500 kHz or 1 MHz in the Parameters tab dialog based on the capabilities of the encoder the update time required and the length of the cable The maximum clock rate you can select is limited by the length of shielded encoder cable you use At 125 kHz the maximum cable length is 320 meters At 250 kHz the maximum cable length is 160 meters At 500 kHz the maximum cable length is 60 meters At 1 MHz the maximum cable length is 20 meters For an SSI slave Listen mode clock rate selection is not applicable Data Shift Direction You can select the direction of data to shift left or right in the Parameters tab dialog FM 352 5 Boolean Coprocessor 2810032 0001 6 15 Encoder Signals and their Evaluation Normalization Data Shift Length SSI Mode 6 16 You can specify the number of bit positions to be shifted within the range of O to 12 bits in the Parameters tab dialog Normalization allows the SSI encoder data to be scaled to more convenient units used in the module program You can select Master or Listen for the SSI mode Only one module can be a master The Listen mode allows other modules to connect to the same encoder for synchronized control Note In SSI mode the broken wire diagnostic checks the signal status of D D only FM 352 5 Boolean Coprocessor 2810032 0001 Diagnostics and Troubleshooting F Chapter Overview sen oo O e M FM 352 5 Boolean Coprocessor
80. cs 7 1 data record 0 data record data record 128 interrupt events 7 3 responses to interrupts 7 4 Documentation iii Double evaluation of encoder pulse 6 13 Down counter 5 53 Downloading example program 5 37 5 33 Dynamic parameters E Edge declarations 5 9 Electromagnetic compatibility A 4 Electrostatic discharge A 4 Emergency stop devices 3 2 Emission of radio interference A 5 Encoder data structure 5 7 Encoders 24 V incremental 5 V differential 6 10 cable connections 3 8 continuous counting mode periodic counting mode signals 6 2 single counting mode 6 8 SSI types 6 2 Example application 5 36 Execution time 1 8 F Features of the module 1 4 Filter input dela Fiters 4 13 Fixing bracket for shield terminals 3 10 Flip flop declarations reset set set reset FM approval Index 2 FPGA Field Programmable Gate Array normal mode operation 5 28 parallel program execution 5 21 resources AI stand alone operation Front connector 1 5 3 4 Function Block FB beatin rae er data flow in debug mode 5 26 data flow in normal mode 5 28 interface library 4 25 15 Functions of the module 1 2 G General rules 3 2 General tab configuration dialog 4 7 Getting Started example program GSD file 8 3 H Hardware installation 2 3 Hardware configuration assigning parameters assigning properties 4 7
81. ctions are available in the FM 352 5 Library For valid input and output operands refer t Table 5 8 Normally Open Input This instruction is found in the standard list of STEP 7 instructions Table 5 15 Normally Open Input lt address gt lt address gt BOOL Input The address indicates the bit whose signal state is checked Normally Closed Input This instruction is found in the standard list of STEP 7 instructions Table 5 16 Normally Closed Input lt address gt lt address gt BOOL Input The address indicates the bit 14 whose signal state is checked Output Coil This instruction is found in the standard list of STEP 7 instructions Table 5 17 Output Coil lt address gt lt address gt BOOL Output The address indicates the bit whose signal state is set FM 352 5 Boolean Coprocessor 5 40 2810032 0001 Programming and Operating the FM 352 5 NOT This instruction is found in the standard list of STEP 7 instructions Table 5 18 NOT Inverts power flow negates the RLO bit Midline Output Connector This instruction is found in the standard list of STEP 7 instructions You must label each connector with a unique element that is declared in the structure Conn Table 5 19 Midline Output Connector lt Conn abel gt ConnJabel BOOL Conn label An intermediate assigning element which saves the RLO bit power flow status to a specified element in the structure Co
82. d using the Load signal FM 352 5 Boolean Coprocessor 6 6 2810032 0001 Encoder Signals and their Evaluation Continuous Counting In the continuous counting mode the count ranges are variable and can be changed e Count range 16 bit counter 32768 to 32767 e Count range 32 bit counter 2 147 483 648 to 2 147 483 647 At power up the counter has a start value of 0 until either the hardware configuration or the software program give it a different starting value You must initialize the counter to a known value with a Reset or Load before you begin counting You can program the Reset signal to load the counter with 0 the minimum value or the Load value The Main Count Direction parameter has no effect on this counter mode When counting up the module increments to the maximum value then rolls over to the minimum value and continues counting This rollover is reported in the overflow status bit When counting down the module decrements to the minimum value then rolls over to the maximum value and continues counting This rollover is reported in the underflow status bit Figure 6 1 illustrates the functionality of the continuous counting mode Count range maximum value d Reset value Count range minimum value up counting up d counting down H hold active R reset active L load active Figure 6 1 Continuous Counting Mode FM 352 5 Boolean Coprocessor 2810032 0001 6
83. ders do use the input delay filters The quadrature counters also use a 3 us filter when 0 delay filter is selected You should specify the same filter for each input of the quadrature encoder If the same filter is not specified then counting errors may result Reference to the quadrature encoder inputs in the user program will use the filtered input as specified in the parameterization FM 352 5 Boolean Coprocessor 2810032 0001 Configuring the FM 352 5 4 6 Checking the Consistency of Program and Configuration Checking Consistency The consistency check parameter in the hardware configuration dialog provides a way to prevent the wrong module program from being executed in a system that was configured for a different program The module program and the configuration must match for the consistency check to pass Maintaining Consistency If you modify any static parameters you must recompile the program to generate the correct consistency word If you transfer a program from a module in one system to another you must copy the module hardware configuration from one system to the other system After the configuration is downloaded to the CPU in the new system you can insert the MMC containing the module s program and execute the program This maintains the consistency between the CPU and the module program If you do not copy the module s hardware configuration from one system to the other the consistency check fails Note
84. e 3 Output 3 overload Output diagnostics byte 4 FM 352 5 Boolean Coprocessor 2810032 0001 7 5 Diagnostics and Troubleshooting Table 7 3 Assignments of Diagnostic Data Record 1 continued ave eR Weaning Roma Output 7 overload Output diagnostics byte 8 Note Because it is not possible to sense an overload when an output is off the overload report will be removed three 3 seconds after the overload condition is corrected or the output is turned off Data Record 128 Diagnostic Assignments Table 7 4 shows the assignments of diagnostic Data Record 128 You can use SFC 59 RD_REC to read Data Record 128 for diagnostic information product order number firmware version and module status information Table 7 4 Assignments of Diagnostic Data Record 128 Pere Wesning Rams wef CS C C PCS CE C TY K i a FM 352 5 Boolean Coprocessor 7 6 2810032 0001 Diagnostics and Troubleshooting Wire Break Diagnostics Table 7 5 lists some of the possible causes of the encoder wire break diagnostic and some possible actions you can take to remedy the problem The diagnostic function cannot isolate the exact cause of the fault Additionally the wire break diagnostics cannot detect all possible connection and hardware faults Table 7 5 Encoder Wire Break Diagnostic Possible Causes Possible Corrective Actions Encoder cable cut or not plugged in Check the encoder cable to ensure that wires are properly connected
85. e CPU Connectors Static Table 5 7 c Table 5 7 Table 5 7 Similar to M memory elements in S7 programs Hardware interrupts process cI Table 5 3 Table 5 3 5 3 8 bits that are interpreted as alarms hardware interrupts process alarms that trigger OB40 Encoder control bits and load c Table 5 4 Encoder structure Set Load_Val value to INT or DINT according to size of configured encoder Midline Outputs Connectors Static Table 5 7 Similar to M memory elements in S7 programs Output operands and midline outputs can be written to only once in the Application FB FM 352 5 Boolean Coprocessor 5 16 2810032 0001 Programming and Operating the FM 352 5 Examples of Input and Output Operands The network in Figure 5 5 shows the types of operands that can be used to label contacts when displayed in LAD Any declared boolean input can be used as a contact Output coils as shown in Figure 5 5 can be labeled with any declared boolean output or interrupt Intr x CPU_Out B CPU_Out B Conn arrX DIn 0 its 0 Conn XCon DIn 1 DIn 2 its 1 Con 31 A Inor 1 NOT Boolean connector Output bit from the CPU In Bi CPU as an input Digital input bit ts from the module One of eight lntr 0 module interrupts DOut 0 Figure 5 5 Input and Output Operands Allowed by FM 352 5 FM 352
86. e Configuration 000 cece eee eee Inserting an S7 300 Station 0 eee Inserting the FM 352 5 Module 0 cece eee eee ees T a T a T a ms oO 4 4 Assigning Properties and Parameters 0 ccc eee eee ees Accessing the Properties Dialog 0200 cee eee neces Setting Input and Output Addresses 0 0 cece eee eee Setting Module Parameters 00 0 cece eee ee eens Selecting Diagnostic Parameters 00 cece eee eee ees Selecting Configuration Parameters 000s cece eee eens 4 5 Selecting Input Filters 2 2 0 0 0 eee Description of Filter Behavior 0 00 cece eee ee eee 24 V Input Characteristics 0 ccc eee eee RS 422 Differential Input Characteristics 0 0000 24 V Input Filtering 00 eect ees SSI Encoder Input Filtering 0 cece eee Quadrature Encoder Input Filtering 0 0c cece eee eee 4 6 Checking the Consistency of Program and Configuration Checking Consistency 0 00 cece eee Maintaining Consistency 00 ete 4 7 Saving and Compiling the Hardware Configuration Saving the Configuration 0 c cece 4 8 Programming Control 00 000 cece eee ene ae 5 Programming and Operating the FM 352 5 5 1 Getting Started 0 0 teens IMMPOCDUCTION ais cigs ehiv de a a ee dle dod Go aa
87. e FPGA program from the MMC and enters Normal Mode FM 352 5 Boolean Coprocessor 5 34 2810032 0001 Programming and Operating the FM 352 5 5 6 Stand alone Operation Prerequisites Stand alone operation with the FM 352 5 module is possible only after you have completed your program development within the STEP 7 environment and copied a valid program and hardware configuation to the MMC by using the memory card programmer built into a Siemens PG or a PROM writer connected to a PC With a programmed MMC installed in the FM 352 5 module the module can become a stand alone CPU as long as Stand alone mode is enabled in the configuration software and no I O backplane is detected During stand alone operation the following functions are not supported e Diagnostic or process alarms e CPU_In data including status e CPU_Out data including control all access to CPU_Out data will be interpreted as 0 Executing the Program At power up the FPGA reads the image of the FB that has been stored in the MMC card and can execute the program when the mode switch on the module is set to RUN mode see Figure 5 17 FM 352 5 Module Inputs Programmed MMC Module Outputs Figure 5 17 Stand Alone Operation FM 352 5 Boolean Coprocessor 2810032 0001 5 35 Programming and Operating the FM 352 5 5 7 Using the Running the FM 352 5 Example Program Getting Started Application Ex
88. e cece e eee eee ee Front Conmector oi tc4c08 4 ig acant ee ak ade ee bee eek dew Wiring Diagram ee EIE EEEE REEDE TEN AAEE RRA Labeling Strip aes sisien aai a a a E E eee Micro Memory Card MMC 000 c cece eee eee 1 3 System Configurations aa 0 0 aaeeea 1 4 Modes of Operation 0 0 cece tees De btig MOG rri crscices tia dain tig ands 2 dae AA Normal Mode sciceiccte bene debe eats kaki ENEE EENAA Response Time during Program Execution 00 eee 1 5 Overview of Basic Tasks 000 c cece eens 2 Installing and Removing the FM 352 5 2 1 Installation RUNES i352 eee A AG ee dA en tae Planning the Mechanical Installation cece eee eee Installation of the Rail 0 0 ccc eee Configuring the Mechanical Layout 0 cee eee eee ee TEOL REQUIRED weren e wate eee ged wedge egies 2 2 Installation in an S7 300 System 0 c cee Installing the FM 352 5 1 2 eee ees Removing the FM 352 5 00 eect eee 2 3 Installation in a Stand Alone System 000 cece eee eee Mechanical Installation 0 0 cece eee Providing the Power Supplies 000 cece eee eee 3 Wiring the FM 352 5 3 1 General Rules and Regulations 0 cece ee eee eee INtODUCHION sitewide deeds Gaia a a eee AEs Ge ee Specific Applications 0 0 cee es Emergency Stop Devices 006 eee eects Startup of
89. e ee eee to Signal B Up count pulses Down count pulses Up Down Figure 6 7 Single Evaluation Double Evaluation Double evaluation x2 means that the rising and falling edges of signal A are evaluated the level of signal B determines the direction of counting e The counter increments on the rising edge of A when B is low and on the falling edge of A when B is high e The counter decrements on the rising edge of A when B is high and on the falling edge of A when B is low Figure 6 8 shows double evaluation of the signals Signal A a E _ yf Signal B Up count pulses Down count pulses Up Down Figure 6 8 Double Evaluation FM 352 5 Boolean Coprocessor 2810032 0001 6 13 Encoder Signals and their Evaluation Quadruple Evaluation Quadruple evaluation x4 means that the rising and falling edges of A and B are evaluated the levels of signals A and B determine the direction of counting e The counter increments on the rising edge of A when B is low on the falling edge of A when B is high on the rising edge of B when A is high and on the falling edge of B when A is low e The counter decrements on the falling edge of A when B is low on the rising edge of A when B is high on the falling edge of B when A is high and on the ri
90. een assigned to each of the elements in the declaration table of the sample FB but you can change these names as needed where allowed 5 Enter your program logic 6 Create a DB by selecting the STEP 7 menu command Insert gt S7 Block gt Data Block In the properties dialog that appears enter the DB number you want 7 Select Instance DB in the next field 8 In the third field select the application FB number that corresponds to the modified Application FB for the FM 352 5 module then click the OK button A new DB is created in your project s Blocks directory As you enter the instructions for the FM352 5 program you use the declared variables as operands Because the program in the Application FB is intended to function in the FM 352 5 module the operands cannot access any of the S7 CPU memory areas Tables 5 1 through 5 7 demonstrate how you declare the operand names for use in your FM352 5 program FM 352 5 Boolean Coprocessor 2810032 0001 5 3 Programming and Operating the FM 352 5 Assigning Input Elements Use the input section of the declaration table to assign the input elements to be used in the program as shown in Table 5 1 These include the physical inputs of the module and the 14 byte structure from the CPU user program that are used as inputs to the FM 352 5 module Table 5 1 Example Declaration Table for the Application FB Input Section adaress eceraion neme mwe omm In
91. essor 5 30 2810032 0001 Programming and Operating the FM 352 5 CPU_In Structure Table 5 12 shows an example of the 14 byte structure that returns data to the CPU from the FM 352 5 module In the example Interface FB this structure is called by the pointer DB6 DBBO which calls Data Block 6 shown in Table 5 13 Table 5 12 Example Declaration Table for the Application FB Output Section CA ae ares ARRAY 0 15 C a EO Table 5 13 Example Data Block DB6 DBBO aasress Name pela a SR SE a L ED a E C eoj m Cao mws S FM 352 5 Boolean Coprocessor 2810032 0001 5 31 Programming and Operating the FM 352 5 5 4 Debugging the Program Downloading the Program to the S7 CPU Before you debug your Application FB you should check the syntax using the Syntax check button on the Programming tab of the FM 352 5 Configuration dialog Correct any syntax errors that may have been found during the process You need to test and debug your program in the STEP 7 environment in order to be able to monitor the execution of the program instructions To debug your Application FB using the S7 CPU with the FM352 5 module in Debug mode you need to download the following elements to the CPU in addition to blocks in your regular CPU program e Application FB the one containing the FM352 5 program with its up to date Instance DB e FM Interface Debug FB and its Instance DB FB30 DB30 in the FM352 5 Library
92. g the Hardware Configuration FM 352 5 Boolean Coprocessor 2810032 0001 Configuring the FM 352 5 4 8 Programming Control After completing the configuration steps described in the previous sections you are now ready to start preparing your FM 352 5 program 4 The Programming tab of the FM 352 5 Properties dialog shown in Figure 4 7 provides the interface to the programming environment of the FM 352 5 Use the fields and buttons as described below 1 Specify the Application Function Block number that will hold the FM 352 5 program 2 Click the Create new FB DB set button for information on how to create an FB DB set in your project as a starting point for developing your program 3 Click the Edit Application FB button to call up the STEP 7 LAD FBD editor to write your application program Refer to Chapter 5 for information about writing and debugging the program for the FM 352 5 Properties FM352 5 RO S4 ES General Addresses Programming Parameters m Module Application Function Block number FB 3 Step 1 gt Create new FB DB set Step 2 gt Edit Application FB Step 3 gt Syntax check Step 4 gt Compile Step 5 gt Download Cancel Help Figure 4 7 FM 352 5 Properties Dialog Programming Tab 4 After writing your Application FB you can click the Syntax check button to check for any syntax err
93. gure 5 3 shows two additional instructions from the STEP 7 catalog that are valid for the FM 352 5 the _ DI convert instruction and the MOVE instruction cei elements You can use the _DI and the MOVE instructions from the STEP 7 catalog eA a Counter al pe DE call H Gy Jumps ined fot H a Program control Move functions IMOYE Z 4 Figure 5 3 Valid Convert and Move Instructions from STEP 7 for FM 352 5 FM 352 5 Boolean Coprocessor 5 14 2810032 0001 Programming and Operating the FM 352 5 Using the FM 352 5 Library Instructions In addition you can use function blocks that were specially designed for the FM 352 5 module These FBs reside in the FM 352 5 library see Figure 5 4 To select the FBs that you need for your application program follow these steps 1 In the instruction catalog expand the Libraries folder then select the FM352 5 object and expand it 2 Expand the FM352 5 Library folder The full list of FBs is displayed along with their symbolic names 3 Select the FBs you need for your program and double click or drag and drop them into your application program 4 Change each FB to a multiple instance call Select the FB with the right mouse button to access the pop up menu and select the menu command Change to Multiple Instance Call Enter the name of the multiple instance block as defined in the Application FB declaration section Progr
94. hat are used by each encoder and the corresponding position for each signal on the terminal connector Table 6 1 Encoder Signals Terminal Number RS 422 Differential Encoder Phase A Phase A inverse Phase B Phase B inverse Marker N Marker N inverse 24 V Single ended Encoder Phase A Phase B Marker N SSI Encoder Master mode SSI D data SSI D data inverse SSI CK shift clock output SSI CK shift clock inverse output SSI Encoder Listen mode SSI D data SSI D data inverse SSI CK shift clock input SSI CK shift clock inverse input FM 352 5 Boolean Coprocessor 6 2 2810032 0001 Encoder Signals and their Evaluation Encoder Operational Controls Table 6 2 lists the control signals selected in hardware or software that can be programmed to determine how the incremental encoders operate e You select these operating controls in the Parameters tab dialog of the FM 352 5 Hardware Configuration properties dialog see Section 4 4 e You assign the software controls in your Application FB by selecting the appropriate element from the declaration table see Table 6 3 to use in your program Table 6 2 Operating Controls for Incremental Encoders Encoder Parameter Range of Values Default Value Encoder signal evaluation Pulse amp direction x1 x2 x4 Pulse amp direction Reset source None HW SW None HW and SW HW or SW Reset value source Constant 0 Min Max value Constant 0 Load value Reset
95. he module to transmit specific internal information to and from the Debug FB to help emulate program operation and to check wiring Table 8 2 User Data Input and Output Bytes in Debug Mode pO Control Stats S O Pos iscrete inputs 8 14 ee eee eee Ps O Per suppy status ee Table 6 pe o o Tsss Ge Ta 7 Joettovericads E gt _ _ _ oe MMC status SeeTable 8 10 ES SSS RE ee Poof Encoder status 1 see Table 8 5 FM 352 5 Boolean Coprocessor 2810032 0001 Using the FM 352 5 with Non S7 Masters Definitions of the Control Bytes and Status Bytes The Control and Status bytes are defined in Table 8 3 The control bytes allow your program to control the operation of the module RUN STOP or Single Scan The status bytes allow your program to determine the status of the module as well as the status of the MMC inserted in the module Table 8 4 defines the bit patterns for each of the operating modes the operating status conditions and the MMC status Table 8 3 Control Bytes and Status Bytes for the FM 352 5 Bye r sae sas eee ees Bae Bei BKO Suet Fosoved BUSY Resoned Resened Operating Siaus Status 2 Reserved Reserved Reserved Reserved Reserve wmo status This bit indicates that the module is not ready for data transfers or other operations Table 8 4 Bit Definitions of the Control and Status Bytes sis Commando modue ems Response tom Module C operaingmos Operang
96. imatic Environmental Conditions Climatic Environmental Conditions The following climatic environmental conditions apply Environmental Conditions Operating Ranges Remarks n Temperature from 0 C to 60 C For horizontal installation from 0 C to 40 C For all other installation positions Relative humidity From 15 to maximum 95 Without condensation Air pressure From 1080 hPa to 795 hPa Corresponds to an altitude of 1000 m to 2000 m Testing Mechanical Environmental Conditions The following table provides information on the type and extent of tests of mechanical environmental conditions Oscillation test to IEC 60068 2 6 Test Fc Shock test to IEC 60068 2 27 Test Ea Repetitive shock Shock test to IEC 60068 2 29 Test Eb FM 352 5 Boolean Coprocessor 2810032 0001 A 5 Specifications A 4 Information on Insulation Testing Safety Class Degree of Protection and Rated Voltage Test Voltages Insulation strength is demonstrated in the routine test with the following test voltage in accordance with IEC 1131 Part 2 Circuits with Rated Voltage Eeff to Test Voltage Other Circuits or Ground OV lt Eet lt 50 V 500 VDC Pollution Severity Overvoltage Category e Pollution severity 2 in accordance with IEC 60664 IEC 1131 e Overvoltage category in accordance with IEC 60664 for Erateg 24 VDC II Safety Class Safety class in accordance with IEC 536 VDE 0106 Part 1 IP 20 Degree of Protection I
97. in Johnson City Tennessee at 423 461 2522 or contact them by e mail at simatic hotline sea siemens com For technical assistance outside the United States call 49 911 895 7000 Constantly Updated Information You can obtain constantly updated information on the SIMATIC products on the Internet at http www ad siemens de In addition SIMATIC Customer Support provides you with up to date information and downloads that can be useful to you when using SIMATIC products e On the Internet at http www4 ad siemens de csinfo livelink exe e By means of the SIMATIC Customer Support Mailbox at 49 911 895 7100 To dial the mailbox use a modem capable of up to V 34 28 8 kbps and set its parameters as follows 8 N 1 ANSI Alternatively dial in using ISDN x 75 64 kbps You can contact SIMATIC Customer Support at 49 911 895 7000 or by fax at 49 911 895 7002 You can also send e mail or send a message to the above mailbox FM 352 5 Boolean Coprocessor 2810032 0001 Contents Preface 1 Product Overview 1 1 Functions of the FM 352 5 Module cce eee eens OVERVIEW serii iadaaa oad Pat oe hed a ek deka doe ot Configuring the Hardware 00 0 cece eee eee eee Programming the FM 352 5 1 01 eee Operating Characteristics 0 0 c cece eee eee ee 1 2 Physical Features of the Module 0 00 0 cece ee eee eee Status Indicators 2 0 0 cette es Other Physical Features 0 00 c cec
98. inal Assignments of the Front Connector View of the Terminal Connector and Cover Label 3 4 The inputs outputs encoder signals and input output power supply wiring are all connected to the 40 pin terminal connector which installs under the hinged door On the bottom left side of the module under a hinged cover door are the 1L and 1M terminal connections for the 24 VDC power supply wiring for the module logic circuitry This connection together with 2L 2M are the minimum wiring connections required to start up the FM 352 5 module Figure 3 1 shows the front of the module the removable terminal connector and the inside of the connector door with the wiring assignments Removable terminal Inside front door connector wiring diagram 1 3L 21 2 22 10 Boe MCF m 3 3M A ih S EEN DC5V O 7 M Be He e svii ie ee 25 ik Hs e 24vFi B74 poe 6 26 4 24 lan stop i 4 m 2 MMC Bos e LAAN p ic ud ja 29 J RUN iv e 2 p 2 STOP o on MRES om Era i 11 31 Eo N wa lle e 12 oke 13 33 Eo amp TK 14 Door over Eole power co
99. installed plants or systems There must be a line disconnect switch or a without all pole line disconnect switches fuse in the building installation system Load power supplies power supply The set rated voltage range must correspond modules to the local line voltage All circuits of the FM 352 5 Any fluctuations in the line voltages or deviations from the rated value must be within the permitted tolerances see Section A 4 FM 352 5 Boolean Coprocessor 3 2 2810032 0001 Wiring the FM 352 5 24 VDC Supply The following table tells you what you have to do with regard to the 24 VDC supply Buildings Outdoor lightning Take lightning protection protection precautions 24 VDC supply lines Indoor lightning protection for example lightning signal lines conductors 24 VDC supply Safe electrical isolation of extra low voltage Protection against Outside Electrical Influences The following table tells you what to do to provide protection against electrical influences or faults All plants or systems in which The plant or system is connected to a protective conductor the FM 352 5 is integrated for diverting electromagnetic interference Supply signal and bus lines The wiring arrangement and installation are correct Signal and bus lines Any break of a line or conductor does not result in undefined states of the plant or system FM 352 5 Boolean Coprocessor 2810032 0001 3 3 Wiring the FM 352 5 3 2 Term
100. le Declaration for the Application FB Input Section 5 11 Example Data Block DB5 DBBO 0 0 0c eee eee eee 5 12 Example Declaration for the Application FB Output Section 5 13 Example Data Block DB6 DBBO 2 00 0 eee eee eee 5 14 Parameterization Data Record 1 eects 5 15 Normally Open Input 0 0 0 0 eects 5 16 Normally Closed Input 0 0 0 cece eee eee 5 17 Output Coll scence aed eed eae ea ee ee 5 18 NOT ate caduneyus het aera ne ae ne sent es ea etme niaa tees 5 19 Midline Output Connector 0000 e cee 5 20 MOVE smiger hee nie ceeetinas Rene dene eeateen bart ien bees 5 21 Convert Integer to Double Integer I DI 0 eee eee 5 22 Set Reset Flip Flop SR 0 0 cece eee eee eee eee 5 23 Reset Set Flip Flop RS 0 0 eee c eee eee eee 5 24 Midline Output Connector 00 0 c cece eee 5 25 Midline Output Connector 0000 c cee ee 5 26 Positive Edge Detection POS 00 eee eee 5 27 Negative Edge Detection NEG cece eee eee ee 5 28 Compare Function CMP 0 cece cece tenets 5 29 FM 352 5 Library FBS 1 ee tenes 5 30 Binary Scaler BiScale 0 0 0 cece eet eae 5 31 Pulse Timer TP 0c cece eee iawa Pai Preni eens 5 32 On Delay Timer TON 0 0 cece eee 5 33 Off Delay Timer TOF 0 0 cece eee eee teeta 5 34 Clock Pulse Gener
101. lean Coprocessor 2810032 0001 Specifications FM Approval ZN Factory Mutual Approval Standard Class Number 3611 Class Division 2 Group A B C D Warning Explosion hazard Death serious injury or property damage may be incurred in hazardous areas if you disconnect plug and socket connections while the FM 352 5 is operating Always de energize the distributed I O in hazardous areas before disconnecting plug and socket connections Approval for Shipbuilding Application Submitted Classifying organizations e ABS American Bureau of Shipping e BV Bureau Veritas e DNV Det Norske Veritas e GL Germanischer Lloyd e LRS Lloyds Register of Shipping FM 352 5 Boolean Coprocessor 2810032 0001 A 3 Specifications A 2 Definition Electromagnetic Compatibility and Shipping and Storage Conditions Electromagnetic compatibility is the capability of an electrical device to function satisfactorily in its electromagnetic environment without interfering with this environment The FM 352 5 module also meets the requirements of the European Union s EMC legislation A requirement for this is that the FM 352 5 meets the specifications and directives concerning electrical installation Pulse Shaped Interference The following table shows the electromagnetic compatibility of the FM 352 5 when confronted with pulse shaped interference Pulse Shaped Interference Corresponds to Severity Electro
102. lean Coprocessor 2810032 0001 5 51 Programming and Operating the FM 352 5 Up Counter CTU16 You can count up with CTU16 FB121 The counter is incremented by a rising edge at the CU input If the count value reaches the upper limit of 32767 it is no longer incremented Each subsequent rising edge at the CU input no longer has an effect Signal level 1 at the R input resets the counter to the value 0 regardless of the value currently at the CU input The Q output indicates whether the current counted value is greater than or equal to the preset value PV Table 5 35 Up Counter CTU16 is BOOL ae input R is dominant over Input Preset value Refer to Constant parameter Q for the effect of PV BOOL Output Status of the counter Q has the following value e 1ifCV2PV e 0 otherwise CV INT Output Current count value possible value 0 to 32767 FM 352 5 Boolean Coprocessor 5 52 2810032 0001 Programming and Operating the FM 352 5 Down Counter CTD16 You can count down with CTD16 FB122 The counter is decremented by a rising edge at the CD input If the count value reaches the lower limit of 32768 it is no longer decremented Any subsequent rising edge at the CD input no longer has an effect Signal level 1 at the LOAD input sets the counter to the preset value PV regardless of the value currently at the CD input The Q output indicates whether the current counted value is less than
103. ls the FM 352 5 to begin RUN mode or go to STOP mode through the Interface FB as long as the mode selector switch on the module is set to RUN In a stand alone configuration the module executes its program when you power up the module and set the selector switch to RUN FM 352 5 Boolean Coprocessor 2810032 0001 1 7 Product Overview Response Time during Program Execution As noted before the response time of the FM 352 5 is extremely fast In normal mode operation the response time is measured as the elapsed time from the change of an input until the setting of an output The calculated response time consists of the following components e Input delay circuit delay filter delay e Program execution time 1 us e Output circuit delay 1 5 Overview of Basic Tasks Figure 1 5 provides a summary of the basic tasks required to install configure program and operate the FM 352 5 module when configured to operate in an S7 system Installing and Configuring the FM 352 5 e Install the FM 352 5 into an S7 station Chapter 2 e Wire the FM 352 5 Chapter 3 e Configure the properties and parameters Chapter 4 Programming the FM 352 5 Chapter 5 e Create Application FB DB set e Debug user program using STEP 7 e Compile and download program to FM 352 5 and MMC Troubleshooting Chapter 7 e Check status LEDs e Read diagnostics e React to alarm interrupts Figure 1 5 Basic Tasks to Set Up and Operate the FM 352 5
104. meters 2 00 cece eee CPU Out Structure ices oes eaea eles eae boned aee ate sd dee bees CPU In Structure iii vind eidies pik weed fawn nated We awed wa a Debugging the Program iisrrisirisirisirirrrisirisarinrrinaria Downloading the Program to the S7 CPU 0 000 ee Monitoring the Program Execution cece eee eee Saving the Program to the CPU Project 00eeee Downloading the Program to the FM 352 5 ec eee eee ee Compiling the Application FB 0 0 cece eee Downloading the Program to the FM 352 5 0e eee Running the FM 352 5 Module in Normal Mode Single Scanning the FM 352 5 Module in Normal Mode Saving the FM 352 5 Application FB in an MMC Stand alone Operation 0000 c cece eee PFETCQUISIOS rinia ld sda dsoatt a Roacetena toons A ERA Executing the Program Running the FM 352 5 Example Program 00 eee eee Using the Getting Started Application Example Installing and Configuring the Module 00ee ee eeeee Downloading and Running the Example Program Monitoring the Example Program Execution 00005 Controlling Dynamic Parameters 00 00 ccc eee eee eee Using System Function 55 to Write Dynamic Parameters Parameterization Data Record 1 Dynamic Parameters Memory Operation
105. n assignments for an SSI encoder cable available from Siemens and the corresponding connections to the terminal block on the FM 352 5 for the SSI encoder interface The last four characters of the order number specify the cable length Terminal Connections 6FX5002 2CC12 0xx0 lt gt SSI Encoder Cable on FM 352 5 Modules Pin Signal Color SSI Master SSI Listen 2 CLS Black 32 CK 28 B 1 CLs Brown 33 CK 29 B 3 DAT Blue 26 D 26 D 4 DAT Violet 27 D 27 D 8 Count direction Red 24 DC5V 24 DC5V 11 P Encoder White Red 25 DC24V 25 DC24V 12 M Encoder White Yellow 23 3M 23 3M Insulated Yellow Insulated Orange Insulated Green Insulated White Blue Insulated White Black Casing Outside shield Shield contact Shield contact Pin numbers correspond to cable connector 6FX2003 0CE12 for encoder 6FX2001 2xxx Figure 3 4 Wire Connections for SSI Encoder from SSI Encoder Cable The SSI encoder interface can support a maximum of one Master and one Listen module Note Connect the P Encoder wire to the appropriate power terminal DC5V or DC24V as required by your encoder to the master FM 352 5 module If the SSI Master or SSI Listen device is not an FM 352 5 module connect the wiring to that device as recommended by that device s user manual 3 9 Wiring the FM 352 5 3 5 Connecting Shielded Cables via a Shield Contact Element A
106. nd 32 bit FB113 timers Pulse Timers TP16 and TP32 generate a pulse with the length PT A rising signal edge at input IN starts the pulse Output Q remains set for the time PT regardless of changes in the input signal in other words even when the IN input changes back from 0 to 1 before the time PT has expired The ET output provides the time for which output Q has already been set The maximum value of the ET output is the value of the PT input Output ET is reset when input IN changes to 0 however not before the time PT has expired Signal states 1 IN 0 Le 1 Q PT PT PT 0 a lt _ PT ET LA 7 0 Pt Le Time Figure 5 20 Timing Diagram for Pulse Timer TP Table 5 31 Pulse Timer TP PT INT DINT Input Duration of the pulse in 10 us Constant units PT must be constant positive Note No logic is allowed on the EN input FM 352 5 Boolean Coprocessor 5 48 2810032 0001 Programming and Operating the FM 352 5 On Delay Timers TON16 and TON32 This timer is available in two versions 16 bit FB117 and 32 bit FB114 timers TON16 and TON382 delay a rising signal edge by the time PT A rising edge at the IN input causes a rising edge at output Q after the time PT has expired Q then remains set until the IN input changes to 0 again If the IN input changes to 0 before the time
107. nn The midline output element saves the logical result of the preceding branch elements MOVE This instruction is found in the standard list of STEP 7 instructions The value specified at the IN input is copied to the address specified at the OUT output Table 5 20 MOVE All data types Input Source value with a length of 8 16 or 32 bits All data types Output Destination address of the with a length value specified at the IN input of 8 16 or 32 bits FM 352 5 Boolean Coprocessor 2810032 0001 5 41 Programming and Operating the FM 352 5 Convert Integer to Double Integer I_ Dl This instruction is found in the standard list of STEP 7 instructions _ DI reads the content of the IN parameter as an integer 16 bits and converts it to a double integer 32 bits The result is output by the parameter OUT Table 5 21 Convert Integer to Double Integer I_ Dl ee DINT Double integer result Set Reset Flip Flop SR This instruction is found in the standard list of STEP 7 instructions You must label each SR instruction with a unique element that is declared in the structure FF SR Set Reset Flip Flop is set if the signal state is 1 at the S input and O at the R input It is reset if the signal state is O at the S input and 1 at the R input If the RLO is 1 at both inputs the SR is reset Table 5 22 Set Reset Flip Flop SR ee eee fave ee toe eee ee
108. nnector without I O connector or MMC 12 24 VDC 3 RS 422 8 supply Yes 75 VDC 60 VAC 75 VDC 60 VAC 75 VDC 60 VAC 75 VDC 60 VAC 75 VDC 60 VAC 500 VDC 150 mA max 200 mA max 600 mA max with encoder supply fully loaded 200 mA max with no encoder supply load 100 mA typical 6 5 W typical FM 352 5 Boolean Coprocessor 2810032 0001 Input voltage e Rated value e For signal 1 e For signal 0 Input current e Atsignal 1 e At signal 0 Input frequency Hardware input delay Parameterizable input delay times Minimum pulse width for program response Cable length sensors Minimum pulse width max SW counter frequency Connection of two wire BEROs e Permitted bias current 24 VDC 11 V to 30 V 30 Vto5 V 3 8 mA typical lt 1 5 mA 200 kHz max 3 us max None 5 us 10 us 15 us 20 us 50 us 1 6 ms 1 us 5 us 10 us 15 us 20 us 50 us 1 6 ms 100 meters unshielded 600 meters shielded Shielded cable is recommended when less than 1 6 ms filtering is selected 1 us 200 kHz Possible Off idle 1 5 mA max On 3 2 mA min Data for Selecting an Actuator Output type Output voltage e Rated value e At signal 1 e At signal 0 Output current e At signal 0 leakage current At signal 1 permitted range rated value Parallel outputs Power loss per point Total current of the outp
109. nnector i Ma Eole is 16 36 E a6 19 im 12 37 Ha 10 E i ab 111 C 19 2L4 39 20 gt 40 2M 3M Removable 24 VDC power connector Strain relief anchor Figure 3 1 Front Terminal Connector of the FM 352 5 FM 352 5 Boolean Coprocessor 2810032 0001 Wiring the FM 352 5 Terminal Connector Assignments Table 3 1 lists each circuit on the left side of the terminal connector pins 1 through 20 and the assignment for each connection Table 3 1 Terminal Connector Assignments Pins 1 to 20 Pint 10 nme n a f m Ground orsecton 2 mpulouiputcreutry _ E a E Ca me e e fo e ra a e Sor S a S a o m Ground orsecion 2 inpulouiputcreuiry Cu oma ao SSinkingoutput_ foren Cis ouput oa Smergompt oreen Ci ouput ae Sinking output_______ Green ris _ ate Power forsecion 2 npulouiputreutty o em Ground for section mpuvoutput creuty FM 352 5 Boolean Coprocessor 2810032 0001 3 5 Wiring the FM 352 5 Table 3 2 lists each circuit on the right side of the terminal connector pins 21 through 40 and the assignment for each connection Only one encoder interface can be selected and operated at a time If you select either the SSI encoder or the 5 V differential encoder then the 24 V inputs pins 36 through 39 are available for use as discrete inputs 8 through 11 If you select no encoder interface then pins 26 through 3
110. ns ed ee Cs es se e e a m fe feme fe foe fas ET C T O rote as Ea CO EC CC C Lm fe MOVE INT latched 9 Logical operations oan MOVE INT unlatched fo Non a A E G eee Pam a e e e zai as Sa Yi Ercoverszn 7 town as foarte 19 _fssinasersaoa for Sonn n sere fe SSimaneraso froo sa Ca e Sn r E CES a jerue far e Nome FM 352 5 Boolean Coprocessor A 12 2810032 0001 Parts Lists Parts Included with the FM 352 5 The following parts are included with the FM 352 5 module Table B 41 Parts for the FM 352 5 Module P bus connector expansion To connect FM module on S7 6ES7 390 0AA00 0AA0O bus rail to adjacent module 2 pin connector For 24 VDC module power supply Label for 40 pin connector To identify input and output 6ES7 392 2XX10 0AA0 signals Door Door I O terminal connector terminal connector To cover wire connections cover wire connections Pest 1 a comecter 24 V power connector To cover wre cemectons _ cover external power connector Accessory Components for the FM 352 5 The following accessories are required to operate the FM 352 5 module Table B 2 Spare Parts for the FM 352 5 Module 40 pin terminal connector For input and output signals to 6ES7 392 1AMO00 0AA0O the module Micro Memory Card MMC For non volatile program and 6ES7 953 8LL00 0AAO configuration data storage required by the module for program execution FM 352 5 Boolean Coprocessor 2810032 0001
111. ntents of the MMC must be SDB 32512 created in the STEP 7 environment as described in Chapters 4 and 5 of this manual The user program of the non S7 PLC must manage the data transfer between itself and the module according to the declared interface of the Application FB as programmed in STEP 7 It must also perform mode control via the control bytes The following sections give further details on how to use the FM 352 5 in a non S7 PLC system FM 352 5 Boolean Coprocessor 2810032 0001 Using the FM 352 5 with Non S7 Masters 8 2 Non S7 CPU System Requirements Importing GSD File Data For non S7 CPU systems you need to import the GSD file that is included on the CD ROM with a configuration software package that can incorporate the GSD file data to create your hardware configuration Consult the documentation for your system for information on how to import the GSD file MMC Programming For non S7 CPU systems you must program the MMC independently of the FM 352 5 module In order to do this you need either a Siemens PG with MMC programming capability or a PROM writer that can program an MMC After programming the MMC physically transfer the MMC to the FM 352 5 module Developing an Interface Function As anon S7 CPU system user you must develop a function in your program to control the module s interface that meets your specific system s requirements Your program interface must be able to command the FM 352 5 module t
112. nternal debug program To debug your Application FB using the S7 CPU with the FM352 5 module in Debug mode you need to download the following elements to the CPU in addition to blocks in your regular CPU program e Application FB the one containing the FM352 5 program with its up to date Instance DB e FM Interface Debug FB and its Instance DB FB30 DB30 in the FM352 5 Library Figure 5 13 shows the structure of the FB labeled FM Interface Debug that is used to call the Application FB in Debug mode FM Debug Instance FM Interface Debug EN ENO 10 0 Run Error M2 0 10 1 OneScan Status MW20 W 16 100 LADDR_In W 16 100 LADDR_Out DB5 DBBO CPU_Out DB6 DBBO CPU_In 3 AppFB 3 ApplInstDB Figure 5 13 Interface FB for Debug Mode Execution FM 352 5 Boolean Coprocessor 2810032 0001 5 25 Programming and Operating the FM 352 5 Data Flow in Debug Mode 5 26 In Debug mode all program execution is performed by the S7 CPU which allows you to use the various program monitoring and debugging capabilities of STEP 7 to test your application program The FM 352 5 module operates in a pass through mode making its inputs and outputs directly available to the S7 CPU Figure 5 14 shows the flow of input and output data between the main project OB1 the Application FB with its instance DB and the FM 352 5 module inputs and outputs through the Debug Interface FB when the Deb
113. o enter Normal mode and RUN STOP operating modes It must also manage the transfer of data between the module and the master CPU In addition if you have not commissioned the FM 352 5 module using the STEP 7 environment when you created and debugged your program you may want to incorporate controls to be able to switch to Debug mode in order to determine if the module is correctly connected to the inputs and outputs and if the module counter configuration is correct Single scan program execution is another tool that is useful in testing a program FM 352 5 Boolean Coprocessor 2810032 0001 8 3 Using the FM 352 5 with Non S7 Masters 8 3 User Data 8 4 User Data Interface The master CPU has access to a total of 16 bytes of input data and 16 bytes of output data during the FM 352 5 module operation The first two output bytes are used to transmit control information and the first two input bytes return status information to the CPU Refer to Table 8 3 and Table 8 4 In Normal mode operation the remaining 14 bytes are free form inputs and outputs exchanged between the module and the CPU as shown in Table 8 1 Table 8 1 User Data Input and Output Bytes in Normal Mode Byte Address Output Data to module Input Data from module ES 2 E Free form outputs Free form inputs Free form outputs Free form inputs In Debug mode operation the remaining 14 bytes are pre defined as shown in Table 8 2 This mode allows t
114. o not EE Static Section This definition is position specific These are ee status bits Do not change limit fixed Do not change a a E C S S SCCCCCSY Coja o fws S FM 352 5 Boolean Coprocessor 5 6 2810032 0001 Programming and Operating the FM 352 5 This part of the static section contains the encoder structure as shown in Table 5 4 These elements cannot be changed The entire structure however can be eliminated if the encoder is not used Table 5 4 Example Declaration Table for the Application FB Encoder Structure marese Becaaion Wane we comm 38 0 0 stat Encoder STRUCT Encoder structure Do not change 28 0 i C Ema Status direction 0 counting up 1 counting down 01 1 stat Home e BOOL Status 1 encoder is at home position CO Status 1 home has occurred since power cycle BOOL Status 1 overflow displayed for 1 scan Underflow BOOL Status 1 underflow displayed for 1 scan 0 5 5 stat SSiFrame BOOL Status SSI data framing error or power loss Status 0 SSI encoder has not yet shifted valid data 1 data available 2 2 stat o Load o O Boo si Boo sw S W Load input for incremental encoder S W Load input for incremental encoder for incremental encoder BEA 0 CE ted a Val DINT Current value for the incremental encoder DINT for 32 bit encoder INT for 16 bit Load_Val DINT Load value for the encoder DINT or INT
115. ommand Insert gt S7 Block gt Data Block or click the right mouse button and select the menu command Insert new object gt Data Block from the pop up menu Inthe properties dialog that appears enter the same number as the deleted DB 4 In the next field select Instance DB 5 Inthe third field select the application FB number that corresponds to the modified Application FB for the FM 352 5 module Click the OK button The new instance DB is created in your projects Blocks directory and is updated to contain the data that matches the FB FM 352 5 Boolean Coprocessor 2810032 0001 Programming and Operating the FM 352 5 Selecting Standard STEP 7 Instructions for the Application FB In order to create your application FB you use bit logic instructions for example contacts and coils and comparison instructions which come from the standard list of STEP 7 instructions as shown in Figure 5 2 Program elements nPE Hew network 5 ae Comparator 5 au Bit logic i oa di beat oll ool INOT 44 bi H ae 43 Peer a eee 44 N ss 44 F Las 43 al AE Comparator Bit logic eH G Converter Comparison instructions Compare CMP zd Figure 5 2 Valid Instructions from STEP 7 for FM 352 5 FM 352 5 Boolean Coprocessor 2810032 0001 5 13 Programming and Operating the FM 352 5 Selecting Additional STEP 7 Instructions for the Application FB Fi
116. ormally closed input 5 40 normally open input 5 40 NOT 5 41 off delay timer 5 50 on delay timer 5 49 output coil positive edge detection positive RLO edge detection 5 43 pulse timer 5 48 reset set flip flop set reset flip flop up counter 5 52 up down counter 5 54 LED status indicators 1 4 7 2 Library declarations 5 8 function block 4 21 5 15 Memory reset 5 39 Midline output connector 5 41 MMC in stand alone operation 5 35 slot 1 4 status bits 8 5 Mode debug 5 26 normal stand alone Mode switch 1 4 Index 3 Index Module functions 1 2 Module parameters setting 4 4 9 Monitoring example program 5 37 37 vee execution 5 32 MOVE 5 41 Multi phase clocking Multi turn SSI eee N N negative RLO edge detection NEG negative edge detection Negative edge detection Negative RLO edge detection 5 44 Non S7 control environment Non S7 CPU system requirements 8 8 3 Normal interface FB 5 27 Normal mode operation NOT 5 41 O Off delay timer 5 50 On delay timer 5 49 Operands Operating mode debug normal Operation stand alone Output coil declarations Output data bytes 8 Tea Overload output alarm Overview of basic tasks P P positive RLO edge detection 5 43 Parameters configuration diagnostic interface FB module 4 9 Parts lists Performance characteristics
117. ormation when the diagnostics OB is called These four bytes are stored in bytes 8 to 11 of OB82 Data Record 0 reports module level diagnostics Data Record 0 Diagnostic Assignments Table 7 2 shows the assignments of diagnostic Data Record 0 in the start information All unlisted bits are insignificant and take the value zero Table 7 2 Assignments of Diagnostic Data Record 0 Pc a Jo Module in fault Set for every diagnostics event Internal fault Set for all internal faults External fault Set for all external faults 4 Fault in external auxiliary voltage 1L supply missing 6e Module not parameterized Parameter Data Record 0 not received 7 Error in parameterization Wrong parameter or mismatch F 3 Type class Always assigned 8 Channel information available tree wrang or missing Wrong or missing module inserted _ inserted Set for MMC mieng 8 x 31 Process interrupt lost Process interrupt event has been detected and cannot be signaled since the same event has not yet been acknowledged by the user program in the CPU FM 352 5 Boolean Coprocessor 7 4 2810032 0001 Diagnostics and Troubleshooting Data Record 1 Diagnostic Assignments The first four bytes of diagnostics Data Record 1 are identical with diagnostics Data Record 0 Data Record 1 reports channel specific diagnostics The additional bytes are used by Data Record 1 to report input output and encoder interface diagnostics according to channel type
118. ors that are not found by the STEP 7 LAD FBD editor such as the use of instructions that are not supported by the FM 352 5 module Any errors that are found by this syntax check must be corrected before you can successfully compile the Application FB FM 352 5 Boolean Coprocessor 2810032 0001 Configuring the FM 352 5 5 After debugging the FM 352 5 s program in the S7 CPU or S7 PLCSIM you are ready to translate it to an executable format for the FM 352 5 module Click the Compile button to create a special SDB formatted for the FM 352 5 module Note This special SDB is created from a combination of the Application FB and the static parameters If you make any changes to the static parameters those not in Parameterization Data Record 1 or any changes to the Application FB you need to recompile Changes made to Parameterization Data Record 1 dynamic parameters do not require a recompile of the FM 352 5 program but the changed hardware configuration should be downloaded to the S7 CPU 6 Click the Download button to transfer the SDB from the STEP 7 programming environment to the FM 352 5 module FM 352 5 Boolean Coprocessor 2810032 0001 Programming and Operating the FM 352 5 Chapter Overview a Cat femsa o 2 oraina te opienie OC 3 4 6 5 T 5 8 5 9 5 5 Controlling Dynamic Parameters 5 38 Memory Operations 5 39 Instruction Set for Ladder Logic Programming ca femmes imperoven
119. ounter CTD16 00 ccc eee Up Down Counters CTUD16 and CTUD32 0 0 c eee Bit Shift Registers SHIFT SHIFT2 SHIFT4 SHIFT8 6 Encoder Signals and their Evaluation 6 1 Types of Encoders 00 cee eee en ete ene Encoder Type S sersan sedig en a vies God Speed Seeded Encoder Interface Signals 000 c cece eee eee Encoder Operational Controls cece eee eee 6 2 Counting Modes for the Incremental Encoders 00e00eeee Counting Modes 00 e cece eect ene Selecting Edge or Level Reset 000 cee cece eee Encoder Status Bits 0 cece eee Counter Behavior Common to the Three Counting Modes Continuous Counting 0 0 c cece teens Single Counting 2 2 ss cedeek bees Pe vee enon Dies ha peed Pek Oe Periodic GOUMING serii senes sivera nns nikken iniae aE EAEE E 6 3 Differential Encoder Signals 0 00 c eee e eee etna Differential Encoder Signals 0 ccc e eee eee 6 4 24 V Single ended Encoder Signals 0 00 cece eee eee Incremental 24 V Encoder Signals 0 0 c eee eee 6 5 Pulse Evaluation 0 0c ccc cee eee n aa INtFOGUCTION sos oiiaee iaia ee tenet en te tenet n eens Pulse and Direction 0 0 00 teen eee Single Evaluation 0 00 cece eee ees Double Evaluation 0 0 00 c cece een n teen enee Quadruple Evaluation 6 6 SSI Absolute
120. plication program before putting the FM 352 5 module into operation setting the module for Debug mode allows you to use the program monitoring and testing tools available in STEP 7 This Debug mode is possible only with an S7 CPU S7 314 or greater due to memory restrictions or the S7 PLC Simulator S7 PLCSIM Figure 1 4 shows the FM 352 5 in a debug configuration Testing your Application Program PG or PC with STEP 7 to run program in Debug Printer mode and monitor status hme gt Simulation program for debugging the application program inputs outputs lt FM 352 5 oe IE A Machine or process o being controlled RERE Figure 1 4 System Configuration for Debugging your Program In Debug mode the S7 CPU executes the debug FB while the FM 352 5 module makes its inputs and outputs directly available to the S7 CPU allowing you to simulate the program at lower speed and check wiring Normal Mode After fully testing the application program in Debug mode you compile the program to an FPGA image and download the program and module parameter data into the module You can then put the FM 352 5 module into Normal mode operation If a master CPU is controlling the FM 352 5 module the main control program signa
121. pplication Using the shield contact element you can easily connect all the shielded cables of S7 modules to ground by directly connecting the shield contact element to the rail Design of the Shield Contact Element The shield contact element consists of the following parts e A fixing bracket with two bolts for attaching the shield terminals to the rail Order No 6ES7 390 5AA00 0AA0 e The shield terminals Depending on the cable cross sections used use one of the shield terminals listed in Table 3 3 Table 3 3 Assignment of Cable Cross Sections and Terminal Elements Cable with Shield Diameter Shield Terminal Order No 2 cables with a shield diameter of 2 to 6 mm 0 08 to 0 23 in 6ES7 390 5AB00 0AA0 each 1 cable with a shield diameter of 3 to 8 mm 0 12 to 0 31 in 6ES7 390 5BA00 0AA0 1 cable with a shield diameter of 4 to 13 mm 0 16 to 0 51 in 6ES7 390 5CA00 0AA0 The shield contact element is 80 mm 3 15 in wide with space for two rows each with 4 shield terminals FM 352 5 Boolean Coprocessor 2810032 0001 Wiring the FM 352 5 Installing the Shield Contact Element Install the shield contact element as follows 1 Push the two bolts of the fixing bracket into the guide on the underside of the rail Position the fixing bracket under the modules to be wired 2 Bolt the fixing bracket tightly to the rail 3 The shield terminal has a slotted web on the bottom side Place the shield terminal at this posi
122. put Section This input is position specific The first 15 bits are digital inputs of the FM 352 5 You can specify a list of BOOL or an Array of BOOL but not both You can also assign names to the inputs ARRAY 0 14 Digital inputs 0 11 24V 12 14 RS 422 differential Input Section Bytes 2 through 15 are position specific data from the CPU to the FM 352 5 module Any combination of BOOL Array of BOOL BYTE INT or DINT which total up to 14 bytes is allowed You can assign names to the inputs a CPU_Out STRUCT 14 bytes from the CPU as inputs to the FM ae oe T1_PV DINT can be DINT DINT must start at 2 6 or 10 T2_PV BYTE Some can be BYTE must be typecast to INT by MOVE Hess Ss 0 C1_PV some can be INT INT must start at an even byte boundary 10 0 ojn CP_Period Period WORD Some canbe WORD ssid Some canbe WORD ssid be WORD a CMPInt n imac But total structure length is limited to14 bytes 14 14 0 in o fin Ps END_ STRUCT Note Data is consistent only over long word 4 byte boundaries To ensure data consistency a double integer DINT element must start at 2 6 or 10 FM 352 5 Boolean Coprocessor 5 4 2810032 0001 Programming and Operating the FM 352 5 Assigning Output Elements Use the output section of the declaration table to assign the output elements from the module to be used in the program as shown in Table 5 2 These include the
123. r times Encoder parameters and others Expand each folder in the left column to display the available parameter options The column on the right changes as needed to match the selected parameter You assign parameters by selecting one of the available options You can resize the columns in this dialog by moving the cursor to a position between the column headings Figure 4 5 shows how to assign parameters Properties FM352 5 RO S4 ES General Addresses Programming Parameters Parameters GQ Parameters Basic Parameters Interrupt generation Click in field to open a list of parameter options Interrupt selection None Reaction to CPU STOP Stop lt gt Module Diagnostics Enables Missing Auxiliary supply voltage 1L Missing input output supply voltage 2 Encoder sensor supply fault Missing encoder supply voltage 3L Click checkbox to enable or disable each parameter or SSI frame overrun diagnostic alarm Differential encoder broken wire MMC diagnostic Output Diagnostics Enabled Process Interrupt Enabled Input Filter Time Constants Program Properties Encoder General Encoder SSI
124. reen displays three panels see Figure 4 2 A blank station window to place racks and modules into appropriate slots 2 A table that provides details of each module placed in the selected rack such as order numbers network addresses input and output addresses etc NI A hardware catalog that contains all the S7 components needed to build a programmable controller system co GS HW Config SIMATIC 300 Station Edit Insert PLC View Options Window Help ojales S S e ioi fe A pe All SIMA TIC 300 Configuration S _Pro1 BEE Profile Standard 7 T0 UR PROFIBUS DP SIMATIC 300 CPU 315 7 3 E cP 300 EE Click the catalog button if E CPU 300 the hardware catalog does FM 300 not appear when you first FM Coprocessors open the Hardware Config fj FM352 5 Boolean Coprocessor application i a M Application Modules I Cam Controllers E ENC s E Controller Modules m Counter Modules E Positioning Modules IM 300 J M 7 EXTENSION PS 300 f Ps 307 104 J PS 307 24 lg PS 307 54 Sj RACK 300 B Rail 0 M 300 SIMATIC 400 SIMATIC PC Based Control 300 400 B SIMATIC PC Station ic Ea E a c BES 352 54H00 04E0 Boolean Coprocessor 12D1 8D0 Encoder Press F1 to get Help Figure 4 2 Hardware Configuration Window
125. rements 00 cece ee eee eee Importing GSD File Data 0 0 cece eee MMC Programming 000 e cece teen eee Developing an Interface Function 0000 c cece eee eee 8 3 User Data Interface 0 00 ccc teens WSCM Daa ft ccacesk c gyal tat eg lene i a dealdons AA R Definitions of the Control Bytes and Status Bytes Bit Definitions of the Encoder Status Bytes 04 Bit Definitions of the Encoder Control Byte 0 Bit Definitions of the Power Supply Status Byte Bit Definitions of the SSI Encoder Status Byte Bit Definitions of the MMC Status Byte 00 00 00s A Specifications A 1 Standards Certificates and Approvals 0 000 cc eee ee eee INtFOGUCHION tic sia neat eecttee nien ed een a wd Kee nade Maat ed IEC WGA eee cee et Ean eke esa E eae CE Marking nerion cant ran neii Maan fase pak band wees ae oa Oke UL Approval chives daisies tee ee ee ol ec ed CSA Certification 0 2 teens FM Approval asserena aa int enue wien Pons Hele Ere Approval for Shipbuilding Application Submitted A 2 Electromagnetic Compatibility and Shipping and Storage Conditions Delito cto etka ea pea e reek es Gadde nek deme ei ee ods FM 352 5 Boolean Coprocessor 2810032 0001 Ix Contents Pulse Shaped Interference 00 cece eee eens Sine Shaped Interferen
126. ructure defined in the Application FB interface see Table 5 12 Error BOOL This bit is set if the module is configured for debug and called as normal mode or vice versa The bit is also set if the module indicates a fault See parameter Status for reason Status INT This location contains the status word returned by the module For a description of the word refer to Tables 8 3 and 8 4 AppFB INT The number of the Application FB for the FM 352 5 module used in Debug mode AppInstDB INT The number of the Application FB s Instance DB for the FM 352 5 module used in Debug mode This parameter is used only in the FB named FM Interface Debug for Debug mode FM 352 5 Boolean Coprocessor 2810032 0001 5 29 Programming and Operating the FM 352 5 CPU_Out Structure Table 5 10 shows an example of the 14 byte structure that passes data from the CPU to the FM 352 5 module In the example Interface FB this structure is called by the pointer DB5 DBBO which calls Data Block 5 shown in Table 5 11 Table 5 10 Example Declaration Table for the Application FB Input Section Address Becwaion Wane wei f uoa smor OO OOOO y O C oon es aro y ON a a C eofn ew e SOSCS S C ofn omee ee C eofn omw hO aoon oP Peed WORD Cazon ip owene NTS a saofin A E Table 5 11 Example Data Block DB5 DBBO mess nome J e O O e OE ED r C ooj Bis wwo SSS Cop o S a A e A A E FM 352 5 Boolean Coproc
127. s 0 0 cece teens Resetting the Memory 0 cece eee Removing the MMC during Operation FM 352 5 Boolean Coprocessor 2810032 0001 vii Contents 5 10 Instruction Set for Ladder Logic Programming 00 Normally Open Input 0 0 cece eee eee Normally Closed Input 00 0 0 cece eee eee Output Coll idaraan ee eet Heerlen not a Mae bladder pada egw ace A INO roe ace aceateeutentege E E cect ices ie E A Midline Output Connector 0 0 eee MOM Ee gara Pte wre ceed ot ae Peat ee teat a toe ne oat cate acct Gd oh Convert Integer to Double Integer I_ Dl 00005 Set Reset Flip Flop SR 0c cece cece e neces Reset Set Flip Flop RS 0 0 cece cece eee Positive RLO Edge Detection P 0c eee Negative RLO Edge Detection N 00 eee eee eee Positive Edge Detection POS 0c cece eee eee Negative Edge Detection NEG 0 cece eee eee Compare Function CMP 000 cece eee eee eee FM 352 5 Library Instructions 0 eee ee eee Binary Scaler BiScale 0 c cece eee Pulse Timers TP16 and TP32 0 c cece eee eee On Delay Timers TON16 and TON32 0 00 cee Off Delay Timers TOF16 and TOF32 0c cc cece c eens Clock Pulse Generator CP_Gen 0000 cece eee eens Up Counter CTU16 0 cee ccc Down C
128. s You can use SFC 59 to read this diagnostic Data Record Table 7 3 shows the assignments of diagnostic Data Record 1 All unlisted bits are insignificant and take the value zero Table 7 3 Assignments of Diagnostic Data Record 1 fave ek Weaning Roma f s_ Sareasbaamecod a ememr orenera Bens efchamalinbiey et e pumoer of agnosis bis per cramer e reremen Numer ofsuzeedng chanel ortne same vee C C e e eoe Note When the Missing I O supply voltage diagnostic is active no module inputs or outputs are valid Encoder Interface Diagnostics Channel Type F44 eo Channel type F44 Channel type diagnostics mo 16 length of channel in bits Lists the number of diagnostics bits per channel tf 1 channel count Number of succeeding channels of the same type a femem O 13 O Differential encoder broken wire SSI or 5V encoder see Table 7 5 Missing encoder supply valage 31 Encoder selected or npuisussd C Note When the Missing encoder supply voltage diagnostic is active no encoder card inputs or outputs are valid Output Diagnostics Channel Type 724 ms Channel type 724 Channel type diagnostics me 8 length of channel in bits Lists the number of diagnostics bits per channel az 8 channel count Number of succeeding channels of the same type femas S Output 0 overload Output diagnostics byte 1 Output 1 overload Output diagnostics byte 2 Output 2 overload Output diagnostics byt
129. s equal to IN2 is not equal to IN2 lt gt is greater than IN2 is less than IN2 IN2 is greater than or equal to IN2 is less than or equal to IN2 FM 352 5 Boolean Coprocessor 2810032 0001 5 45 Programming and Operating the FM 352 5 FM 352 5 Library Instructions Table 5 29 lists the FBs from the FM 352 5 Library their symbolic names and a functional description of each You can change the numbers of the FBs after you have copied them or as you copy them to your program Blocks folder Table 5 29 FM 352 5 Library FBs FM 352 5 Boolean Coprocessor 5 46 2810032 0001 Programming and Operating the FM 352 5 Binary Scaler BiScale The Binary Scaler FB112 provides a way to produce a series of output pulses at half the rate of the input pulses Each rising edge at input C inverts the output Q effectively dividing the frequency of the input by two as shown in Figure 5 19 Signal states 1 0 C Time Figure 5 19 Timing Diagram for Binary Scaler BiScale Table 5 30 Binary Scaler BiScale C BOOL Input Input to be scaled BiScale EN ENO i BOOL Output of the function c Q Note No logic is allowed on the EN input FM 352 5 Boolean Coprocessor 2810032 0001 5 47 Programming and Operating the FM 352 5 Pulse Timers TP16 and TP32 This timer is available in two versions 16 bit FB116 a
130. s the function of each one Enter the addresses for the module inputs and outputs and the pointers to the data structures that are exchanged between the CPU and the module Table 5 9 Interface FB Parameter Definitions Run BOOL When set to 1 this bit requests the module to enter RUN mode If the mode switch on the module is also in the Run position and the OneScan input is 0 then the module enters RUN mode When set to zero the module will enter the STOP mode even if the switch on the module is in the Run position OneScan BOOL _ When set to 1 this bit enables the single scan mode As long as this input is 1 the module will execute one scan each time the Run input transitions from zero to one When set to zero the module follows the Run input LADDR_In WORD _ Logical address of FM 352 5 inputs and must agree with the in Hex address assigned to the inputs in Hardware configuration LADDR_Out WORD _ Logical address of FM 352 5 outputs and must agree with the in Hex address assigned to the outputs in Hardware configuration CPU_Out POINTER Points to the 14 byte structure which is the source for the data to be transferred to the module as CPU outputs The structure should agree with the structure defined in the Application FB interface see Table 5 10 CPU_In POINTER Points to the 14 byte structure which is the destination for the data to be transferred from the module as CPU inputs The structure should agree with the st
131. shown in Figure 3 1 Labeling Strip Enclosed with the module is a labeling strip for identifying the signals connected to the terminal connector The labeling strip is inserted into the recessed space on the front of the connector door Micro Memory Card MMC The Micro Memory Card stores the program files in non volatile memory and installs in the slot on the front of the FM 352 5 module An MMC with 256 Kbytes of memory or greater is required for FM 352 5 operation The FPGA derives its program code from the MMC at power up memory reset or when an MMC is installed with a new program FM 352 5 Boolean Coprocessor 2810032 0001 1 5 Product Overview 1 3 System Configurations Figure 1 3 shows some possible system configurations with the FM 352 5 The control program is developed in the STEP 7 environment with the FM 352 5 Configuration software The FM 352 5 module can operate O in an S7 system in a stand alone configuration or 3 in a distributed system with an S7 or non S7 master using PROFIBUS communications f STEP 7 PG or PC with MPI Printer with FM 352 5 interface and MMC Configuration programmer optional MMC card a S7 Control Environment Figure 1 3 Examples of System Configurations FM 352 5 Boolean Coprocessor 1 6 2810032 0001 Product Overview 1 4 Modes of Operation Debug Mode In order to test your ap
132. sing edge of B when A is low Figure 6 9 shows quadruple evaluation of signals Signal A _f yf fF i f a g t Signal B L Lo Up count pulses Down count pulses Up Down Figure 6 9 Quadruple Evaluation FM 352 5 Boolean Coprocessor 2810032 0001 Encoder Signals and their Evaluation 6 6 SSI Absolute Encoders SSI Encoder Overview Absolute encoders with synchronous serial interface SSI assign a fixed numeric value to each position This value is permanently available and can be read out serially The FM 352 5 module processes Gray code only Multi turn SSI encoders have a frame length of 25 bits The FM 352 5 module can process 24 bits Single turn SSI encoders have a frame length of 13 bits 12 bits of data Delay Time Use the Parameters configuration tab dialog to set the delay time for the SSI encoder to 16 32 48 or 64 us For an SSI Master you must select a delay time equal to or greater than the encoder s specified minimum time If you do not know the specification for your encoder select 64 us For an SSI Listen application you must select a delay time equal to or less than the master s delay time Shift Register Frame Length You can select a shift register frame length of 13 bits or 25 bits in the Parameters tab dialog depending on the frame length of your SSI encoder Clock Rate You can select a
133. sor 2810032 0001 5 43 Programming and Operating the FM 352 5 Negative RLO Edge Detection N This instruction is found in the standard list of STEP 7 instructions N Negative RLO Edge Detection detects a signal change in the lt address gt from 1 to 0 and displays it as RLO 1 after the instruction The current signal state in the RLO is compared with the signal state of the address the edge memory bit If the signal state of the address is 1 and the RLO was 0 before the instruction the RLO will be 1 pulse after this instruction and 0 in all other cases The RLO prior to the instruction is stored in the address Table 5 25 Midline Output Connector lt address gt lt address gt BOOL Input Edge memory bit storing the N previous signal state of RLO Positive Edge Detection POS This instruction is found in the standard list of STEP 7 instructions You must label the M_BIT input with a unique element that is declared in the structure Edge POS Positive Edge Detection compares the signal state of lt address gt with the signal state from the previous scan which is stored in M_BIT If the current RLO state before the instruction is 1 and the state of the lt address gt bit is 1 and the previous state of that bit was 0 detection of rising edge the RLO bit will be 1 after this instruction Table 5 26 Positive Edge Detection POS Q M_BIT BOOL Edge label Edge memory bit
134. static discharge air discharge in accordance with IEC 61000 4 2 and NAMUR NE21 Aug 1998 at ala a Burst pulses rapid transient interference in accordance with IEC 61000 4 4 1995 3 Surge in accordance with IEC 61000 4 5 1995 Only with protection e Asymmetrical interconnection e Symmetrical interconnection Protection for IEC 61000 4 5 24V Blitzductor model AD24V RS 422 and 5 V Blitzductor model ME12 24 V outputs Blitzductor model AD24V with 36 V transorbs Q0 Q7 to M2 Protection connected according to manufacturer s recommendations Sine Shaped Interference A 4 The following requirements show the electromagnetic compatibility of the FM 352 5 when confronted by sine shaped interference e RF radiation requirements according to EN 61000 2 2 e Electromagnetic RF field test according to IEC 61000 4 3 e HF current on cables and shields requirements according to NAMUR NE21 Aug 1998 and EN 61000 6 2 Test according to EN 61000 4 6 1996 FM 352 5 Boolean Coprocessor 2810032 0001 Specifications Emission of Radio Interference Emitted interference of electromagnetic fields in accordance with EN 55011 Limit Value Class A Group 1 measured at a distance of 10 m From 30 MHz to 230 MHz lt 40 dB uV m Q From 230 MHz to 1000 MHz lt 47 dB uV m Q Shipping and Storage Conditions The FM 352 5 exceeds the requirements of IEC 1131 Part 2 as regards shipping and storage conditions A 3 Mechanical and Cl
135. stem meets the safety requirements and provides the grounding mechanical support and resistance to vibration to help ensure proper operation of the FM 352 5 module Refer to the S7 300 Programmable Controller Hardware and Installation Manual for further information about the mounting of rails and the installation of modules Note If the FM 352 5 module senses that another module is connected next to it on the rail with an S7 300 bus connector the FM 352 5 module will not enter stand alone mode To ensure stand alone operation do not install a bus connector to either side of the FM 352 5 module Providing the Power Supplies If you use the S7 300 rail for your stand alone installation you can connect an S7 300 power supply to the rail to provide the primary power source for the module logic circuitry Connect wiring from the S7 300 power supply to the 1L 1M power terminal on the bottom left side of the FM 352 5 module Otherwise you will need to provide power to the module using an external 24 VDC power supply connected to the 1L 1M power terminal on the bottom left side of the module under the protective door A removable connector is supplied with the module to simplify installation and removal of the power supply wiring You will also need to wire power for the I O circuitry and the encoder interface if used Refer to Chapter 3 for more information about wiring the external power supplies FM 352 5 Boolean Coprocessor 9 4
136. stency of data type greater than DINT A control bit must be used to latch in the data that must be consistent The data must be presented to the module then the control bit must be set to latch the data The control bit could be edge detected POS to reduce the number of scans needed for the transfer You can use an interlocked transfer as follows 1 Write the control bit to 0 2 Write the data 3 Read the reflected control bit which must be looped back in the user program and wait for 0 4 Write the control bit to 1 the FM application program must latch the data on this edge 5 Read the reflected control bit and wait for 1 The interface is now ready for the sequence to repeat FM 352 5 Boolean Coprocessor 2810032 0001 5 11 Programming and Operating the FM 352 5 Updating the Instance Data Block The instance data block DB that is created for the Application FB contains the data elements required by the FB to execute the program in debug mode If you make certain changes to the FB declaration section such as adding or deleting multiple instances of an instruction then the DB no longer matches the FB When the CPU executes the FB in debug mode the CPU may go to STOP mode if access errors occur as a result of the mismatch To update the DB so that it will match the changes made to the FB follow these steps 1 2 Delete the existing instance DB that corresponds to the modified FB Select the menu c
137. sting Examples of Connectors 0 0 e eects Examples of Multi phase Clocking of Retentive Elements Multi Phase Clocking and I O Timeline 000 cece eee Interface FB for Debug Mode Execution 0 0c e eee eee Data Exchange in Debug Mode 0 cee eee eee ees Interface FB for Normal Mode Execution 000 cece eee Data Exchange in Normal Mode cece eee eee eee ees Stand Alone Operation 000 cece eee eee Resetting the Memory isssrrssiriirenerrrarenairraiarneirrarana Timing Diagram for Binary Scaler BiScale 2 000000 Timing Diagram for Pulse Timer TP 00000 e cece eee eens Timing Diagram for On Delay Timer TON 000200 cece eee Timing Diagram for Off Delay Timer TOF 00200c eee eee Timing Diagram for Clock Pulse Generator CP_Gen Continuous Counting Mode 000 cece eee Single Counting Mode 0c eee eens Periodic Counting Mode 000 ee eee eee Signals of the Differential Incremental Encoder 000ees Signals of a 24 V Pulse Encoder with Direction Level Pulse amp Direction Counting 00 cece eee eee Single Evaluation 0 00 c cece Double Evaluation rosi 0c cece ete A Quadruple Evaluation 0 000 eens Functional Block Diagram of the FM 352 5 Module
138. t number to the FM 352 5 Slot labels are supplied with the CPU Refer to the S7 300 Programmable Controller Hardware and Installation Manual for instructions on how to assign and apply slot numbers to the modules Removing the FM 352 5 The following procedure describes how to dismount the FM 352 5 from the rail of an S7 300 controller system For further information about removing modules refer to the S7 300 Programmable Controller Hardware and Installation Manual 1 A WO ND Set the CPU to the STOP mode with the operating mode switch Turn off or disconnect all power to the FM 352 5 module Open the hinged front door on the right of the module Unscrew the fixing screw of the front connector with a 3 mm screwdriver then pull it out while holding the grips at the top and bottom Pull firmly to release the latching tabs Remove the group 1 power connection under the door on the left of the module This is a removable connector Unscrew the two module fixing screws at the bottom of the module using a 4 5 mm screwdriver Swing the module up and off the rail FM 352 5 Boolean Coprocessor 2810032 0001 2 3 Installing and Removing the FM 352 5 2 3 Installation in a Stand Alone System Mechanical Installation For a stand alone system it is recommended that you follow the same basic installation guidelines and mechanical requirements that are specified for an 7 300 system This installation sy
139. th the MMC programming device Section 5 5 Figure 5 1 Creating the Program FM 352 5 Boolean Coprocessor 5 2 2810032 0001 Programming and Operating the FM 352 5 5 2 Creating the Application Function Block Editing the Application FB DB Set The Application FB is the function block in your main control program that will contain the program instructions for the FM 352 5 module To create a new Application FB DB set for your FM 352 5 module program follow these steps 1 In the SIMATIC Manager window open the FM352 5 Library and copy the following objects in the Blocks folder to your program Blocks folder the Application FB FB3 the Debug Interface FB FB30 and DB30 and the Normal Interface FB FB31 and DB31 Be sure to enter the same FB number in the Application FB field of the Programming tab of the FM 352 5 configuration dialog From the Library folder copy the instruction FBs that you want to use in your FM 352 5 application program to your program Blocks folder You can also copy the Symbols table from the FM352 5 Library to your program Blocks folder to use as a starting point You can then change symbol names as needed Use the Edit the Application FB button on the Programming tab to open the Application FB for editing The STEP 7 LAD FBD editor displays the function block with its predefined declaration section Adjust the declaration table to suit your application Names have already b
140. that is terminals 39 19 38 18 and so on to terminals 21 and 1 at the top of the block If you want to route the wires out at the top of the module start at terminal 1 or 21 Connect the wires to the terminals in alternating order that is terminals 2 22 3 23 and so on to terminals 20 and 40 at the bottom of the block 2 Tighten the screws of any terminals that are not wired 3 Attach the cable strain relief assembly around the bundle of wires and the strain relief anchor at the top or bottom of the front connector 4 Pull the strain relief assembly tight Push the retainer on the strain relief assembly in to the left this will improve utilization of the available space 5 Insert the terminal connector block into the recessed slot in the front of the module Rail guides are keyed to prevent the terminal block from being inserted upside down 6 Tighten the screw in the middle of the terminal block to ensure that the block is properly seated and connected to the terminal pins in the module 7 Close the front door 8 Use the labeling strip to identify the signal of each wire connected to the terminal block 9 Slide the labeling strip into the guides on the front door Wiring the Power Supplies Power supply 1L provides 5 VDC power for the module s logic circuitry Connect your 24 VDC power supply to the 1L and 1M terminals on the bottom left side of the module under the door as shown in Figure 3 1 Power supply
141. the FM 352 5 Configuration dialog and select the Programming tab 2 Click the Compile button Downloading the Program to the FM 352 5 After compiling the Application FB for the FM 352 5 module you can download the SDB to the FM 352 5 module The FPGA derives its code from the image that is transferred by the download 1 Access the FM 352 5 Configuration dialog and select the Programming tab 2 Click the Download command button The download causes a transition to Normal mode in the FM352 5 When the download to the FM352 5 begins the module enters operating state STOP and copies the downloaded file to the FPGA The MMC is not changed by the download The FM352 5 module remains in Normal mode when the download operation completes and maintains operating state STOP even if the CPU user program continues to make calls to the Debug Interface FB requesting RUN Running the FM 352 5 Module in Normal Mode To change the FM352 5 operating state to RUN in the Normal mode you must have the RUN STOP switch in the RUN position terminate the calls to the Debug Interface FB and call the Normal Interface FB FB31 in the FM352 5 Library with the Run input at logic 1 from the CPU user program With this call the FM352 5 module begins executing the program that was downloaded to the FPGA As long as the OneScan input is at logic 0 the FM352 5 continues to execute the program until one of the following events occur e A subsequent call
142. tics The FM 352 5 module executes its program independently of the master CPU The inputs and outputs of the process controlled by the module are local and cannot be accessed directly by the master CPU However the user program of the CPU transfers control commands and configuration parameters to the FM 352 5 module over the I O bus and evaluates the status information returned by the module The FM 352 5 module has the following operating characteristics e Recording and control of fast processes for example high speed inspection amp rejection systems or control of high speed machines in the packaging food amp beverage tobacco and personal care product industries e Data exchange with the CPU user program when used in a coprocessor configuration The S7 CPU has access to 16 bytes of input and 16 bytes of output data to permit transfer of control information count values counter preset values and status information using a special Interface FB Function Block to coordinate the data exchange see Figure 1 1 FM 352 5 Boolean Coprocessor 2810032 0001 1 3 Product Overview 1 2 Physical Features of the Module Status Indicators Figure 1 2 shows the status indicators on the faceplate of the FM 352 5 module Module status LEDs gt Slot for Micro Memory Card MMC
143. tion onto edge A or edge B of the fixing bracket Press the shield terminal down and swing it into the desired position See Figure 3 5 You can attach up to four terminal elements on each of the two rows of the shield contact element bracket Shield contact element fixing bracket Shield terminal Shield must lie under the shield terminal Figure 3 5 Attaching Shielded Cables to Shield Contact Element Attaching Cables You can only attach one or two shielded cables per shield terminal See Figure 3 5 and Table 3 3 The cable is connected by its bare cable shield There must be at least 20 mm 0 78 in of bare cable shield If you need more than 4 shield terminals start wiring at the rear row of the shield contact element Tip Use a sufficiently long cable between the shield terminal and the front connector You can thus remove the front connector without the need to also remove the shield terminal FM 352 5 Boolean Coprocessor 2810032 0001 3 11 FM 352 5 Boolean Coprocessor 2810032 0001 Configuring the FM 352 5 4 Chapter Overview EC id en penra he ConguatonProgarmng Soma eT a oveni ofFarivare Conon a 48 Senra Up 1e Havers Conon Pesonna Propenesard Paares S Saving and Compiling the Hardware Configuration 4 16 Programming Control 4 17 igurati 4 4 E i a8 oreore te ConsiseneyoF Program ard Covigwaion TE E FM 352 5 Boolean Coprocessor
144. to the Debug Interface FB is made which switches the FM352 5 module back to Debug mode and restores the FPGA to the internal debug program e A power cycle occurs which restores the FPGA to the program contained in the MMC if valid or the internal debug program otherwise e You execute the memory reset sequence defined in the section Resetting the Memory see page 5 39 which restores the FPGA to the program contained in the MMC if valid FM 352 5 Boolean Coprocessor 2810032 0001 5 33 Programming and Operating the FM 352 5 Single Scanning the FM 352 5 Module in Normal Mode You can cause the FM352 5 to execute single scans in the Normal mode by calling the Normal Interface FB with OneScan at a logic 1 and toggling the input Run from logic 0 to 1 Each time Run transitions to logic 1 the FM352 5 executes one scan Saving the FM 352 5 Application FB in an MMC To copy the FM352 5 program to the MMC follow these steps 1 Insert the MMC in your PROM writing device 2 Click the Memory Chip button in the SIMATIC Manager window or select the menu command File gt S7 Memory Card gt Open to open the S7 Memory Card window 3 Copy the FM352 5 System data folder containing SDB 32512 from your Blocks folder of the FM 352 5 program to the memory card window 4 After copying the program to the MMC remove the MMC from the PROM writer and insert it in the slot of your FM352 5 module Now when the module powers up it takes th
145. tput 1 The input delay filter is a noise pulse filter It may not reject a continuous wave of 1 delay 2 Only one of the output power supplies for encoders can be used at a time not both together 3 Diagnostic indications for these conditions are available only when enabled in the Parameters tab of the FM 352 5 Properties dialog 4 Output overload diagnostics may not be reported if the output pulse width is less than 2 ms Specifications A 6 Functional Block Diagram Figure A 1 shows a functional block representation of the essential hardware components of the FM 352 5 module 3L 24 V External user power supply Power gt 5V Supply 3 24V Encoder 7 CLK Bus card 3 Interface DA Pe gt gt FPGA wA P Bus Micro 8 controller Z 4 1 0 card wa MMC Interface A Power Power Supply 1 Supply 2 D yN yN M MMC 2L 24 V Micro Memory M a External user Card power supply power supply Figure A 1 Functional Block Diagram of the FM 352 5 Module FM 352 5 Boolean Coprocessor A 10 2810032 0001 Specifications A 7 Operational Specifications Switching Frequency Derating Charts Figure A 2 shows how the output channels are derated for operating temperature as the switching frequency increases up
146. ug Interface FB is called from OB1 i S7 CPU FM 352 5 oe SE face Module _ FB Input gt Application Application 15 m DB FB a OB1 3 Pa 1 gt Mod inputs 4 gt Program Inputs n Outputs CPU_Out gt CPU_Out Sea data H E H Diagnostics Process au CPU_In 5 alarms _ Mod outputs is After execution Module Output space 0 15 D hhh Figure 5 14 Data Exchange in Debug Mode The data flows in the following sequence e 4 The OB1 in the master program calls the Debug Interface FB that communicates with the FM 352 5 module and associated Application FB e 2 The Debug Interface FB reads inputs from the FM 352 5 module and B passes the data along with the CPU_Out interface data to the instance Application DB associated with the Application FB The Debug Interface FB then calls the Application FB e 4 The Application FB reads the input data from its instance Application DB and uses the data to execute its program e 5 As the program executes the Application FB writes the output data back to its Instance DB and returns to the Debug Interface FB e B The Debug Interface FB reads the results of the program execution from
147. ule Figure 4 1 shows a summary of the basic steps required to install and configure the FM 352 5 module in an S7 300 system The FM 352 5 module can also be installed in a distributed system using an ET 200M station with an IM153 1 or IM153 2 module but this chapter uses an S7 300 system as an example for the sake of simplicity These steps are described in this chapter Insert a SIMATIC 300 station see Section 4 3 e Insert an S7 300 rack rail e Insert a power supply module e Insert the S7 300 CPU Insert the FM 352 5 module see Section 4 3 Configure the FM 352 5 module see Section 4 4 e Assign the address and other basic properties Configure the parameters for diagnostic alarms e Configure the parameters for operational modes Save and compile the hardware configuration Section 4 7 Figure 4 1 Installing and Configuring the Hardware FM 352 5 Boolean Coprocessor 4 4 2810032 0001 Configuring the FM 352 5 4 3 Setting Up the Hardware Configuration Creating a Project When you invoke STEP 7 the top level SIMATIC Manager screen is displayed You can then either access an existing project or create a new project For further information on creating a STEP 7 project refer to the STEP 7 User Manual or the STEP 7 online help Accessing Hardware Configuration Double click on the Hardware icon in the right panel of the project directory to invoke the Hardware Config screen The Hardware Config sc
148. urrent consumption of the FM 352 5 from the backplane bus is 100 mA e The FM 352 5 can be mounted at any location for I O modules on the rail Tools Required To install or remove the FM 352 5 you need a 4 5 mm 0 18 in slot screwdriver To wire the terminal connector block you need a 3 mm 0 12 in slot screwdriver FM 352 5 Boolean Coprocessor 2 2 2810032 0001 Installing and Removing the FM 352 5 2 2 Installation in an S7 300 System Installing the FM 352 5 The following procedure describes how to mount the FM 352 5 onto the rail of an 7 300 controller system For further information about the installation of modules refer to the S7 300 Programmable Controller Hardware and Installation Manual 1 Plug the bus interconnector onto the bus connector of the module to the left of the FM 352 5 The bus connector is on the back of the module and you may need to loosen the module first If additional modules are to be mounted to the right then first plug the bus interconnector of the next module onto the right bus connector of the FM 352 5 If the FM 352 5 is the last module in the row do not attach a bus interconnector Hook the module onto the rail slide it as far as the module on the left and swing it down into place Tighten the two screws on the bottom of the FM 352 5 applying a torque of between 0 8 and 1 1 Nm to secure the module to the rail After installing the module you can assign a slo
149. use the S7 system default assignments or select your own addresses with CPUs that support address selection e Programming parameters where you specify the FB and DB numbers to be used to store the program and where you select the operating mode e Operational parameters such as interrupts input filtering module diagnostics output diagnostics encoder parameters and others Programming the FM 352 5 You program the FM 352 5 module using the FM 352 5 Configuration software with the STEP 7 LAD FBD editor version 5 1 SP2 or greater The FM 352 5 software provides a library of special instructions for the Program Elements catalog The library of function blocks FBs for the FM 352 5 includes timers counters shift registers a binary scaler and a clock pulse generator that are intended for use only with the FM 352 5 module In addition you will be able to select a subset of the standard STEP 7 bit logic instructions such as contacts and coils as you create your program The FM 352 5 instructions are described in Chapter 5 You write your program in an Application FB Using the FM 352 5 Configuration software and STEP 7 the program is compiled then copied into a Micro Memory Card MMC for non volatile storage The MMC is installed in the slot on the front of the module When the FM 352 5 module is powered up the stored program is retrieved from the MMC and the module executes the program from that image Operating Characteris
150. utput current e Protection e Diagnostic 24 V output power for sensors and encoders e Supply output e Output current e Protection e Diagnostic 5 2 V 5 250 mA max Yes electronic Not protected from application of normal or counter voltage Yes 3L 1 V max 400 mA max Yes electronic Not protected from application of normal or counter voltage Yes FM 352 5 Boolean Coprocessor 2810032 0001 Status Interrupts Diagnostics Interrupts e Hardware interrupts 1L missing 2L missing 3L missing Encoder overloads Encoder broken wires SSI frame error Output overloads 4 MMC fault e Process interrupts Diagnostic functions Group error display MMC error Monitoring of the power supply voltage of the electronics I O fault status Run mode Stop mode Power supply fault encoder Input status Output status Execution time PLC update cycle time Program and hardware response time Yes Parameters can be assigned Diagnostics data record Diagnostics data record Diagnostics data record Diagnostics data record Diagnostics data record Diagnostics data record Diagnostics data record Diagnostics data record Yes 8 process alarms Yes SF red LED MCF red LED DC5V green LED IOF red LED RUN green LED STOP yellow LED 5VF red LED 24VF red LED Green LED I 0 to 111 Green LED Q 0 to Q 7 1 us 2 6 ms 5 ms max 2 to 6 us input to ou
151. uts per module Sinking 28 8 VDC max 24 VDC lt 0 5 VDC max 28 8 VDC max lt 1 0 mA 5 mA to 0 6 A 0 5 Aat 60 C Yes 2 points 125 mW at 500 mA 4A A 7 Specifications Switching rate e For resistive load e For inductive load e For lamp load Output delay typical for resistive load At 1 to 0 At 0 to 1 Protection for the output Short circuit Response threshold Overvoltage Thermal Inductive excitation clamping voltage Cable length e Unshielded e Shielded Encoder Section Input frequency e 5 VDC input e 24 VDC input Encoder signal interpretation Reset source Reset value source Reset signal type Load value source Hold source Load value Count range minimum A 8 20 kHz at 0 5 A 2 Hz at 0 5 A with external commutation diodes 0 5 Hz at 0 5 A without external commutation diodes lt 10 Hz 5 W max 1 7 us at 50 mA 1 5 us at 0 5 A 0 6 us at 50 mA 1 0 us at 0 5 A Yes 1 7Ato3 5A Yes Yes 2M 45 V typical 40 to 55 V min max Note not protected from inductive kickback gt 55 mJ 100m 600 m 1 MHz max 200 kHz max Pulse amp direction x1 x2 X4 None HW SW HW and SW HW or SW Constant 0 Min Max value Load value Edge Level Constant Module application None HW SW HW and SW HW or SW User entry or module application User entry Count range maximum Main count direction Hard
152. ware hold source Hardware reset source Counting modes Count range 16 bit Count range 32 bit Encoder signals e 5 V RS 422 e 24V HTL SSI Encoder SSI signals Frame length Resolution Delay times Shift register length Clock rate Data shift direction Data shift length SSI modes Cable length HTL incremental encoders Siemens type 6FX2001 4 Cable length RS 422 5V incremental encoders Siemens type 6FX201 2 5V supply Cable length RS 422 5V incremental encoders Siemens type 6FX201 2 24V supply Cable length RS 422 SSI absolute encoders Siemens type 6FX201 5 24V supply User entry Count up Count down Inputs O through 14 Inputs O through 14 Continuous single periodic 32768 to 32767 2147483648 to 2147483647 A A B B and N N A B and N D D CK and CK 25 bits or 12 bits Gray code 16 777 216 max 16 32 48 or 64 us 13 bits or 25 bits 125 kHz 250 kHz 500 kHz or 1 MHz Left or right 0 to 12 bits Master Listen up to two stations 25 m shielded max at 50 kHz 50 m shielded max at 25 kHz 32 m shielded max at 500 kHz 100 m shielded max at 500 kHz 320 m shielded max at 125 kHz 160 m shielded max at 250 kHz 60 m shielded max at 500 kHz 20 m shielded max at 1 MHz FM 352 5 Boolean Coprocessor 2810032 0001 Specifications Sensor Power Supply Outputs 5 2 V output power for sensors and encoders e Supply output e O
153. y dees Overview of TaSkS 000 ccc eee eens FM 352 5 Boolean Coprocessor vi 2810032 0001 Contents 5 2 5 3 5 4 5 5 5 6 5 7 5 8 5 9 Creating the Application Function Block 0c eee eens Editing the Application FB DB Set cece eee ee Assigning Input Elements 0 cece tees Assigning Output Elements 0 00 c cee eee ee eee Assigning Static Elements 00 cece eee eee Ensuring Data Consistency 0000 cece eee Updating the Instance Data Block 0 cee eee eee Selecting Standard STEP 7 Instructions for the Application FB Selecting Additional STEP 7 Instructions for the Application FB Using the FM 352 5 Library Instructions 0 00 eee Instruction Operands 0000 c cece eee eee eee Examples of Input and Output Operands 0000 Examples of Library FBS 00 cece eects GOMMCCIONS meae Sch he eaten a dente ce aaa Multi phase Clocking 00 00 cece eects Setting up the Interface FB DB Set 00 ee eee OVOGIWIOW aeia na ga pases agi ke Gees HA Gee ees Fe Sa Calling the Debug Interface FB 0c cece eee eee Data Flow in Debug Mode 0 cee eee eee eee eee Calling the Normal Interface FB 0c cece eee Data Flow in Normal Mode 0 cece eee eee eee Defining the Interface FB Para

Download Pdf Manuals

image

Related Search

Related Contents

Brûleur latéral Discovery  Impact X DATASHEET  TERMO DE REFERÊNCIA Processo Administrativo nº  1月号(第238号)…PDFファイル    

Copyright © All rights reserved.
Failed to retrieve file