background image

Diagnostics with the CP 440

8-13

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

Calling the SFCERR Variable

You can obtain more information on errors 14 (1E0EH) and 15 (1E0FH) in event
class 30 by means of the SFCERR variable.

You can load the SFCERR variable from the instance DB belonging to the
corresponding function block.

The error messages entered in the SFCERR variable are described in the 

System

Software for S7 300/400, System and Standard Functions reference manual in
Section 2.1 “Common Parameters for SFCs” and in the information on the system
functions SFC 58 “WR_REC” and SFC 59 “RD_REC”.

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

Страница 1: ...tart up Characteristics and Operating Mode Transitions of the CP 440 7 Diagnostics with the CP 440 8 Programming Example Standard Blocks 9 Appendices Technical Specifications A Connecting Cables B Communication Matrix of the Protocols C Accessories and Order Numbers D Reference for SIMATIC S7 E Index Point to point Communication CP 440 Installation and Parameter Assignment Manual 02 2000 A5E000577...

Страница 2: ...ectly and operated and maintained as recommended Trademarks SIMATIC SIMATIC HMI and SIMATIC NET are registered trademarks of SIEMENS AG Some of other designations used in these documents are also registered trademarks the owner s rights may be violated if they are used by third parties for their own purposes Safety Guidelines This manual contains notices which you should observe to ensure your own...

Страница 3: ...The following subjects are covered The basics of point to point communication with the CP 440 Starting up the CP 440 Installing the CP 440 Communication with the CP 440 Troubleshooting Application examples Properties and technical specifications Scope of This Manual This manual is valid for the following Product Order Number As of Version CP 440 with the X27 RS 422 485 interface 6ES7 440 1CS00 0YE...

Страница 4: ...A5E00057742 02 Structure of This Manual To help you to quickly find the information you require this manual offers the following You will find a full table of contents at the beginning of the manual Finally a comprehensive index allows quick access to information on specific subjects ...

Страница 5: ... is highly resistant to fire Laser inscriptions i e no labels Plastics identification in accordance with DIN 54840 Fewer materials used due to size reduction fewer parts due to integration in ASICs The CP 440 is suitable for recycling 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 ol...

Страница 6: ...S7 programmable controller Please contact your local training center or the central training center in Nuremberg D 90027 Germany tel 49 911 895 3200 Constantly Updated Information You can obtain constantly updated information on the SIMATIC products on the Internet at http www ad siemens de In addition SIMATIC Customer Support provides you with up to date information and downloads that can be usef...

Страница 7: ...nce Model for Data Transmission 2 6 2 2 2 Data Transmission with the ASCII Driver 2 11 2 2 3 Data Transmission with the 3964 R Procedure 2 24 3 Commissioning the CP 440 3 1 3 1 Sequence of Steps to Be Taken 3 2 3 2 Commissioning the Physical Interface 3 4 4 Installing the CP 440 4 1 4 1 CP 440 Slots 4 2 4 2 Installing and Removing the CP 440 4 3 4 3 Installation Guidelines 4 4 5 Configuring and Pa...

Страница 8: ...ing Mode Transitions of the CP 440 7 1 7 1 Operating Modes of the CP 440 7 2 7 2 Startup Characteristics of the CP 440 7 2 7 3 Behavior of the CP 440 During Operating Mode Transitions of the CPU 7 3 7 4 Behavior of the Sender Line Drivers of the Serial Interface During Particular Operating Modes of the CP 440 7 4 8 Diagnostics with the CP 440 8 1 8 1 Diagnostic functions of the CP 440 8 2 8 2 Diag...

Страница 9: ...A Technical Specifications A 1 A 1 Technical Specifications of the CP 440 A 2 A 2 Transmission Times A 5 B Connecting Cables B 1 B 1 X27 RS 422 485 Interface of the CP 440 B 2 C Communication Matrix of the Protocols C 1 D Accessories and Order Numbers D 1 E Reference for SIMATIC S7 E 1 Index Index 1 ...

Страница 10: ...Contents x Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...

Страница 11: ...ignment A5E00057742 02 Product Description In Section You Will Find on Page 1 1 Applications of the CP 440 1 2 1 2 Components Required for a Point to Point Connection with the CP 440 1 3 1 3 Design of the CP 440 1 6 1 4 Properties of the X27 RS 422 485 Interface 1 8 1 ...

Страница 12: ... length of 200 bytes 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 with the CP 440 Point to Point Communication Parameter Assignment parameterization interface Applications of the CP 440 The CP 440 communica...

Страница 13: ...or a Point to Point Connection with the CP 440 Components Function Diagram Rack provides the mechanical and electrical connections of the S7 400 Power supply module PS converts the line voltage 120 230 VAC or 24 VDC into the operating voltage of 24 V and 5 VDC required to supply the S7 400 CPU The CPUs with which the CP 440 cannot be used are listed in Tables 1 5 and 1 4 Accessories Memory card Ba...

Страница 14: ...ents The following table lists the software components required for establishing a point to point connection with the CP 440 Table 1 3 Software Components for a Point to Point Connection with the CP 440 Components Function Diagram STEP 7 software package as of version 4 0 2 configures parameterizes programs and tests the S7 400 License CP 440 Point to Point Communication Parameter Assignment Param...

Страница 15: ...4 1 6ES7 414 1XG01 0AB0 Release 5 CPU 414 2 with 128k 6ES7 414 2XG01 0AB0 Release 5 CPU 414 2 with 348k 6ES7 414 2XJ00 0AB0 Release 7 CPU 416 1 6ES7 416 1XJ01 0AB0 Release 5 CPU 416 2 with 0 8 M 6ES7 416 2XK00 0AB0 Release 7 CPU 416 2 with 1 6 M 6ES7 416 2XL00 0AB0 Release 7 CPU 416 2 DP ISA Lite CPU 416 2 DP ISA CPU 412 2 DP PCI CPU 416 2 DP PCI 6ES7 616 2PK00 0AB4 Release 3 Table 1 5 CPU Version...

Страница 16: ...X27 RS422 485 interface Arrangement of the Controls and Indicators Fig 1 1 shows the arrangement of the controls and indicators on the front panel of the CP 440 communication processor RxD TxD FAULT EXTF INTF X 2 3 4 440 1CS00 0YE0 CP 440 CP 440 INTF EXTF FAULT TxD RxD Integrated X27 RS422 485 interface V1 0 0 Firmware version Figure 1 1 Arrangement of the Controls and Indicators on the CP 440 Com...

Страница 17: ...e receives The operating modes and faults and errors indicated by these LEDs are described in Section 8 2 Section 5 5 contains information on the LEDs that come on when you download firmware updates Interface For a detailed description of the interface see Section 1 4 Base Connector for the S7 Backplane Bus On the back panel of the CP 440 you will find the base connector for the S7 400 backplane b...

Страница 18: ...Standard DIN 66259 Parts 1 and 3 EIA RS 422 485 CCITT V 11 Degree of protection IP00 Note The X27 RS 422 485 interface can only be run in 4 wire mode with the 3964 R protocol 1 4 1 Cables for Connecting the CP 440 to a Communication Partner Standard Connecting Cables For point to point connection between the CP 440 and a communication partner Siemens offers standard connecting cables in various le...

Страница 19: ...Installation and Parameter Assignment A5E00057742 02 Basic Principles of Serial Data Transmission In Section You Will Find on Page 2 1 Serial Transmission of a Character 2 2 2 2 Transmission Procedure with a Point to Point Connection 2 6 2 ...

Страница 20: ...processor forms the interface between a programmable controller and a communication partner In a point to point connection with the CP 440 the data is transferred serially Serial Data 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 executes data transfer with c...

Страница 21: ...refore data can be sent and received at the same time Each communication partner must be able to send and receive simultaneously Only half duplex mode can be used with an RS 485 2 wire setting Asynchronous Data Transmission With the CP 440 serial transmission takes place asynchronously What is known as timebase synchronization a fixed timing code used in the transmission of a fixed character strin...

Страница 22: ...e not supported You can parameterize the format for data transmission with the CP 440 Point to Point Communication Parameter Assignment parameterization interface By way of example the figure below shows the two data formats of the 10 bit character frame 1 start bit 1 7 data bits 1 parity bit 2 8 9 1 stop bit 10 1 start bit 1 8 data bits 2 10 9 1 stop bit 7 data bits 1 start bit 7 data bits 1 pari...

Страница 23: ...arameter Assignment A5E00057742 02 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 Signal nth character n 1 th character Time t Character delay time Figure 2 2 Character Delay Time ...

Страница 24: ... communication partners involved in data transmission must follow fixed rules for handling and implementing the data traffic Such rules are called protocols A protocol defines the following points Operating mode Half duplex or full duplex mode Initiative Which communication partners can initiate data transmission and under what conditions Control characters Which control characters are to be used ...

Страница 25: ...wo partners 4 Transport layer Error detection procedure Debugging Handshaking 5 Session layer Establishing communication Data exchange management 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 ...

Страница 26: ... the transmission integrity Classifying the Supplied Protocols The CP 440 can handle 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 3964 R Layer 2 Layer 1 Data link layer Physical layer The data bytes are transmitted with 3964 R Start and stop bits are added in the event of an error the transmiss...

Страница 27: ...fication 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 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 Enhanced Data Integrity with the 396...

Страница 28: ...programmable acknowledgment mechanism The block check of the 3964 R procedure EXOR logic operation cannot detect missing zeros as a whole character because a zero in the EXOR logic 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 ...

Страница 29: ...table 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 fo...

Страница 30: ...nd automatically append the end of text character or characters Data is sent up to the length parameterized 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 by the FB are sent to the partner depending on the number of end of text characters When ...

Страница 31: ...ng the ASCII driver you can choose between three different end criteria when data is received The end criterion defines when a complete message frame is received The possible end criteria are as follows On Expiry of Character Delay Time The message frame has neither a fixed length nor a defined end of text character the end of the message is defined by a pause on the line expiry of character delay...

Страница 32: ...n of the parameterized end criterion and the flow control With one or two end of text characters Not code transparent When the end criterion is the character delay time or a fixed message frame length Code transparent Code transparent operation is not possible when XON XOFF flow control is used Code transparent means that any character combination can occur in the user data without the end criteri...

Страница 33: ...sely identified whenever the communication partner takes a send pause within a message frame The figure below illustrates a receive operation with the end criterion expiration of character delay time Waiting for character Character arrived Error when receiving not a character delay time error Message frame buffered End criterion for message frame identified error entry follows Character received w...

Страница 34: ...e An error 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 is 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 messag...

Страница 35: ...haracter Character arrived Message frame buffered End criterion for message frame identified error entry follows Character received with end control and character delay time Error entered in the STATUS output of the FB Waiting for valid end code Message frame complete Error when receiving Expiration of the monitoring time Message frame entered in receive buffer Figure 2 6 Sequence of Receive Opera...

Страница 36: ...arded Note the following if the message frame length of the received characters does not match the parameterized fixed message frame length Message frame length of received characters greater than parameterized fixed message frame length All characters received after the parameterized fixed message frame length is reached Are discarded if the monitoring time expires at the end of the message frame...

Страница 37: ...racter arrived Error when receiving Message frame buffered End criterion for message frame identified error entry follows Character received with length control and character delay time Message frame entered in receive buffer Error entered in the STATUS output of the FB Waiting for parameterized number of characters Message frame complete Expiration of the monitoring time Figure 2 7 Sequence of Re...

Страница 38: ...e receive buffer on the CP 440 is a ring buffer If two or more message frames are entered in the receive buffer of the CP 440 the rule is that the oldest message frame is always transferred by the CP 440 to the CPU If you only ever want to send the most recent message frame to the CPU you must parameterize the value 1 for the number of buffered message frames and deactivate the overwrite protectio...

Страница 39: ...parameterized number of message frames is reached or alternatively 50 characters before the receive buffer overflows size of the receive buffer 2000 bytes the CP 440 sends the XOFF character If the communication partner continues to send data regardless of this the receive buffer overflows and an error message is generated The data received in the last message frame is discarded As soon as a messa...

Страница 40: ...e 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 If the address is the same the addressed slave sends its answer The senders of all slaves must be able to switch to low impedance In the case of a master slave top...

Страница 41: ...case of a topology in RS485 operation The cable pair is interconnected for the send receive line of all the nodes Only the receiver of a node has a default setting All the other modules function without default settings Master Slave Slave Slave Figure 2 11 RS 485 Multipoint The settings required for the different topologies can be made in the parameterization interface in the Interface dialog box ...

Страница 42: ...a link layer layer 2 Control Characters During data transmission the 3964 R procedure adds control characters to the user data data link layer These control characters allow the communication partner to check whether the data has arrived complete and without errors The 3964 R procedure analyzes the following control codes STX Start of Text Start of character string for transfer DLE Data Link Escap...

Страница 43: ...ncreased by the additional sending of a block check character BCC Message frame STX Data DLE ETX BCC 02H 30H 31H 32H 10H 03H 20H 30 0011 0000 31 0011 0001 XOR 0000 0001 32 0011 0010 XOR 0011 0011 10 0001 0000 XOR 0010 0011 03 0000 0011 XOR 0010 0000 BCC 2 0 Figure 2 12 Block Checksum The block checksum is the even longitudinal parity EXOR logic operation of all data bytes of a sent or received blo...

Страница 44: ... Data Traffic when 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 ADT 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 ...

Страница 45: ...xpire and then 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 commu...

Страница 46: ...cedure sends 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 job 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 af...

Страница 47: ...epetition is then expected If the block still cannot be received after the number of transmission attempts specified in the static parameter record 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_...

Страница 48: ... End code 10H End code 03H 3964 R only Neg acknowledgment 15H T New setup attempt Figure 2 15 Data Traffic When Receiving Errored Data When DLE ETX and BCC are 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 NAK and waits...

Страница 49: ...ledgment 10H STX STX DLE 1st byte 2nd byte nth byte DLE ETX BCC DLE STX DLE Figure 2 16 Data Traffic during an Initialization Conflict If a device responds to the communication partner s send job code STX within the acknowledgment delay time ADT by sending the code STX instead of the acknowledgment DLE or NAK an initialization conflict occurs Both devices want to execute a send job The device with...

Страница 50: ... attempts compensates for this however In this case you are advised to check the transmission connection 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 er...

Страница 51: ...te DLE Send DLE ETX Start TADT Send BCC Wait for DLE acknowledg ment G DLE Sending completed T TADT character except DLE or invalid character W 1 Send NAK G T TADT character except DLE STX or invalid characters Send NAK High priority Low priority 1 BCC only with 3964 R x setup attempt counter TADT 500 ms 3964 R TADT 2s W transmission attempt counter Immediate return to initial state at line break ...

Страница 52: ...ing with the 3964 R procedure Intention to send G 2 4 TNAKTIM 400 ms W transmission attempt counter Immediate return to initial state at line break BREAK Receive STX Note NAK Repetition expected W 1 1 Characters except STX NAK Start TNAKTIM Wait Send NAK G Buffer free Buffer not free Send DLE 4 5 Initialization conflict low priority T TNAKTIM Figure 2 19 Flow Diagram of Receiving with the 3964 R P...

Страница 53: ...time 220 ms TBlock 4 s W transmission attempt counter BCC only with 3964 R Immediate return to initial state at line break BREAK Wait to receive characters Invalid character Correct character except for DLE DLE Wait for ETX ETX T Tchar delay time T Tchar delay time 3964 R Wait for BCC BCC NAK noted Receipt completed Send NAK W 5 W 5 Note repetition expected start TBLOCK STX T Tchar delay time BCC ...

Страница 54: ...he receive buffer on the CP 440 is a ring buffer If two or more message frames are entered in the receive buffer of the CP 440 the rule is that the oldest message frame is always transferred by the CP 440 to the CPU If you only ever want to send the most recent message frame to the CPU you must parameterize the value 1 for the number of buffered message frames and deactivate the overwrite protecti...

Страница 55: ...int connection CP 440 Installation and Parameter Assignment A5E00057742 02 Commissioning the CP 440 In Section You Will Find on Page 3 1 Sequence of Steps to Be Taken 3 2 3 2 Commissioning the Physical Interface 3 4 3 ...

Страница 56: ...onnecting cable described in Appendix B You can find additional information on setting up the physical interface in Section 3 2 Configuring the CP 440 Configuring the CP 440 involves entering it in the configuration table The CP 440 is configured using the STEP 7 software For a detailed description see Section 5 1 Parameterizing the CP 440 Parameterizing the CP 440 involves creating the specific p...

Страница 57: ...nvolves configuring it for the associated CPU using the STEP7 user program The CP 440 is programmed using the language editors of the STEP 7 software A detailed description of programming with STEP 7 is contained in the Programming with STEP 7 manual Communication using the function blocks of the CP 440 is described in Chapter 6 Chapter 9 contains a detailed programming example ...

Страница 58: ...yte mixed in the security word e g CRC 2 How to proceed First of all use the manual to check the line connection Assignment Appendix B Polarity Appendix B Default settings Section 5 3 Carry out a setup test 3 Carry out the simplest setup possible Connect only 2 nodes to each another If possible use 2 wire cable RS485 Use a short connecting cable Terminating resistors are not required due to the sh...

Страница 59: ... 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 converter RS22 485 to the connecting cable Check the signal level using a measuring device measure level to GND pin 8 Some devices do not sig...

Страница 60: ...Commissioning the CP 440 3 6 Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...

Страница 61: ...onnection CP 440 Installation and Parameter Assignment A5E00057742 02 Installing the CP 440 In Section You Will Find on Page 4 1 CP 440 Slots 4 2 4 2 Installing and Removing the CP 440 4 3 4 3 Installation Guidelines 4 4 4 ...

Страница 62: ...ler there are no specific slots reserved for communication modules Position of the CP 440 on the Rack The CP 440 can be plugged into any slot on the rack with the following exception On all racks the power supply module occupies slots 1 to 3 depending on its width For further information on slots see 2 2 S7 400 M7 400 Programmable Controllers Hardware and Installation manual ...

Страница 63: ...40 module and tilt it downward 3 Screw the module down at the top and bottom with a torque of 0 8 1 1 Nm Removal Sequence To remove the CP 440 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 Note The CP 440 can be hot plugged and hot pulled in other words with voltage applie...

Страница 64: ...057742 02 4 3 Installation Guidelines To be Observed The general installation guidelines for the S7 400 must be observed see the S7 400 M7 400 Programmable Controllers Hardware and Installation manual To meet the EMC electromagnetic compatibility values the cable shield must be connected to a shield bus ...

Страница 65: ...n Data 5 4 5 4 Management of the Parameter Data 5 20 5 5 Subsequent Loading of Firmware Updates 5 21 Configuration Options You configure and parameterize the CP 440 using STEP 7 or the CP 440 Point to Point Communication Parameter Assignment parameterization interface Table 5 1 Configuration Options for the CP 440 Product Order Number Parameterized Using the Parameterization Interface Under STEP 7...

Страница 66: ...g for installing software by double clicking the Add Remove Programs icon in Control Panel 3 In the dialog box select the CD drive and the Setup exe file and start installation 4 Now follow the step by step instructions of the installation program Configuration In the sense used here configuration means entering the CP 440 in the configuration table of the STEP 7 software In the configuration tabl...

Страница 67: ... CP 440 in the configuration table or by selecting the CP 440 and choosing the Edit Object Properties menu command The Properties CP 440 dialog box appears Click the Parameters button in order to select a protocol Set the protocol and double click the icon for the transmission protocol an envelope This takes you to the dialog box for setting the protocol specific parameters Further Information The...

Страница 68: ...e 5 3 1 Basic Parameters of the CP 440 Enter the basic parameters in the STEP 7 HW dialog box Properties CP 440 Open the dialog box by double clicking the CP 440 in the configuration table of STEP 7 Section 5 2 tells you how to enter the basic parameters of the CP 440 The basic parameters are described in the table below Table 5 2 Basic Parameters of the CP 440 Parameter Description Value Range De...

Страница 69: ... Message Frames Reaction to CPU Stop Continue Retained Saved discarded if the buffer is full Saved until the buffer is full then discarded Reaction to CPU Stop STOP Retained Discarded Discarded Table 5 4 Control of Frame Storage with Flow Control With Flow Control Saved Frames Frame Just Arriving New Frames Reaction to CPU Stop Continue Retained Saved flow control is activated if the buffer is ful...

Страница 70: ...Driver Using the CP440 Point to Point Communication Parameter Assignment interface specify the parameters for the physical layer layer 1 of the ASCII driver Below you will find a detailed description of the parameters Section 5 2 describes how to enter parameterization data using the CP440 Point to Point Communication Parameter Assignment parameterization interface Note The ASCII driver can be use...

Страница 71: ...35 ms The shortest character delay time depends on the transmission rate 4 ms Monitoring Time for Missing End ID The character delay time is used as the monitoring time for a missing end code This applies to the following settings for the end code On Receipt of Fixed Number of Characters On Receipt of End Character bps 300 600 1200 2400 4800 9600 19200 38400 57600 76800 115200 Character time delay...

Страница 72: ...lated to the monitoring time A pause equal to the length of the monitoring time for a missing end ID is inserted between two message frames when sending so that the partner can synchronize detect receipt of the message frame Yes No Yes 1 Can only be set if the end criterion is an end of text character 2 Depends on whether you parameterize 7 or 8 data bits for the character frame see Table 5 6 3 Ca...

Страница 73: ...00 76800 115200 9600 Start Bit During transmission a start bit is prefixed to each character to be sent 1 fixed value 1 Data Bits Number of bits to which a character is mapped 7 8 8 Stop Bits During transmission a stop bit is appended to every character to be sent to indicate the end of the character 1 2 1 Parity A sequence of information bits can be extended to include another bit the parity bit ...

Страница 74: ...ne XON XOFF None XON Code1 Code for XON 7 data bits2 0 to 7FH hex 8 data bits2 0 to FFH hex 11 DC1 XOFF Code1 Code for XOFF 7 data bits2 0 to 7FH hex 8 data bits2 0 to FFH hex 13 DC3 Wait for XON after XOFF Wait Time for CTS ON 3 Period of time for which the CP440 waits for the XON code or for CTS ON of the communication partner when sending 20 to 65535 ms in 10 ms increments 20000 ms 1 Only in th...

Страница 75: ...of receive message frames to be buffered in the CP receive buffer or that are to use the whole buffer If you use the whole buffer of 2000 bytes the number of buffered receive message frames depends only on the length of the frames If you specify 1 here disable the Prevent Overwriting parameter and cyclically read the received data from the user program a current message frame will always be sent t...

Страница 76: ...n in four wire mode if the CP is a master Full Duplex RS 422 Four Wire Mode Multipoint Slave Operating mode for multipoint connection 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 State of the Receive Line ...

Страница 77: ...Parameter Assignment A5E00057742 02 Initial State of the Receive Line Figure 5 1 shows the wiring of the recipient at the X27 RS 422 485 interface 5 V 5 V 0 V 0 V R A 5V R B 0V R A 0V R B 5V none R A R B R A R B R A R B Figure 5 1 Wiring of the Recipient at the X27 RS 422 485 Interface ASCII Driver ...

Страница 78: ...tion Data of the 3964 R Procedure Using the CP 440 Point to Point Communication Parameter Assignment parameterization interface you set the parameters for the physical layer layer 1 and the data link layer layer 2 of the 3964 R procedure Below you will find a detailed description of the parameters Section 5 2 describes how to enter the parameterization data using the CP440 Point to Point Communica...

Страница 79: ...ock check character BCC with the longitudinal parity calculated internally If the BCC is correct and no other receive errors have occurred the CP440 sends the DLE code to the communication partner in the event of an error the NAK code is sent Ack delay time 2000 ms Setup attempts 6 Transmission attempts 6 3964 No Default Values Without Block Check The protocol parameters are programmable If the CP...

Страница 80: ...115200 bps 20 ms 220 ms Acknowledgment Delay Time 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 cleardown time between DLE ETX and partner s DLE acknowledgment 20 ms to 65535 ms in 10 ms increments The shortest acknowledgment delay time ADT depends on...

Страница 81: ...smission a stop bit is appended to every character to be sent to indicate 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 The data integrity is thus enhanced If none is specified for parity no parity bit is sent It is not possible to sp...

Страница 82: ...number of receive message frames to be buffered in the CP receive buffer or to use the whole buffer If you use the whole buffer of 2000 bytes the number of buffered receive message frames depends only on the length of the frames If you specify 1 here disable the Prevent Overwriting parameter and cyclically read the received data from the user program a current message frame will always be sent to ...

Страница 83: ...ion Value Range Default Value Initial State of the Receive Line None This setting only makes sense with bus capable drivers None R A 5V R B 0V R A 5V R B 0V Break evaluation is possible with this initial state Signal R A 5 Volt Break Evaluation SignalR B 0 Volt R A 0V R B 5V Break evaluation is not possible with this initial state See also Figure 5 2 SignalR A 0 Volt Signal R B 5 Volt The figure b...

Страница 84: ...PU You can download the configuration and parameterization data to the CPU from the programming device by choosing PLC Download The CPU puts the parameters into effect as soon as they are loaded 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...

Страница 85: ...Communication Parameter Assignment parameterization interface Basic Firmware The CP 440 is shipped with basic firmware preinstalled Requirements The prerequisites for loading firmware updates are To update the firmware of the CP using the parameterization interface you first have to create a valid project under HWCONFIG and download it to the CPU The instructions accompanying the firmware update a...

Страница 86: ...pload firmware to the module before it can be restarted 4 3 Click the Find File button to select the firmware to be loaded header upd Result The version of the firmware you select is displayed under Status of selected firmware 5 Click the Load Firmware button to start uploading to the CP 440 You are prompted for confirmation The upload procedure is canceled immediately if you click the Cancel butt...

Страница 87: ...ff Module firmware deleted firmware update canceled firmware update still possible Reload the firmware Hardware fault during firmware update Flashing 2Hz Off Flashing 2Hz Flashing 2Hz Delete write failed Switch power supply to module off and then on again and reload the firmware Check module for defects Displaying the Hardware and Firmware Release You can view the current version of the CP 440 har...

Страница 88: ...Configuring and Parameterizing the CP 440 5 24 Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...

Страница 89: ...ction Blocks In Section You Will Find on Page 6 1 Communication Using Function Blocks 6 2 6 2 Overview of the Function Blocks 6 3 6 4 Using the Function Blocks 6 5 6 5 Programming the Function Blocks 6 18 6 6 General Information on Program Processing 6 23 6 7 Technical Specifications of the Function Blocks 6 24 6 ...

Страница 90: ...tible Communication Between the CP 440 and the Communication Partner The transmission protocols are implemented on the CP 440 By means of the protocol the interface of the CP 440 is adapted 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 Fu...

Страница 91: ...CII driver 3964 R procedure FB 10 SEND_440 The SEND_440 function block allows you to send all or part of a data block to a communication partner ASCII driver 3964 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 Form of Delivery and Installation The function blocks of the CP 440 are on CD along with the param...

Страница 92: ...tly one after the other This makes it possible 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 In a long cycle Call the SEND_440 and RECV_440 FBs several times throughout the program Call the SEND_440 and R...

Страница 93: ...errors This means Using the ASCII driver The job was sent to the communication partner It is not certain that the data was also received by the communication partner Using the 3964 R procedure The job was sent to the communication partner and acknowledged affirmatively by the communication partner It is not certain that the data was also transferred to the partner CPU Simultaneously Processed Jobs...

Страница 94: ... cycles depending on the amount of data involved The SEND_440 FB can be called cyclically with the signal state 1 at the parameter input R This terminates the transmission to the CP 440 and resets the SEND_440 FB to its initial state Data that has already been received by the CP 440 is still sent to the communication partner If the signal state 1 is at the R input statically this means that sendin...

Страница 95: ...SEND_440 I_SEND_440 EN ENO REQ DONE R ERROR LADDR STATUS DB_NO DBB_NO LEN Note 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 the compiler uses the binary result BR The binary result BR is set to the signal state 1 if the block was termina...

Страница 96: ...he SEND_440 FB Name Type Data Type Comment Permitted Values Comment REQ INPUT BOOL Initiates job at positive edge R INPUT BOOL Aborts job Current job is aborted Sending is blocked LADDR INPUT INT Basic address of the 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...

Страница 97: ...EQ and R inputs are wired Sending job Completion without errors 1st n part of SEND RESET transmitted Completion with errors RESET transmitted Completion without errors SEND job not executed sending deactivated REQ R DONE ERROR 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 sufficient It is not necessary for the RLO res...

Страница 98: ...mission can run over several calls program cycles depending on the amount of data involved If the function block detects the signal state 1 at the R parameter the current send job is aborted and the RECV_440 FB is set to the initial state Receiving is deactivated as long as the R parameter has the signal state 1 The LADDR parameter defines the CP 440 to be addressed Error Display on the RECV_440 F...

Страница 99: ... with EN TRUE If the function is completed without errors ENO TRUE is set To process these parameters the compiler uses the binary result BR The binary result is set to the 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 RECV_440 FB works with an instance DB I_RECV_440 The DB number is specified in the call The data...

Страница 100: ... 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 NDR1 OUTPUT BOOL Job completed without errors data accepted STATUS parameter 16 00 ERROR1 OUTPUT BOOL Job completed with errors STATUS parameter contains error details LEN1 OU...

Страница 101: ...epending on how the EN_R and R inputs are wired Enable receipt Completion without errors Receiving Completion with errors No receipt RESET Completion without errors Receiving Completion with errors Receiving disabled EN_R R NDR LEN length ERROR Figure 6 2 Time Sequence Chart for the 9 RECV_440 FB Note The EN_R input must be set statically to 1 During the entire receive job the EN_R parameter must ...

Страница 102: ...This terminates deletion and sets the RES_RECV FB back to its initial state The LADDR parameter specifies the address of the CP 440 to be addressed Error Display on the RES_RECV FB The DONE output indicates the job has been completed without errors ERROR indicates whether an error has occurred If there was an error the corresponding event number is displayed for STATUS see Section 8 3 If there is ...

Страница 103: ... function is completed without errors ENO TRUE is set To process these parameters the compiler uses the binary result BR The binary result is set to the 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 RES_RECV FB works with an instance DB I_RES_RECV The DB number is specified in the call The data in the instance DB ...

Страница 104: ... INPUT BOOL Initiates job with positive edge R INPUT BOOL Aborts job Current job is aborted Sending is disabled LADDR INPUT INT Basic address of the CP 440 The basic address is taken from STEP 7 DONE1 OUTPUT BOOL Job completed without errors STATUS parameter 16 00 ERROR1 OUTPUT BOOL Job completed with errors STATUS parameter contains error information STATUS1 OUTPUT WORD Specification of the error...

Страница 105: ...ding on how the REQ and R inputs are wired Delete receive buffer Completion without errors RESET transmitted Completion with errors RESET transmitted Completion without errors Job not executed REQ R DONE ERROR 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 sufficient It is not necessary for the RLO result of logical op...

Страница 106: ... Information on Data Block Assignment Addressing Data operands are addressed in data blocks byte by byte in STEP 7 instead of word by word as in STEP 5 You therefore have to convert the addresses of the data operands STEP 5 STEP 7 DW n DL n DR n 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 DBW 2n DBB 2n DBB 2n 1 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 Figure 6 4 Comparing Data Addressing in STEP 5 and STEP 7 The...

Страница 107: ...terize the blocks indirectly as is the case in STEP 5 parameters passed in the currently selected data block All block parameters accept both constants and variables so the distinction between direct and indirect parameterization is no longer necessary in STEP 7 Example of Direct Parameterization Call of the FB 10 corresponding to direct parameterization STL Explanation Network 1 CALL FB 10 DB10 R...

Страница 108: ...ta Words The specification of data words partially qualified specification is not permitted because depending on the actual parameters the currently selected data block can no longer be determined in the standard function If a data operand is specified as an actual parameter fully qualified specification must always be used Fully qualified specification can be either absolute or symbolic Mixed add...

Страница 109: ...ord BGADR MW21 for the DONE parameter the memory marker SEND_DONE M26 0 for the ERROR parameter the memory marker 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 Parameter Call of the FB 10 with absolutely addressed actual parameters STL Explanation Network 1 CA...

Страница 110: ...ND_DONE ERROR SEND_ERROR STATUS SEND_STATUS SEND initiation RESET initiation Basic address Send DB no Frame as of data word Frame length Terminated without errors Terminated with errors 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 pr...

Страница 111: ... CPU is started up the current parameters are transferred to the CP 440 by the system service of the CPU Startup Characteristics of the CP 440 FBs 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 jobs can be actively processed the associated startu...

Страница 112: ...emory Local Data Instance DB FB 9 RECV_440 1 0 1228 990 26 36 FB10 SEND_440 1 0 1068 846 26 36 FB11 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 6 Run Times of the Function Blocks in s Block Name Version Function CPU 414 6ES7414 2XG03 0AB0 CPU 416 6ES7416 2XK 02 0AB0 CPU 417 6ES7417 4XL00 0AB0 FB 9 RECV_440 1 0 Idling Rece...

Страница 113: ...of CPU Cycles Number of CPU Cycles for Processing Completion without errors Completion with errors 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 jobs initiated in the meantime do not get lost They are transmitted to the CP 440 once ...

Страница 114: ...Communication Using Function Blocks 6 26 Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...

Страница 115: ...ransitions of the CP 440 In Section You Will Find on Page 7 1 Operating Modes of the CP 440 7 2 7 2 Startup Characteristics of the CP 440 7 2 7 3 Behavior of the CP 440 During Operating Mode Transitions of the CPU 7 3 7 4 Behavior of the Sender Line Drivers of the Serial Interface During Particular Operating Modes of the CP 440 7 4 7 ...

Страница 116: ...s restarted Communication between the CP and the CPU is started afresh active frames are aborted At the end of parameterization the CP 440 is ready to send and receive RUN The CP 440 processes the jobs of the CPU The frames received from the communication partner are made available to be picked up by the CPU 7 2 Startup Characteristics of the CP 440 The CP 440 startup is divided into two phases In...

Страница 117: ...depends on the setting of the basic parameter Reaction to CPU Stop see Section 5 3 1 CPU STARTUP During startup the CPU sends the parameters created with the CP 440 Point to Point Communication Parameter Assignment parameterization interface The CP 440 only carries out reparameterization if the parameters have changed CPU RUN When the CPU is in RUN mode sending and receiving are unrestricted In th...

Страница 118: ...1 Behavior of the Sender Line Drivers Status Line Drivers The CP 440 is deenergized Low impedance The CP 440 is in the expansion rack with its own power supply but the central controller is switched off High resistance The CP 440 is not parameterized High resistance The CP 440 is parameterized the sender is in an idle state 3964 ASCII operating mode RS422 multipoint master ASCII operating mode RS4...

Страница 119: ...057742 02 Diagnostics with the CP 440 In Section You Will Find on Page 8 1 Diagnostic Functions of the CP 440 8 2 8 2 Diagnosis via the Display Elements of the CP 440 8 3 8 3 Diagnostic Messages of the Function Blocks 8 5 8 4 Diagnosis via the Diagnostic Buffer of the CP 440 8 14 8 ...

Страница 120: ... send and receive lines If you can t establish a connection to a partner refer to Section 3 2 for help Section 5 5 contains information on LEDs that are activated when you download firmware updates 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 informati...

Страница 121: ...following display functions can be distinguished Group alarm LEDs INTF Internal fault EXTF External fault Special displays TXD green Sending active lights up when the CP 440 is sending user data via the interface RXD green Receiving active lights up when the CP 440 is receiving user data via the interface Interface fault LED FAULT Interface fault Note Section 5 5 contains information on LEDs that ...

Страница 122: ... 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 400 backplane bus not possible Check the configuration for incorrect entries e g slot ID no etc FAULT flashing fast Incorrect parameter Check...

Страница 123: ...rameter STATUS Bit no 15 13 12 8 7 0 Reserve Event class Event number Error number Figure 8 1 Structure of the STATUS Parameter Example The figure below illustrates the contents of the STATUS parameter for the even when a job is aborted due to a cold restart warm restart or reset event class 1EH event number 0DH STATUS 24 20 27 20 Reserve Event class 1EH Event number error number 0DH x x x 1 1 1 1...

Страница 124: ...edy 02 01H No parameters Parameter memory empty or has unknown contents Load the 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 restar...

Страница 125: ...been started although the old job has not yet been completed Only start the new SEND job when the old job has been completed with DONE or ERROR Event Class 7 07H Send error Event No Event Remedy 07 01H With 3964 R only Transmission of 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 ...

Страница 126: ...knowledgment code DLE received too early Check whether the partner is also indicating an error possibly because not all the transmission data has arrived e g due to a break in the send line or due to serious faults or because the partner device has malfunctioned Identify the malfunction possibly by using an interface test device switched into the transmission line 07 07H With 3964 R only Acknowled...

Страница 127: ...utput 08 02H With 3964 R only Error during connection setup In idle mode one or more random codes other than NAK or STX were received or After an STX was received the partner sent more codes without waiting for response DLE After POWER ON of the partner While the partner is being activated CP receives an undefined code Identify the malfunction on the partner device possibly by using an interface t...

Страница 128: ...ffer available No empty receive buffer was available to receive the data The RECV_440 FB must be called more frequently 08 0CH Transmission error Transmission error parity error stop bit error overflow error detected With 3964 R only If a faulty character is received in idle mode the error is reported immediately so that disturbances on the transmission line can be detected early With 3964 R only ...

Страница 129: ...he communication partner or deal with the data in the CP more quickly 08 14H With ASCII driver only A message frame or several message frames have got lost because you have been working without flow control Work with flow control as much as you can Use the entire receive buffer Set the Reaction to CPU Stop parameter in the basic parameters to Continue 08 16H The length of a received message frame ...

Страница 130: ... 8 3 Event Class 30 Event Class 30 1EH Error in communication between the CP and CPU Event No Event Further Information Remedy 1E 0DH Job aborted due to a cold restart warm restart or reset Module firmware does not exist Repeat the job Check whether the module is inserted 1E 0EH Static error when the RD_RED SFC was called The return value RET_VAL of SFC is available for evaluation in the SFCERR va...

Страница 131: ...event class 30 by means of the SFCERR variable You can load the SFCERR variable from the instance DB belonging to the corresponding function block The error messages entered in the SFCERR variable are described in the System Software for S7 300 400 System and Standard Functions reference manual in Section 2 1 Common Parameters for SFCs and in the information on the system functions SFC 58 WR_REC a...

Страница 132: ...job Data transmission errors send and receive errors The diagnostic buffer allows the causes of errors in point to point communication to be evaluated even after some time has elapsed in order to determine for example the causes of a STOP of the CP 440 or to trace the occurrence of individual diagnostic events Note The diagnostic buffer is a ring buffer for a maximum of 10 diagnostic entries When ...

Страница 133: ...icking it or by choosing the Edit Open Object menu command Result The window containing the configuration table appears 3 Select the CP 440 in the configuration table 4 Choose the PLC Module Information menu command Result 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 Buf...

Страница 134: ...Diagnostics with the CP 440 8 16 Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...

Страница 135: ...ssignment A5E00057742 02 Programming Example Standard Blocks In Section You Will Find on Page 9 1 General 9 2 9 2 Device Configuration 9 2 9 3 Settings 9 3 9 4 Blocks Used 9 4 9 5 Installation Error Messages 9 7 9 6 Activation Startup Program and Cyclic Program 9 8 9 ...

Страница 136: ...3964 R CP440 1CYC Interconnection with SEND and RECV for ASCII 3964 R cyclic job processing CP440 ASCII BCC Interconnection for ASCII with block check formation CP440 MASTER Master station for interconnection with ASCII protocol CP440 SLAVE Slave station for interconnection with ASCII protocol The CP 440 is parameterized by the CPU when the latter is started up system service Requirements The exam...

Страница 137: ... made on the CP 440 Using STEP 7 configure all the relevant data including the parameters for the CP 440 with the CP 440 Point to Point Communication Parameter Assignment parameterization interface and download it to the CPU You can run the CP440 SEND RECV or CP440 1CYC program example without making any changes in the user program with the following The 3964 R procedure The ASCII driver with the ...

Страница 138: ...the standard FB 9 DB 42 SEND 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 Send data FC 22 RECEIVE Receive data Table 9 2 CP 440 1 CYC Block Symbol Comment 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 I...

Страница 139: ...ard FB 9 DB 42 SEND SRC DB Send data block DB 43 RECV DST DB Receive data block Table 9 4 CP 440 MASTER Block Symbol Comment OB 1 CYCLE Cyclic program processing OB 100 RESTART Cold restart processing FB 9 RECV_440 Receive standard FB for data FB10 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 1...

Страница 140: ...l Comment OB 1 CYCLE Cyclic program processing OB 100 RESTART Cold restart processing FB 9 RECV_440 Receive standard FB for data FB10 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 ...

Страница 141: ...bols used in the example is also included If a second CP 440 is not available as a communication partner you must remove the CP 440 in HWCONFIG with Edit Delete 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 Downloading to the CPU The hardware for the example is fully set up and the programming device is connec...

Страница 142: ... are parameterized partly via constants and partly via symbolically addressed actual parameters Data Transmission Data transmission 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 the FC 21 SEND The Generate edge P_SEND_REQ program section SEND_440 is run through once at the start with SEND_R...

Страница 143: ...R at block RECV_440 must be set to 1 RECV_NDR 1 program section When RECV_NDR is set new data has been received and the RECV_COUNTER_OK receive counter is incremented RECV_ERROR 1 program section If execution is unsuccessful i e if the error bit is set at the parameter output of RECV_440 the RECV_COUNTER_ERR error counter is incremented The RECV_STATUS is copied because it is overwritten with 0 in...

Страница 144: ...END_REQ 1 If SEND_ERROR is present SEND_440 is run through with SEND_REQ 0 and then with SEND_REQ 1 To ensure that SEND_440 can be run through with SEND_REQ 1 in the very first pass the SEND_STARTUP_ENDED bit is also evaluated in the program section Check if SEND_DONE or SEND_ERROR or not first Cycle This bit is at 0 during the first pass and is then fixed at 1 9 6 3 CP440 ASCII BCC Program Exampl...

Страница 145: ...After LOOP is executed the block check is in the low byte of the w_bcc_value variable The block check is then encoded in two ASCII characters as described in the example below Example Generation of BCC HI ASCII characters 32 2 w_bcc_value 0025 UW w 16 F0 00F0 Hide lower half byte ____ 0020 SLW 4 0200 Push a half byte to the left OW w 16 3000 3000 Job 3000 Hex ____ 3200 Generation of BCC LO ASCII c...

Страница 146: ...e 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 the response is started with the send job If the slave does not respond within the set monitoring time the timed period expires a...

Страница 147: ...o point connection CP 440 Installation and Parameter Assignment A5E00057742 02 Technical Specifications In Section You Will Find on Page A 1 Technical Specifications of the CP 440 A 2 A 2 Transmission Times A 5 A ...

Страница 148: ...on insulation testing safety class and degrees of protection Standards certificates and approvals Technical Specifications Dimensions W H D 29 290 210 mm Weight 0 3 kg Power input from 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 Indicators LEDs for transmit TXD receive RXD and interface fault FAULT Group alarm LEDs for internal fault INTF and extern...

Страница 149: ...2 Technical Specifications of the 3964 R Procedure 3964 R Procedure with Default Values Max message frame length 200 bytes Parameters The following can be parameterized With without a 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 Initial state of the receive line none R A 5V R B 0V R A 0V ...

Страница 150: ... ms in 10 ms steps Number of message frames to be buffered 1 to 10 use entire buffer Prevent overwriting yes no End ID of a receive message frame On expiry of character delay time On receipt of end character s On receipt of fixed number of characters The ASCII Driver with the Message Frame End Criterion On Expiry of Character Delay Time Parameters No further parameters need to be set The end of th...

Страница 151: ... CPU and a RECV_440 FB was programmed in the user program of the passive CPU The time that elapsed between the initiation and completion of the job was measured ASCII Driver Transmission times with the ASCII driver Table A 3 Transmission Times with the ASCII Driver in ms Baud rate bps User data 115200 76800 57600 38400 19200 9600 4800 2400 1200 600 300 1 byte 1 5 2 2 2 3 4 8 15 29 55 110 10 bytes ...

Страница 152: ...ion Times with the 3964 R Procedure in ms User data Baud rate bps 115200 76800 57600 38400 19200 9600 4800 2400 1200 600 300 1 byte 4 4 5 7 9 11 20 35 68 134 264 10 bytes 5 5 7 8 14 22 40 77 150 296 594 20 bytes 6 7 8 10 20 33 64 122 242 484 960 50 bytes 9 11 14 20 36 68 132 260 518 1032 2060 100 bytes 14 19 24 34 64 126 248 490 976 1949 3894 200 bytes 24 34 44 64 118 240 476 948 1894 3780 7558 ...

Страница 153: ...B 1 Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 Connecting Cables In Section You Will Find on Page B 1 X27 RS 422 485 Interface of the CP 440 B 2 B ...

Страница 154: ...of the Integrated Interface of the CP 440 Female Connector on the CP440 RS422 485 Pin Designatio n Input Output Meaning 1 2 T A Output Transmitted data four wire operation 3 15 14 8 7 6 4 R A T A Input Input Output Received data four wire operation Received transmitted data two wire operation 14 13 12 6 5 5 3 12 11 5 4 6 3 2 10 11 10 9 7 1 9 8 GND Functional ground floating 9 T B Output Transmitte...

Страница 155: ...arge surface area of both sides of the cable shield must be in contact with the connector housing and the shield contact You are advised to use Siemens V42 254 shielded connector housings Caution Never connect the cable shield with the GND as this could destroy the interface submodules GND pin 8 must always be connected on both sides otherwise the interface submodules could be destroyed In the Fol...

Страница 156: ...w fixing CP 440 Communication partner Receiver Receiver Sender Sender 2 T A R A 4 9 T B R B 11 4 R A T A 2 Casing shield Casing shield 8 GND GND 8 Shield Cable type LIYCY 3 x 2 x 0 14 T A T B and R A R B twisted pairs 11 R B T B 9 1 1 In the case of cables longer than 50 m you must solder in a terminating resistor of approx 330 on the receiver for trouble free traffic 1 Figure B 1 X27 Connecting C...

Страница 157: ...ctors At the CP 440 end 15 pin subminiature D male connector with a screw fixing at the communication partner 15 pin sub D male with screw fixing CP 440 Communication partner Sender Receiver Sender Receiver 2 T A T A 2 9 T B T B 9 4 R A R A 4 Casing shield Casing shield 11 R B R B 11 8 GND GND 8 Shield Cable type LIYCY 3 x 2 x 0 14 R A R B twisted 1 In the case of cables longer than 50 m you must ...

Страница 158: ...At the CP 440 end 15 pin subminiature D male connector with a screw fixing at the communication partner 15 pin sub D male with clip fixing CP 440 Communication partner Receiver Receiver Sender Sender 2 T A R A 4 9 T B R B 11 4 R A T A 2 Casing shield Casing shield 11 R B T B 9 8 GND GND 8 Shield Cable type LIYCY 3 x 2 x 0 14 T A T B and R A R B twisted pairs 1 In the case of cables longer than 50 ...

Страница 159: ...2 02 Communication Matrix of the Protocols The CP 440 communication processor can communicate with the following CPs and CPUs of the SIMATIC S5 and SIMATIC S7 programmable controllers 3964 R Communication Matrix The diagram below shows the communication matrix of the 3964 R procedure C ...

Страница 160: ...5 115 U CPU 945 S5 135 U CPU 928 S5 155 U CPU 948 Barcode readers Non Siemens PLCs Scales Non Siemens devices SIMATIC S7 400 CP 440 SIMATIC S7 400 CP 340 CP 341 CP 440 CP 441 S5 115U F H S5 135U S5 155U H CP 524 S5 115U F H S5 135U S5 155U H CP 525 S5 115 U S5 135 U S5 155 U H CP 544 S5 95U Second serial interface The CP 524 and CP 525 require a special driver for 3964 R Figure C 1 3964 R Procedur...

Страница 161: ...S5 95 U S5 100 U CP 521 SI S5 115 U CPU 944 945 S5 135 U CPU 928 S5 155 U CPU 948 Barcode readers Non Siemens PLCs Scales Non Siemens devices SIMATIC S7 400 CP 440 SIMATIC S7 400 CP 340 CP 341 CP 440 CP 441 S5 115U F H S5 135U S5 155U H CP 524 525 S5 115 U S5 135 U S5 155 U H CP 544 S5 95U Other devices with simple protocol structures Second serial interface The CP 524 and CP 525 require a special...

Страница 162: ...Communication Matrix of the Protocols C 4 Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...

Страница 163: ...onnecting Cables There are connecting cables available in the following lengths 5 m 10 m and 50 m Table D 2 Order Numbers of the Connecting Cables Connecting Cables for CP 440 CP 340 CP 440 CP 341 CP 440 CP 440 CP 440 CP 441 Type Order Number X27 RS 422 i t f di X27 RS 422 5 m 6ES7 902 3AB00 0AA0 interface corresponding to Figure B 1 X27 RS 422 10 m 6ES7 902 3AC00 0AA0 to Figure B 1 X27 RS 422 50 ...

Страница 164: ...Accessories and Order Numbers D 2 Point to point connection CP 440 Installation and Parameter Assignment A5E00057742 02 ...

Страница 165: ...on Connections STEP 7 V5 0 manual 4 System Software for S7 300 400 System and Standard Functions reference manual References for SIMATIC S7 The following page gives you an overview of the manuals that you need to configure and program the S7 400 Manuals for Configuration and Commissioning To assist you in configuring and programming the S7 400 there is comprehensive user documentation available fo...

Страница 166: ...to familiarize yourself with the methodology for creating programs Function Block Diagram FBD for S7 300 400 Reference Manual When working with the software you can use the online help system which will answer all your questions in detail about using the associated editors compilers Structured Control Language SCL 1 for S7 300 400 Reference Manual GRAPH1 for S7 300 and 400 Programming Sequential C...

Страница 167: ...operands 6 18 Addressing the module 6 23 Applications of the CP 440 1 2 ASCII driver 2 11 communication matrix C 3 data flow control 2 21 parameters 5 6 receive buffer 2 20 receiving data 2 13 sending data 2 12 technical specifications A 4 transmission times A 5 B Basic firmware 5 21 Basic parameters 5 4 BCC Block Check Character 2 25 Bidirectional data traffic 2 3 Block check sum 2 25 Buffered re...

Страница 168: ...g the firmware release 5 23 Displaying the hardware release 5 23 Disposal v DLE duplication 2 24 2 25 Downloading firmware 5 22 Downloading the configuration and parameters 5 20 E EMC values electromagnetic compatibility 4 4 EN ENO mechanism 6 22 End criterion 2 12 2 15 end of text character 2 16 expiration of character delay time 2 15 fixed frame length 2 18 End ID 1st 5 7 End ID of a receive mes...

Страница 169: ...I driver 5 6 Parameterization interface 1 4 Parity 5 9 5 17 Pin assignment B 2 Point to point 2 22 Point to point connection 2 2 Points to note when receiving frames 7 3 Polarity 3 4 Power input A 2 Power loss A 2 Preventing overwriting 5 11 Priority 2 25 5 17 Procedure 2 6 Procedure errors 2 32 Program processing 6 23 Program structure 6 4 Programming device 1 4 Programming device cable 1 4 Proto...

Страница 170: ...al LEDs RXD 8 2 TXD 8 2 Standard connecting cables 1 3 1 8 Standards certificates and approvals A 2 Start bit 5 9 5 17 Startup characteristics CP 440 FBs 6 23 programmable logic controller CP 440 6 23 STATUS on the FB 6 5 STATUS output 8 12 STATUS output of the FBs 8 2 STEP 7 5 1 STOP 7 2 Stop bits 5 9 5 17 Switchover time 2 11 Symbolically addressed actual parameter 6 22 T Technical specification...

Страница 171: ... Pharmaceutical Plastic Pulp and Paper Textiles Transportation Other _ _ _ _ _ _ _ _ _ _ _ From Your Name _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Your Title _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Company Name _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Street _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ City Zip Code _ _ _ _ _ _ _ _ _ _ _ _ _ _ _...

Страница 172: ..._ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ Remarks Form Your comments and recommendations will help us to improve the quality and usefulness of o...

Отзывы: