background image

Basic Principles of Serial Data Transmission 

 

2.4 Data Transmission with the ASCII Driver 

 

Point-to-point connection CP 440 Installation and Parameter Assignment 

34

 

Manual, 09/2007, A5E00057742-03 

End Criterion "Expiration of Character Delay Time"  

When data is received, the end of the message frame is recognized when the character 

delay time expires. The received data is accepted from the CPU. 
In this case the character delay time must be set such that it easily expires between two 

consecutive message frames. But it should be long enough so that the end of the message 

frame is not falsely identified whenever the partner in the link takes a send pause within a 

message frame. 
The figure below illustrates a receive operation with the end criterion "expiry of character 

delay time". 

:DLWLQJIRU

FKDUDFWHU

&KDUDFWHU
DUULYHG

&KDUDFWHUUHFHLYHG

ZLWKFKDUDFWHU

GHOD\WLPHPRQLWRULQJ

0HVVDJHIUDPH

HQWHUHGLQUHFHLYH

EXIIHU

(UURUHQWHUHGLQWKH

67$786RXWSXWRI

WKH)%

:DLWLQJIRUFKDUDFWHU
GHOD\WLPH5HFHLYHG

FKDUDFWHUVGLVFDUGHG

(UURUZKHQUHFHLYLQJQRWD
FKDUDFWHUGHOD\WLPHHUURU

0HVVDJHIUDPH
FRPSOHWHFKDUDFWHU
GHOD\WLPHH[SLUHG

0

H

V

V

D

J

HI

UD

P

HE

X

II

H

UH

G

(Q

GF

UL

WH

UL

R

QI

R

UP

H

V

V

D

J

HI

UD

P

HL

G

H

Q

WL

IL

H

GH

UU

R

UH

Q

WU

\I

R

OOR

Z

V

 

Figure 2-5 

Sequence of Receive Operation with End Criterion "Expiration of Character Delay Time" 

 

该文档

极速PDF

编辑器生成

如果想去掉该提示,请

访问并下载

http://

www.jisupdfeditor.com/

长沙工控帮教育科技有限公司

www.gkbpx.com

Содержание SIMATIC S7-400 CP 440

Страница 1: ...stics and Operating Mode Transitions of the CP 440 7 Diagnostics with the CP 440 8 Programming Example for Standard Function Blocks 9 Technical Specifications A Cables B Accessories and Order Numbers C Literature D SIMATIC S7 400 SIMATIC S7 400 Point to point connection CP 440 Installation and Parameter Assignment 09 2007 A5E00057742 03 Manual 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor ...

Страница 2: ...em may only be performed by qualified personnel Within the context of the safety notes in this documentation qualified persons are defined as persons who are authorized to commission ground and label devices systems and circuits in accordance with established safety practices and standards Prescribed Usage Note the following WARNING This device may only be used for the applications described in th...

Страница 3: ...jects are covered The basics of point to point communication with the CP 440 Commissioning the CP 440 Mounting the CP 440 Communication via the CP 440 Troubleshooting Application examples Properties and technical specifications Scope of the manual This manual is valid for the CP 440 with X27 RS 422 485 interface order number 6ES7 440 1CS00 0YE0 as of version 01 Note The description of the CP 440 c...

Страница 4: ...c tech doku portal The online catalog and online ordering system can be found at http mall automation siemens com Training Center We offer a range of courses to help get you started with the S7 automation system Please contact your local training center or the central training center in Nuremberg D90327 Germany Phone 49 911 895 3200 Internet http www sitrain com Technical Support You can reach the...

Страница 5: ...products The right documents via our search function in Service Support A forum where users and experts from all over the world exchange their experiences Your local representative for Automation Drives from our contact database Information on field service repairs spare parts Much more is available under the heading Services 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 ...

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

Страница 7: ...o Point Connection 25 2 3 Transmission integrity 27 2 4 Data Transmission with the ASCII Driver 30 2 4 1 Data Transmission with the ASCII Driver 30 2 4 2 Sending Data with the ASCII Driver 31 2 4 3 Receiving Data with the ASCII Driver 33 2 4 4 Topologies Between the Communication Partners 40 2 5 Data Transmission with the 3964 R Procedure 43 2 5 1 The Control Characters of the 3964 R Procedure 43 ...

Страница 8: ...440 FB 90 6 3 2 S7 Receives Data from a Communication Partner 9 RECV_440 FB 94 6 3 3 Deleting the Receive Buffer 11 RES_RECV FB 98 6 4 Programming the Function Blocks 101 6 4 1 General Information on Data Block Assignment 101 6 4 2 Supplying the block parameters 103 6 5 General Information on Program Processing 107 6 6 Technical Specifications of the Function Blocks 108 7 Startup Characteristics a...

Страница 9: ...ECV Program Example 133 9 6 2 CP440 1 CYC Program Example 134 9 6 3 CP440 ASCII BCC Program Example 135 9 6 4 CP440 MASTER Program Example 136 9 6 5 CP440 SLAVE Program Example 136 A Technical Specifications 137 A 1 Technical Specifications of the CP 440 137 A 2 Transmission Rates 141 B Cables 143 B 1 X27 RS 422 485 Interface of the CP 440 143 B 2 Cables 144 C Accessories and Order Numbers 149 C 1...

Страница 10: ... on CP ASCII Driver 73 Table 5 9 X27 RS 422 485 Interface ASCII Driver 74 Table 5 10 3964 R Protocol 76 Table 5 11 Protocol Parameters 3964 R Procedure 77 Table 5 12 Baud Rate Character Frame 3964 R Procedure 78 Table 5 13 Receive buffer on CP 3964 R procedure 79 Table 5 14 X27 RS 422 Interface 3964 R procedure 79 Table 5 15 LEDs for firmware update 84 Table 6 1 Function Blocks of the CP 440 86 Ta...

Страница 11: ...ce 139 Table A 2 Technical Specifications of the 3964 R Procedure 139 Table A 3 Technical Specifications of the ASCII Driver 140 Table A 4 Transmission Times with the ASCII Driver in ms 141 Table A 5 Transmission Times with the 3964 R Procedure in ms 141 Table B 1 Pin Assignment for the 15 Pin Subminiature D Female Connector of the Integrated Interface of the CP 440 143 Table C 1 Order Numbers of ...

Страница 12: ... Flow diagram of receiving with the 3964 R procedure part 1 50 Figure 2 17 Flow diagram of receiving with the 3964 R procedure part 2 51 Figure 2 18 Data traffic when receiving corrupt data 53 Figure 2 19 Data traffic during an initialization conflict 54 Figure 2 20 Flow diagram of the startup of the 3964 R procedure 55 Figure 5 1 Wiring of the Recipient at the X27 RS 422 485 Interface ASCII Drive...

Страница 13: ...cation processor provides the following functionality An integrated MPI Multipoint X27 RS422 485 interface A maximum transmission length of 400 bytes Page 86 A transmission rate of up to 115 2 kbps full duplex Integration of the most important transmission protocols in the module firmware ASCII driver 3964 R Procedure Customization of the transmission protocols by means of parameter assignment wit...

Страница 14: ...742 03 Functions Supported by the Interfaces Table 1 1 Functions of the CP 440 Function CP 440 RS 422 RS 485 3964 R Procedure Yes No ASCII driver Yes Yes XON XOFF flow control Yes No The RS 422 and RS 485 are distinguished by their parameter configuration 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 15: ...ections of the S7 400 Power supply module PS converts the line voltage 120 230 V AC or 24 V DC into the operating voltage of 24 V and 5 V DC required to supply the S7 400 Central processor unit CPU Some CPU versions cannot be used with the CP 440 Accessories Memory card backup battery executes the user program communicates via the MPI interface with other CPUs or with a programming device CP 440 c...

Страница 16: ...0 Function blocks FBs with programming examples control communication between the CPU and the CP 440 1 2 3 Incompatible CPU versions CPU versions The CP 440 can be operated with all CPU versions except the CPUs listed in the tables below Table 1 4 CPU Versions with Which the CP 440 Can Be Used as of the Version Indicated CPU MLFB CPU 412 1 6ES7 412 1XF01 0AB0 Release 5 CPU 413 1 6ES7 413 1XG01 0AB...

Страница 17: ... 09 2007 A5E00057742 03 17 Table 1 5 CPU Versions with Which the CP 440 Cannot be Used CPU MLFB CPU 412 1 6ES7 412 1XF00 0AB0 CPU 413 1 6ES7 413 1XG00 0AB0 CPU 413 2 6ES7 413 2XG00 0AB0 CPU 414 1 6ES7 414 1XG00 0AB0 CPU 414 2 with 128k 6ES7 414 2XG00 0AB0 CPU 416 1 6ES7 416 1XJ00 0AB0 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 18: ...egrated serial X27 RS422 485 interface Position of Operator Control and Display Elements The figure shows the arrangement of the controls and indicators on the front panel of the CP 440 communication processor 3 17 7 8 7 7 5 9 LUPZDUH YHUVLRQ QWHJUDWHG 56 LQWHUIDFH Figure 1 1 Arrangement of the Controls and Indicators on the CP 440 Communication Processor 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www ji...

Страница 19: ...t FAULT red Fault LED for interface TXD green interface sends RXD green interface receives Base Connector for S7 Backplane Bus On the back panel of the CP 440 you will find the base connector for the S7 400 backplane bus The S7 400 backplane bus is a serial data bus via which the CP 440 communicates with the modules of the programmable controller See also Features of the X27 RS 422 485 Interface P...

Страница 20: ...ollowing requirements Type Differential voltage interface Front connector 15 pin sub D female with screwed interlock Max transmission rate 115 2 Kbps Max cable length 1200 m at 19200 Bps Standard DIN 66259 Parts 1 and 3 EIA RS 422 485 CCITT V 11 Note With the RK 512 and 3964 R protocols the X27 RS 422 485 interface submodule can only be used in four wire mode Cables Siemens offers standard cables ...

Страница 21: ... between a programmable controller and a communication partner In PtP communication with communication processor data are transferred via serial interface Serial Transmission In serial transmission the individual bits of each byte of information are transmitted one after the other in a fixed order Drivers for Bidirectional Data Traffic The CP 440 itself handles data transmission with communication...

Страница 22: ...data can be sent and received at the same time Every communication partner must be able to operate a send and a receive facility simultaneously Only half duplex mode can be used with an RS 485 2 wire setting Asynchronous Data Transmission With the communication processor serial transmission occurs asynchronously The so called time base synchronism a fixed timing code used in the transmission of a ...

Страница 23: ...t are not supported You can set the desired format for data transmission with the programming interface CP 440 Point to Point Communication Parameter Assignment interface By way of example the figure below shows the two data formats of the 10 bit character frame GDWD ELWV VWDUW ELW GDWD ELWV SDULW ELW VWRS ELW GDWD ELWV VWDUW ELW GDWD ELWV VWRS ELW 6LJQDO VWDWH ಯ ರ 6LJQDO VWDWH ಯ ರ 6LJQDO VWDWH ಯ ...

Страница 24: ... 2007 A5E00057742 03 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 6LJQDO 7LPH W KDUDFWHU GHOD WLPH QWK FKDUDFWHU Q WK FKDUDFWHU Figure 2 2 Character Delay Time 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 25: ...ion All communication partners must adhere to a fixed set of rules for handling and implementing data traffic Such rules are called protocols A protocol defines the following Operating mode Half duplex or full duplex operation Initiative Which communication partners can initiate data transmission and under what conditions Control characters Which control characters are to be used for data transmis...

Страница 26: ...4 Transport layer Error recognition procedure Debugging Handshaking 5 Session layer Establishing communication Communication control Terminating communication 6 Presentation layer Conversion of the standard form of data representation of the communication system into a device specific form data interpretation rules 7 Application layer Defining the communication task and the functions it requires P...

Страница 27: ...transmission integrity Classifying the Supplied Protocols The CP 440 can use the following protocols ASCII driver 3964 R Procedure The figure below illustrates how these protocols of the CP 440 fit into the ISO reference model 5 D HU D HU 7KH GDWD E WHV DUH WUDQVPLWWHG ZLWK 5 6WDUW DQG VWRS ELWV DUH DGGHG LQ WKH HYHQW RI DQ HUURU WKH WUDQVPLVVLRQ PD EH UHSHDWHG 7KH SK VLFDO WUDQVPLVVLRQ RI WKH GDW...

Страница 28: ...res must be implemented by the user A further increase in data integrity can be achieved by means of acknowledgment message frames in response to send or receive message frames This is the case with high level protocols for data communication see ISO 7 layer reference model Transmission integrity with 3964 R Enhanced Data Integrity with the 3964 R Procedure The Hamming distance with the 3964 R is ...

Страница 29: ...owledgment mechanism The block check of the 3964R procedure EXOR operation cannot detect missing zeros as a whole character because a zero in the EXOR operation does not affect the result of the calculation Although the loss of an entire character this character has to be a zero is highly unlikely it could possibly occur under very bad transmission conditions You can protect a transmission against...

Страница 30: ...able ASCII characters as well as all other characters from 00 through FFH with 8 data bit character frames or from 00 through 7FH with 7 data bit character frames to be sent and received Both RS422 and RS485 operation are possible RS422 Operation In RS422 operation the data is transmitted via four cables four wire mode Two cables differential signal are available for the send direction and two for...

Страница 31: ... append the end of text character or characters Data is sent up to the length configured at the FB The end of text character s is are automatically appended in other words the end of text characters must not be included in the data to be sent 1 or 2 characters more than the number specified at the FB are sent to the partner depending on the number of end of text characters When you work with the e...

Страница 32: ...2 Manual 09 2007 A5E00057742 03 Send Operation The figure below illustrates a send operation 6HQG MRE DUULYHG DLWLQJ IRU VHQG MRE 6HQGLQJ XVHU GDWD 7KH DPRXQW RI GDWD WR EH VHQW LV WDNHQ IURP WKH 1 SDUDPHWHU RI WKH VHQG MRE RE SURFHVVHG Figure 2 4 Sequence of a send operation 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 33: ... by a pause on the line expiration of character delay time On receipt of end character s The end of the message frame is marked by one or two defined end of text characters On 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 configured end criterion and flow control W...

Страница 34: ...dentified whenever the partner in the link takes a send pause within a message frame The figure below illustrates a receive operation with the end criterion expiry of character delay time DLWLQJ IRU FKDUDFWHU KDUDFWHU DUULYHG KDUDFWHU UHFHLYHG ZLWK FKDUDFWHU GHOD WLPH PRQLWRULQJ 0HVVDJH IUDPH HQWHUHG LQ UHFHLYH EXIIHU UURU HQWHUHG LQ WKH 67 786 RXWSXW RI WKH DLWLQJ IRU FKDUDFWHU GHOD WLPH 5HFHLYHG...

Страница 35: ...or message is issued and the message frame fragment is discarded If you are working with end of text characters transmission is not code transparent and you must make sure that the end code s are not 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 characte...

Страница 36: ...KDUDFWHU UHFHLYHG ZLWK HQG FRQWURO DQG FKDUDFWHU GHOD WLPH 0HVVDJH IUDPH HQWHUHG LQ UHFHLYH EXIIHU 0HVVDJH IUDPH FRPSOHWH KDUDFWHU DUULYHG SLUDWLRQ RI WKH PRQLWRULQJ WLPH DLWLQJ IRU YDOLG HQG FRGH UURU HQWHUHG LQ WKH 67 786 RXWSXW RI WKH UURU ZKHQ UHFHLYLQJ 0HVVDJH IUDPH EXIIHUHG QG FULWHULRQ IRU PHVVDJH IUDPH LGHQWLILHG HUURU HQWU IROORZV Figure 2 6 Sequence of receive operation with End of Text ...

Страница 37: ...ote the following if the message frame length of the received characters does not match the configured fixed message frame length Message frame length of received characters greater than configured fixed message frame length All characters received after the parametered fixed message frame length is reached Is discarded if the monitoring time expires at the end of the message frame Is merged with ...

Страница 38: ...FHLYHG ZLWK OHQJWK FRQWURO DQG FKDUDFWHU GHOD WLPH 0HVVDJH IUDPH HQWHUHG LQ UHFHLYH EXIIHU 0HVVDJH IUDPH FRPSOHWH KDUDFWHU DUULYHG SLUDWLRQ RI WKH PRQLWRULQJ WLPH DLWLQJ IRU SDUDPHWHUL HG QXPEHU RI FKDUDFWHUV UURU HQWHUHG LQ WKH 67 786 RXWSXW RI WKH UURU ZKHQ UHFHLYLQJ 0HVVDJH IUDPH EXIIHUHG QG FULWHULRQ IRU PHVVDJH IUDPH LGHQWLILHG HUURU HQWU IROORZV Figure 2 7 Sequence of receive operation with ...

Страница 39: ...fore it receives the most recent one The old message frames are those on their way when transmission between the CP 440 and the CPU was interrupted or which had already been received by the FB Handshaking Handshaking controls the data flow between two communication partners Handshaking ensures that data is not lost in transmissions between devices that work at different speeds Software handshaking...

Страница 40: ...t and Several nodes multipoint In these cases the CP 440 can be used as Master or Slave Figure 2 8 RS 422 Point to Point Figure 2 9 RS 485 Point to Point In the case of a master slave topology there must be an appropriate message frame in the user program Example The master sends all the slaves a message frame with address information All the slaves listen in and compare the address with their own...

Страница 41: ...logy in RS422 operation The master s sender is interconnected with the receivers of all the slaves The slaves senders are interconnected with the master s receiver Only the receiver of the master and the receiver of one slave have a default setting All the other slaves function without default settings 0DVWHU 6ODYH 6ODYH 6ODYH Figure 2 10 RS 422 Multipoint 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www j...

Страница 42: ...lt setting All the other modules function without default settings 0DVWHU 6ODYH 6ODYH 6ODYH Figure 2 11 RS 485 Multipoint The settings required for the different topologies can be made in the parameter assignment interface in the Interface dialog box Note When you run the ASCII driver in RS422 multipoint or RS485 mode you must take steps in the user program to ensure that only one node sends data ...

Страница 43: ...ether the data has arrived complete and without errors The Control Characters The 3964 R procedure analyzes the following control codes STXStart of Text start of character string for transfer DLEData Link Escape data connection escape ETXEnd of Text end of character string for transfer BCCBlock Check Character 3964R only NAKNegative Acknowledge Note If DLE is transmitted as an information string i...

Страница 44: ...haracter BCC ൺ 25 25 25 25 ൺ ൺ ൺ ൺ ൺ ൺ 67 7 DWD 0HVVDJH IUDPH Figure 2 12 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...

Страница 45: ...sending with the 3964 R procedure Establishing a Send Connection To establish the connection the 3964 R procedure sends the control code STX If the communication partner responds with the DLE code before the acknowledgment delay time expires the procedure switches to send mode If the communication partner answers with NAK or with any other control code except for DLE or STX or the acknowledgment d...

Страница 46: ... sends the NAK code to change the mode of the communication partner to idle Then the procedure starts to send the data again with the connection setup STX Releasing a Send Connection Once the contents of the buffer have been sent the procedure adds the codes DLE ETX and in the case of 3964 R only the block checksum BCC as the end code and waits for an acknowledgment code If the communication partn...

Страница 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 Figure...

Страница 48: ... a single NAK to the communication partner to set the latter to idle Establishing a Receive Connection In idle mode when there is no send request to be processed the procedure waits for the communication partner to establish 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...

Страница 49: ...ived 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 aborts the receive operation The CP 440 reports the first failed transmission and the final abortion of the receive operation to the RECV_440 function block STATUS output parameter Releasing a Receive Co...

Страница 50: ...tes 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 16 Flow diagram of receiving with the 3964 R procedure part 1 该文档是极速PDF编辑器生成 如果想去掉该提示 请...

Страница 51: ...HLYH 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 ...

Страница 52: ...er 6 The receive buffer on the CP 440 is a ring buffer If several message frames are entered in the receive buffer of the CP 440 the following applies it is always the oldest one that is sent from the CP 440 to the CPU If you only ever want to send the most recent message frame to the CPU you must set the value 1 for the number of buffered message frames and deactivate the overwrite protection Not...

Страница 53: ...HWXS 8VHU GDWD RQQHFWLRQ FOHDUGRZQ 5HFHLYLQJ GDWD 1HZ VHWXS DWWHPSW Figure 2 18 Data traffic when receiving corrupt data When DLE ETX BCC is received the CP 440 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 440 responds with DLE Otherwise the CP 440 responds with an NAK and waits the block wait ...

Страница 54: ...UGRZQ 3 ORZ SULRULW Figure 2 19 Data traffic during an initialization conflict If a device responds to the communication partner s send request code STX within the acknowledgment delay time by sending the code STX instead of the acknowledgment DLE or NAK an initialization conflict occurs Both devices want to execute a send request The device with the lower priority withdraws its send request and r...

Страница 55: ...pts compensates for this 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 The disturbance could also be caused however by a malfunction on the part of the communication partner If BREAK occurs on the receive line receive line interrupted an error is displ...

Страница 56: ...sion 2 5 Data Transmission with the 3964 R Procedure Point to point connection CP 440 Installation and Parameter Assignment 56 Manual 09 2007 A5E00057742 03 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 57: ...n Partner The connection to your communication partner is made using the cable Configuring the Communication Processor The CP configuration includes its entry in the configuration table Configure your communication processor using the STEP 7 software Assigning the Communication Processor Parameters Assigning parameters to the communication processor involves creating the specific parameters of the...

Страница 58: ...eed as follows 1 What might be the possible cause Is the polarity of the send receive lines reversed Are the default settings correct Several defaults may have been set with different polarity The default settings may already be integrated in the device on a permanent basis Missing or wrong terminating resistors High byte and low byte mixed in the security word e g CRC 2 How to proceed First of al...

Страница 59: ...ault settings all options with an appropriate communication attempt If not OK change the connections back and change the default settings all options Check the security word e g CRC When setting up again don t forget to put back the terminating resistors you removed 5 Additional tips If possible connect an interface tester possibly the V 24 RS22 485 converter to the cable Check the signal level us...

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

Страница 61: ...stem Positioning the CP in the Rack The communication processor can be plugged into any slot in the rack with the following exception In all racks the power supply module occupies slots 1 to 3 depending on the width Further Information Further information about the topic of racks is availabl3e in the installation manual S7 400 M7 400 Programmable Controllers Installation 该文档是极速PDF编辑器生成 如果想去掉该提示 请访...

Страница 62: ...or must be programmed The CP 440 is configured automatically when it is plugged in The CP 440 then resumes operation Installation Guidelines The general installation guidelines for S7 400 must be observed see the S7 400 M7 400 Programmable Controller Hardware and Installation manual To meet the EMC electromagnetic compatibility values the cable shield must be connected to a shield bus 4 2 1 Instal...

Страница 63: ...9 2007 A5E00057742 03 63 4 2 2 Removal steps To remove the communication processor from the rack proceed as follows 1 Undo the screws at the top and bottom of the module 2 Tilt the module upward and remove it 3 Replace the filler panel over the empty slot 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

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

Страница 65: ... interface Table 5 1 Configuration Options for the CP 440 Product Order Number Configurable using the parameter assignment tool under STEP 7 CP 440 6ES7 440 1CS00 0YE0 As of version 5 1 As of version 4 0 2 Configuration Once you have mounted the communication processor you must inform the programmable controller that it is there This process is known as configuration In the following configuration...

Страница 66: ... 2 Installing the Programming Interface Installation The CP 440 Point to Point Communication Parameter Assignment interface is supplied together with the function blocks and the programming examples on a CD To install the engineering tool 1 Insert the CD into the CD drive of your programming device PC 2 Under Windows 95 NT or Windows 98 start the dialog for installing software by double clicking t...

Страница 67: ...tion table or by selecting the CP 440 and selecting the Edit Object Properties menu command The Properties CP 440 dialog box appears Click on the Parameters button to go to protocol selection Set the protocol and double click the icon for the transmission protocol an envelope This takes you to the dialog for setting the protocol specific parameters Further Information The basic operation of the Po...

Страница 68: ...he configuration table of STEP 7 The basic parameters are described in the table below Table 5 2 Basic Parameters of the CP 440 Parameters Description Value Range Default Value Reaction to CPU Stop This parameter controls the storage of the received frames in the receive buffer You can find more detailed information in the following tables Continue STOP The transmission process is terminated in bo...

Страница 69: ...action to CPU Stop Continue Retained Saved flow control is activated if the buffer is full Saved flow control is activated if the buffer is full Reaction to CPU Stop STOP Retained Further data cannot be received because flow control is activated Further data cannot be received because flow control is activated See also Configuration Data of the 3964 R Procedure Page 76 Managing the Parameter Data ...

Страница 70: ...S 422 and two wire mode RS 485 At parameter assignment you must specify the type of interface RS 422 or RS 485 Protocol Parameters The table below describes the protocol parameters Table 5 5 Protocol Parameters ASCII Driver Parameters Description Value Range Default Value Indicator for end of receive message frame Defines which criterion signals the end of each message frame After expiration of th...

Страница 71: ... of text character 2 1 Second end code if specified You can configure the following for the end code 1stend code AND 2nd end code 1st end code OR 2nd end code with 7 data bits 0 to 7FH Hex 2 with 8 data bits 0 to FFH hex 2 0 Message frame length when received 1 When the end criterion is fixed message frame length the number of bytes making up a message frame is defined 1 to 400 bytes 200 Transmiss...

Страница 72: ...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 onto which a character is mapped 7 8 8 Stop bits During transmission stop bits are appended to every character to be sent indicating the end of the character 1 2 1 Parity A sequence of information bits can be extended to include another bit the parity bit The additi...

Страница 73: ...s 1 Only for data flow control with XON XOFF 2 Depending on whether you set 7 or 8 data bits for the character frame Receive Buffer on CP The following table describes the parameters for the CP receive buffer Table 5 8 Receive Buffer on CP ASCII Driver Parameters Description Value Range Default Value Delete CP receive buffer at startup During power up or during transition of the CPU from STOP to R...

Страница 74: ...ultipoint communication in four wire mode if the CP is a master Full Duplex RS 422 Four Wire Mode Multipoint Slave Operating mode for multipoint communication in four wire mode if the CP is a slave Half Duplex RS 485 Two Wire Mode Operating mode for point to point or multipoint communication in two wire mode The CP can be a master or slave Full Duplex RS 422 Four Wire Mode Point to Point Initial s...

Страница 75: ...tial State of Receive Line The figure illustrates the wiring of the recipient at the X27 RS 422 485 interface 9 9 9 9 5 5 ದ 5 5 ದ 5 5 ದ 5 9 5 9 5 9 5 9 QRQH Figure 5 1 Wiring of the Recipient at the X27 RS 422 485 Interface ASCII Driver See also Data Transmission with the ASCII Driver Page 30 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 76: ...0 recognizes the string DLE ETX BCC it stops receiving and compares the received block check character with the longitudinal parity calculated internally If the BCC is correct and no other receive errors have occurred the CP 440 sends the code DLE to the communication partner If the BCC is correct and no other receive errors have occurred the CP 440 sends the code DLE to the communication partner ...

Страница 77: ...0 ms 20 ms to 65535 ms in 10 ms increments The shortest acknowledgment delay time ADT depends on the baud rate Acknowledgement delay time ADT The acknowledgment delay time defines the maximum amount of time permitted for the partner s acknowledgment to arrive during connection setup time between STX and partner s DLE acknowledgment or release time between DLE ETX and partner s DLE acknowledgment 3...

Страница 78: ...appended to every character to be sent indicating the end of the 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 status thus enhancing parity A parity of none means that no parity bit is sent It is not possible to specify none if 7 data bits are set none odd...

Страница 79: ...ate the following parameter prevent overwrite and cyclically read the received data from the user program a current message frame will always be sent to the CPU 1 to 10 Use whole buffer Use whole buffer Prevent overwrite You can use this parameter to prevent data in the receive buffer being overwritten when the buffer is full Yes No Yes Initial state of receive line The table below contains a desc...

Страница 80: ...2007 A5E00057742 03 Wiring of the recipient at the X27 interface The figure below shows the wiring of the recipient at the X27 RS 422 interface 9 9 9 9 5 5 ದ 5 5 ದ 5 5 ದ 5 9 5 9 5 9 5 9 QRQH Figure 5 2 Wiring of the recipient at the X27 RS 422 interface 3964 R procedure 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 81: ...iguration and configuration data to the CPU from the programming device by selecting PLC Download The CPU accepts the parameters immediately after the download The module parameters are automatically transferred to the CP 440 in the following cases When they are downloaded to the CPU and the CP 440 can be reached via the S7 400 backplane bus After power up during startup of the CPU as soon as the ...

Страница 82: ...rogramming interface The instructions accompanying the firmware update always detail the destination directories for the files The CP440 nnn path always identifies the firmware version Firmware download You upload the firmware update to the CP 440 with the aid of the CP 341 Point to Point Communication Parameter Assignment interface Proceed as follows 1 Switch the CPU to STOP mode 2 Start the para...

Страница 83: ...he new firmware is loaded into the operating system memory of the CP 440 Done shows progress in bar graph form and as a percentage The module is immediately ready for use as soon as the firmware update is completed Note Before the basic firmware is deleted from the module the CP 440 checks the MLFB No of the firmware to be downloaded in order to ensure that the firmware is suitable for the CP 440 ...

Страница 84: ...processor LEDs LEDs during the download of a firmware update Table 5 15 LEDs for firmware update Status INTF EXTF FAULT TXD RXD Remark To correct or avoid errors Firmware update in progress on on on on Firmware update completed on off off off CP 440 without module firmware flashes 2 Hz on off off Module firmware deleted firmware update was canceled firmware update still possible Reloading the firm...

Страница 85: ...ation Partner The transmission protocol conversion takes place on the CP 440 The protocol is used to adpat the interface of the CP 440 to the interface of the communication partner This enables you to link an S7 programmable logic controller with any communication partner that can handle the ASCII driver and the 3964 R procedure Calling the Function Blocks in Interrupt OBs It is not permissible to...

Страница 86: ...964 R procedure FB 11 RES_RECV The RES_RECV function block enables you to reset the receive buffer of the CP 440 ASCII driver 3964 R procedure CAUTION The maximum CP440 frame length was extended from 200 to 400 bytes Requirements To use this feature you have to first install version V5 1 7 or higher from the PtP Param see above During installation the two function blocks FB9 V1 1 RECV_440 and FB10...

Страница 87: ...and the manual The function blocks are installed together with the parameter assignment interface After installation the function blocks are stored in the CP 440 library You can open the library in STEP 7 SIMATIC Manager by selecting File Open Library under CP PTP CP 440 Blocks To work with the function blocks you only need to copy the required function block to your project See also Parameters fo...

Страница 88: ... to carry out one data transmission per cycle Program the call of the SEND_440 FB with REQ 1 this activates the FB at the end of the program This ensures optimum use of the time between two cycles which can be relatively long in a short cycle For a long cycle Call the SEND_440 and RECV_440 FBs several times throughout the program Call the SEND_440 and RECV_440 FBs in the time OB disable the interr...

Страница 89: ...ure The job was sent to the communication partner and acknowledged affirmatively by the communication partner This does not necessarily mean that the data was forwarded to the partner CPU Jobs which can be processed simultaneously Only one SEND_440 FB one RECV_440 FB and one RES_RECV FB can be programmed in the user program for each CP 440 used In addition you can only use the following data block...

Страница 90: ...ransmission is initiated by a positive edge at the REQ input A data transmission operation can run over several calls program cycles depending on the amount of data involved The FB SEND_440 function block can be called in the cycle when the signal state at the R parameter input is 1 This aborts the transmission to the CP 440 and sets the FB SEND_440 back to its initial state Data that has already ...

Страница 91: ...lt has the status 1 Note The SEND_440 function block does not have a parameter check If there are invalid parameters the CPU branches to the STOP mode Table 6 2 Block call STL representation LAD representation CALL SEND_440 I_SEND_440 REQ R LADDR DB_NO DBB_NO LEN DONE ERROR STATUS 6 1 B B6 1 B 1 5 4 5 5 B12 B12 1 12 21 5525 67 786 Note The parameters EN and ENO are only present in the graphical re...

Страница 92: ...tion Permitted Values Comment REQ INPUT BOOL Initiates request with positive edge R INPUT BOOL Aborts request Current request is aborted Sending is blocked LADDR INPUT INT Basic address of CP 440 The basic 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 Transmitted data as of data word Offset...

Страница 93: ...MRE RPSOHWLRQ ZLWKRXW HUURU VW Q SDUW RI 6 1 5 6 7 WUDQVPLWWHG RPSOHWLRQ ZLWK HUURU 5 6 7 WUDQVPLWWHG RPSOHWLRQ ZLWKRXW HUURU 6 1 MRE QRW H HFXWHG VHQGLQJ GHDFWLYDWHG Figure 6 1 Time sequence chart for the 10 SEND_440 FB Note The REQ input is edge triggered A positive edge at the REQ input is adequate It is not required that the RLO result of logical operation is 1 during the whole transmission pr...

Страница 94: ...tware checks whether data can be read by the CP 440 An active transmission can be aborted with signal state 0 at the EN_R parameter The aborted receive request is terminated with an error message STATUS output Receiving is deactivated as long as the EN_R parameter has the signal state 0 A data transmission operation can run over several calls program cycles depending on the amount of data involved...

Страница 95: ... errors the binary result has the status 1 Note The RECV_440 function block does not have a parameter check If there are invalid parameters the CPU branches to the STOP mode Table 6 4 Block call STL representation LAD representation CALL RECV_440 I_RECV_440 EN_R R LADDR DB_NO DBB_NO NDR ERROR LEN STATUS 5 9B B5 9B 1 1B5 5 5 B12 B12 12 1 5 5525 1 67 786 B7 3 Note The parameters EN and ENO are only ...

Страница 96: ...n Permitted Values Comment EN_R INPUT BOOL Enables data read R INPUT BOOL Aborts request Current request is aborted Receiving is blocked LADDR INPUT INT Basic address of CP 440 The basic address can be found in the configuration table in 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 Offset is CPU specific NDR 1 OUTPUT BOOL...

Страница 97: ... wired 1B5 5 1 5 1 OHQJWK 5525 QDEOH UHFHLSW RPSOHWLRQ ZLWKRXW HUURU 5HFHLYLQJ RPSOHWLRQ ZLWK HUURU 1R UHFHLSW 5 6 7 RPSOHWLRQ ZLWKRXW HUURU 5HFHLYLQJ RPSOHWLRQ ZLWK HUURU 5HFHLYLQJ GLVDEOHG Figure 6 2 Time Sequence Chart for the 9 RECV_440 FB Note The EN_R must be set to static 1 During the receive request the EN_R parameter must be supplied with RLO 1 result of logic operation See also Diagnosti...

Страница 98: ...rror has occurred In STATUS the event number is displayed in the event of an error If no error occurs the value of STATUS is 0 DONE and ERROR STATUS are also output in response to a RESET of FB RES_RECV In the event of an error the binary result BR is reset If the block is terminated without errors the binary result has the status 1 Note The RES_REC function block does not have a parameter check I...

Страница 99: ... The following table lists the parameters of the RES_RECV FB Table 6 7 Parameters of the RES_RECV FB Name Type Data type Description Permitted Values Comment REQ INPUT BOOL Initiates request with positive edge R INPUT BOOL Aborts request Current request is aborted Sending is blocked LADDR INPUT INT Basic address of CP 440 The basic address is taken from STEP 7 DONE 1 OUTPUT BOOL Request completed ...

Страница 100: ...and R inputs are wired 5 4 5 21 5525 HOHWLQJ WKH UHFHLYH EXIIHU RPSOHWLRQ ZLWKRXW HUURU 5 6 7 WUDQVPLWWHG RPSOHWLRQ ZLWK HUURU 5 6 7 WUDQVPLWWHG RPSOHWLRQ ZLWKRXW HUURU RE QRW H HFXWHG Figure 6 3 Time Sequence Chart for the 11 RES_RECV FB Note The REQ input is edge triggered A positive edge at the REQ input is adequate It is not required that the RLO result of logical operation is 1 during the who...

Страница 101: ...portant information on 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 4 Contrasting Data Addressing in STEP 5 and STEP 7 The address of a data word in STEP 7 is doubled compared to ...

Страница 102: ... 102 Manual 09 2007 A5E00057742 03 Examples The STEP 5 data operands in the left column of the table become the STEP 7 data operands in the right 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 ...

Страница 103: ...ameters accept both constants and variables so the distinction between direct and indirect parameter assignment is no longer necessary in STEP 7 Example of Direct Parameter assignment Call of the FB 10 corresponding to direct parameter assignment STL Network 1 CALL FB 10 DB10 REQ M 0 6 Activates SEND R M 5 0 Activates RESET LADDR 336 Basic address PB336 DB_NO 11 Data block DB11 DBB_NO 0 As of data...

Страница 104: ...cification of data words partially qualified specification is not allowed because depending on the actual operands the currently selected data block can no longer be determined in the standard function If a data operand is specified as an actual parameter the fully qualified specification must always be used A fully qualified specification can be either absolute or symbolic Mixed addressing with f...

Страница 105: ...rd BGADR MW21 for the DONE parameter the flag SEND_DONE M26 0 for the ERROR parameter the memory bit SEND_ERROR M26 1 and for the STATUS parameter the memory word SEND_STATUS MW27 The STL listings for the example are shown on the following page Example of an Absolutely Addressed Actual Operand Calling FB 10 with absolutely addressed actual operands STL Network 1 CALL FB 10 DB10 REQ M 0 6 Activates...

Страница 106: ...ge frame as of data word LEN CP_DB SEND_LAE Message frame length DONE SEND_DONE Terminated without error ERROR SEND_ERROR Terminated with error STATUS SEND_STATUS Status word EN ENO Mechanism The parameters EN and ENO are only present in the graphical representation LAD or FBD The block is started with EN TRUE If the function is completed without errors ENO TRUE is set To process these parameters ...

Страница 107: ...ted up the current parameters are transferred to the CP 440 by the system service of the CPU Startup Characteristics FB CP 440 Once the connection between the CPU and the CP 440 has been established the CP 440 must be initialized For each function block SEND_440 RCV_440 RES_RECV there is a separate startup coordination Before requests can be actively processed the accompanying startup procedure mu...

Страница 108: ...nction Blocks in Bytes Block Name Version Load memory Working memory Local data Instance DB FB 9 RECV_440 1 0 1228 990 26 36 FB 10 SEND_440 1 0 1068 846 26 36 FB 11 RES_RECV 1 0 900 710 38 26 Run Times The table below contains the run times of the function blocks of the CP 440 Table 6 9 Run Times of the Function Blocks in ms Block Name Version Function CPU 414 6ES7414 2XG03 0AB0 CPU 416 6ES7416 2X...

Страница 109: ...s Number of CPU Cycles for Processing Completion without error Completion with error RESET RESTART RECV_440 2 2 3 SEND_440 2 2 3 RES_RECV 2 2 3 Before the CP 440 can process an initiated job after the CPU has changed from STOP to RUN mode the CP CPU startup mechanism SEND_440 must be completed Any requests initiated in the meantime do not get lost They are transmitted once the startup coordination...

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

Страница 111: ...e of the stop is removed e g break invalid parameter Parameter reassignment For parameter reassignment the protocol driver is initialized Sending and receiving are not possible and send and receive message frames stored in the CP 440 are lost when the driver is restarted Communication between the CP and the CPU is started afresh active message frames are aborted At the end of the parameter reassig...

Страница 112: ...es Initialization CP 440 in POWER ON mode Parameter assignment Initialization As soon as the CP 440 is energized all module components are initialized Parameter Assignment Parameter assignment means that the CP 440 receives the module parameters assigned to the current slot as created with the CP 440 Point to Point Communication Parameter Assignment programming interface Parameter reassignment is ...

Страница 113: ... on the setting of the basic parameter Reaction to CPU Stop CPU STARTUP On start up the CP sends the parameters created with the CP 440 Point to Point Communication Parameter Assignment programming interface The CP 440 only parameter reassignment if the parameters have changed CPU RUN When the CPU is in RUN mode sending and receiving are unrestricted In the first FB cycles following the CPU restar...

Страница 114: ... Line Drivers Table 7 1 Behavior of the Sender Line Drivers Status Line Drivers The CP 440 is deenergized High resistance The CP 440 is in the expansion rack with its own power supply but the central controller is switched off High resistance No parameters are assigned to the CP 440 High resistance No parameters are assignmed to the CP 440 the sender is in an idle state 3964 ASCII operating mode R...

Страница 115: ...f the send and receive lines STATUS output of the FBs The function blocks FB SEND_440 FB RECV_440 and RES_RECV have a STATUS output to indicate an error diagnosis Reading 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 440 also enters the diagnostic events at the STATUS ...

Страница 116: ...F comes on CP 440 signals internal fault e g protocol fault Read the STATUS of the FB or read the diagnostic buffer of the CP 440 EXTF comes on CP 440 signals external fault e g break on the line Read the STATUS of the FB or read the diagnostic buffer of the CP 440 FAULT off Interface ready for operation FAULT flashing slowly Interface initialized and ready for operation but communication via S7 4...

Страница 117: ...ow illustrates 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 contents of the STATUS parameter for the event Request aborted due to complete restart restart or reset event class 1EH event number 0DH 5HVHUYH 67 786 YHQW ಮ5HTXHVW DERUWHG GXH WR FRPSOHWH UHVWDUW UHVWDUW...

Страница 118: ...avoid errors 02 01H No parameters Parameter memory empty or has unknown contents Load interface parameters 02 04H Impermissible character frame Correct the impermissible parameter assignment load the parameters onto the module and carry out a cold restart 02 05H Impermissible transmission rate Correct the impermissible parameter assignment load the parameters onto the module and carry out a cold r...

Страница 119: ... With 3964 R only Sending the first repetition An error was detected during transmission of the message frame or The partner requested a repetition by means of a negative acknowledgment code NAK A repetition is not an error however it can be an indication that there are disturbances on the transmission line or a malfunction of the partner device If the message frame has still not been transmitted ...

Страница 120: ...wledgment delay time exceeded at end of connection or response monitoring time exceeded after send message frame After connection release with DLE ETX no response received from partner within acknowledgment delay time Partner device faulty or too slow Identify the malfunction possibly by using an interface test device switched into the transmission line 07 08H For ASCII driver only The waiting tim...

Страница 121: ... released with DLE ETX Identify the malfunction on the partner device possibly by using an interface test device is switched into the transmission line 08 06H Character delay time exceeded Two successive characters were not received within character delay time or With 3964 R only 1 1st character after sending of DLE during connection setup was not received within character delay time Partner devic...

Страница 122: ... the user program or communication with flow control must be configured 08 10H Parity error Check the cable of the communications partner or check whether both devices have same setting for baud rate parity and number of stop bits 08 11H Character frame error Check the cable of the communications partner or check whether both devices have same setting for baud rate parity and number of stop bits C...

Страница 123: ...ten to avoid the receive buffer overflowing Event class 128 80H Module error Event no Event To correct or avoid errors 80 00H Module firmware not found Perform a firmware update Display and evaluate STATUS output You can display and interpret the actual operands in the STATUS output of the function blocks Note An error message is only output if the ERROR bit request completed with error is set In ...

Страница 124: ...n SFCERR variable in instance DB Load SFCERR variable from instance DB 1E 0FH Static error when the WR_REC SFC was called Return value RET_VAL of SFC is available for evaluation in SFCERR variable in instance DB Load SFCERR variable from instance DB 1E 41H Number of bytes set in LEN parameter of FBs illegal Keep to the value range of 1 to 400 bytes Page 86 Calling the SFCERR variable You can obtai...

Страница 125: ...s Note The diagnostic buffer is a ring buffer for a maximum of 10 diagnostic entries When the diagnostic buffer is full the oldest entry is deleted when a new entry is made in it This means that the most recent entry is always first The contents of the diagnostics buffer are lost in the event of a POWER OFF or when the CP 440 is reconfigured It is not possible to display the time Reading the Diagn...

Страница 126: ...esult The Module Information tab appears for the CP 440 The General tab is displayed by default the first time you call it 5 Select the Diagnostic Buffer tab Result The Diagnostic Buffer tab displays the most recent diagnostic events of the CP 440 Any result details on the cause of the problem appears in the lower part of the tab The event s numeric code is displayed in the Event ID field The 16 F...

Страница 127: ...ost important functions to enable the correct functioning of the connected hardware to be checked the example is therefore simple and easy to follow can easily be extended for your own purposes The project example consists of the following five separate components CP440 SEND RECV Interconnection with SEND and RECV for ASCII 3964 R CP440 1CYC Interconnection with SEND and RECV for ASCII 3964 R cycl...

Страница 128: ...0 start address 512 Slot 5 CP 440 start address 528 There is no CP 440 on slot 5 in the CP440 MASTER and CP440 SLAVE examples Settings on the CP 440 You cannot make any hardware settings on the CP 440 Use STEP 7 to configure all relevant data including the parameters for the CP 440 with the CP 440 Point to Point Communication Parameter Assignment interface and upload them to the CPU You can run th...

Страница 129: ...D SRC DB Send data block DB 43 RECV DST DB Receive data block FB 9 RECV_440 Receive standard FB for data FB 10 SEND_440 Send standard FB for data FC 21 SEND Sending Data FC 22 RECEIVE Receiving data Table 9 2 CP 440 1 CYC Block Symbol Description OB 1 CYCLE Cyclic program processing OB 100 RESTART Cold restart processing DB 21 SEND IDB Instance DB for SEND_440 FB DB 22 RECV IDB Instance DB for REC...

Страница 130: ... 9 4 CP 440 MASTER Block Symbol Description OB 1 CYCLE Cyclic program processing OB 100 RESTART Cold restart processing FB 9 RECV_440 Receive standard FB for data FB 10 SEND_440 Send standard FB for data FC 1 SLAVE01 Main program for communication to slave 01 FC 2 SLAVE02 Main program for communication to slave 02 FC 11 SEND SL01 Sending Data FC 12 SEND SL01 Sending Data FC 21 RECEIVE SL01 Receivi...

Страница 131: ...standard FB for data FB 10 SEND_440 Send standard FB for data FB 40 SLAVE FB Slave for the CP 440 DB 9 RCV IDB Instance DB for RECV_440 FB DB 10 SEND IDB Instance DB for SEND_440 FB DB 40 IDB SLAVE 01 Instance DB for slave 01 DB 51 SEND SRC DB SL01 Send data block DB 52 SEND SRC DB SL02 Send data block DB 61 RECV DST DB SL01 Receive data block DB 62 RECV DST DB SL02 Receive data block DB 140 IDB S...

Страница 132: ...a second CP 440 as communication partner open the HW Config and remove the CP 440 with the Edit Delete menu command The call of the FC 22 FC for Receive must also be commented out of the examples CP440 SEND RECV CP440 1CYC and CP440 ASCII BCC in OB 1 Download to the CPU The hardware for the example is completely set up and the programming device is connected After the overall reset of the CPU oper...

Страница 133: ...nsmission takes place from the CP 440 on slot 4 to the CP 440 on slot 5 If you work with other communication partners the FC 22 RECEIVE is not called Description of FC 21 SEND The Generate edge P_SEND_REQ program section SEND_440 is run through once at the start with SEND_REQ 0 SEND_REQ is then set to 1 The SEND_440 job is started when a signal state change from 0 to 1 is detected at the SEND_REQ ...

Страница 134: ...r test purposes in the variable table 9 6 2 CP440 1 CYC Program Example This example is set up identically to the example CP440 SEND RECV However the FC 21 has been changed to allow a SEND job to be processed cyclically Description of FC 21 SEND The procedure for processing a SEND job cyclically is as follows At each block call SEND_440 is run through with SEND_REQ 0 If neither SEND_DONE nor SEND_...

Страница 135: ...ld be reserved for the block check stored as an ASCII value The block check is executed by means of an XOR logical operation of all the bytes to be sent LEN 2 The XOR logical operation occurs in the LOOP The relevant byte is loaded with the L DBB d_loop_akt command The d_loop_akt offset must be specified as a bit offset After LOOP is executed the block check is in the low byte of the w_bcc_value v...

Страница 136: ...ed for this Depending on the value in MW 8 either communication to slave 1 FC 1 call or 2 FC 2 call is selected The program can be adapted to include additional slaves In FC 1 a send job execute new Send Job program section with FC 11 call and the associated receive job execute Recv Job program section with FC 21 call are called by the slave for the response The counter START_TIMER for monitoring ...

Страница 137: ...n insulation testing safety class and degrees of protection Certification Technical Specifications Dimensions W x H x D 29 x 290 x 210 mm Weight 0 3 kg Current consumption from the backplane bus Max 0 36 A at 5 V typically 0 33 A at 5 V Power loss Max 1 9 W typically 1 7 W Display elements LEDs for transmitting TXD receiving RXD and interface fault FAULT Group alarm LEDs for internal fault INTF an...

Страница 138: ...er Assignment 138 Manual 09 2007 A5E00057742 03 Technical Specifications Character frame Number of bits per character 7 or 8 Number of start stop bits 1 or 2 Parity none even odd at 7 bits per character only even or odd can be set for parity 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 139: ...he 3964 R Procedure 3964 R procedure with default values Max message frame length 400 bytes Page 86 Parameters can be assigned parameters With without block check character Priority low high Transmission speed 300 600 1200 2400 4800 9600 19200 38400 57600 76800 115200 bps Character frame 9 10 11 or 12 bits Initial state of receive line none R A 5V R B 0V R A 0V R B 5V Number of buffered message fr...

Страница 140: ...essage frames 1 to 10 use entire buffer Disable overwrite yes no Indicator for end of receive message frame After expiration of the character delay time On receipt of end of text character s After receipt of a fixed number of characters ASCII driver with end of message frame recognition by expiry of character delay time Parameters No further parameter assignment necessary End of message frame is r...

Страница 141: ...iver in ms Baud rate bd User data 115200 76800 57600 38400 19200 9600 4800 2400 1200 600 300 1 bytes 1 5 2 2 2 3 4 8 15 29 55 110 10 bytes 2 2 3 5 8 14 28 56 111 220 440 20 bytes 4 5 6 8 14 26 52 102 202 404 807 50 bytes 6 9 12 17 32 60 120 240 478 952 1906 100 bytes 12 17 22 32 61 118 236 470 936 1872 3740 200 bytes 22 32 41 59 117 230 460 920 1835 3668 7330 3964 R Procedure Transmission times wi...

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

Страница 143: ...egrated Interface of the CP 440 Socket on CP 440 RS 422 485 Pin Designation Input Output Meaning 1 2 T A Output Transmitted data four wire operation 3 4 R A T A Input Input Output Received data four wire operation Received transmitted data two wire operation 5 6 7 8 GND Functional ground isolated 9 T B Output Transmitted data four wire operation 10 11 R B T B Input Input Output Received data four ...

Страница 144: ...a 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 submodules GND must always be connected on both sides pin 8 otherwise the submodules could again be destroyed In the Following The following pages contain examples of cables f...

Страница 145: ...pin subminiature D male with screw interlock 5 ದ 7 7 5 7 ದ 5 5 7 1 1 3 RPPXQLFDWLRQ SDUWQHU 6HQGHU 6KLHOG 5HFHLYHU DVLQJ VKLHOG 5HFHLYHU 6HQGHU DVLQJ VKLHOG DEOH W SH 7 7 DQG 5 5 WZLVWHG SDLUV Q WKH FDVH RI FDEOHV ORQJHU WKDQ P RX PXVW VROGHU LQ D WHUPLQDWLQJ UHVLVWRU RI DSSUR വ RQ WKH UHFHLYHU IRU WURXEOH IUHH WUDIILF Figure B 1 X27 Cable for CP 440 CP 340 CP 341 CP 440 CP 441 for RS 422 Operatio...

Страница 146: ... At the CP 440 side 15 pin subminiature D male with screw interlock At communication partner 15 pin subminiature D male with screw interlock 5 ದ 7 5 7 ದ 5 ದ 5 5 5 1 1 3 RPPXQLFDWLRQ SDUWQHU 6HQGHU 6KLHOG 5HFHLYHU DVLQJ VKLHOG 6HQGHU 5HFHLYHU DVLQJ VKLHOG DEOH W SH 5 5 WZLVWHG Q WKH FDVH RI FDEOHV ORQJHU WKDQ P RX PXVW VROGHU LQ D WHUPLQDWLQJ UHVLVWRU RI DSSUR വ RQ WKH UHFHLYHU IRU WURXEOH IUHH WUD...

Страница 147: ...le connectors At the CP 440 side 15 pin subminiature D male with screw interlock At communication partner 15 pin subminiature D male with clip fixing 3 7 5 7 5 5 7 5 7 1 1 RPPXQLFDWLRQ SDUWQHU 5HFHLYHU 5HFHLYHU 6HQGHU 6HQGHU DVLQJ VKLHOG DVLQJ VKLHOG DEOH W SH WZLVWHG SDLUV Q WKH FDVH RI FDEOHV ORQJHU WKDQ P RX PXVW VROGHU LQ D WHUPLQDWLQJ UHVLVWRU RI വ RQ WKH UHFLSLHQW VLGH 7 7 DQG 5 5 6KLHOG Fig...

Страница 148: ...les B 2 Cables Point to point connection CP 440 Installation and Parameter Assignment 148 Manual 09 2007 A5E00057742 03 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 149: ...CP 440 6ES7 440 1CS00 0YE0 Cables Cables are available of the preferential lengths 5 m 10 m and 50 m Table C 2 Order Numbers of the Cables Cables for CP 440 CP 340 CP 440 CP 341 CP 440 CP 440 CP 440 CP 441 Specification Order Number X27 RS 422 5 m 6ES7 902 3AB00 0AA0 X27 RS 422 10 m 6ES7 902 3AC00 0AA0 X27 RS 422 interface X27 RS 422 50 m 6ES7 902 3AG00 0AA0 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www...

Страница 150: ...ers C 1 Accessories and Order Numbers Point to point connection CP 440 Installation and Parameter Assignment 150 Manual 09 2007 A5E00057742 03 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司 www gkbpx com ...

Страница 151: ... 7 user manual explains the principles for using the STEP 7 automation software and its functions Novice users of STEP 7 as well as experienced users of STEP 5 are provided with an overview of the configuring programming and start up procedures for an S7 300 400 When working with the software an on line help assists you if you require detailed information on the software Reference Manual Statemant...

Страница 152: ...tware you can also use the on line help not for HiGraph which provides you with detailed information on editors and compilers Manual S7 HiGraph1 for S7 300 400 Programming State Graphs Manuals Continuous Function Charts1 for S7 and M7 Reference Manual System Software for S7 300 400 Systems and Standard Functions The S7 CPU s offer systems and standard functions which are integrated in the operatin...

Страница 153: ...964 procedure 78 ASCII driver 72 Bidirectional data traffic 22 Buffered receive message frames 73 79 C Cable shield 144 Cables 57 144 Order Numbers 149 Certification 137 Character delay time 24 70 Character Delay Time 31 34 Character delay time CDT 77 Character frame 23 72 78 Code Transparency 33 Commissioning the physical interface 58 Communication protocols Parameter assignment 67 Communication ...

Страница 154: ... Area 99 Block call 98 Deleting the receive buffer 98 Error display 98 Parameters 99 Time sequence chart 100 Firmware download 82 fixed frame length 31 37 Four wire mode 74 Full duplex 74 Full duplex operation 22 Function blocks 85 Application 89 Diagnostic messages 117 Overview 86 Technical Specifications 108 Functionality of the CP 440 13 G Group alarm LED 116 H Half duplex 74 Half duplex operat...

Страница 155: ...nostic buffer 125 Receive buffer 39 52 73 79 receiving data ASCII driver 33 Receiving with the 3964 R procedure 50 RECV_440 86 RECV_440 FB Assignment in the Data Area 96 Block call 95 Error display 95 Parameters 96 Time sequence chart 97 Removing the CP 440 62 RES_RECV 86 RS 422 74 RS 422 485 20 RS 485 74 RS422 operation 30 RS485 operation 30 RUN 111 Run times 108 S SEND_440 86 SEND_440 FB 90 Assi...

Страница 156: ...s 85 Topologies 40 Transmission attempts 77 Transmission integrity 27 with ASCII driver 28 Transmission pause 71 Transmission Rates 141 Two wire mode 74 U Uses of the CP 440 13 W Weight 137 X X27 RS 422 485 interface 143 Technical Specifications 139 X27 interface Definition 20 Properties 20 XOFF code 73 XON code 73 XON XOFF 73 该文档是极速PDF编辑器生成 如果想去掉该提示 请访问并下载 http www jisupdfeditor com 长沙工控帮教育科技有限公司...

Отзывы: