![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
preface guide to the S7-300 documentation 1 operating and display elements 2 communication 3 memory concept 4 cycle and reaction times 5 technical data of cpu 31xc 6 technical data of cpu 31x 7 appendix a simatic S7-300 cpu 31xc and cpu 31x, technical data manual edition 08/2004 a5e00105475-05 this manual is part of t he documentation package with the order number : 6es7398-8fa10-8ba0
safety guidelines this manual contains notices which you should observe to ensure your own personal safe ty as well as to avoid property damage. the notices ref erring to your per sonal safety are highlighted in the manu al by a safety alert symbol, notices referring to pr operty damage only have no safet y alert symbol. danger indicates an imminently hazardous situation which, if not avoid ed, will result in deat h or serious injury. warning indicates a potentially hazardo us situation which, if not avoid ed, could result in death or serious injury. caution used with the safety alert symbol indicates a potentially hazar dous situation which, if not avoided, may result in minor or moderate injury. caution used without safety alert symbol i ndicates a potentially hazard ous situation which, if not avoided, may result in property damage. notice used without the safety alert symbol indicates a potential situ ation which, if not avoided, may result in an undesirable result or state. when several danger lev els apply, the notice s of the highest le vel (lower number) are always displayed. if a notice refers to personal damages with the safety alert symbol, then another notice may be added warning of property damage. qualified personnel the device/system may only be se t up and operated in conjunctio n with this documenta tion. only qualified personnel should be allowed to i nstall and work on the equipmen t. qualified persons are defined as persons who are authorized to commission, to earth, and to tag circuits, eq uipment and systems in accordance with established safety practices and standards. intended use please note the following: warning this device and its components may only be used for the applica tions described in the catalog or technical description, and only in connection with devices or c omponents from other manufacturers approved or recommended by siemens. this product can only function correctly and safely if it is tr ansported, stored, set up and installed correctly, and operated and maintained as recommended. trademarks all designations marked with ? are registered trademarks of sie mens ag. other designations in this documentation might be trademar ks which, if used by third parti es for their purposes, might infringe upon the rights of the proprietors. copyright siemens ag ,2004.all rights reserved reproduction, transmission or use of this document or its conte nts is not permitted without express written authority. off enders will be liable for damages . all rights, including rights created by patent grant or registration of a utility model or d esign, are reserved. disclaimer of liability we have checked the contents of this manual for agreement with the hardware and software described. since deviations cannot be precluded entire ly, we cannot guarantee full agreement. however, the data in the manual are reviewed re gularly, and any necessary corrections will be included in subsequent editions. suggestions for improvement are welcomed. siemens ag automation and drives group p.o. box 4848, d-90327 nuremberg (germany) siemens ag 2004 technical data subject to change siemens aktiengesellschaft order no. a5e00105475-05 cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 iii preface purpose of the manual this manual contains all the information you will need concerni ng the configuration, communication, memory concept, cyc le, response times and techni cal data for the cpus. you will then learn the points to consider when upgrading to on e of the cpus discussed in this manual. required basic knowledge ? to understand this manual, you require a general knowledge of a utomation engineering. ? you should also be accustomed to working with step 7 basic soft ware. area of application table 1-1 application area covered by this manual as of version cpu convention: cpu designations: order number firmware hardware cpu 312c 6es7312-5bd01-0ab0 v2.0.0 01 cpu 313c 6es7313-5be01-0ab0 v2.0.0 01 cpu 313c-2 ptp 6es7313-6be01-0ab0 v2.0.0 01 cpu 313c-2 dp 6es7313-6ce01-0ab0 v2.0.0 01 cpu 314c-2 ptp 6es7314-6bf01-0ab0 v2.0.0 01 cpu 314c-2 dp cpu 31xc 6es7314-6cf01-0ab0 v2.0.0 01 cpu 312 6es7312-1ad10-0ab0 v2.0.0 01 cpu 314 6es7314-1af10-0ab0 v2.0.0 01 cpu 315-2 dp 6es7315- 2ag10-0ab0 v2.0.0 01 cpu 315-2 pn/dp 6es73 15-2eg10-0ab0 v2.3.0 01 cpu 317-2 dp 6es7317- 2aj10-0ab0 v2.1.0 01 cpu 317-2 pn/dp cpu 31x 6es7317-2ej10-0ab0 v2.3.0 01 note the special features of the cpu 315f-2 dp (6es7 315-6ff00-0ab0) and cpu 317f-2 dp (6es7 317-6ff00-0ab0) are descri bed in their product informatio n, available on the internet at http://www.siemens.com/automation/service&support, article id 1 7015818. preface cpu 31xc and cpu 31x, technical data iv manual, edition 08/2004, a5e00105475-05 note there you can obtain the descri ptions of all current modules. f or new modules, or modules of a more recent version, we re serve the right to include a pro duct information containing latest information. approvals the simatic S7-300 product serie s has the following approvals: ? underwriters laboratories, inc .: ul 508 (industrial control equ ipment) ? canadian standards association: c sa c22.2 no. 142, (process con trol equipment) ? factory mutual research: approval standard class number 3611 ce label the simatic S7-300 product series satisfies the requirements an d safety specifications of the following ec directives: ? ec directive 73/23/eec "lo w-voltage directive" ? ec directive 89/336/eec "emc directive" c tick mark the simatic S7-300 product serie s is compliant with as/nzs 2064 (australia). standards the simatic S7-300 product serie s is compliant with iec 61131-2 . preface cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 v documentation classification this manual is part of the s7-3 00 documentation package. name of the manual description you are reading the manual ? cpu 31xc and cpu 31x, technical data control and display elements, communication, memory concept, cycle and response times, technical data reference manual ? cpu data: cpu 312 ifm C 318-2 dp control and display elements, communication, memory concept, cycle and response times, technical data operating instructions ? S7-300, cpu 31xc and cpu 31x: installation configuration, installation, wiring, addressing, commissioning, maintenance and the test functions, diagnostics and troubleshooting. installation manual ? S7-300 automation syst em: installation: cpu 312 ifm C 318-2 dp configuration, installation, wiring, addressing, commissioning, maintenance and the test functions, diagnostics and troubleshooting. system manual profinet system description basic information on profinet: network components , data exchange and communication, profinet i/o, component based automation, application example of profinet i/o and component based automation programming manual from profibus dp to profinet io guideline for the migrat ion from profibus dp to profinet i/o. manual ? cpu 31xc: technological functions ? examples description of the individual technological functions positioning, counting. ptp communication, rules the cd contains examples of the technological functions reference manual ? S7-300 automation system: module data descriptions of the functi ons and technical data of signal modules, power supply modules and interface modules. instruction list ? cpu 312 ifm C 318-2 dp ? cpu 31xc and cpu 31x list of cpu instruction resources and the relevant executi on times. list of executable blocks. getting started the following getting started editions are available as a collective volume: ? cpu 31x: commissioning ? cpu 31xc: commissioning ? cpu 31xc: positioning with analog output ? cpu 31xc: positioning with digital output ? cpu 31xc: counting ? cpu 31xc: rules ? cpu 31xc: ptp communication ? cpu 31x-2 pn/dp: commissioning a profinet io subnet the example used in this getting started guides you through the various steps in commissioning required to obtain a fully functional application. preface cpu 31xc and cpu 31x, technical data vi manual, edition 08/2004, a5e00105475-05 additional information required: name of the manual description reference manual system software for s7 -300/400 system and standard functions description of the sfcs, sfbs and obs. this manual is part of the step 7 documentation package. for further information, refer to the step 7 online help. manual simatic net: twisted pair and fiber-optic networks description of industrial ethernet networks, network configuration, components, installation guidelines for networked automation systems in buildings, etc. manual component-based automation : configuring systems with simatic imap description of the engineering software imap manual programming with step 7 v5.3 programming with step 7 manual simatic communication basics, services, networks, communication functions, connecting pgs/ops, engineering a nd configuring in step 7. recycling and disposal the devices described in this manual can be recycled, due to th eir ecologically compatible components. for environment-frie ndly recycling and disposal of your old equipment, contact a certified disposal facilit y for electronic scrap. cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 vii table of contents preface ....................................................................................................................... ............................... iii 1 guide to the s7- 300 document ation ............................................................................................ ........... 1-1 2 operating and di splay el ements ............................................................................................... .............. 2-1 2.1 operating and display elements: cp u 31xc ............................................................................. 2-1 2.1.1 status and error indicators: cpu 31 xc .................................................................................... .2-4 2.2 operating and displa y elements: cpu 31x ................................................................................ 2-5 2.2.1 operating and display element s: cpu 312, 314, 315-2 dp : ..................................................... 2-5 2.2.2 operating and display elements: cpu 317-2 dp ...................................................................... 2-7 2.2.3 operating and display el ements: cpu 31x-2 pn/dp ................................................................ 2-9 2.2.4 status and error disp lays of the cpu 31x................................................................................ 2 -11 3 communi cation................................................................................................................ ....................... 3-1 3.1 inte rfaces ................................................................................................................. .................. 3-1 3.1.1 multi-point interface (mpi) .............................................................................................. ........... 3-1 3.1.2 prof ibus dp.............................................................................................................. ............. 3-2 3.1.3 profin et (pn)............................................................................................................ ............. 3-3 3.1.4 point to point (ptp) ..................................................................................................... ............... 3-5 3.2 communication services..................................................................................................... ....... 3-6 3.2.1 overview of communication services ....................................................................................... .3-6 3.2.2 pg co mmunication......................................................................................................... ............ 3-7 3.2.3 op co mmunication......................................................................................................... ............ 3-7 3.2.4 data exchanged by means of s7 basic comm unication ............................................................ 3-7 3.2.5 s7 co mmunication ......................................................................................................... ............ 3-8 3.2.6 global data comm unication (m pi only)..................................................................................... .3-9 3.2.7 r outing.................................................................................................................. ................... 3-10 3.2.8 ptp co mmunication ........................................................................................................ .......... 3-15 3.2.9 data co nsistency......................................................................................................... ............. 3-16 3.2.10 communica tion via profinet (only cpu 31x-2 pn /dp) ...................................................... 3-16 3.2.10.1 profinet io system .................................................................................................... ......... 3-19 3.2.10.2 blocks in profinet io................................................................................................. .......... 3-20 3.2.10.3 system status lists (ssls) in pr ofinet io ........................................................................... 3- 23 3.2.10.4 open communication via industria l ethernet ........................................................................... 3 -24 3.2.10.5 snmp communication service ............................................................................................ ..... 3-26 3.3 s7 conn ections ............................................................................................................. ........... 3-26 3.3.1 s7 connection as communication path .................................................................................... 3- 26 3.3.2 assignment of s7 conne ctions............................................................................................. .... 3-27 3.3.3 distribution and availability of s7 connection resource s ......................................................... 3-29 3.3.4 connection reso urces for routing......................................................................................... .... 3-31 3.4 dpv1....................................................................................................................... ................. 3-32 table of contents cpu 31xc and cpu 31x, technical data viii manual, edition 08/2004, a5e00105475-05 4 memory concept ............................................................................................................... ...................... 4-1 4.1 memory areas and retentivity............................................................................................... ...... 4-1 4.1.1 cpu memo ry areas......................................................................................................... ........... 4-1 4.1.2 retentivity of the load memo ry, system memory and ra m....................................................... 4-2 4.1.3 retentivity of memory objects ............................................................................................ ........ 4-3 4.1.4 address areas of system memory ........................................................................................... .. 4-5 4.1.5 properties of the micr o memory card (mmc) ............................................................................ 4-9 4.2 memory functions........................................................................................................... .......... 4-11 4.2.1 general: memory functions ................................................................................................ ...... 4-11 4.2.2 loading user program from micro me mory card (mmc) to the cp u ...................................... 4-11 4.2.3 handling with modules .................................................................................................... ......... 4-12 4.2.3.1 download of new blocks or del ta downlo ads ........................................................................... 4-1 2 4.2.3.2 uplo ading blocks....................................................................................................... ............... 4-12 4.2.3.3 deleti ng blocks........................................................................................................ ................. 4-13 4.2.3.4 compre ssing blocks..................................................................................................... ............ 4-13 4.2.3.5 promming (ram to rom) .................................................................................................. ...... 4-13 4.2.4 cpu memory re set and restart ............................................................................................. ... 4-13 4.2.5 recipes .................................................................................................................. .................. 4-15 4.2.6 measured va lue log files ................................................................................................. ......... 4-17 4.2.7 backup of project data to a micro memory ca rd (mmc ) ......................................................... 4-19 5 cycle and reac tion ti mes..................................................................................................... .................... 5-1 5.1 overview ................................................................................................................... ................. 5-1 5.2 cycl e time................................................................................................................. .................. 5-2 5.2.1 ov erview ................................................................................................................. ................... 5-2 5.2.2 calculating the cycle time ............................................................................................... ........... 5-5 5.2.3 different cycle times.................................................................................................... ............... 5-8 5.2.4 communi cation load ....................................................................................................... ........... 5-9 5.2.5 cycle time extension as a result of testing and commissi oning func tions ............................... 5-11 5.2.6 cycle extension through co mponent-based autom ation (c ba)............................................... 5-11 5.3 respon se time .............................................................................................................. ........... 5-14 5.3.1 ov erview ................................................................................................................. ................. 5-14 5.3.2 shortest response time ................................................................................................... ......... 5-16 5.3.3 longest re sponse time.................................................................................................... ......... 5-17 5.3.4 reducing the response time with direct i/o access ................................................................. 5-18 5.4 calculating method for calculat ing the cycle/res ponse ti me .................................................... 5-19 5.5 interrupt response time .................................................................................................... ........ 5-21 5.5.1 ov erview ................................................................................................................. ................. 5-21 5.5.2 reproducibility of delay inte rrupts and watchdog interrupt s .................................................... 5-23 5.6 sample ca lculations ........................................................................................................ ......... 5-24 5.6.1 example of cycl e time calculation ........................................................................................ .... 5-24 5.6.2 sample of respon se time calculation ...................................................................................... . 5-25 5.6.3 example of inte rrupt response time calculat ion ....................................................................... 5-27 6 technical data of cpu 31xc................................................................................................... ................ 6-1 6.1 general te chnical data ..................................................................................................... .......... 6-1 6.1.1 dimensions of cpu 31xc ................................................................................................... ....... 6-1 6.1.2 technical data of the mi cro memory card (mmc) ..................................................................... 6-2 6.2 cpu 312c ................................................................................................................... ............... 6-3 6.3 cpu 313c ................................................................................................................... ............... 6-8 6.4 cpu 313c-2 ptp and cpu 313c-2 dp ................................................................................... 6-14 table of contents cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 ix 6.5 cpu 314c-2 ptp and cpu 314c-2 dp ................................................................................... 6-21 6.6 technical data of the int egrated i/o....................................................................................... .. 6-28 6.6.1 arrangement and usage of integrated i/os.............................................................................. 6-2 8 6.6.2 a nalog i/o ............................................................................................................... ................. 6-34 6.6.3 config uration............................................................................................................ ................ 6-39 6.6.4 inte rrupts ............................................................................................................... ................... 6-45 6.6.5 diag nostics.............................................................................................................. ................. 6-46 6.6.6 digita l input s........................................................................................................... .................. 6-46 6.6.7 digita l outputs .......................................................................................................... ................ 6-48 6.6.8 anal og inputs ............................................................................................................ ............... 6-51 6.6.9 anal og outputs ........................................................................................................... .............. 6-53 7 technical data of cpu 31x .................................................................................................... ................. 7-1 7.1 general te chnical data ..................................................................................................... .......... 7-1 7.1.1 dimensions of cpu 31x.................................................................................................... ......... 7-1 7.1.2 technical data of the mi cro memory card (mmc) ..................................................................... 7-2 7.2 cpu 312.................................................................................................................... ................. 7-3 7.3 cpu 314.................................................................................................................... ................. 7-8 7.4 cpu 31 5-2 dp ............................................................................................................... .......... 7-13 7.5 cpu 315- 2 pn/dp ............................................................................................................ ....... 7-19 7.6 cpu 31 7-2 dp ............................................................................................................... .......... 7-26 7.7 cpu 317- 2 pn/dp ............................................................................................................ ....... 7-33 a appendi x..................................................................................................................... ............................a-1 a.1 information about upgrading to a cpu 31xc or cpu 31x ......................................................... a-1 a.1.1 area of applicability.................................................................................................... ................ a-1 a.1.2 changed behavio r of cert ain sfcs......................................................................................... ... a-2 a.1.3 interrupt events from distributed i/os while the cp u status is in stop ................................... a-4 a.1.4 runtimes that change whil e the program is running ................................................................. a-5 a.1.5 converting the diagnostic addresses of dp slaves ................................................................... a-5 a.1.6 reusing existing har dware configurations ................................................................................. a-6 a.1.7 replacing a cpu 31xc/31x ................................................................................................. ...... a-6 a.1.8 using consistent data areas in the process image of a dp slave system ................................. a-7 a.1.9 load memory concept fo r the cpu 31 xc/31x ........................................................................... a-8 a.1.10 pg/op functi ons ......................................................................................................... ............... a-8 a.1.11 routing for the cpu 31xc/31x as an in telligent sl ave............................................................... a-8 a.1.12 changed retent ive behavior for cpus with firmware >= v2.1.0 ................................................ a-9 a.1.13 fms/cps with separate mpi address in the central rack of a cpu 315-2 pn/dp / cpu 317 ... a-9 a.1.14 using loadable blocks for s7 communication for the integrated prof inet interface ........... a-10 glossary ...................................................................................................................... ............... glossary-1 index......................................................................................................................... ....................... index-1 table of contents cpu 31xc and cpu 31x, technical data x manual, edition 08/2004, a5e00105475-05 tables table 1-1 application ar ea covered by this ma nual ...................................................................................... ii i table 1-1 ambient influence on the au tomation syste m (as) .................................................................... 1-1 table 1-2 galvanic is olation ............................................................................................................. .......... 1-1 table 1-3 communication between sensors/ac tuators and t he plc......................................................... 1-2 table 1-4 the use of local and distri buted i/o ........................................................................................... 1-2 table 1-5 configuration consisting of the central unit (cu) and ex pansion modules (ems).................... 1-2 table 1-6 cpu perfor mance ................................................................................................................ ...... 1-3 table 1-7 communication .................................................................................................................. ........ 1-3 table 1-8 software ....................................................................................................................... .............. 1-3 table 1-9 supplementary features ......................................................................................................... .... 1-4 table 2-1 positions of the mode selector switch ........................................................................................ 2- 3 table 2-2 differences of the cpus 31xc ................................................................................................... 2-3 table 2-3 positions of the mode selector switch ........................................................................................ 2- 6 table 2-4 positions of the mode selector switch ........................................................................................ 2- 8 table 2-5 positions of the mode selector sw itch...................................................................................... 2-10 table 2-6 general status and error disp lays of the cpu 31x .................................................................. 2-11 table 2-7 bus error displays of cpu 31x ................................................................................................. 2 -11 table 3-1 operating modes for cpus wi th two dp in terfaces ................................................................... 3-2 table 3-2 communication services of the cpus ....................................................................................... 3-6 table 3-3 client and server in s7 communication, using connections with unilateral / bilateral conf iguration ........................................................................................................ ......... 3-8 table 3-4 gd resources of the cpus....................................................................................................... 3-10 table 3-5 number of routing connect ions for dp cpus .......................................................................... 3-12 table 3-6 new system standard functions of profinet io and profibus dp and those that must be replaced................................................................................................. 3-2 1 table 3-7 system and standard functions in profibus dp that must be implemented with different functions in profinet io ....................................................................................... 3-22 table 3-8 obs in profinet io and profibus dp.............................................................................. 3-22 table 3-9 comparison of the system status lists of profinet and profib us ................................. 3-23 table 3-10 distribution of connections .................................................................................................... ... 3-29 table 3-11 availability of conn ection reso urces......................................................................................... 3- 30 table 3-12 number of routing connection re sources (for dp /pn cpus )................................................... 3-31 table 3-13 interrupt blocks with d pv1 functiona lity................................................................................... 3-33 table 3-14 system function blocks with dpv1 functi onality ...................................................................... 3-33 table of contents cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 xi table 4-1 retentivity of the ram ......................................................................................................... ...... 4-2 table 4-2 retentive behavior of memory objects (applies to all cpus with dp/mpi-ss (31x-2 pn/dp) .. 4-3 table 4-3 retentive behavior of dbs for cpus with firmware >= v2.1.0 .................................................. 4-4 table 4-4 address areas of sy stem memory ............................................................................................. 4-5 table 5-1 cyclic program processing...................................................................................................... ... 5-3 table 5-2 formula for calculating the proces s image (pi) tran sfer time .................................................... 5-5 table 5-3 cpu 31xc: data for calculating the pr ocess image (pi) tr ansfer time....................................... 5-5 table 5-4 cpu 31x: data for calculating the pr ocess image (pi) tr ansfer ti me ......................................... 5-6 table 5-5 extending the user progra m processing time ............................................................................ 5-6 table 5-6 operating system processing time at the scan cycle checkpoint .............................................. 5-7 table 5-7 extended cycle time due to nested inte rrupts............................................................................ 5-7 table 5-8 cycle time extension as a result of errors.................................................................................. 5-8 table 5-9 cycle time extension as a result of testing and commissioni ng functi ons ............................... 5-11 table 5-10 formula: shortest response time............................................................................................. 5-1 6 table 5-11 formula: longest re sponse time ............................................................................................. 5-18 table 5-12 calculating the response time.................................................................................................. 5-20 table 5-13 process/diagnostic interrup t response times ........................................................................... 5-21 table 5-14 process/diagnostic interrup t response times ........................................................................... 5-22 table 6-1 availabl e mmcs ................................................................................................................. ........ 6-2 table 6-2 maximum number of loadab le blocks on the mmc .................................................................... 6-2 table 6-3 technical data of cpu 312c ..................................................................................................... 6-3 table 6-4 technical data of cpu 313c ..................................................................................................... 6-8 table 6-5 technical data for cpu 313c- 2 ptp/ cpu 313 c-2 dp ............................................................ 6-14 table 6-6 technical data of cpu 314c-2 ptp and cpu 314c -2 dp ....................................................... 6-21 table 6-7 parameters of standard di...................................................................................................... .6-39 table 6-8 parameters of the interrupt inputs............................................................................................ 6 -39 table 6-9 parameters of standard ai ...................................................................................................... .6-41 table 6-10 parameters of standard ao ..................................................................................................... 6 -42 table 6-11 start information for ob40, relating to the interrupt inputs of the integrat ed i/o ..................... 6-45 table 6-12 technical data of digital inputs............................................................................................... .. 6-47 table 6-13 technical data of digital outputs .............................................................................................. 6-49 table 6-14 technical data of analog inputs ............................................................................................... 6 -51 table 6-15 technical data of analog out puts ............................................................................................. 6- 53 table of contents cpu 31xc and cpu 31x, technical data xii manual, edition 08/2004, a5e00105475-05 table 7-1 availabl e mmcs ................................................................................................................. ........ 7-2 table 7-2 maximum number of loadab le blocks on the mmc .................................................................... 7-2 table 7-3 technical data fo r the cp u 312................................................................................................. 7-3 table 7-4 technical data fo r the cp u 314................................................................................................. 7-8 table 7-5 technical data for t he cpu 315-2 dp...................................................................................... 7-13 table 7-6 technical data for the cpu 315-2 pn /dp................................................................................ 7-19 table 7-7 technical data for t he cpu 317-2 dp...................................................................................... 7-26 table 7-8 technical data for the cpu 317-2 pn /dp................................................................................ 7-33 table a-1 consistent data ................................................................................................................ ..........a-7 cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 1-1 guide to the S7-300 documentation 1 overview there you find a guide leading y ou through the S7-300 documenta tion. selecting and configuring table 1-1 ambient influence on the automation system (as) information on.. is available in ... what provisions do i have to make for as installation space? S7-300, cpu 31xc and cpu 31x operating instructions: installation: configuring - component dimensions S7-300, cpu 31xc and cpu 31x operating instructions: installation: mounting - in stalling the mounting rail how do environmental conditions influence the as? S7-300, cpu 3 1xc and cpu 31x operating instructions: installation: appendix table 1-2 galvanic isolation information on.. is available in ... which modules can i use if ele ctrical isolat ion is required between sensors/actuators? S7-300, cpu 31xc and cpu 31x operating instructions: installation: configuring C el ectrical assembly, protective measures and grounding module data manual under what conditions do i have to isolate the modules electrically? how do i wire that? S7-300, cpu 31xc and cpu 31x operating instructions: installation: configuring C el ectrical assembly, protective measures and grounding cpu 31xc and cpu 31x operating instructions: installation: wiring under which conditions do i have to isola te stations electrically? how do i wire that? S7-300, cpu 31xc and cpu 31x operating instructions: installation C configurin g C configuring subnets guide to the S7-300 documentation cpu 31xc and cpu 31x, technical data 1-2 manual, edition 08/2004, a5e00105475-05 table 1-3 communication between sensors/actuators and the plc information on.. is available in ... which module is suitable for my sensor/actuator? for cpu: cpu 3 1xc and cpu 31x manual, technical data for signal modules: referenc e manual of your signal module how many sensors/actuators can i connect to the module? for cpu : cpu 31xc and cpu 31x manual, technical data of signal modules: reference manual of your signal module to connect my sensors/actuator s to the plc, how do i wire the front connector ? S7-300, cpu 31xc and cpu 31x operating instructions: installation: wiring C wi ring the front connector when do i need expansion m odules (em) and how do i connect them? S7-300, cpu 31xc and cpu 31x operating instructions: installation: configuring C distr ibution of modules to several racks how to mount modules on racks / m ounting rails S7-300, cpu 31xc and cpu 31x opera ting instructions: installation: assembly C instal ling modules on the mounting rail table 1-4 the use of l ocal and distributed i/o information on.. is available in ... which range of modules do i wan t to use? for local i/o and expa nsion devices: module data reference manual for distributed i/o and prof ibus dp: manual of the relevant i/o device table 1-5 confi guration consisti ng of the central unit (cu) and expansion modules (ems) information on.. is available in ... which rack / mounting rail i s most suitable for my application? S7-300, cpu 31xc and cpu 31x operating instructions: installation: configuring which interface modules (i m) do i need to connect the ems to the cu? S7-300, cpu 31xc and cpu 31x operating instructions: installation: configuring C distr ibution of modules to several racks what is the right power supply (ps) for my application? S7-300, cpu 31xc and cpu 31x operating instructions: installation: configuring guide to the S7-300 documentation cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 1-3 table 1-6 cpu performance information on.. is available in ... which memory concept is best sui ted to my application? cpu 31xc and cpu 31x manual, technical data how do i insert and remove micro m emory cards? S7-300, cpu 31xc and cpu 31x opera ting instructions: installation: commissionin g C commissioni ng modules C removing / inserting a mi cro memory card (mmc) which cpu meets my dem ands on performance? s 7-300 instruction l ist: cpu 31xc and cpu 31x length of the cpu response / exe cution times cpu 31xc and cpu 3 1x manual, technical data which technological functions ar e implemented? technological fu nctions manual how can i use these technological functions? technological func tions manual table 1-7 communication information on.. is available in ... which principles do i have to take into account? communication with simatic manual profinet system manual, system description options and resources of the cp u cpu 31xc and cpu 31x manual, t echnical data how to use communication pr ocessors (cps) to optimize communication cp manual which type of communication network is best suited to my application? S7-300, cpu 31xc and cpu 31x operating instructions: installation: configuring C configuring subnets how to network the various compo nents S7-300, cpu 31xc and cpu 31x operating instructions: installation: configuring C configuring subnets what to take into account whe n configuring profinet networks simatic net manual, twiste d-pair and fiber optic networks (6gk1970-1ba10-0aa0 ) C network configuration profinet system manual, system description C installation and commissioning table 1-8 software information on.. is available in ... software requirements of my s7-3 00 system cpu 31xc and cpu 31x manual, technical data C technical data guide to the S7-300 documentation cpu 31xc and cpu 31x, technical data 1-4 manual, edition 08/2004, a5e00105475-05 table 1-9 supplementary features information on.. is available in ... how to implement monito r and modify functions (human machine interface) for text-based displays: the relevant manual for operator panels: the relevant manual for wincc: the relevant manual how to integrate pro cess control modules for pcs7: the relevant manual what options are offered by redundant and fail-safe systems? s7-400h manual C redundant systems fail-safe systems manual information to be observed when migrating from profibus dp to profinet io programming manual: from pr ofibus dp to profinet io cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 2-1 operating and display elements 2 2.1 operating and display elements: cpu 31xc operating and display elements of cpu 31xc sf bf dc5v run stop run stop mres frce x1 x2 x11 x12 mmc 1 2 3 4 5 6 7 the figures show the following cpu elements (1) status and error displays (2) slot for the micro memory c ard (mmc), incl. the ejector (3) connections of the integrated i/o. (4) power supply connection (5) 2. interface x2 (ptp or dp) (6) 1. interface x1 (mpi) (7) mode selector switch operating and display elements 2.1 operating and display elements: cpu 31xc cpu 31xc and cpu 31x, technical data 2-2 manual, edition 08/2004, a5e00105475-05 the figure below illustrates t he integrated digital and analog i/os of the cpu with open front covers. sf bf dc5v frce run stop run stop mres x11 x12 2 2 1 3 1 2 3 figure 2-1 integrated i/os of cpu 31xc (cpu 314c-2 ptp, for exa mple) the figure shows the following integrated i/os (1) analog i/os (2) each with 8 digital inputs (3) each with 8 digital outputs slot for the simatic micro memory card (mmc) a simatic micro memory card (mmc ) is used as memory module. you can use mmcs as load memory and as portable storage medium. note these cpus do not have an integrated load memory and thus requi re an mmc for operation. operating and display elements 2.1 operating and display elements: cpu 31xc cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 2-3 mode selector switch use the mode selector switch to set the cpu operating mode. table 2-1 positions of t he mode selector switch position meaning description run run mode the cpu execut es the user program. stop stop mode the cpu does not execute a user program. mres cpu memory reset mode selector switch position with pushbutt on function for cpu memory reset. a cpu memory re set by means of mode selector switch requires a specif ic sequence of operation. reference ? cpu operating modes: step 7 online help . ? information on c pu memory reset: operating instructions cpu 31xc and cpu31x, commissioning, commissioning modules, cpu memory reset by means of mode selector switch ? evaluation of the leds upon error or diagnostic event: operating instructions cpu 31xc and cpu 31x, test functions, dia gnostics and troubleshooting, d iagnostics with the help of status and error leds power supply connection each cpu is equipped with a doubl e-pole power supply socket. th e connector with screw terminals is inserted into this s ocket when the cpu is delivere d. differences between the cpus table 2-2 differences of the cpus 31xc element cpu 312c cpu 313c cpu 313c-2 dp cpu 313c-2 ptp cpu 314c-2 dp cpu 314c-2 ptp 9-pole dp interface (x2) C C x C x C 15-pole ptp interface (x2) C C C x C x digital inputs 10 24 16 16 24 24 digital outputs 6 16 16 16 16 16 analog inputs C 4 + 1 C C 4 + 1 4 + 1 analog outputs C 2 C C 2 2 technological functions 2 counters 3 counter s 3 counters 3 c ounters 4 counters 1 channel for positioning 4 counters 1 channel for positioning operating and display elements 2.1 operating and display elements: cpu 31xc cpu 31xc and cpu 31x, technical data 2-4 manual, edition 08/2004, a5e00105475-05 2.1.1 status and error indicators: cpu 31xc led designation color meaning sf red hardware or software error bf (for cpus with dp interface only) red bus error dc5v green 5-v power for cp u and S7-300 bus is ok frce yellow force job is active run green cpu in run the led flashes during startup at a rate of 2 hz, and in hold state at 0.5 hz. stop yellow cpu in stop and hold or startup the led flashes at 0.5 hz when the cpu requests a memory reset, and during the reset at 2 hz. reference ? cpu operating modes: step 7 online help . ? information on c pu memory reset: operating instructions cpu 31xc and cpu31x, commissioning, commissioning modules, cpu memory reset by means of mode selector switch evaluation of the leds upon er ror or diagnostic event: operating instructions cpu 31xc and cpu 31 x, test functions, diagnostics and troubleshooting, diagnostics with the help of status and error leds operating and display elements 2.2 operating and display elements: cpu 31x cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 2-5 2.2 operating and display elements: cpu 31x 2.2.1 operating and display el ements: cpu 312, 314, 315-2 dp: operating and display elements sf bf dc5v run stop run stop mres frce x2 x1 mmc 1 2 3 4 5 6 the figures show the following cpu elements (1) slot for the micro memory c ard (mmc), incl. the ejector (2) 2. interface x2 (only for cpu 315-2 dp) (3) power supply connection (4) 1. interface x1 (mpi) (5) mode selector switch (6) status and error displays operating and display elements 2.2 operating and display elements: cpu 31x cpu 31xc and cpu 31x, technical data 2-6 manual, edition 08/2004, a5e00105475-05 slot for the simatic micro memory card (mmc) a simatic micro memory card (mmc ) is used as memory module. you can use mmcs as load memory and as portable storage medium. note these cpus do not have an integrated load memory and thus requi re an mmc for operation. mode selector switch the mode selector switch is us ed to set the cpu operating mode. table 2-3 positions of t he mode selector switch position meaning description run run mode the cpu execut es the user program. stop stop mode the cpu does not execute a user program. mres cpu memory reset mode select or switch posit ion with pushbu tton function for cpu memory reset. a cpu memor y reset by means of mode selector switch requires a sp ecific sequence of operation. reference ? cpu operating modes: step 7 online help . ? information on c pu memory reset: operating instructions cpu 31xc and cpu31x, commissioning, commissioning modul es, cp memory reset by means of mode selector switch ? evaluation of the leds upon error or diagnostic event: operating instructions cpu 31xc and cpu 31x, test functions, dia gnostics and troubleshooting, d iagnostics with the help of status and error leds power supply connection each cpu is equipped with a doubl e-pole power supply socket. th e connector with screw terminals is inserted into this socket when the cpu is delivere d. operating and display elements 2.2 operating and display elements: cpu 31x cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 2-7 2.2.2 operating and displa y elements: cpu 317-2 dp operating and display elements run stop mres bf1 bf2 sf dc5v frce run stop x2 x1 mmc 1 2 3 4 5 6 7 the figures show the following cpu elements (1) bus error indicator (2) status and error displays (3) slot for the micro memory c ard (mmc), incl. the ejector (4) mode selector switch (5) power supply connection (6) 1. interface x1 (mpi/dp) (7) 2. interface x2 (dp) operating and display elements 2.2 operating and display elements: cpu 31x cpu 31xc and cpu 31x, technical data 2-8 manual, edition 08/2004, a5e00105475-05 slot for the simatic micro memory card (mmc) a simatic micro memory card (mmc ) is used as memory module. you can use mmcs as load memory and as portable storage medium. note these cpus do not have an integrated load memory and thus requi re an mmc for operation. mode selector switch use the mode selector switch to set the cpu operating mode. table 2-4 positions of t he mode selector switch position meaning description run run mode the cpu execut es the user program. stop stop mode the cpu does not execute a user program. mres cpu memory reset mode select or switch posit ion with pushbu tton function for cpu memory reset. a cpu memor y reset by means of mode selector switch requires a sp ecific sequence of operation. reference ? cpu operating modes: step 7 online help . ? information on c pu memory reset: operating instructions cpu 31xc and cpu31x, commissioning, commissioning modul es, cp memory reset by means of mode selector switch ? evaluation of the leds upon error or diagnostic event: operating instructions cpu 31xc and cpu 31x, test functions, dia gnostics and troubleshooting, d iagnostics with the help of status and error leds power supply connection each cpu is equipped with a doubl e-pole power supply socket. th e connector with screw terminals is inserted into this socket when the cpu is delivere d. operating and display elements 2.2 operating and display elements: cpu 31x cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 2-9 2.2.3 operating and display elements: cpu 31x-2 pn/dp operating and display elements run stop mres bf1 sf dc5v frce run stop x1 link rx / tx mac-add.: x1-x2-x3 x4-x5-x6 x2 bf2 mmc 1 2 3 4 5 6 7 8 the figures show the following cpu elements (1) bus error indicators (2) status and error displays (3) slot for the micro memory c ard (mmc), incl. the ejector (4) mode selector switch (5) status display of 2nd interface (x2) (6) 2. interface x2 (pn) (7) power supply connection (8) 1. interface x1 (mpi/dp) operating and display elements 2.2 operating and display elements: cpu 31x cpu 31xc and cpu 31x, technical data 2-10 manual, edition 08/2004, a5e00105475-05 slot for the simatic micro memory card (mmc) a simatic micro memory card (mmc ) is used as memory module. you can use mmcs as load memory and as portable storage medium. note these cpus do not have an integrated load memory and thus requi re an mmc for operation. mode selector switch use the mode selector switch to set the cpu operating mode. table 2-5 positions of t he mode selector switch position meaning description run run mode the cpu execut es the user program. stop stop mode the cpu does not execute a user program. mres cpu memory reset mode select or switch posit ion with pushbut ton function for cpu memory reset. a cpu memory re set by means of mode selector switch requires a specif ic sequence of operation. reference ? cpu operating modes: step 7 online help . ? information on c pu memory reset: operating instructions cpu 31xc and cpu31x, commissioning, commissioning modul es, cp memory reset by means of mode selector switch ? evaluation of the leds upon error or diagnostic event: operating instructions cpu 31xc and cpu 31x, test functions, dia gnostics and troubleshooting, d iagnostics with the help of status and error leds power supply connection each cpu is equipped with a doubl e-pole power supply socket. th e connector with screw terminals is inserted into this socket when the cpu is delivere d. operating and display elements 2.2 operating and display elements: cpu 31x cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 2-11 2.2.4 status and error displays of the cpu 31x general status and error displays table 2-6 general status and er ror displays of the cpu 31x led designation color meaning sf red hardware or software error. dc5v green 5-v power for the cpu and the S7-300 bus frce yellow led is lit: active force job led flashes at 2 hz : node flash test function (only cpus with firmware v2.2.0 or higher) run green cpu in run the led flashes during startup at a rate of 2 hz, and in hold state at 0.5 hz. stop yellow cpu in stop, or hold, or startup the led flashes at 0.5 hz when the cpu requests a memory reset, and during the reset at 2 hz. displays for the x1 and x2 interfaces table 2-7 bus error displays of cpu 31x cpu led designation color meaning 315-2 dp bf red bus error at dp interface (x2) bf1 red bus error at interface 1 (x1) 317-2 dp bf2 red bus error at interface 2 (x1) bf1 red bus error at interface 1 (x1) bf2 red bus error at interface 2 (x1) link green active communica tion at interface 2 (x2). 31x-2 pn/dp rx/tx yellow receive / transmi t data at interface 2 (x2) reference ? cpu operating modes: step 7 online help . ? information on c pu memory reset: operating instructions cpu 31xc and cpu31x, commissioning, commissioning modul es, cp memory reset by means of mode selector switch ? evaluation of the leds upon error or diagnostic event: operating instructions cpu 31xc and cpu 31x, test functions, dia gnostics and troubleshooting, d iagnostics with the help of status and error leds operating and display elements 2.2 operating and display elements: cpu 31x cpu 31xc and cpu 31x, technical data 2-12 manual, edition 08/2004, a5e00105475-05 cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 3-1 communication 3 3.1 interfaces 3.1.1 multi-point interface (mpi) availability all cpus described in this manual are equipped with an mpi inte rface x1. a cpu equipped with an mpi/dp inte rface is configured and suppl ied as mpi. to use the dp interface, set dp interface mode in step 7. properties the mpi (multi-point interface) r epresents the cpu interface fo r pg/op connections, or for communication on an mpi subnet. the typical (default) transmissi on rate of all cpus is 187.5 kb ps. you can also set 19.2 kbps for communication with an s7-2 00. the 315-2 pn/dp and 317 cpus support transmission rates up to 12 mbps. the cpu automatically broadcasts its bus configuration via the mpi interface (the transmission rate, for example). a pg, for example, can thus re ceive the correct parameters and automatically connect to a mpi subnet. note you may only connect pgs to an mpi subnet which is in run. other stations (for example, op , tp, ...) should not be connect ed to the mpi subnet while the system is in run. otherwise , transferred data might be corr upted as a result interference, or global data packages may be lost. communication 3.1 interfaces cpu 31xc and cpu 31x, technical data 3-2 manual, edition 08/2004, a5e00105475-05 devices capable of mpi communication ? pg/pc ? op/tp ? S7-300 / s7-400 with mpi interface ? s7-200 (19.2 kbps only) 3.1.2 profibus dp availability cpus with dp name suffix are equipped at least with a dp x2 i nterface. the 315-2 pn/dp and 317 cpus are equipped with an mpi/dp x1 int erface. a cpu with mpi/dp interface is supplied with a default mpi configuration. you need to set dp mode in step 7 if you want to use the dp interface. operating modes for cpus with two dp interfaces table 3-1 operating modes for cpus with two dp interfaces mpi/dp interface (x1) pro fibus dp interface (x2) ? mpi ? dp master ? dp slave 1 ? not configured ? dp master ? dp slave 1 1 simultaneous operation of the dp slave on both interfaces is e xcluded properties the profibus dp interface is m ainly used to connect distributed i/o. profibus dp allows you to create lar ge subnets, for example. the profibus dp interface can be set for operation in master or slave mode, and supports transmission rates up to 12 mbps. the cpu broadcasts its bus param eters (transmission rate, for e xample) via the profibus dp interfac e when master mode is set. a pg, for exampl e, can thus receive the correct parameters and automatica lly connect to a profibus subn et. in your configuration you can specify to disable bus parameter broadcasting. communication 3.1 interfaces cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 3-3 note (for dp interface in slave mode only) when you disable the commissi oning / debug mode / routing check box in the dp interface properties dialog in step 7, all user-specific transmission rat e settings will be ignored, and the transmission rate of the mast er is automatically set instea d. this disables the routing function at this interface. devices capable of profibus dp communication ? pg/pc ? op/tp ? dp slaves ? dp masters ? actuators/sensors ? S7-300/s7-400 with profibus dp interface reference further information on profibus: http://www.profibus.com 3.1.3 profinet (pn) availability cpus with a ptp name suffix ar e equipped with a ptp x2 interf ace. x2. connecting to industrial ethernet you can use the integrated prof inet interface of the cpu to est ablish a connection to industrial ethernet. the integrated profinet interfac e of the cpu can be configured via mpi or profinet. requirements ? cpus with fw 2.3.0 or higher (for example cpu 315-2 pn/dp) ? step 7 v5.3 + servicepack 1 or higher communication 3.1 interfaces cpu 31xc and cpu 31x, technical data 3-4 manual, edition 08/2004, a5e00105475-05 devices capable of profinet (pn) communication ? profinet io components (for example, interface module im 151-3 pn in an et 200s) ? S7-300 / s7-400 with profinet inte rface (for exa mple, cpu 317-2 pn/dp or cp 343-1 pn) ? active network components (a switch, for example) ? pg/pc with network card properties of profinet interface x2 properties ieee standard 802.3 connector design rj45 transmission speed max. 100 mbps media twisted pair cat5 (100base-tx) note networking profinet components the use of switches, rather than hubs, for networking profinet components brings about a substantial improvement in decoupling bus traffic, and improv es runtime performance under higher bus load. profinet cb a with cyclic profinet interc onnections requires the use of switches in order to maintain compliance with performanc e specifications. full duplex mode at 100 mbps is mandatory fo r cyclic profinet interconnecti ons. profinet io also requires the use of switches and 100 mbps full duplex mode. reference ? for information on how to configur e the integrated profinet int erface of the cpu, refer to the S7-300, cpu 31xc and cpu 31x installation operating manual. ? for details on profinet, refer to the profinet system description ? for detailed information on et hernet networks, network configur ation and network components refer to the simatic net manual: twisted pa ir and fiber optic networks , available under article id 8763736 on the internet url http://www.siemens.com/automation/service&support ? tutorial: commissioning compon ent-based automation systems , article id 14142554 ? further information on profinet: http://www.profibus.com see also profinet io system (page 3-19) communication 3.1 interfaces cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 3-5 3.1.4 point to point (ptp) availability cpus with a ptp name suffix ar e equipped with a ptp x2 interf ace. properties using the ptp interface of your cpu, you can connect external d evices with serial interface. you can operate such a system at transmission rates up to 19.2 kbps in full duplex mode (rs 422), and up to 38.4 kbps in half duplex mode (rs 485). transmission rate ? half duplex: 38.4 kbps ? full duplex: 19.2 kbps drivers ptp communication drivers installed in those cpus: ? ascii drivers ? 3964(r) protocol ? rk 512 (cpu 314c-2 ptp only) devices capable of ptp communication devices equipped with a serial po rt, for example, barcode reade rs, printers, etc. reference cpu 31xc: technological functions manual communication 3.2 communication services cpu 31xc and cpu 31x, technical data 3-6 manual, edition 08/2004, a5e00105475-05 3.2 communication services 3.2.1 overview of communication services selecting the communication service you need to decide on a communication service, based on functio nality requirements. your choice of communication servic e will have no effect on: ? the functionality available, ? whether an s7 connection is required or not, and ? the time of connecting. the user interface can vary c onsiderably (sfc, sfb, ...), and i s also determined by the hardware used (sima tic cpu, pc, ...). overview of communication services the table below provides an over view of communication services offered by the cpus. table 3-2 communication services of the cpus communication service function ality time at w hich the s7 connection is established ... via mpi via dp via ptp via pn pg communication commissioning, test, diagnostics from the pg, starting when the service is being used x x C x op communication monitor and m odify via op at power on x x C x s7 basic communication data exch ange is programmed at the block s (sfc parameters) x C C C s7 communication data exchange in server and client mode: configuration of communication required. via active partner at power on. only in server mode only in server mode C x global data communication cyclic data exchange (for example, flag bits) does not require an s7 connection x C C C routing pg functions (only for cpus with dp or pn interface) for example testing, diagnostics on other networks also from the pg, starting when the service is being used x x C x ptp communication data exchange via serial interface does not require an s7 connection C C x C snmp (simple network management protocol) standard protocol for network diagnostics and configuration does not require an s7 connection C C C x open communication by means of tcp/ip data exchange via industrial ethernet with tcp/ip protoco l (by means of loadable fbs) does not require an s7 connection, is handled in the user program by means of loadable fbs C C C x communication 3.2 communication services cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 3-7 see also distribution and availability o f s7 connection resources (page 3-29) connection resources fo r routing (page 3-31) 3.2.2 pg communication properties pg communication is used to exch ange data between engineering s tations (pg, pc, for example) and simatic modules which are capable of communication . this service is available for mpi, profibus and i ndustrial ethernet subnets. tr ansition between subnets is also supported. pg communication provides the fu nctions needed to download / up load programs and configuration data, to run tests and to evaluate diagnostic inf ormation. these functions are integrated in the operating system of simatic s7 modules. a cpu can maintain several simul taneous online connections to o ne or multiple pgs. 3.2.3 op communication properties op communication is used to exch ange data between operator stat ions (op, tp, for example) and simatic modules which are capable of communication . this service is available for mpi, profibus and industrial ethernet subnets. op communication provides functions you require for monitoring and modifying. these functions are integrated in t he operating system of simatic s7 modules. a cpu can maintain several simultaneous connections to one or several ops . 3.2.4 data exchanged by means of s7 basic communication properties s7-based communication is used to exchange data between s7 cpus and the communication-capable simatic modules within an s7 station (ack nowledged data exchange). data are exchanged ac ross non-configured s7 connecti ons. the service is available via mpi subnet, or within the station to function mod ules (fm). s7-based communication provides the functions you require for d ata exchange. these functions are integrated into t he cpu operating system. the use r can utilize this service by means of "system function " (sfc) user interface. communication 3.2 communication services cpu 31xc and cpu 31x, technical data 3-8 manual, edition 08/2004, a5e00105475-05 reference ? details on sfcs are found in the instruction list , for more details refer to the step 7 online help or to the system and standard functions reference manual. ? for further information on communication, refer to the communication with simatic manual. 3.2.5 s7 communication properties a cpu can always oper ate in server or client mode in s7 communi cation: we distinguish between ? communication with unilateral conf iguration (for put/get only) ? communication with bila teral configuration (for usend, urcv, bs end, brcv, put, get) however, the functiona lity depends on the cp u. a cp is therefor e required in certain situations. table 3-3 client and server in s7 communication, using connecti ons with unilate ral / bilateral configuration cpu use in server mode for connections with unilateral configuration use in server mode for connections with bilateral configuration use as client 31xc >= v1.0.0 always possible at the mpi/dp interface, without programming the user interface only possible with cp and loadable fbs. only possible with cp and loadable fbs. 31x >= v2.0.0 always possible at the mpi/dp interface, without programming the user interface only possible with cp and loadable fbs. only possible with cp and loadable fbs. 31x >= v2.2.0 always possible at the mpi/dp interface, without programming the user interface ? possible at pn interface with loadable fbs, or ? with cp and loadable fbs. ? possible at pn interface with loadable fbs, or ? with cp and loadable fbs. the user interface is implemented using standard function modul es (fbs) from the standard library of step 7, under communication blocks. reference for further information on communication, refer to the communication with simatic manual. communication 3.2 communication services cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 3-9 3.2.6 global data commu nication (mpi only) properties global data communication is used for cyclic exchange of global data via mpi subnets (for example, i, q, m) between simatic s7 cpus (data exchange withou t acknowledgement). one cpu broadcasts its data to all other dp cpus on the mpi sub net. this function is integrated in the cp u operating system. reduction ratio the reduction ratio specifies t he cyclic intervals for gd commu nication. you can set the reduction ratio when you confi gure global data communication in step 7. for example, if you set a reduction ratio of 7, g lobal data are transferred onl y with every 7th cycle. this reduces cpu load. send and receive conditions conditions which should be satisfied for gd communication: ? for the transmitte r of a gd packet: reduction ratio transmitter x cycle time transmitter 60 ms ? for the receiver of a gd packet: reduction ratio receiver x cycle time receiver < reduction ratio transmitter x cycle time transmitter a gd packet may be lost if you do not adhere to these condition s. the reasons being: ? the performance of the "smalle st" cpu in the gd circuit ? asynchronous transmitting / recei ving of global data at the sta tions when setting in step 7: transm it after each cpu cycle, and th e cpu has a short scan cycle time (< 60 ms), the operatin g system might overwrite a gd packet of the cpu before it is transmitted. the loss of global data is indicated in the sta tus box of a gd circuit, if you set this function in your step 7 configuration. communication 3.2 communication services cpu 31xc and cpu 31x, technical data 3-10 manual, edition 08/2004, a5e00105475-05 gd resources of the cpus table 3-4 gd resources of the cpus parameters cpu 31xc, 312, 314 cpu 315-2 dp, 315-2 pn/dp, 317 number of gd circuits per cpu max. 4 max. 8 gd packets transmitted per g d circuit max. 1 max. 1 gd packets transmitted by all gd circuits max. 4 max. 8 gd packets received per gd circuit max. 1 max. 1 gd packets received by all gd circuits max. 4 max. 8 data length per gd packet ma x. 22 bytes max. 22 bytes consistency max. 22 bytes max. 22 bytes min. reduction ratio (default) 1 (8) 1 (8) 3.2.7 routing properties step 7 v5.1 + sp4 or higher allo ws you to access your s7 statio ns on all subnets with your pg/pc, for example, to ? download user programs ? download a hardware configuration, or ? perform debugging and diagnostic functions. note when the cpu is used as intelli gent slave, the routing function is only available when the dp interface is set active. in s tep 7, set the test, commission routing check box on the properties dialog of the dp i nterface. for detailed informa tion, refer to the programming with step 7 manual, or directly to the step 7 online help communication 3.2 communication services cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 3-11 routing network nodes: mpi - dp gateways between subnets are rout ed in a simatic station that i s equipped with interfaces to the respective subnets. the fi gure below shows cpu 1 (dp mas ter) acting as router for subnets 1 and 2. subnet 1 (e.g. mpi) subnet 2 (e.g. profibus dp) pg S7-300 cpu (dp master) S7-300 cpu (dp slave) the figure below shows the acce ss to an etherne t subnet. cpu 1 (315-2 dp, for example) is the router for subnet 1 and 2; cpu 2 is the router for subnet 2 and 3. communication 3.2 communication services cpu 31xc and cpu 31x, technical data 3-12 manual, edition 08/2004, a5e00105475-05 routing network nodes: mpi C dp - ethernet cpu 1 (e.g. 315-2 dp) pn subnet 3 (profinet) pn pg subnet 2 (profibus) dp (master) mpi subnet 1 (mpi) mpi/dp (active slave) cpu 2 (317-2 pn/dp) cpu 3 (317-2 pn/dp) number of routed connections the cpus with dp interface provi de a different number of connec tions for the routing function: table 3-5 number of routing connections for dp cpus cpu as of firmware version numbe r of connections for routing 31xc, cpu 31x 2.0.0 max. 4 317-2 dp 2.1.0 max. 8 31x-2 pn/dp 2.2.0 interface x1 configured as: ? mpi: max. 10 ? dp master max. 24 ? dp slave (active): max. 14 interface x2 configured as: ? profinet max. 24 communication 3.2 communication services cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 3-13 requirements ? the station modules are "capabl e of routing" (cpus or cps). ? the network configuration doe s not exceed project limits. ? the modules have loaded the conf iguration data containing the l atest "knowledge" of the entire network configuration of the project. reason: all modules participating in the network transition mus t receive the routing information defining the paths to other subnets. ? in your network configuration, t he pg/pc you want to use to est ablish a connection via network node must be assigned to t he network it is physically c onnected to. ? the cpu must set to master mode, or ? when set to operate in slave m ode, the test, commissioning, rou ting functionality must be enabled by setting the check box in step 7, in the dp interface for dp slave properties dialog box. communication 3.2 communication services cpu 31xc and cpu 31x, technical data 3-14 manual, edition 08/2004, a5e00105475-05 routing: example of a teleservice application the figure below shows the exampl e of an application for remote maintenance of an s7 station using a pg. the connec tion to other subnets is here established via modem connection. the lower section of the figure shows how to configure this in step 7. dp master subnet 1 (e.g. mpi) subnet 2 (e.g. profibus dp) modem modem real installation subnet 1 (e.g. mpi) subnet 2 (e.g. profibus dp) configuration in step 7 dp slave teleservice adapter e.g. 31xc-2dp e.g. 31xc-2dp dp master e.g. cpu 31xc-2 dp dp slave e.g. cpu 31xc-2 dp pg pg communication 3.2 communication services cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 3-15 reference ? on configuring in step 7 is found in the configuring hardware and connections in step 7 manual ? of a basic nature is contained in the communication with simatic manual. ? on the teleservice adapter can be found on the internet url: http://www.ad.siemens.de/suppor t. in the manual search section, you can enter the search term a5e00078070 to download the documentation. ? on sfcs are found in the instruction list , for more details refer to the step 7 online help or to the system and standard functions reference manual. ? on communication are found in the communication with simatic manual. 3.2.8 ptp communication properties ptp communication enables you to e xchange data via serial port. ptp communication can be used to interconnect automation devices, computers or communica tion-capable systems of external suppliers. the function also allows adaptation to the protocol of the communication partner. reference further information ? on sfcs are found in the instruction list . for detailed information, refer to the step 7 online help , or to the system and standard functions reference manual. ? on communication are found in the communication with simatic manual. communication 3.2 communication services cpu 31xc and cpu 31x, technical data 3-16 manual, edition 08/2004, a5e00105475-05 3.2.9 data consistency properties a data area is considered consistent, if the operating system c an read/write access the data area in a continuous block. dat a exchanged collectively between the stations should belong together and originate from a si ngle processing cycle, that is, be consistent. if the user program contains a programmed communication function, for examp le, access to shared data with x-send/ x-rcv, access to that data area can be coordi nated by means of the "busy" parameter itself. with put/get functions for s7 communication functions, s uch as put/get or write / read via op communication, which do not require a block in the user program on the cpu (op erating in server mode), allowances must be made in the program for the extent of the da ta consistency. the put/get functions for s7 communi cation, or for reading/writing variables via op communication, are exe cuted at the cpu's sc an cycle checkpoint. in order to ensure a defined process interrupt react ion time, the communication vari ables are copied in consistent blocks with a maximum length o f 64 bytes (cpu 317: 160 bytes) t o / from work memory at the scan cycle checkpoint of the operating system. data consist ency is not guaranteed for larger data areas. note where defined data consistency is required, the length of commu nication variables in the cpu's user program may not exc eed 64 bytes (cpu 317: 160 bytes. ) 3.2.10 communication via prof inet (only cpu 31x-2 pn/dp) what is profinet?? within the framework of totally in tegrated automation (tia), pr ofinet represents a consequent enhancement of: ? profibus dp, the proven field bus, and ? industrial ethernet, the communi cation bus at cell level. experience gained from both syst ems was and is being integrated into profinet. profinet is an ethernet-based autom ation standard of profibus i nternational (previously profibus users organi zation e.v.), and defines a mu lti-vendor communication, automation, and engineering model. communication 3.2 communication services cpu 31xc and cpu 31x, technical data manual, edition 08/2004, a5e00105475-05 3-17 objectives in profinet the objectives in profinet are: ? an open ethernet standard for aut omation based on industrial et hernet industrial ethernet and standard ethernet components can be use d together, however, industrial ethernet devices are more reliable, and are therefor e more suitable for industrial environments (temperature, immunity to noise etc.) ? use of tcp/ip and it standards ? automation with real-time ethernet ? total integration of field bus systems implementation of profinet by us we have integrated profinet as follows: ? we have chosen profinet io for integrated communication between field devices. ? we integrated communication between plcs of distributed systems with profinet cba (component-based automation.) ? installation engineering and net work components are available i n simatic net. ? for remote maintenance and netwo rk diagnostics, we used the pro ven it standards from the office world (for example, snmp = simple network management protocol for network configuration and diagnostics). documentation of profibus international on the internet on the internet at "www.profibus.com" of profibus international (previously profibus user organization, puo) you can find numerous articles relating to profinet. for further information, refer to the internet url "www.siemens .com\profinet\". what is profinet io? within the framework of profinet, profinet io is a communicatio n concept for the implementation of modular, distributed applications. profinet io allows you to creat e automation solutions, which ar e familiar to you from profibus. that is, you have the same app lication view in step 7, regardle ss of whether you configure profinet or profibus devices. what is profinet cba (component based automation)? within the framework of profinet , profinet cba is an automation concept for the implementation of applications with distributed intelligence. profinet cba lets you create dist ributed automation solutions, based on default components and partial solutions. component-based automation allows you to use complete technolog ical modules as standardized components in complex systems. the components are also created in an engineering tool which ma y differ from vendor to vendor. components of simatic dev ices are created, for example, with step 7. communication 3.2 communication services cpu 31xc and cpu 31x, technical data 3-18 manual, edition 08/2004, a5e00105475-05 extent of profinet cba and profinet io profinet io and cba r epresent two different v iews of automation devices on industrial ethernet. 3 5 2 ) , 1 ( 7 & |