Содержание Simatic S7-300 CP 341

Страница 1: ...and Operating Mode Transitions of the CP 341 7 Diagnostics with the CP 341 8 Programming Example for Standard Function Blocks 9 Technical Specifications A Connecting cables B Accessories and order numbers C Literature on SIMATIC S7 D SIMATIC S7 300 CP 341 Point to Point Communication Installation and Parameter Assignment Manual 09 2008 A5E02191071 01 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdf...

Страница 2: ... context of the safety notes in this documentation qualified persons are defined as persons who are authorized to commission ground and label devices systems and circuits in accordance with established safety practices and standards Proper use of Siemens products Note the following WARNING Siemens products may only be used for the applications described in the catalog and in the relevant technical...

Страница 3: ...ded up into instruction based chapters and a reference section appendices The following subjects are covered The basics of the point to point connection with the CP 341 Commissioning the CP 341 Mounting the CP 341 Communication via the CP 341 Troubleshooting Application example Properties and technical specifications Scope of the manual The manual is relevant for Product Order number as of product...

Страница 4: ...modifications to the functionality of the modules in a separate product information Conventions The abbreviation CP 341 is used in this documentation when information applies to all three module variants CP 341 RS232C CP 341 20mA TTY and CP 341 RS 422 485 Navigation features of this manual The manual s navigation features outlined below support quick access to specific information At the beginning...

Страница 5: ...ecycling on account of the low level of contaminants in its components For further information about environment friendly recycling and the procedure for disposing of your old equipment please contact Siemens Aktiengesellschaft Plant Engineering and Technical Services ATD TD 3 Recyling Remarketing P O Box 32 40 D 91050 Erlangen Phone 49 91 31 7 3 36 98 Fax 49 91 31 7 2 66 43 This Siemens departmen...

Страница 6: ... relevant courses to help you to get started with the SIMATIC S7 automation system Please contact your regional training center or the central training center in D90327 Nuremberg Germany Phone 49 911 895 3200 Internet http www sitrain com Technical Support How to contact Technical Support for all Industry Automation and Drive Technology products By submitting the Support Request web form http www ...

Страница 7: ...mentation for your application which you can access via the search function in Product Support the bulletin board a worldwide knowledge exchange for users and experts Your local Industry Automation and Drive Technology representative in our contact database Information about repairs spare parts and consulting See also Literature on SIMATIC S7 Page 241 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupd...

Страница 8: ...该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 9: ...1 Principle of the Data Transmission with the 3964 R Procedure 38 2 4 2 Control characters of the 3964 R procedure 38 2 4 3 Block Checksum 39 2 4 4 Sending Data with 3964 R 40 2 4 5 Receiving Data with 3964 R 42 2 4 6 Handling Erroneous Data 44 2 5 Data Transmission with the RK 512 Computer Connection 50 2 5 1 Sending Data with RK 512 53 2 5 2 Fetching Data with RK 512 56 2 5 3 Quasi Full Duplex O...

Страница 10: ... blocks 130 6 3 Using the Function Blocks with the 3964 R Procedure 131 6 3 1 S7 Sends Data to a Communication Partner 132 6 3 2 S7 receives data from a communication partner 136 6 4 Using the Function Blocks with the RK 512 Computer Connection 140 6 4 1 Sending Data with FB P_SND_RK Active Request 142 6 4 2 Receiving Data with FB P_RCV_RK Passive Request 147 6 4 3 Readying Data with FB P_RCV_RK P...

Страница 11: ...ostics via the diagnostic buffer of the CP 341 201 8 1 5 Diagnostic Interrupt 203 9 Programming Example for Standard Function Blocks 205 9 1 General Information 205 9 2 Device Configuration 206 9 3 Settings 207 9 4 Blocks Used 208 9 5 Installation Error Messages 209 9 6 Activation Start Up Program and Cyclic Program 210 A Technical Specifications 213 A 1 Technical Specifications of the CP 341 213 ...

Страница 12: ... 85 Table 2 10 Receive Buffer on CP 3964 R Procedure 86 Table 2 11 Protocol Parameters ASCII Driver 88 Table 2 12 Baud rate Character frame ASCII driver 89 Table 2 13 Data flow control ASCII driver 90 Table 2 14 Receive buffer on CP ASCII driver 91 Table 2 15 X27 RS 422 485 interface ASCII driver 92 Table 2 16 Baud rate Character frame printer driver 94 Table 2 17 Data flow control printer driver ...

Страница 13: ...nical specifications of the RS 232C interface 214 Table A 3 Technical specifications for the 20mA TTY interface 214 Table A 4 Technical specifications of the X27 RS 422 485 interface 215 Table A 5 Technical specifications for the 3964 R procedure 215 Table A 6 Technical specifications of the RK 512 computer link 216 Table A 7 Technical specifications for the ASCII driver 216 Table A 8 Additional p...

Страница 14: ...Figure 2 15 Data traffic when fetching with a response message frame 56 Figure 2 16 Sequence of a continuation FETCH message frame with a continuation response message frame 58 Figure 2 17 Quasi full duplex mode 59 Figure 2 18 Flow diagram of data transmission with the RK 512 when CPU requests are made 60 Figure 2 19 Flow diagram of data transmission with the RK 512 when partner requests are made ...

Страница 15: ...P 441 222 Figure B 2 RS 232C connecting cable CP 341 CP 544 CP 524 CPU 928B CPU 945 CPU 948 223 Figure B 3 RS 232C connecting cable CP 341 CP 521 SI CP 521 BASIC 224 Figure B 4 RS 232C connecting cable CP 341 CP 523 225 Figure B 5 RS 232C connecting cable CP 341 IBM Proprinter 226 Figure B 6 RS 232C connecting cable CP 341 laser printer 227 Figure B 7 Block diagram for the 20mA TTY interface 229 F...

Страница 16: ...e of contents CP 341 Point to Point Communication Installation and Parameter Assignment 16 Manual 09 2008 A5E02191071 01 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 17: ...smission protocols with the CP 341 Point to Point Communication Parameter Assignment parameter assignment interface Adaptation of the transmission protocols using the CP 341 Point to Point Communication Parameter Assignment parameter assignment interface Integrated serial interface Three module variants are available each having a different interface type that is suitable for different communicati...

Страница 18: ...nables a point to point connection with various Siemens modules and with non Siemens products SIMATIC S5 via the 3964 R driver or RK 512 with corresponding interface module on S5 side Siemens PDA terminals from the ES 2 family via 3964 R driver MOBY I ASM 420 421 SIM MOBY L ASM 520 and ES 030K data acquisition terminal via 3964R driver PCs via the 3964 R procedure the following development tools a...

Страница 19: ...etwork if the corresponding PROFINET IO controller is integrated in the SIMATIC STEP 7 CPU FB7 P_RCV_RK FB8 P_SND_RK blocks with versions higher than or equal to V3 0 are used Note The CP 341 modules 6ES7341 1xH0y 0AE0 cannot be operated behind the external communication processors CP 342 5 Profibus DP and CP 343 1 Profinet IO 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司...

Страница 20: ...FWLRQ IRU 9 VXSSO DVWHQLQJ VFUHZ Figure 1 1 Positions of the module elements on the CP 341 communication processor LED indicators The following LED indicators are located on the front panel of the communication processor SF red error LED TxD green interface transmitting RxD green interface receiving Section Diagnostics via the display elements of the CP 341 Page 186 describes the operating states ...

Страница 21: ...ing of Firmware Updates Page 123 Bus connector for the S7 backplane bus A bus connector is supplied with the CP 341 The bus connector is inserted onto the rear panel connector of the CP 341 during installation The S7 300 backplane bus is connected by means of the bus connector The S7 300 backplane bus is a serial data bus via which the CP 341 communicates with the modules of the programmable contr...

Страница 22: ...point connection Component Function Illustration Rack mounting rail provides the mechanical and electrical connections of the S7 300 Power supply module PS converts the line voltage 120 230 V AC into the operating voltage of 24 V DC required to supply the S7 300 Central processing unit CPU Accessories Memory card Backup battery executes the user program communicates with other CPUs or with a progr...

Страница 23: ...t connection with the CP 341 Component Function Illustration STEP 7 software package configures assigns parameters programs and tests the S7 300 LFHQVH CP 341 Point to Point Communication Parameter Assignment parameter assignment interface assigns parameters for the interface of the CP 341 Function blocks FB with programming example controls the communication between CPU and CP 341 Loadable driver...

Страница 24: ...ge interface used for serial data transmission in compliance with the RS 232C standard Properties The RS 232C interface has the following attributes and is in compliance with the following requirements Type Voltage interface Front connector 9 pin subminiature D male connector with a screw type fitting compatible with the 9 pin COM port PC PG RS 232C signals TXD RXD RTS CTS DTR DSR RI DCD GND all i...

Страница 25: ...ation partner is not switched on and not ready for operation RI Ring Indicator Incoming call on connection of a modem DCD Data Carrier Detect Carrier signal on connection of a modem 1 4 2 20mA TTY interface of the CP 341 20mA TTY Definition The 20mA TTY interface is a current loop interface used for serial data transmission Properties The 20mA TTY interface has the following properties and meets t...

Страница 26: ...face Front connector 15 pin sub D female with screwed interlock RS 422 signals TXD A RXD A TXD B RXD B GND all isolated against the S7 internal power supply RS 485 signals R T A R T B GND all isolated against the S7 internal power supply S7 300 backplane bus and the external 24 V DC supply Max baud rate 115 2 kbaud Max cable length 250 m at 115 2 kbaud 500 m at 38 4 kbaud 1200 m at 19 2 kbaud cabl...

Страница 27: ...s Siemens offers standard cables in various lengths for point to point connection between the communication processor and a communication partner Fabricating Your Own Cables If you are fabricating your own cables there are a few points to take into consideration Refer to section Connecting cables Page 221 of this manual for information about this and for the pin assignment of the sub D cable and t...

Страница 28: ...the Communication Processor to a Communication Partner CP 341 Point to Point Communication Installation and Parameter Assignment 28 Manual 09 2008 A5E02191071 01 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 29: ...ta transmission the individual bits of each byte of information to be transmitted are transmitted one after the other in a fixed order Drivers for uni bidirectional data traffic The CP 341 itself handles data transmission with the communication partner via its serial interface The CP 341 is equipped with three different drivers for this purpose Unidirectional data traffic Printer driver Bidirectio...

Страница 30: ...ons simultaneously With an RS 485 2 wire setting the X27 RS 422 485 interface module can only be run in half duplex mode Asynchronous data transmission With the CP 341 serial data transmission occurs asynchronously The so called time grid synchronism a fixed time grid for transmission of a fixed character string is only maintained during transmission of a character Each character to be sent is pre...

Страница 31: ...1 Point to Point Communication Parameter Assignment parameter assignment interface The figure below shows an example of the three data formats of the 10 bit character frame 1 2 8 9 10 1 2 10 9 1 2 8 10 9 GDWD ELWV VWDUW ELW GDWD ELWV VWRS ELWV 6LJQDO VWDWH ಯ ಯ 6LJQDO VWDWH ಯ ಯ 6LJQDO VWDWH ಯ ಯ 6LJQDO VWDWH ಯ ಯ 6LJQDO VWDWH ಯ ಯ 6LJQDO VWDWH ಯ ಯ VWDUW ELW VWDUW ELW VWDUW ELW GDWD ELWV VWRS ELWV GDWD...

Страница 32: ...9 2008 A5E02191071 01 Character delay time The figure below shows the maximum time permitted between two characters received within a message frame This is known as the character delay time 1 KDUDFWHU GHOD WLPH 6LJQDO QWK FKDUDFWHU Q WK FKDUDFWHU 7LPH W Figure 2 2 Character delay time 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 33: ...ndling and implementing data traffic Such rules are called protocols A protocol defines the following Operating mode Half duplex or full duplex mode Initiative Specifies which communication partner can initiate the transmission and under what conditions Control characters Specifies which control characters are to be used for data transmission Character frame Specifies the character frame to be use...

Страница 34: ...ation partners 4 Transport layer Error detection procedure Corrective actions Handshaking 5 Session layer Setup of data transmission Execution Release of data transmission 6 Presentation layer Implementation of the standardized communication system display type in a device specific form data interpretation guidelines 7 Application layer Specification of the communication task and the functions it ...

Страница 35: ...e RK 512 computer link ASCII driver Printer driver The figure below illustrates how these protocols of the CP 341 fit into the reference model RK 512 3964 R 7UDQVSRUW OD HU YHU FRUUHFWO UHFHLYHG FRPPDQG PHVVDJH IUDPH LV DQVZHUHG ZLWK D UHVSRQVH PHVVDJH IUDPH 1RW SUHVHQW ZLWK D SXUH SRLQW WR SRLQW FRQQHFWLRQ DWD OLQN OD HU 7KH GDWD E WHV DUH WUDQVPLWWHG ZLWK 5 6WDUW DQG VWRS ELWV DUH DGGHG LQ WKH H...

Страница 36: ...makes it possible to detect an inverted bit in a character that is to be transmitted If two or more bits of a character are inverted this error can no longer be detected To increase transmission integrity a checksum and length specification for a message frame can be employed These measures must be implemented by the user A further increase in data integrity can be achieved by means of acknowledgm...

Страница 37: ...d data length is recorded in the message frame header This enables the RK 512 to achieve a higher Hamming distance of 4 than the 3964R Transmission Integrity with RK 512 Very high data integrity through use of RK 512 The Hamming distance with the RK 512 and 3964R is 4 This is a measure of the integrity of a data transmission Using the RK 512 computer link guarantees high transmission integrity on ...

Страница 38: ...ck whether the data has arrived complete and without errors The 3964 R procedure analyzes the following control characters STX Start of text Start of character string to be transmitted DLE Data Link Escape Data transmission switchover ETX End of Text End of character string to be transmitted BCC Block check character 3964R only Block check character NAK Negative Acknowledge negative acknowledgment...

Страница 39: ...character BCC ൺ 25 25 25 25 ൺ ൺ ൺ ൺ ൺ ൺ 67 7 DWD 0HVVDJH IUDPH Figure 2 4 Block Checksum The block checksum is the even longitudinal parity EXOR operation on all data bytes of a sent or received block Its calculation begins with the first byte of user data first byte of the message frame after the connection setup and ends after the DLE ETX code on connection release Note If DLE duplication occurs...

Страница 40: ...ay time expires without a response the procedure repeats the connection setup After the assigned number of unsuccessful setup attempts the procedure cancels the connection setup and sends the NAK character to the communication partner The CP 341 reports the error to the P_SND_RK function block STATUS output parameter Sending data If a connection is successfully set up the user data contained in th...

Страница 41: ...ends the DLE character within the acknowledgment delay time it means that the data block has been received without errors If the communication partner responds with NAK any other character except DLE or a damaged character or if the acknowledgment delay time expires without a response the procedure starts to send the data again with the connection setup STX After the assigned number of attempts to...

Страница 42: ...ication partner to set the latter to idle Connection setup for receiving In the idle state when there is no send request to be processed the procedure waits for the communication partner to set up the connection If no empty receive buffer is available during a connection setup with STX a wait time of 400 ms is started If there is still no empty receive buffer after this time has expired the CP 341...

Страница 43: ...ut errors after the number of transmission attempts defined in the static parameter set or if the communication partner does not start the repetition within a block wait time of 4 seconds the procedure cancels the receive operation The CP 341 reports the first erroneous transmission and the final cancelation in the P_RCV_RK function block STATUS output parameter Connection release for receiving Wh...

Страница 44: ... erroneous data is received After receipt of DLE ETX BCC the CP 341 compares the BCC of the communication partner with its own internally calculated value If the BCC is correct and no other receive errors occur the CP 341 responds with DLE Otherwise the CP 341 responds with an NAK and waits the block wait time T of 4 seconds for a new attempt If after the assigned number of transmission attempts t...

Страница 45: ...LW 3RV DFNQRZOHGJPHQW Figure 2 8 Data traffic in the event of an initialization conflict If a device responds to the communication partner s send request STX within the acknowledgment delay time by sending the STX character instead of the DLE or NAK acknowledgment an initialization conflict occurs Both devices want to execute a pending send request The device with the lower priority withdraws its ...

Страница 46: ...tempts balances this out however In this case you are advised to check the transmission link for possible sources of interference because frequent repetitions reduce the user data rate and integrity of the transmission However the disturbance could also be the result of a malfunction on the part of the communication partner In the event of a BREAK on the receive line receive line interrupted an er...

Страница 47: ... 5 7 7 V WUDQVPLVVLRQ DWWHPSW FRXQWHU PPHGLDWH UHWXUQ WR LQLWLDO VWDWH DW OLQH EUHDN 5 QWHQWLRQ WR VHQG 6HQG 1 6HQG 1 6HQG 1 6HQG 6HQG 67 6WDUW 7 7 6WDUW 7 7 6HQG EORFN SRVV GXSOLFDWH 6HQG 7 DLW IRU DFNQRZ OHGJPHQW DLW IRU DFNQRZ OHGJPHQW 7 7 7 FKDUDFWHU H FHSW 67 RU LQYDOLG FKDUDFWHUV 5HFHLSW QRW SHUPLWWHG 7 7 7 FKDUDFWHU H FHSW RU LQYDOLG FKDUDFWHUQ 6HQGLQJ FRPSOHWHG LJK SULRULW RZ SULRULW Figur...

Страница 48: ...rates receiving with the 3964 R procedure KDUDFWHUV H FHSW 67 1 QWHQWLRQ WR VHQG 5HFHLYH 67 5HSHWLWLRQ H SHFWHG 1RWH 1 6WDUW 71 7 0 QLWLDOL DWLRQ FRQIOLFW ORZ SULRULW DLW 6HQG 6HQG 1 XIIHU IUHH 7 71 7 0 XIIHU QRW IUHH 71 7 0 PV WUDQVPLVVLRQ DWWHPSW FRXQWHU PPHGLDWH UHWXUQ WR LQLWLDO VWDWH DW OLQH EUHDN 5 Figure 2 11 Flow Diagram for Receiving with the 3964 R Procedure Part 1 该文档是极速PDF编辑器生成 如果想去掉该提...

Страница 49: ...LYH FKDUDFWHUV QYDOLG FKDUDFWHU RUUHFW FKDUDFWHU H FHSW IRU 1RWH 1 XDO 1RWH 1 DLW IRU 7 KDUDFWHUV H FHSW 7 1 QRWHG 7 7FKDU GHOD WLPH LQFRUUHFW 7 7 2 DLW IRU QLWLDOL DWLRQ FRQIOLFW QRWHG ORZ SULRULW 5HFHLSW FRPSOHWHG 6HQG 6HQG 1 1RWH UHSHWLWLRQ H SHFWHG VWDUW 7 2 DLW IRU 67 7LPHV 7FKDU GHOD WLPH PV 7 ORFN V WUDQVPLVVLRQ DWWHPSW FRXQWHU RQO ZLWK 5 PPHGLDWH UHWXUQ WR LQLWLDO VWDWH DW OLQH EUHDN 5 7 7...

Страница 50: ...t the CPU or whether the the requested data is available on the CPU Command message frame Command message frames are either SEND or FETCH message frames Refer to section Communication via Function Blocks Page 127 for information on how to initiate a SEND or FETCH message frame SEND message frame In the case of a SEND message frame the CP 341 sends a command message frame with user data and the com...

Страница 51: ... data source of FETCH request e g byte 5 DB no byte 6 DW no RK 512 addressing describes the data source and destination with word limits Conversion to byte addresses in SIMATIC S7 is automatic 6 7 Length high byte Length of data to be transmitted according to type in bytes or Length low byte Words 8 9 Byte number of interprocessor communication flag FFH is displayed if you have not specified an in...

Страница 52: ...nt on transmission rate for response message frame Transmission rate Monitoring time 300 baud 10 s 600 baud 7 s 1200 baud 5 s from 38400 baud 3 s The grayed field maximum waiting time is only used to display the monitoring time used and cannot be edited Structure and contents of the response message frame The response message frame consists of 4 bytes and contains information on the progress of th...

Страница 53: ...12th Byte nth Byte DLE ETX BCC DLE STX DLE 1st Byte 2nd Byte 3rd Byte 4th Byte DLE ETX BCC DLE 6 1 IUDPH 5HVSRQVH PHVVDJH IUDPH RPPXQLFDWLRQ SDUWQHUV 6WDUW FKDUDFWHU 3RV DFNQRZOHGJHPHQW 6 1 UHTXHVW DWD EORFN DWD HVWLQDWLRQ HQJWK ZRUG 1R 0 38 RQO VW DWD E WH QG DWD E WH QWK GDWD E WH QG GHOLPLWHU QG GHOLPLWHU 2QO ZLWK EORFN FKHFN 3RV DFNQRZOHGJHPHQW 6WDUW FKDUDFWHU 3RV DFNQRZOHGJHPHQW UURU QXPEHU Q...

Страница 54: ...ge frame Active partner Receives the response message frame Sends user data If the volume of user data exceeds 128 bytes the active partner sends a continuation SEND message frame Passive partner Receives the continuation SEND message frame checks the message frame header and the data transfers the data to the CPU and then acknowledges this with a continuation response message frame Note If the CP...

Страница 55: ...n response message frame 7 67 7 67 WK WH UG WH QG WH VW WH WK WH WHbQ ವ ವ VW WH UG WH QG WH WK WH WK WH RPPXQLFDWLRQ SDUWQHUV 3 8VHU GDWD RQWLQXDWLRQ 6 1 IUDPH 6WDUW FKDUDFWHU 3RV DFNQRZOHGJHPHQW RQWLQXDWLRQ IUDPH 6 1 UHTXHVW DWD EORFN WK DWD E WH WK DWD E WH QWK GDWD E WH QG GHOLPLWHU QG GHOLPLWHU 3RV DFNQRZOHGJHPHQW RQWLQXDWLRQ UHVSRQVH IUDPH 6WDUW FKDUDFWHU 3RV DFNQRZOHGJHPHQW RQWLQXDWLRQ UHVSR...

Страница 56: ...ORFN DWD VRXUFH DWD RIIVHW HQJWK ZRUG 1R 0 38 RQO 6WDUW FKDUDFWHU 3RV DFNQRZOHGJHPHQW UURU QXPEHU VW DWD E WH QG DWD E WH Ⴠ Ⴠ QWK GDWD E WH QG GHOLPLWHU QG GHOLPLWHU 2QO ZLWK EORFN FKHFN 3RV DFNQRZOHGJHPHQW 67 VW WH QG WH UG WH WK WH WK WH WK WH WK WH WK WH WK WH WK WH 7 67 VW WH QG WH UG WH WK WH WK WH WK WH Ⴠ Ⴠ QWK WH 7 QG GHOLPLWHU QG GHOLPLWHU 2QO ZLWK EORFN FKHFN 3RV DFNQRZOHGJHPHQW RQQHFWLRQ...

Страница 57: ...ion FETCH message frame This contains byte 1 to 4 of the message frame header Passive partner Receives the continuation FETCH message frame checks the header fetches the data from the CPU and acknowledges this with a continuation response message frame containing further data If there is an error number not equal to 0 in the 4th byte the response message frame does not contain any data If more tha...

Страница 58: ...V DFNQRZOHGJHPHQW RQWLQXDWLRQ IUDPH 7 UHTXHVW DWD EORFN QG GHOLPLWHU QG GHOLPLWHU 2QO ZLWK EORFN FKHFN 3RV DFNQRZOHGJHPHQW 6WDUW FKDUDFWHU 3RV DFNQRZOHGJHPHQW RQWLQXDWLRQ UHVSRQVH IUDPH UURU QXPEHU WK DWD E WH WK DWD E WH Ⴠ Ⴠ QWK GDWD E WH QG GHOLPLWHU QG GHOLPLWHU 3RV DFNQRZOHGJHPHQW RQQHFWLRQ VHWXS 0HVVDJH IUDPH KHDGHU RQQHFWLRQ WHUPLQDWLRQ RQQHFWLRQ VHWXS 5HVSRQVH IUDPH KHDGHU HQHILW LQIRUPDWLR...

Страница 59: ... possible under certain circumstances if both partners want to send to transmit a SEND message frame from the partner before the response message frame For example if a SEND message frame from the partner was entered in the output buffer of the CP 341 before the response message frame In the following figure the continuation response message frame to the first SEND message frame is not sent until ...

Страница 60: ...re made 7 75 6 UURU DERUWLRQ 38 UHTXHVW 6WDUW 75 6 OO GDWD WUDQVIHUUHG 38 UHTXHVW FRPSOHWHG 6WDUW 75 6 UURU DERUWLRQ 5HVSRQVH IUDPH PRQLWRULQJ WLPH GHSHQGHQW RQ WUDQVPLVVLRQ UDWH 75 6 V V V RQW UHVSRQVH IUDPH UHFHLYHG DLW IRU FRQW UHVS IUDPH 6HQG FRQWLQXDWLRQ FRPPDQG IUDPH 0RUH VXE EORFNV 7 75 6 RU ILUVW UHVSRQVH IUDPH UHFHLYHG 5HVSRQVH IUDPH UHFHLYHG 38 FRPPDQG IUDPH 38 UHTXHVW LQLWLDO SRVLWLRQ D...

Страница 61: ... SRVLWLRQ 3DUWQHU FRPPDQG IUDPH UHFHLYHG 6HQG GDWD WR RU JHW GDWD IURP WKH 6 6HQG UHVSRQVH IUDPH ZLWKRXW HUURU PHVVDJH 6HQG UHVSRQVH IUDPH ZLWK HUURU PHVVDJH 0RUH VXE EORFNV 7 75 6 RU ILUVW FRPPDQG IUDPH UHFHLYHG DLW IRU FRQWLQXDWLRQ IUDPH RQW UHVSRQVH IUDPH UHFHLYHG Figure 2 19 Flow diagram of data transmission with the RK 512 when partner requests are made Extended error display at the receive F...

Страница 62: ...parameter If you are working with the end criterion Expiration of character delay time the ASCII driver pauses between two message frames when sending You can call the FB P_SND_FK at any time but the ASCII driver does not begin its output until a period longer than the assigned character delay time has elapsed since the last message frame was sent If you are working with the End of text character ...

Страница 63: ...data traffic A pause equal to the length of the character delay time is inserted between two message frames when sending to allow the partner to synchronize recognize start of message frame If some other method of synchronization is used the pause in sending can be deactivated in the parameter assignment interface Note When XON XOFF flow control is assigned the user data must not contain any of th...

Страница 64: ... by a pause on the line expiration of character delay time Receipt of the end of text character s The end of the message frame is marked by one or two defined end of text characters Receipt of fixed number of characters The length of the receive message frames is always identical Code transparency The code transparency of the procedure depends on the choice of the assigned end criterion and the fl...

Страница 65: ...entified in the case of a send pause of the link within a message frame The figure below illustrates a receive operation with the end criterion Expiration of character delay time DLWLQJ IRU FKDUDFWHU KDUDFWHU DUULYHG KDUDFWHU UHFHLYHG ZLWK FKDUDFWHU GHOD WLPH PRQLWRULQJ QWHU PHVVDJH IUDPH LQ UHFHLYH EXIIHU PD 0 V RU E WHV QWHU HUURU LQ 67 786 RXWSXW RI WKH DLWLQJ IRU FKDUDFWHU GHOD WLPH 5HFHLYHG F...

Страница 66: ...that the end character s are not included in the user data of the user Note the following when the last character in the received message frame is not the end of text character End of text character elsewhere in the message frame All characters including the end of text character are written to the receive DB The characters located after the end of text character are Discarded if the character del...

Страница 67: ... FKDUDFWHU KDUDFWHU UHFHLYHG ZLWK HQG FRQWURO DQG FKDUDFWHU GHOD WLPH QWHU PHVVDJH IUDPH LQ UHFHLYH EXIIHU PD 0 V RU E WHV 0HVVDJH IUDPH FRPSOHWH KDUDFWHU DUULYHG KDUDFWHU GHOD WLPH H SLUHG DLWLQJ IRU YDOLG HQG FRGH QWHU HUURU LQ 67 786 RXWSXW RI WKH 0HVVDJH IUDPH EXIIHUHG QG FULWHULRQ IRU PHVVDJH IUDPH LGHQWLILHG HUURU HQWU IROORZV Figure 2 22 Flow diagram for receiving with end criterion End of ...

Страница 68: ...ed characters does not conform with the fixed assigned message frame length Message frame length of the received characters is greater than the fixed assigned message frame length All characters received after reaching the fixed assigned message frame length are either Discarded if the character delay time expires at the end of the message frame Merged with the next message frame if a new message ...

Страница 69: ...KDUDFWHU UHFHLYHG ZLWK OHQJWK FRQWURO DQG FKDUDFWHU GHOD WLPH KDUDFWHU DUULYHG 0HVVDJH IUDPH FRPSOHWH KDUDFWHU GHOD WLPH H SLUHG QWHU PHVVDJH IUDPH LQ UHFHLYH EXIIHU PD 0 V RU E WHV DLWLQJ IRU SDUDPHWHUL HG QXPEHU RI FKDUDFWHUV QWHU HUURU LQ 67 786 RXWSXW RI WKH 0HVVDJH IUDPH EXIIHUHG QG FULWHULRQ IRU PHVVDJH IUDPH LGHQWLILHG HUURU HQWU IROORZV Figure 2 23 Flow diagram for receiving with end crite...

Страница 70: ... received frame to the CPU you must assign the value 1 for the number of buffered message frames and deactivate overwrite protection Note If continuous reading of the receive data is interrupted for a certain time in the user program and new receive data is requested the CP 341 might first receive an old message frame from the CPU and then the latest message frame The old message frames are those ...

Страница 71: ...n the CP 341 RS 232C is switched on the output signals are in the OFF state inactive You can control the DTR DSR and RTS CTS control signals using the CP 341 Point to Point Communication Parameter Assignment parameter assignment interface or via functions FCs in the user program Controlling RS 232C accompanying signals The RS 232C accompanying signals can be controlled as follows When automatic co...

Страница 72: ...d and a corresponding error message is generated Once the data has been sent and the assigned Clear RTS time has elapsed the RTS line is set to OFF There is no waiting time for the transition from CTS to OFF Data can be received via the RS 232C interface when DSR ON If the receive buffer of the CP 341 is close to overflow the CP 341 will not respond If DSR changes from ON to OFF an active send req...

Страница 73: ...gure illustrates the chronological sequence of a send request 576 2 21 76 21 7 576 21 76 21 76 2 2 W 6HQG UHTXHVW 3DUWQHU 3DUWQHU DWD RXWSXW ZDLW WLPH H SLUHG ඎ 6HQG 7LPH WR 576 2 DWD RXWSXW ZDLWLQJ WLPH 7LPH WR 576 2 HODSVHG 7UDQVPLVVLRQ WHUPLQDWHG Figure 2 24 Timing diagram of automatic control of the RS 232C accompanying signals 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科...

Страница 74: ...e frame will be discarded As soon as a message frame is fetched by the S7 CPU and the receive buffer is ready to receive the CP 341 sends the XON character or sets the RTS line to ON The CP 341 interrupts the send operation when it receives the XOFF character or the CTS control signal of the communication partner is set to OFF If an XON character is not received or the partner does not set CTS to ...

Страница 75: ...a format string when the P_PRINT function block is called You must have stored the format string and variables in data blocks beforehand Page layout You can configure the margins possible line breaks and headers and footers Character set The ANSI character set is converted from STEP 7 to the printer characters set by means of a character conversion table You can change a character conversion table...

Страница 76: ...ned You can use other control characters if you enter them in the control character table in the CP 341 Point to Point Communication Parameter Assignment parameter assignment interface and reassign the CP 341 parameters Additional functions In addition to outputting message texts you can use the following functions for printout To execute one of these functions simply specify it in the format stri...

Страница 77: ...ignment parameter assignment interface page layout character set control characters etc Characters are not received during printout with the exception of flow control characters provided this has been assigned Any characters received are not accepted Note When XON XOFF flow control is assigned the user data must not contain the assigned XON or XOFF characters The default settings are DC1 11H for X...

Страница 78: ...en it receives the XOFF character or when control signal CTS OFF is set If neither an XON character is received nor CTS is set to ON once a configured time has elapsed printout is canceled and an appropriate error message 0708H is generated at the STATUS output of the SFB PRINT Note When RTS CTS flow control is assigned you must fully wire the interface signals in the plug connection BUSY signal T...

Страница 79: ...unication partner Parameter assignment data of the 3964 R procedure With the CP 341 Point to Point Communication Parameter Assignment parameter assignment interface you can specify the parameters for the physical layer layer 1 and for the data link layer layer 2 of the 3964 R procedure You will find a detailed description of the parameters below Section Assigning Parameters to the Communications P...

Страница 80: ...rrors have occurred the CP 341 sends the DLE character to the communication partner the NAK character is sent if an error occurred 3964 assignable without block check The protocol parameters can be freely assigned by the user If the CP 341 recognizes the string DLE ETX it stops receiving and sends a DLE to the communication partner if the block was received error free or an NAK if an error occurre...

Страница 81: ...s 30 ms 20 ms 220 ms 20 ms to 655350 ms in 10 ms increments The shortest acknowledgment delay depends on the baud rate Acknowledgment delay time The acknowledgment delay time defines the maximum permissible time that may elapse before the partner s acknowledgment arrives during connection setup time between STX and partner s DLE acknowledgment or release time between DLE ETX and partner s DLE ackn...

Страница 82: ...ed 7 8 8 Stop bits During transmission the stop bits are appended to every character to be sent this signals the end of a character 1 2 1 Parity A sequence of information bits can be extended to include another bit the parity bit The addition of its value 0 or 1 brings the value of all the bits up to a defined state This improves data integrity No parity means that no parity bit is sent None Odd E...

Страница 83: ...entry is only created in the diagnostic buffer of the CP 341 Yes No No X27 RS 422 interface You will find a description of the parameters for the X27 RS 422 interface in the table below RS 485 operation is not possible in conjunction with the 3964 R procedure Table 2 8 X27 RS 422 interface 3964 R procedure Parameters Description Range of values Default value None This setting only makes sense with...

Страница 84: ...84 Manual 09 2008 A5E02191071 01 Receive line initial state The figure illustrates the wiring of the receiver at the X27 RS 422 interface 9 9 9 9 5 9 5 9 5 9 5 9 5 5 5 5 5 5 QRQH Figure 2 26 Wiring of the receiver at the X27 RS 422 interface 3964 R procedure 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 85: ...e specified in the function blocks FB used Waiting time for response message frames Table 2 9 RK512 computer connection Parameters Description Range of values Default value Waiting time for response message frames Once the command message frame has been transmitted the RK 512 waits for a response message frame from the communication partner within the monitoring time The duration of the monitoring...

Страница 86: ... R Procedure Parameters Description Range of values Default value Extended error display at the receive FB Activate the parameter Display receive error at FB to also display a message frame received with errors at the status output of the function block P_RCV_RK If the parameter is deactivated an entry is only created in the diagnostic buffer of the CP 341 Yes No No 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 ...

Страница 87: ...meters for the physical layer layer 1 of the ASCII driver You will find a detailed description of the parameters below Section Assigning Parameters to the Communications Protocols Page 118 describes how to enter the parameter assignment data using the CP 341 Point to Point Communication Parameter Assignment parameter assignment interface X27 RS 422 485 interface Note the following with reference t...

Страница 88: ...ter delay time defines the maximum permitted time between 2 consecutively received characters Baud 300 600 1200 2400 4800 9600 19200 38400 57600 76800 115200 Character delay time ms 130 65 32 16 8 4 2 2 2 2 2 4 ms End of text character 1 2 Code of first end code With 7 data bits 0 to 7FH hex 3 With 8 data bits 0 to FFH hex 3 3 03H ETX End of text character 2 2 Code of second end code if specified ...

Страница 89: ...rface 300 600 1200 2400 4800 9600 19200 38400 57600 76800 115200 9600 Start bit During transmission a start bit is prefixed to each character to be sent 1 fixed value Data bits Number of bits to which a character is mapped 7 8 8 Stop bits During transmission the stop bits are appended to every character to be sent this signals the end of a character 1 2 1 Parity A sequence of information bits can ...

Страница 90: ...2 Period of time for which the communication processor should wait for the XON code or for CTS ON of the communication partner when sending 20 ms to 655350 ms in 10 ms increments 20000 ms Clear RTS time 3 Time allowed to elapse after the transmission before the communication processor sets the RTS line to OFF 0 ms to 655350 ms in 10 ms increments 10 ms Data output wait time 3 Time that the communi...

Страница 91: ...and cyclically read the received data from the user program a current message frame will always be sent to the CPU 1 to 250 250 Prevent overwriting You can deactivate this parameter if the buffered receive message frames parameter is set to 1 This authorizes the overwriting of the buffered receive message frame Yes No only if Buffered receive message frames 1 Yes Extended error display at the rece...

Страница 92: ...duplex RS 422 four wire mode Receive line initial state None This setting only makes sense with bus capable special drivers R A 5V R B 0V This default setting supports break detection in Full duplex RS 422 four wire mode R A 0V R B 5V This default corresponds to idle state no senders active in Half duplex RS 485 two wire mode Break detection is not possible in this initial state also see the follo...

Страница 93: ...Manual 09 2008 A5E02191071 01 93 Receive line initial state The figure illustrates the wiring of the receiver at the X27 RS 422 485 interface 9 9 9 9 5 9 5 9 5 9 5 9 5 5 5 5 5 5 Figure 2 27 Wiring of the receiver at the X27 RS 422 485 interface ASCII driver 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 94: ...ow contains descriptions of and specifies ranges of values for the relevant parameters Table 2 16 Baud rate Character frame printer driver Parameters Description Range of values Default value Baud rate Data transmission rate in bit s 300 600 1200 2400 4800 9600 19200 38400 57600 76800 115200 9600 Start bit During transmission a start bit is prefixed to each character to be sent 1 fixed value 1 Dat...

Страница 95: ...1 XOFF character Only for data flow control with XON XOFF Code for XOFF character For 7 data bits 0 to 7FH hex With 8 data bits 0 to FFH hex Depending on whether you set 7 or 8 data bits for the character frame 13 DC3 Wait for XON after XOFF wait time for CTS ON Only for data flow control with XON XOFF or RTS CTS Period of time for which the CP 341 should wait for the XON code or for CTS ON of the...

Страница 96: ...rs and footers must be counted 1 to 255 0 continuous printing 50 Separators Line end Characters which end each line in the body of the text header or footer The body of the text header and footer must contain the defined separator CR carriage return LF line feed CR LF carriage return and line feed LF CR line feed and carriage return CR LF carriage return and line feed Headers Footers Text for up t...

Страница 97: ...r control characters Table 2 21 Control characters printer driver Parameters Description Range of values Default value Printer emulation Sets the printer emulation printer commands for the following control characters bold condensed expanded italics and underlining Set User Defined to modify the printer emulation and include additional control characters The characters A to Z and a to z are permis...

Страница 98: ...ters max 8 characters Version number Version number of the text SDB text file 1 to 255 9 Message texts All the message texts stored in the text block are displayed here together with their message text numbers you can change a selected message text line by means of the Edit Message parameter ASCII characters unchangeable Edit message You can transfer message texts edited here to the Message Texts ...

Страница 99: ... Parameter Assignment parameter assignment interface Format string The figure illustrates the structure of the format string schematically A format string can contain normal text and or conversion statements for variables and or control statements Normal text conversion statements and control statements can occur in any sequence in the format string There must be one and only one conversion statem...

Страница 100: ...y be added before right justified output or after left justified output Precision Precision is only relevant to display types A D F and R It is ignored otherwise None Output in the default display 0 No output of decimal point or decimal places in real R and floating point F display types n Output of decimal point and n 1 to 99 significant decimal places in real R and floating point F display types...

Страница 101: ...T DWORD 32767 2147483647 Max 6 Max 11 Integer range N 1 WORD text number Message text output Integer 0 to 1999 P 2 INT WORD Set page number 5 R REAL DWORD E 04 8 Floating point with exponent S STRING Text output Text strings T 1 TIME DWORD d_3h_10m_5s_250ms Max 22 Duration negative duration is identified by a leading minus sign U BYTE WORD DWORD 255 65535 4294967295 Max 3 Max 5 Max 10 Integer rang...

Страница 102: ...nd all control statements except for F and x are allowed An explicit width setting of N limits the printed length of the referenced message text to the width indicated Setting the page number P Use the P display type to change the page number in the printout The CP 341 always begins a printout at page 1 This conversion statement allows you to set the page number to a specific value The conversion ...

Страница 103: ... are output the remainder are truncated In all other cases characters are output corresponding to the width Undefined or invalid conversion statements are not executed This is printed out as e g display type missing 2 2 The rest of the conversion statement i e everything after the character identified as incorrect is output This allows the exact cause of the error to be determined Conversion state...

Страница 104: ... 1I Variable 1 12345 DEC Error The selected width was too small for the variable value to be output The precision is not relevant to display type I Example 3 96 10 3 Format string 7 2D Variable 1 D 1996 10 31 Error The format string is formally correct but the selected width was too small to print the date in full Example 4 Format string 3A Variable 1 D 1996 10 31 Error The default width of displa...

Страница 105: ...t string 6I Variable 1 12345 DEC The selected width was one character greater than the variable value to be output left justified formatting Example 3 12d_0h_0m_23s_348ms Format string T Variable 1 T 12D23S348MS The IEC time is in the standard format unspecified time units are inserted with zeros Example 4 1 234560E 02 Format string 12 6R Variable 1 123 456 A width of 12 is available to display th...

Страница 106: ... 341 The figure illustrates the structure of the control statement schematically 8 2XWSXW RI WKH FKDUDFWHU VWDQGDUG FRQWURO VWDWHPHQW 2XWSXW RI WKH FKDUDFWHU 6ZLWFK RQ ROG W SH RQGHQVHG W SH SDQGHG W SH WDOLF W SH 6PDOO FDSLWDOV 8QGHUOLQLQJ 6ZLWFK RII Figure 2 30 Schematic structure of control statements Examples Below are some examples with control statements Example 1 To print the text Bold type...

Страница 107: ...ement cancels the line break after a message text This means that you can print several message texts in a single line in order for example to display more variables in a line The x control statement is appended at the end of the format string Example The level 200 l was reached at 17 30 hours Format string The level i l was reached at Z hours x Variable 1 time Variable 2 level Note Note that when...

Страница 108: ...a Transmission 2 8 Configuration data CP 341 Point to Point Communication Installation and Parameter Assignment 108 Manual 09 2008 A5E02191071 01 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 109: ...iled description in Section Configuring the CP 341 Page 117 of this manual Assigning Parameters to the CP 341 Parameter assignment of the CP 341 involves the creation of specific parameters of the protocols and the configuration of message texts for printout You carry out the parameter assignment of the CP 341 using the CP 341 Point to Point Communication Parameter Assignment parameter assignment ...

Страница 110: ... CP 341 to the associated CPU using the STEP 7 user program You program the CP 341 using the language editors of the STEP 7 software A comprehensive programming example is available in Section Programming Example for Standard Function Blocks Page 205 A detailed description of programming with STEP 7 is contained in the Programming with STEP 7 manual 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfe...

Страница 111: ...limited by the expandability of the CPU e g CPU 312 IFM in first row or the ET 200M IM 153 in distributed applications single row configuration only Note Prior to removing or inserting the CP 341 you must switch the CPU to STOP mode and switch off the power supply There are no restrictions for removing or inserting the cable for the integrated interface on the CP 341 However you must make sure tha...

Страница 112: ...ts of VDE 0100 Part 410 HD 384 4 41 IEC 364 4 41 as functional extra low voltage with safe electrical isolation or VDE 0805 EN 60950 IEC 950 as safety extra low voltage SELV or VDE 0106 Part 101 4 2 1 Installation steps Inserting the rack mounting rail To insert the CP 341 in a rack mounting rail proceed as follows 1 Switch the CPU to STOP mode 2 Switch off the power supply 3 The CP 341 is accompa...

Страница 113: ... 2 2 Removal steps Dismounting the rack mounting rail To dismount the CP 341 from the rack mounting rail proceed as follows 1 Switch the CPU to STOP mode 2 Shut down the power supply 3 Open the front doors 4 Disconnect the connection to the DC 24V supply 5 Disconnect the sub D connector from the integral interface 6 Release the securing screw on the module 7 Tilt the module and remove it from the ...

Страница 114: ...unting and Dismounting the CP 341 CP 341 Point to Point Communication Installation and Parameter Assignment 114 Manual 09 2008 A5E02191071 01 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 115: ...P 341 using STEP 7 or the CP 341 Point to Point Communication Parameter Assignment parameter assignment interface Table 5 1 Configuration options for the CP 341 Product Order number Assignable using the parameter assignment interface Under STEP 7 CP 341 RS 232C 6ES7341 1AH02 0AE0 CP 341 20mA TTY 6ES7341 1BH02 0AE0 CP 341 RS 422 485 6ES7341 1CH02 0AE0 As of V5 0 as of version V5 3 该文档是极速PDF编辑器生成 如果...

Страница 116: ...ted on the CD along with the function blocks and programming example To install the parameter assignment interface 1 Insert the CD into the CD drive of your programming device or PC 2 In Microsoft Windows start the dialog for installing software by double clicking the Add and Remove Programs icon in the Control Panel 3 In the dialog select the CD drive and the Setup exe file and start installation...

Страница 117: ...u enter the rack the slot and the order number of the CP 341 in the configuration table STEP 7 then automatically assigns an address to the CP 341 The CPU is now able to find the CP 341 in its slot in the rack by way of its address NOTICE Prior to starting up a configured CP 341 you have to assign parameters to the module with a communication protocol as described in the following section Assignin...

Страница 118: ...signment interface You start the parameter assignment interface by double clicking the order number CP 341 in the configuration table or by selecting the CP 341 and then the Edit Object Properties menu command The Properties CP 341 dialog will appear Click the Parameters button to go to protocol selection Set the protocol and double click the icon for the transmission protocol an envelope This tak...

Страница 119: ...LC Module Information or Read Data Record see below Reading the identification data Users can access specific ID data by selecting Read Data Record The element of the ID data which is assigned to the corresponding index is found under the associated data record number All data records which contain ID data have a length of 64 bytes The table below shows the structure of those data records Table 5 ...

Страница 120: ... product version of the module Software revision Read 4 bytes Provides information about the firmware version of the module Statistical revision no Read 2 bytes Not supported Profile_ID Read 2 bytes F6 00 hex Internal parameter to PROFIBUS DP Profile specific type Read 2 bytes 00 04 hex 4 dec Internal parameter communication module to PROFIBUS DP I M version Read 2 bytes 00 00 hex 0 dec Internal p...

Страница 121: ... can now download the configuration data and parameter assignment data online from the programming device to the CPU menu command PLC Download The CPU accepts the parameters immediately after the download The module parameters are automatically transmitted to the communication processor when they are loaded onto the CPU and as soon as the communication processor can be reached via the S7 300 backp...

Страница 122: ...ly loading the drivers are STEP 7 V5 3 and higher CP 341 Point to Point Communication Parameter Assignment parameter assignment interface V5 0 or higher The driver dongle must be connected to the port at the rear of CP 341 The valid parameter assignment was saved in HW Config beforehand and has been downloaded to the CPU Introduction to the parameter assignment interface You select the loadable dr...

Страница 123: ...an update the firmware of the CP The CP 341 must be available online on the PG PC Refer to the instructions for the firmware update package for the storage location of the firmware update files The CP341 nnn path always identifies the firmware version Load firmware in HW Config valid as of order number 6ES7341 1_H02 0AE0 Carry out a firmware update as follows 1 Switch the CPU to STOP mode 2 Open H...

Страница 124: ...l be deleted You have to reload a firmware prior to commissioning 4 Click the Find File button to select the firmware to be loaded UPD Note The basic firmware consists of three files each with a UPD extension Select only the file called HEADER UPD for the basic firmware Result The version of the selected firmware is displayed under Selected FW version 5 Click the Load Firmware button to start load...

Страница 125: ...update in progress On On On Firmware update completed On Off Off CP 341 without module firmware Flashing 2 Hz Off Off Module firmware deleted firmware update canceled firmware update still possible Reload the firmware Hardware fault during firmware update Flashing 2 Hz Flashing 2 Hz Flashing 2 Hz Delete write operation failed Switch power supply to module off and then on again and reload the firmw...

Страница 126: ...Firmware Version Viewing the hardware and firmware version You can view the current hardware and firmware version on the CP 341 in STEP 7 in the Module Information dialog Access this dialog box as follows In SIMATIC Manager File Open Project Open HW Config Station Open Online and double click the CP 341 module 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 127: ...r The transmission protocol conversion takes place on the CP 341 The protocol is used to adapt the interface of the CP 341 to the interface of the communication partner This enables you to link an S7 programmable controller with any communication partner that can handle today s standard protocols available in SIMATIC S5 ASCII driver 3964 R procedure RK 512 computer link or printer driver Interrupt...

Страница 128: ...ide data to the communication partner 3964 R procedure ASCII driver RK 512 computer link FB 8 P_SND_RK The P_SND_RK function block allows you to send an entire area or subarea of a data block to a communication partner or fetch data from the communication partner 3964 R procedure ASCII driver RK 512 computer link FB 13 P_PRINT_RK The P_PRINT_RK function block enables you to output a message text w...

Страница 129: ...nd functions WARNING For the CP 341 you can use only the FC 5 V24_STAT and FC 6 V24_SET functions with version 2 0 Use of Version 1 0 can result in data corruption For data transmission with the CP 341 only the FB 7 P_RCV_RK and FB 8 P_SND_RK function blocks can be used The FB 2 P_RCV and FB 3 P_SEND function blocks of the CP 341 must not be used because this can result in data corruption 该文档是极速PD...

Страница 130: ... display the STATUS you should therefore copy it to a free data area DONE 1 means that the request was completed without error In other words When using the ASCII driver Request was sent to the communication partner It is not ensured that all data were received by the communication partner When using the 3964 R procedure Request was sent to the communication partner and positive acknowledgement wa...

Страница 131: ...program Bear in mind too that you can use only 1 instance data block for FB P_SND_RK and 1 instance data block for FB P_RCV_RK This is because the statuses needed for the FB s internal routines are stored in the instance data block Data consistency The block size limits the data consistency for data transmission between the CPU and CP 341 to 32 bytes If you want consistent data transmission exceed...

Страница 132: ...The LADDR parameter specifies the address of the CP 341 to be addressed Error display at the FB P_SND_RK The DONE output shows request completed without errors ERROR indicates whether an error has occurred If an error has occurred the corresponding event number is displayed in STATUS see section Diagnostics Messages of the Function Blocks Page 187 If no error has occurred STATUS has the value 0 DO...

Страница 133: ...n the graphical representation LAD or FBD To process these parameters the compiler uses the binary result BR The binary result is set to signal state 1 if the block was terminated without errors If there was an error the BR is set to 0 Assignment in the data area The FB P_SND_RK works together with an I_SND_RK instance DB The DB number is passed on with the call The instance data block is 62 bytes...

Страница 134: ...sitive edge R INPUT BOOL Cancels request Cancels the request in progress Transmission is disabled LADDR INPUT INT CP 341 start address The start address is taken from STEP 7 DB_NO INPUT INT Data block number Send DB no CPU specific zero is not allowed DBB_NO INPUT INT Data byte number 0 DBB_NO 8190 Send data starting from data byte LEN INPUT INT Data length 1 LEN 4096 specified in number of bytes ...

Страница 135: ... the input circuit of REQ and R 5 4 5 21 5525 6 1 UHTXHVW QRW H HFXWHG VHQGLQJ GHDFWLYDWHG 6HQGLQJ UHTXHVW RPSOHWLRQ ZLWKRXW HUURU VW QWK SDUW RI 6 1 5 6 7 WUDQVPLWWHG RPSOHWLRQ ZLWK HUURU 5 6 7 WUDQVPLWWHG RPSOHWRQ ZLWKRXW Figure 6 1 Time sequence chart of FB 8 P_SND_RK Note The REQ input is edge triggered A positive edge at the REQ input is sufficient The result of the logic operation must not b...

Страница 136: ...ion block recognizes signal state 1 at the R parameter the current transmission request is canceled and the FB P_RCV_RK is placed in its initial state Receiving is disabled as long as the signal state at the R parameter is 1 The LADDR parameter defines the CP 341 to be addressed Error display at the FB P_RCV_RK The NDR output shows request completed without errors data accepted all data read ERROR...

Страница 137: ...l representation LAD or FBD To process these parameters the compiler uses the binary result BR The binary result is set to signal state 1 if the block was terminated without errors If there was an error the BR is set to 0 Assignment in the data area The FB P_RCV_RK works together with an I_RCV_RK instance DB The DB number is passed on with the call The instance data block is 60 bytes long Access t...

Страница 138: ...ving is disabled LADDR INPUT INT CP 341 start address The start address is taken from STEP 7 DB_NO INPUT INT Data block number Receive DB No CPU specific zero is not allowed DBB_NO INPUT INT Data byte number 0 DBB_NO 8190 Receive data starting from data byte NDR OUTPUT BOOL Request completed without errors data accepted STATUS parameter 16 00 ERROR 1 OUTPUT BOOL Request completed with errors Error...

Страница 139: ...g on the input circuit of EN_R and R 1B5 5 1 5 5525 QDEOH UHFHLYH RPSOHWLRQ ZLWKRXW HUURUV 5HFHLYLQJ 7HUPLQDWLRQ ZLWK HUURUV 1RW UHFHLYLQJ 5 6 7 RPSOHWLRQ ZLWKRXW HUURUV 5HFHLYLQJ 7HUPLQDWLRQ ZLWK HUURUV 5HFHLYLQJ LV VZLWFKHG RII 1 OHQJWK Figure 6 2 Time sequence chart of FB 7 P_RCV_RK Note Input EN_R must be set to static 1 state The EN_R parameter must be supplied with result of logic operation ...

Страница 140: ...equests to coordinate the reading and providing of data on the CP 341 The communication partner is active You can Read in data sent from the communication partner in an S7 data area of your automation system Provide data in your automation system to a remote communication partner Requests that can be processed simultaneously Only one active and one passive request can be programmed for each CP 341...

Страница 141: ... specified for this job the interprocessor communication flag is available in the FB for one cycle if NDR 1 After you have processed the received data reset the interprocessor communication flag to 0 Providing data Use the interprocessor communication flag Do not access the provided data until all of the data have been fetched evaluation of the interprocessor communication flag specified for this ...

Страница 142: ...the data block number R_NO and the offset R_OFFSET at which the first byte is to be written The interprocessor communication flag byte and bit on the partner CPU are specified in R_CF_BYT and R_CF_BIT The FB P_SND_RK function block can be called cyclically when the signal state at the R parameter input is 1 This cancels the transmission to the CP 341 and places the FB P_SND_RK in its initial state...

Страница 143: ...t the data is stored in the partner starting from the next lower even numbered offset Example Offset is 7 data is stored from byte 6 What is to be done Block call STL representation LAD representation CALL P_SND_RK I_SND_RK SF REQ R LADDR DB_NO DBB_NO LEN R_CPU_NO R_TYP R_NO R_OFFSET R_CF_BYT R_CF_BIT DONE ERROR STATUS B61 B5 3B61 B5 1 12 6 21 5 4 5525 5 67 786 5 B12 B12 1 5B 38B12 5B7 3 5B12 5B2 ...

Страница 144: ...INT Data byte number of source 0 DBB_NO 8190 Send data starting from data byte LEN INPUT INT Data length of the message frame to be sent 1 LEN 4096 specified in number of bytes only even numbered values are appropriate R_CPU_NO INPUT INT CPU number of the partner CPU 0 R_CPU_NO 4 only with multiprocessor mode default value 1 R_TYP INPUT CHAR Address type on the partner CPU D Data block X Expanded ...

Страница 145: ...5 6 D DBNR D offset 7 8 number in Data block Data block AD DB DW Words Data block Expanded data block AD DB DW Words Explanation of the abbreviations used D DBNR Destination data block number D Offset Destination start address DW Offset in words Time sequence chart of FB P_SND_RK The figure below illustrates the behavior of the DONE and ERROR parameters depending on the input circuit of REQ and R ...

Страница 146: ...ication Installation and Parameter Assignment 146 Manual 09 2008 A5E02191071 01 Note The REQ input is edge triggered A positive edge at the REQ input is sufficient The result of the logic operation must not be at 1 at any point during transfer 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 147: ... P_RCV_RK is placed in its initial state Receiving is disabled as long as the signal state at the R parameter is 1 The NDR output shows request completed without errors data accepted all data read The L_TYP L_NO and L_OFFSET parameters indicate for the duration of one cycle where the data are stored In addition the L_CF_BYT and L_CF_BIT parameters and length LEN of the respective request are indic...

Страница 148: ...phical representation LAD or FBD To process these parameters the compiler uses the binary result BR The binary result is set to signal state 1 if the block was terminated without errors If there was an error the BR is set to 0 Assignment in the data area The FB P_RCV_RK works together with an I_RCV_RK instance DB The DB number is passed on with the call The instance data block is 60 bytes long Acc...

Страница 149: ... Receive data starting from data byte Relevant only for DX data destination L_TYP 1 OUTPUT CHAR Type of area on local CPU destination D Data block L_NO 1 OUTPUT INT Data block number on local CPU destination 0 L_NO 255 L_OFFSET 1 OUTPUT INT Data byte number on local CPU destination 0 L_OFFSET 510 L_CF_BYT 1 OUTPUT INT Interprocessor communication flag byte on local CPU 0 L_CF_BYTE 255255 means wit...

Страница 150: ... input circuit of EN_R and R 1B5 5 1 5 5525 QDEOH UHFHLYH RPSOHWLRQ ZLWKRXW HUURUV 5HFHLYLQJ 7HUPLQDWLRQ ZLWK HUURUV 1RW UHFHLYLQJ 5 6 7 RPSOHWLRQ ZLWKRXW HUURUV 5HFHLYLQJ 7HUPLQDWLRQ ZLWK HUURUV 5HFHLYLQJ LV VZLWFKHG RII 1 OHQJWK Figure 6 4 Time sequence chart of FB 7 P_RCV_RK for Receive data request Note Input EN_R must be set to static 1 state The EN_R parameter must be supplied with result of...

Страница 151: ...NO parameters are irrelevant for the FB P_RCV_RK function block The LADDR parameter specifies the address of the CP 341 to be addressed If the function block recognizes signal state 1 at the R parameter the current transmission request is canceled and the FB P_RCV_RK is placed in its initial state The request is disabled as long as the signal state at the R parameter is 1 The NDR output shows requ...

Страница 152: ...e the interprocessor communication flag in order to find out if the provided data can be accessed again As soon as the data have been processed the user must reset the interprocessor communication flag to 0 The communication partner can now issue a FETCH request again What is to be done Block call STL representation LAD representation CALL P_RCV_RK I_RCV_RK EN_R R LADDR DB_NO DBB_NO L_NO L_OFFSET ...

Страница 153: ... 341 start address The start address is taken from STEP 7 DB_NO INPUT INT irrelevant DBB_NO INPUT INT irrelevant L_TYP 1 OUTPUT CHAR Type of area on local CPU source D Data block M Memory bit I Inputs Q Outputs C Counters T Timers L_NO 1 OUTPUT INT Data block number on local CPU source 0 L_NO 255 only relevant if L_TYP D L_OFFSET 1 OUTPUT INT Data block number on local CPU source 0 L_OFFSET 510 de...

Страница 154: ... the input circuit of EN_R and R 1B5 5 1 5 5525 QDEOH UHFHLYH RPSOHWLRQ ZLWKRXW HUURUV 5HFHLYLQJ 7HUPLQDWLRQ ZLWK HUURUV 1RW UHFHLYLQJ 5 6 7 RPSOHWLRQ ZLWKRXW HUURUV 5HFHLYLQJ 7HUPLQDWLRQ ZLWK HUURUV 5HFHLYLQJ LV VZLWFKHG RII 1 OHQJWK Figure 6 5 Time sequence chart of FB 7 P_RCV_RK for Provide data request Note The EN_R input remain static at 1 The EN_R parameter must be supplied with result of lo...

Страница 155: ...block number R_NO relevant only for data blocks and expanded data blocks and the offset R_OFFSET of the first data byte to be sent in this area The interprocessor communication flag byte and bit on the partner CPU are specified in R_CF_BYT and R_CF_BIT The only permissible destination areas are data blocks DB The destination is fully specified by the data block number DB_NO and the offset DBB_NO o...

Страница 156: ...set Example Offset is 7 data is fetched as of byte 6 Special features for timers and counters If you fetch timers or counters from the communication partner remember that 2 bytes are fetched for each timer or counter For example if you want to fetch 10 counters you must enter 20 as the length What is to be done Block call STL representation LAD representation CALL P_SND_RK I_SND_RK SF REQ R LADDR ...

Страница 157: ...wed DBB_NO INPUT INT Data block number of destination 0 DBB_NO 8190 Send data starting from data byte LEN INPUT INT Data length of the message frame to be fetched 1 LEN 4096 specified in number of bytes1 R_CPU_NO INPUT INT CPU number of the partner CPU 0 R_CPU_NO 4 only with multiprocessor mode default value 1 R_TYP INPUT CHAR Address type on the partner CPU D Data block X Expanded data block M Me...

Страница 158: ...5 Counters C irrelevant 0 255 Timers T irrelevant 0 255 Information in the message frame header The table below shows the information in the message frame header of the RK 512 message frame Table 6 10 Information in the RK 512 message frame header for Fetch data request Source on the partner CPU To the destination your S7 automation system local CPU Message frame header bytes 3 4 command type 5 6 ...

Страница 159: ...nput circuit of REQ and R 5 4 5 21 5525 6 1 UHTXHVW QRW H HFXWHG VHQGLQJ GHDFWLYDWHG 6HQGLQJ UHTXHVW RPSOHWLRQ ZLWKRXW HUURU VW QWK SDUW RI 6 1 5 6 7 WUDQVPLWWHG RPSOHWLRQ ZLWK HUURU 5 6 7 WUDQVPLWWHG RPSOHWRQ ZLWKRXW Figure 6 6 Time sequence chart of FB 8 P_SND_RK for Fetch data request Note The REQ input is edge triggered A positive edge at the REQ input is sufficient The result of the logic ope...

Страница 160: ...procedure also applies to the ASCII driver In addition when the ASCII driver is used with the RS 232C interface submodule you can read and control the RS 232C secondary signals The following describes only what you have to do to use these additional functions The following function blocks are available for reading and controlling the RS 232C accompanying signals FC 5 V24_STAT for checking the inte...

Страница 161: ...re constantly updated independently of this The binary result BR is not affected The function does not issue error messages The LADDR parameter defines the CP 341 to be addressed What is to be done Block call STL representation LAD representation CALL V24_STAT LADDR DTR_OUT DSR_IN RTS_OUT CTS_IN DCD_IN RI_IN 9 B67 7 1 5 75B287 12 65B 1 576B287 76B 1 B 1 5 B 1 Note The parameters EN and ENO are onl...

Страница 162: ...s is taken from STEP 7 DTR_OUT OUTPUT BOOL Data terminal ready CP 341 ready for operation CP 341 output DSR_IN OUTPUT BOOL Data set ready Communication partner ready for operation CP 341 input RTS_OUT OUTPUT BOOL Request to send CP 341 ready to send CP 341 output CTS_IN OUTPUT BOOL Clear to send Communication partner can receive data from the CP 341 response to RTS ON of the CP 341 CP 341 input DC...

Страница 163: ...or alternatively statically without conditions in a time controlled program The binary result BR is not affected The function does not issue error messages The LADDR parameter defines the CP 341 to be addressed Block call STL representation LAD representation CALL V24_SET LADDR RTS DTR 1 5 576 75 9 B6 7 12 Note The parameters EN and ENO are only present in the graphical representation LAD or FBD T...

Страница 164: ...SET Table 6 12 FC 6 V24_SET parameters Name Sort Data type Comment Permitted values remark LADDR INPUT INT CP 341 start address The start address is taken from STEP 7 RTS INPUT BOOL Request to send CP 341 ready to send Control CP 341 output DTR INPUT BOOL Data terminal ready CP 341 ready for operation Control CP 341 output See also Principle of the Data Transmission with the ASCII Driver Page 62 该...

Страница 165: ...peration can run over several calls program cycles depending on the amount of data involved The FB P_PRINT_RK function block can be called cyclically when the signal state at the R parameter input is 1 This cancels the transmission to the CP 341 and places the FB P_PRINT_RK in its initial state Data that has already been received by the CP 341 is still sent to the communication partner If the sign...

Страница 166: ...ameters the compiler uses the binary result BR The binary result is set to signal state 1 if the block was terminated without errors If there was an error the BR is set to 0 Assignment in the data area instance DB The FB P_PRINT_RK works together with an I_PRINT instance DB The DB number is passed on with the call The instance data block is 40 bytes long Access to the data in the instance DB is no...

Страница 167: ...LQWHU WR WKH IRUPDW VWULQJ Figure 6 7 Structure of the POINTER DB for the FB P_PRINT_RK function block Permissible DB numbers The permissible DB numbers are CPU specific If the value 16 00 is specified as the DB number for Pointer to variable this variable is interpreted as not present and the pointer is set to the next variable or the format string If the DB number is equal to the value 16 00 in ...

Страница 168: ... request in progress Printer output is disabled LADDR INPUT INT CP 341 start address The start address is taken from STEP 7 DB_NO INPUT INT Data block number Pointer to pointer DB CPU specific zero is not allowed The pointers to variables and format string are stored in the pointer DB in a fixed order DBB_NO INPUT INT Data byte number 0 DBB_NO 8162 Pointer starting from data byte DONE 1 OUTPUT BOO...

Страница 169: ...on the input circuit of REQ and R 6HQGLQJ UHTXHVW RPSOHWLRQ ZLWKRXW HUURUV VW QWK 35 17 SDUW 5 6 7 WUDQVPLWWHG RPSOHWLRQ ZLWK HUURUV 5 6 7 WUDQVPLWWHG RPSOHWLRQ ZLWKRXW HUURUV 35 17 UHTXHVW LV QRW H HFXWHG VHQGLQJ LV GLVDEOHG Figure 6 8 Time sequence chart for FB 13 P_PRINT_RK Note The REQ input is edge triggered A positive edge at the REQ input is sufficient It does not have to have a signal stat...

Страница 170: ...rmation on what you need to take into account when programming function blocks in STEP 7 Addressing The data operands in data blocks are addressed bytewise in STEP 7 in contrast to STEP 5 where addressing is word based You therefore have to convert the addresses of the data operands 67 3 67 3 Q 5 Q Q Q Q Q Figure 6 9 Comparison of data addressing in STEP 5 and STEP 7 The address of a data word is ...

Страница 171: ...er Assignment Manual 09 2008 A5E02191071 01 171 Examples Conversion of STEP 5 data operands left table column into STEP 7 data operands right table column STEP 5 STEP 7 DW 10 DBW 20 DL 10 DBB 20 DR 10 DBB 21 D 10 0 DBX 21 0 D 10 8 DBX 20 0 D 255 7 DBX 511 7 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 172: ... variables so the distinction between direct and indirect parameter assignment is no longer necessary with STEP 7 Example of Direct parameter assignment Call of FB 8 in accordance with the rules for direct parameter assignment STL Network 1 CALL FB 8 DB8 SF S Send request REQ M 0 6 Activates SEND R M 5 0 Activates RESET LADDR 336 Start address PB336 DB_NO 11 Data block DB11 DBB_NO 0 As of data wor...

Страница 173: ...les for indirect parameter assignment STL Network 1 CALL FB 8 DB8 SF S Send request REQ M 0 6 Activates SEND R M 5 0 Activates RESET LADDR MW21 Start address in MW21 DB_NO MW40 DB no in MW40 DBB_NO MW42 DBB No in MW42 LEN MW44 Length in MW44 R_CPU_NO R_TYP R_NO R_OFFSET R_CF_BYT R_CF_BIT DONE M 26 0 Completed without error ERROR M 26 1 Terminated with error STATUS MW 27 Status word 该文档是极速PDF编辑器生成 ...

Страница 174: ... symbol table while the symbol name for the data operand is declared in the corresponding data block STL DB 10 DBW 0 Absolute fully qualified addressing CP_DB SEND_DWNR Symbolic fully qualified addressing Example 2 The symbol name of the data block used DB 10 is CP_DB the symbol name for the send DB number is SEND_DBNO and is located in data block DB 10 in data word DBW 0 The start address of the ...

Страница 175: ...ssing STL Network 1 CALL FB 8 DB8 SF S Send request REQ M 0 6 Activates SEND R M 5 0 Activates RESET LADDR MW21 Start address in MW21 DB_NO DB10 DBW0 DB no in DBW0 of DB10 DBB_NO DB10 DBW2 From DBB no located in DBW2 of DB10 LEN DB10 DBW4 Length located in DBW4 of DB10 R_CPU_NO R_TYP R_NO R_OFFSET R_CF_BYT R_CF_BIT DONE M 26 0 Completed without error ERROR M 26 1 Terminated with error STATUS MW 27...

Страница 176: ... no DBB_NO CP_DB SEND_DWNR Message frame starting from data byte LEN CP_DB SEND_LAE Message frame length R_CPU_NO R_TYP R_NO R_OFFSET R_CF_BYT R_CF_BIT DONE SEND_DONE Completed without error ERROR SEND_ERROR Terminated with error STATUS SEND_STATUS Status word EN ENO Mechanism The EN and ENO parameters are only present in the graphical representation LAD or FBD To process these parameters the comp...

Страница 177: ...arted up the current parameters are transferred to the CP 341 by the system service of the CPU Start up Characteristics FB CP 341 Once the connection between the CPU and the CP 341 has been established the CP 341 must be initialized For each P_SND_RK P_RCV_RK function block there is a separate start up coordination Before requests can be actively processed the accompanying start up procedure must ...

Страница 178: ...d to transact a minimum request 32 bytes SEND RECEIVE for the quantity of user data transported per program cycle This only applies in centralized operation Table 6 15 Minimum number of CPU cycles Number of CPU cycles for processing Completion without errors Termination with errors RESET RESTART P_RCV_RK 3 3 4 P_SND_RK 3 3 4 V24_STAT 1 V24_SET 2 2 Before the CP 341 can process an activated request...

Страница 179: ...hat are supported by the latest CPU versions only This conversion was necessary because the old system calls SFC58 WR_REC and SFC59 RD_REC are not suitable for operation following an IE PB link or a PROFINET header Users with older CPU versions that do not support SFB52 RDREC or SFB53 WRREC yet will find the older versions of FB7 and FB8 with the designations FB107 P_RCV_RK_OLD and FB108 P_SND_RK_...

Страница 180: ...echnical Specifications of the Function Blocks CP 341 Point to Point Communication Installation and Parameter Assignment 180 Manual 09 2008 A5E02191071 01 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 181: ...ved e g break invalid parameter Parameter reassignment For parameter reassignment the protocol driver is initialized The SF LED is on during parameter reassignment Sending and receiving are not possible and send and receive message frames stored in the CP 341 are lost when the driver is restarted Communication between the CP and the CPU is started afresh active message frames are aborted At the en...

Страница 182: ... Point Communication Parameter Assignment parameter assignment interface A parameter reassignment check is executed The CP 341 is now ready to operate Startup behavior when power supply for the module is turned on If the CP 341 has its own 24 V DC power supply independent of the CPU communication between the CPU and the CP 341 is interrupted if the 24 V DC power supply of the CP 341 fails To resum...

Страница 183: ...91071 01 183 The procedure for the CPUs listed below is as follows CPU Order number Procedure 313 6ES7313 1AD01 0AB0 314 6ES7314 1AE02 0AB0 314 IFM 6ES7314 5AE01 0AB0 315 6ES7315 1AF01 0AB0 315 2 DP 6ES7315 2AF01 0AB0 318 2 DP 6ES7318 2AJ00 0AB0 614 6ES7614 1AH01 0AB0 Switch the CPU to STOP mode and then back to RUN mode 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www g...

Страница 184: ... driver receive message frames continue to be received until the receive buffer is full CPU START UP On start up the CP sends the parameters created with the CP 341 Point to Point Communication Parameter Assignment parameter assignment interface The CP 341 carries out a parameter reassignment only if parameters have changed CPU RUN When the CPU is in RUN mode send and receive operations are unrest...

Страница 185: ...ading the STATUS output of the function blocks gives you information on errors which have occurred during communication You can interpret the STATUS output in the user program The CP 341 also enters the diagnostic events at the STATUS output in its diagnostic buffer Error numbers in the response message frame If you are working with the RK 512 computer link and an error occurs at the communication...

Страница 186: ...istinguished Group error displays SF red Error has occurred or parameter reassignment is in progress Special displays TXD green Sending active lights up when the CP 341 is sending user data via the interface RXD green Receiving active lights up when the CP 341 is receiving user data via the interface Note Section Subsequent Loading of Firmware Updates Page 123 provides information on other LED ind...

Страница 187: ...llustrates the structure of the STATUS parameter 67 786 LW 1U 5HVHUYH YHQW FODVV YHQW QXPEHU UURU QXPEHU Figure 8 1 Structure of the STATUS parameter Example The figure below illustrates the content of the STATUS parameter for the Request canceled due to complete restart restart or reset event event class 1EH event number 0DH 5HVHUYH 67 786 YHQW ಮ5HTXHVW DERUWHG GXH WR FRPSOHWH UHVWDUW UHVWDUW RU ...

Страница 188: ...on error Event no Event text Remedy 02 0FH Invalid parameter assignment detected at start of assigned communication Interface parameters could not be assigned Correct invalid parameters and restart Event class 3 03H Error during parameter assignment of FBs not displayed in the diagnostic buffer Event no Event text Remedy 03 01H Illegal or missing source destination data type Area start address len...

Страница 189: ...a are transferred to the CPU With RK 512 the request is acknowledged negatively and must be repeated in the user program As a remedy you should call the FB P_RCV_RK more frequently in your user program 04 08H Error during data transmission between the CPU and the CP receipt CPU is temporarily overloaded request is repeated The data area of the CPU cannot be accessed for the time being e g because ...

Страница 190: ... 05 06H Printer driver only Message text not available Use the parameter assignment software to configure the message texts and then carry out a complete restart 05 07H Printer driver only Message text too long Edit the message text to reduce it to a length of fewer than 150 characters or no more than 250 characters if it contains variables 05 08H Printer driver only Too many conversion statements...

Страница 191: ...t addresses and DB DX numbers that can be specified in the program 05 15H RK 512 only Incorrect bit number specified in the interprocessor communication flag Permissible bit numbers 0 to 7 05 16H RK 512 only Specified CPU number too high Permissible CPU no none 0 1 2 3 or 4 05 17H Transmission length 1 kbyte is too long for CP or length is too short for interface parameter Split the request up int...

Страница 192: ... device interconnected in the data link 06 06H Error in 5th command byte DB number not permissible Refer to the request tables for the permissible DB numbers start addresses or lengths 06 07H Error in the 5th or 6th command byte start address too high Refer to the request tables for the permissible DB numbers start addresses or lengths 06 08H Error in 7th or 8th command byte impermissible length O...

Страница 193: ...age frame length and length specified in message frame header are not the same Check for malfunction on partner device possibly by using an interface test device interconnected in the data link 06 12H Error while sending the continuation response message frame An associated procedure error number has been entered in STATUS immediately beforehand See remedies for the error number entered immediatel...

Страница 194: ...a send message frame After connection termination with DLE ETX no response received from partner within acknowledgment delay time Partner device too slow or faulty If necessary use an interface test device switched into the transmission line to check 07 08H ASCII driver and printer driver only The waiting time for XON or CTS ON has expired The communication partner is faulty too slow or has been t...

Страница 195: ... device too slow or faulty Prove this using an interface test device interconnected in the data link 08 08H 3964 R only Error in block check character BCC The value of the BCC calculated internally does not match the BCC received by the partner when the connection was terminated Check whether the connection is seriously disrupted in this case you may also occasionally see error codes Check for mal...

Страница 196: ... Data area does not exist except DB DX or Data area too short except DB DX Check that the partner has the desired data area and that it is big enough or check the parameters of the called system function block Check the length specified in the system function block 09 03H Only for RK 512 DB DX access error in the partner DB DX does not exist or is too short With SIMATIC S5 as partner DB DX does no...

Страница 197: ...ed by the partner 3rd command byte in header is incorrect Check whether the error was caused by faults or by malfunction of the partner station Prove this using an interface test device interconnected in the data link 09 0BH Only for RK 512 Error in message frame header 1 or 4th command byte in header is incorrect Check whether the error was caused by faults or by malfunction of the partner statio...

Страница 198: ...of requests 128 bytes 0A 02H RK 512 only Error in the structure of the received response message frame 1st byte not 00 or FF Check for malfunction of the partner device possibly by using interface test device interconnected in the data link 0A 03H RK 512 only Received response message frame has too many or too few data Check for malfunction of the partner device possibly by using interface test de...

Страница 199: ...Return value RET_VAL of SFC is available for evaluation in SFCERR variable in instance DB Load the SFCERR variable from the instance DB 1E 41H The number of bytes specified in the LEN parameter of the FBs is not permissible You must stay within a range of values of 1 to 4096 bytes 1E 42H FB P_PRINT_RK The number of bytes specified for the variable or format string in the pointer DB under length is...

Страница 200: ...essage frame The table below shows how the error numbers in the response message frame REATEL are assigned to the event classes numbers in the STATUS output of the communication partner The error numbers in the response message frame are output as hexadecimal values Table 8 3 Error messages in the response message frame with RK 512 REATEL Event Class Event Number Event Class Event Number 0AH 0905H...

Страница 201: ... be evaluated subsequently in order for example to determine the causes of a STOP of the CP 341 or to trace the occurrence of individual diagnostic events Note The diagnostic buffer is a ring buffer designed for a maximum of 9 diagnostic entries When the diagnostic buffer is full the oldest entry is deleted when a new entry is made in it As a result the latest entry is always at the top In the eve...

Страница 202: ...Hardware object double click or select menu command Edit Open Result The window containing the configuration table appears 3 Select the CP 341 in the configuration table 4 Select PLC Module Information Result The Module Information dialog box for the CP 341 appears The first time the dialog is called the General tab appears default setting 5 Go to the Diagnostic Buffer tab Result The latest diagno...

Страница 203: ...nters it in its diagnostic buffer You can read the contents of the diagnostic buffer on the CPU using a programming device When a diagnostics event occurs the SF LED red lights up In addition the OB 82 is called with this diagnostic data as start information Organization block OB 82 You have the option of programming error responses in the user program in the OB 82 If no OB 82 is programmed the CP...

Страница 204: ...ameter 1 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Diagnostic information hexadecimal The table below shows the 4 bytes of diagnostic data of the CP 341 in hexadecimal notation Event 1st Byte 2nd Byte 3rd Byte 4th Byte Wire break 25H 0CH 02H 00H Incorrect parameter 83H 0CH 00H 00H Relationship of the diagnostic interrupt and the CPU operating mode A diagnostic interrupt is generated via the I ...

Страница 205: ...nd V24_SET standard functions There are three SIMATIC stations in the example because the CP 341 has to be assigned parameters differently for data transfer CP341 protocol 3964 Coupling with FB P_SND_RK and FB P_RCV_RK CP341 protocol RK512 Coupling with FB P_SND_RK and FB P_RCV_RK CP341 V24 Read and control RS 232C secondary signals with FC V24_STAT and FC V24_SET Note that the CP340 PTP Connectio...

Страница 206: ...gram example you could use the following devices An S7 300 automation system rack power supply CPU A CP 341 module with a communications partner e g a second CP or insertion of a short circuit connector i e the send line is bridged to the receive line The use of the short circuit connector is only supported by the ASCII protocols A programming device 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdf...

Страница 207: ...cation Parameter Assignment parameter assignment and upload them to the CPU You can run the CP341 protocol 3964 program example without making changes in the application program with 3964 R Procedure ASCII driver with on expiry of character delay time end criterion ASCII driver with on receipt of fixed message frame length end criterion For the ASCII driver with the on receipt of the end character...

Страница 208: ... FB DB 22 RECV IDB Instance DB for P_RCV_RK FB DB 40 SEND WORK DB Work DB for the standard FB 8 DB 41 RECV WORK DB Work DB for the standard FB 7 DB 42 SEND SRC DB Send data block DB 43 RECV DST DB Receive data block FB 7 P_RCV_RK Standard FB for receiving data RK 512 FB 8 P_SND_RK Standard FB for sending data RK 512 FC 5 V24_STAT Standard FC for reading CP outputs FC 6 V24_SET Standard FC for writ...

Страница 209: ...also included If there is no second CP 341 available to serve as a communication partner you have to delete the CP 341 in HW Config by selecting Edit Delete In addition in OB 1 the FC 22 call FC for receive must be commented out Loading to the CPU The hardware for the example is completely set up and the programming device is connected After resetting the CPU memory STOP operating mode transfer th...

Страница 210: ...ferred from the CP 341 in slot 4 to the CP 341 in slot 5 If you are using some other communication partner the FC 22 call RECEIVE is omitted Description of FC 21 SEND Program section Generate edge P_SND_REQ The P_SND_RK is initially executed once with P_SND_RK REQ 0 P_SND_RK REQ is then set to 1 If a signal state change from 0 to 1 is detected at the P_SND_RK REQ control parameter the P_SND_RK req...

Страница 211: ...RCV_RK STATUS is copied since it will be overwritten with 0 during the next cycle making it impossible to read it out All relevant values can be monitored in the VAT for testing purposes Description CP341 V24 The read and control RS 232C accompanying signals functions can only be carried out with the ASCII driver Control is only possible if you have not set the Automat control of V24 signals param...

Страница 212: ...ks 9 6 Activation Start Up Program and Cyclic Program CP 341 Point to Point Communication Installation and Parameter Assignment 212 Manual 09 2008 A5E02191071 01 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 213: ...341 RS 422 485 Typ 100 mA Area static Area dynamic Polarity reversal protection Electrical isolation 20 4 to 28 8 V 18 5 to 30 2 V Yes Yes relative to all other voltages Current consumption from backplane bus Approx 70 mA Power loss CP 341 RS 232C Typ 2 4 W CP 341 20mA TTY Typ 2 4 W CP 341 RS 422 485 Typ 2 4 W Indicators LEDs for transmitting TXD receiving RXD and group faults SF Interrupts Diagno...

Страница 214: ...e A 2 Technical specifications of the RS 232C interface Technical specifications Interface RS 232C 9 pin sub D male connector RS 232C signals TXD RXD RTS CTS DTR DSR RI DCD GND All electrically isolated relative to the S7 internal supply backplane bus and the external 24 V DC supply Max transmission distance 15 m Max baud rate 115200 baud Technical specifications for the 20mA TTY interface The tab...

Страница 215: ... 3964 R procedure Table A 5 Technical specifications for the 3964 R procedure 3964 R procedure with default values Max message frame length 4096 bytes Parameters The following can be assigned With without block check character Priority low high Transmission rate 300 600 1200 2400 4800 9600 19200 38400 57600 76800 115200 bps Character frame 9 10 11 or 12 bits Receive line initial state none R A 5V ...

Страница 216: ...fications for the ASCII driver Table A 7 Technical specifications for the ASCII driver ASCII driver Max message frame length 4096 bytes Parameters The following can be assigned Transmission rate 300 600 1200 2400 4800 9600 19200 38400 57600 76800 115200 bps Character frame 9 10 11 or 12 bits Character delay time 2 ms to 65535 ms in 1 ms increments Flow control none XON XOFF RTS CTS automat control...

Страница 217: ...low shows the technical specifications for the printer driver Table A 9 Technical specifications for the printer driver Printer driver Length of the text SDB 15 kbytes Parameters The following can be assigned Transmission rate 300 600 1200 2400 4800 9600 19200 38400 57600 76800 115200 bits s Character frame 10 or 11 bits Flow control None XON XOFF RTS CTS XON XOFF characters with flow control XON ...

Страница 218: ...92 s 1 000 s 2 000 s 100 bytes 0 035s 0 043 s 0 050 s 0 090 s 0 150 s 0 258 s 0 491 s 0 952 s 2 000 s 4 000 s 200 bytes 0 060 s 0 082 s 0 100 s 0 160 s 0 271 s 0 501 s 1 000 s 2 000 s 4 000 s 8 000 s 500 bytes 0 145 s 0 191 s 0 206 s 0 357 s 0 651 s 1 213 s 2 400 s 4 800 s 9 600 s 18 800 s 1000 bytes 0 261 s 0 335 s 0 402 s 0 692 s 1 263 s 2 400 s 4 800 s 10 600 s 21 200 s 37 600 s 3964 R procedur...

Страница 219: ... 181 s 0 338 s 0 666 s 1 334 s 20 bytes 0 030 s 0 034 s 0 037 s 0 049 s 0 075 s 0 125 s 0 227 s 0 431 s 0 855 s 1 701 s 50 bytes 0 041 s 0 047 s 0 051 s 0 072 s 0 114 s 0 199 s 0 372 s 0 712 s 1 407 s 2 804 s 100 bytes 0 061 s 0 069 s 0 076 s 0 114 s 0 184 s 0 326 s 0 612 s 1 183 s 2 326 s 4 645 s 200 bytes 0 105 s 0 125 s 0 141 s 0 211 s 0 350 s 0 635 s 1 200 s 2 400 s 4 800 s 9 067 s 500 bytes 0...

Страница 220: ...ions A 2 Transmission Rates CP 341 Point to Point Communication Installation and Parameter Assignment 220 Manual 09 2008 A5E02191071 01 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 221: ...dy 7 RTS Request To Send Output Request to send 8 CTS Clear To Send Input Clear to send 1 2 3 4 5 9 8 7 6 9 RI Ring Indicator Input Incoming call View from the front Connecting cables If you make your own connecting cables you must remember that unconnected inputs at the communication partner may have to be connected to open circuit potential Please note that you must only use shielded connector c...

Страница 222: ...equire the following female connectors On the CP 341 side 9 pin sub D female connector with screw locking On the communication partner 9 pin sub D female connector with screw locking DEOH W SH 5 7 7 5 576 76 76 576 65 75 75 65 1 1 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG 3 RPPXQLFDWLRQ SDUWQHUV Figure B 1 RS 232C connecting cable CP 341 CP 340 CP 341 CP 441 The cable max 15 ...

Страница 223: ...P 524 CPU 928B CPU 945 or CPU 948 For the connecting cables you will require the following female male connectors On the CP 341 side 9 pin sub D female connector with screw locking On the communication partner 25 pin sub D male connector with screw locking 3 5 7 7 5 576 76 76 576 65 75 75 65 1 1 RPPXQLFDWLRQ SDUWQHUV 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH Figure ...

Страница 224: ... CP 521 SI CP 521 BASIC For the connecting cables you will require the following female male connectors On the CP 341 side 9 pin sub D female connector with screw locking On the communication partner 25 pin sub D male connector with screw locking 3 5 7 7 5 576 76 76 576 65 75 75 65 1 1 RPPXQLFDWLRQ SDUWQHUV 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH Figure B 3 RS 232...

Страница 225: ...41 and a CP 523 For the connecting cables you will require the following female male connectors On the CP 341 side 9 pin sub D female connector with screw locking On the communication partner 25 pin sub D male connector with screw locking 3 5 7 7 5 576 76 76 576 65 75 75 65 1 1 RPPXQLFDWLRQ SDUWQHUV 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH Figure B 4 RS 232C connec...

Страница 226: ...tion between a CP 341 and an IBM Proprinter with serial interface PT 88 or IBM compatible printer For the connecting cable you will require the following female male connectors On the CP 341 side 9 pin sub D female For the IBM Proprinter 25 pin sub D male 3 5 7 7 5 1 1 76 5 65 75 75 65 3ULQWHU 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH Figure B 5 RS 232C connecting c...

Страница 227: ...tion between a CP 341 and a laser printer with serial interface PT 10 or Laserjet series II For the connecting cable you will require the following female male connectors On the CP 341 side 9 pin sub D female For the IBM Proprinter 25 pin sub D male 3 5 7 7 5 1 1 76 65 75 3ULQWHU 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH Figure B 6 RS 232C connecting cable CP 341 la...

Страница 228: ...he CP 341 20mA TTY Table B 2 Pin assignment for the 9 pin sub D female connector of the integrated interface of the CP 341 20mA TTY Female on CP 341 20mA TTY Pin Designation Input output Meaning 1 TxD Output Transmit data 2 20 mA Input 24 V ground 3 20 mA I1 Output 20mA current generator 1 4 20 mA I2 Output 20mA current generator 2 5 RxD Input Receive data 6 7 8 RxD Output Receive data 5 4 3 2 1 6...

Страница 229: ...mmunication partner may have to be connected to open circuit potential Please note that you must only use shielded connector casings A large surface area of both sides of the cable shield must be in contact with the connector casing You are advised to use Siemens V42 254 shielded connector casings CAUTION Never connect the cable shield with the GND as this could destroy the interface modules In th...

Страница 230: ... male connector with screw locking On the communication partner 9 pin sub D male connector with screw locking 3 6HQGHU 5 7 5 7 P P P P 7 5 7 5 9 9 RPPXQLFDWLRQ SDUWQHUV 5HFHLYHU 5HFHLYHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH Figure B 8 20mA TTY connecting cable CP 341 CP 340 CP 341 CP 441 The cable is available under the order number 6ES7902 2 specified in appendix Accessories and order...

Страница 231: ...44 CP 524 CPU 928B CPU 945 or CPU 948 For the connecting cables you will require the following male connectors On the CP 341 side 9 pin sub D male connector with screw locking On the communication partner 25 pin sub D male connector with screw locking 3 P 7 5 7 5 P 7 5 P 5 9 P 9 7 RPPXQLFDWLRQ SDUWQHUV 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH DEOH VKLHOG Figure B 9...

Страница 232: ...CP 341 and a CP 523 For the connecting cables you will require the following male connectors On the CP 341 side 9 pin sub D male connector with screw locking On the communication partner 25 pin sub D male connector with screw locking 3 P 7 5 7 5 P 7 5 P 5 9 P 9 7 RPPXQLFDWLRQ SDUWQHUV 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH DEOH VKLHOG Figure B 10 20mA TTY connect...

Страница 233: ... between a CP 341 and a CP 521 SI CP 521 BASIC For the connecting cables you will require the following male connectors On the CP 341 side 9 pin sub D male connector with screw locking On the communication partner 25 pin sub D male connector with screw locking 3 6HQGHU 6HQGHU P 7 5 7 5 P 7 5 P 5 9 P 9 7 RPPXQLFDWLRQ SDUWQHUV 5HFHLYHU 5HFHLYHU QFORVXUH VKLHOG QFORVXUH VKLHOG 6KLHOG Figure B 11 20mA...

Страница 234: ...P 341 and a CPU 944 AG 95 For the connecting cables you will require the following male connectors On the CP 341 side 9 pin sub D male connector with screw locking On the communication partner 15 pin sub D male connector with screw locking 3 P 7 5 7 5 P 7 5 P 5 9 6FKLUP P 9 7 RPPXQLFDWLRQ SDUWQHUV 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH Figure B 12 20mA TTY connec...

Страница 235: ...de 5 6 7 8 GND Functional ground isolated 9 T B Output Send data four wire mode 10 11 R B T B Input Input output Receive data four wire mode Receive send data two wire mode 12 13 14 15 View from the front Connecting cables If you make your own connecting cables you must remember that unconnected inputs at the communication partner may have to be connected to open circuit potential Please note that...

Страница 236: ...e connector with screw locking On the communication partner 15 pin sub D male connector with screw locking 3 6KLHOG 7 5 7 5 5 7 5 7 1 1 7 7 DQG 5 5 RPPXQLFDWLRQ SDUWQHUV 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH WZLVWHG SDLU RU OLQH OHQJWKV RI PRUH WKDQ P RX ZLOO KDYH WR ZHOG LQ D WHUPLQDWLQJ UHVLVWRU RI DSSUR LPDWHO വ RQ WKH UHFHLYHU HQG IRU WURXEOH IUHH GDWD WUDII...

Страница 237: ... following male connectors On the CP 341 side 15 pin sub D male connector with screw locking On the communication partner 15 pin sub D male connector with screw locking 3 7 7 7 7 5 5 5 5 1 1 6KLHOG 5 5 WZLVWHG RPPXQLFDWLRQ SDUWQHUV 6HQGHU 5HFHLYHU 6HQGHU 5HFHLYHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH RU OLQH OHQJWKV RI PRUH WKDQ P RX ZLOO KDYH WR ZHOG LQ D WHUPLQDWLQJ UHVLVWRU RI DSSUR LPDWHO ...

Страница 238: ...the following male connectors On the CP 341 side 15 pin sub D male connector with screw locking On the communication partner 15 pin sub D male connector with clip fixing 3 6KLHOG 7 5 7 5 5 7 5 7 1 1 7 7 DQG 5 5 RPPXQLFDWLRQ SDUWQHUV 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU QFORVXUH VKLHOG QFORVXUH VKLHOG DEOH W SH WZLVWHG SDLU RU OLQH OHQJWKV RI PRUH WKDQ P RX ZLOO KDYH WR ZHOG LQ D WHUPLQDWLQJ UHVLVWRU RI...

Страница 239: ...s are available in the commonly preferred lengths 5 m 10 m and 50 m Table C 2 Order numbers of the connecting cables Connecting cables for CP 341 CP 340 CP 341 CP 341 CP 341 CP 441 Version Order number RS 232C 5 m 6ES7902 1AB00 0AA0 RS 232C 10 m 6ES7902 1AC00 0AA0 RS 232C interface RS 232C 15 m 6ES7902 1AD00 0AA0 20mA TTY 5 m 6ES7902 2AB00 0AA0 20mA TTY 10 m 6ES7902 2AC00 0AA0 20mA TTY interface 2...

Страница 240: ... and order numbers CP 341 Point to Point Communication Installation and Parameter Assignment 240 Manual 09 2008 A5E02191071 01 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 241: ...tions http support automation siemens com W W view en 18652631 This STEP 7 manual explains the principles behind the use and functions of the STEP 7 automation software It will provide both first time users of STEP 7 and those with knowledge of STEP 5 with an overview of the procedures for configuring programming and starting up an S7 300 400 When working in the software users can access the relev...

Страница 242: ... The manuals feature both instructions for users and language descriptions If you are using the language for the first time we recommend that you refer to the manual in order to familiarize yourself with the programming methodology When working with the software you can also use the online help with the exception of HiGraph to access detailed information about using editors and compilers Reference...

Страница 243: ...e blocks which are supplied with updated valves during the calling up of the corresponding block Communication processor Communication processors are modules for point to point connections and bus connections Configuring Configuring refers to the configuration of separate modules of a programmable controller in the configuration table CP 341 programming interface Point to Point Communication param...

Страница 244: ...fault setting The default setting is a reasonable basic setting that can be used whenever no other value is specified Diagnostic buffer Each CPU has its own diagnostic buffer in which detailed information on all the diagnostic events are entered in the sequence in which they occur The CP 341 has its own diagnostic buffer in which all the diagnostic events of the CP 341 are entered hardware firmwar...

Страница 245: ... block Interrupt Interrupt is a term that designates the interruption of the processing of a program in the processor of a programmable controller by an external alarm Module Modules are pluggable PCBs for programmable controllers Module parameters Module parameters are values with which the behavior of the module can be set There are two different types of module parameters static and dynamic Onl...

Страница 246: ...e between a programmable controller and a communication partner Procedure Procedure refers to the process of a data transmission according to a specific protocol Process image The process image is a special memory area in the programmable controller At the start of the cyclic program the signal states of the input modules are transmitted to the process image of the inputs At the end of the cyclic ...

Страница 247: ...em function blocks System function blocks SFBs System functions are blocks without memory that are already integrated into the operating system of the CPU and can be called up by the user whenever necessary System functions SFCs System functions are blocks without memory that are already integrated into the operating system of the CPU and can be called up by the user whenever necessary User progra...

Страница 248: ...Glossary CP 341 Point to Point Communication Installation and Parameter Assignment 248 Manual 09 2008 A5E02191071 01 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 249: ... Checksum 39 Bus connector for the S7 backplane bus 21 BUSY signal 78 C Calling the SFCERR variable 199 Character delay time 32 81 88 Character frame 31 82 89 Code transparency 64 Command message frame 50 Communication via function blocks 127 Connecting cables 221 Connection attempts 81 Continuation message frame 50 Continuation SEND message frames 55 CP 341 communications processor 17 CPU RUN 184...

Страница 250: ...ks FB 7 P_RCV_RK 153 Function blocks FB 8 P_SND_RK 157 Functionality of the CP 341 17 Functions FC 5 V24_STAT 162 FC 6 V24_SET 164 G Group error display SF 186 Group error displays 186 H Half duplex mode 30 Handshaking 74 Hardware components 22 I Indicator for end of receive message frame 88 Initialization 182 Initialization conflict 45 Interface 20 mA TTY 228 Possible applications 18 RS 232C 24 2...

Страница 251: ...rocessor communication flag 140 Partner requests 61 RK 512 Transmission process 60 RK 512 FB 8 P_SND_RK 140 RK 512 computer link Command message frame 50 51 Fetching data 56 Response message frame 50 52 Sending data 53 RS 232C Accompanying signals 71 Accompanying signals automatic control 72 Controlling accompanying signals 71 RS 232C accompanying signals Controlling 163 RS 232C interface 221 RS 2...

Страница 252: ...2008 A5E02191071 01 with ASCII driver 36 with the RK 512 37 Transmission Rates 3964 R procedure 218 ASCII driver 218 RK 512 computer link 219 U Uses of the CP 341 18 X X27 RS 422 485 interface 235 Properties 26 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 253: ...CP 341 Point to Point Communication Installation and Parameter Assignment Manual 09 2008 A5E02191071 01 253 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Отзывы: