
Contents
viii Point-to-point connection CP 440 Installation and Parameter Assignment
A5E00057742-02
6 Communication Using Function Blocks 6-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.1 Communication Using Function Blocks 6-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2 Overview of the Function Blocks 6-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.3 Notes on Program Structure 6-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4 Using the Function Blocks 6-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4.1 The S7 Transmits Data to a Communication Partner,
10 SEND_440 FB 6-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.4.2 S7 Receives Data from a Communication Partner, 9 RECV_440 FB 6-10. . . .
6.4.3 Deleting the Receive Buffer (11 “RES_RECV” FB) 6-14. . . . . . . . . . . . . . . . . . .
6.5 Programming the Function Blocks 6-18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.5.1 General Information on Data Block Assignment 6-18. . . . . . . . . . . . . . . . . . . . .
6.5.2 Supplying the Block Parameters 6-19. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.6 General Information on Program Processing 6-23. . . . . . . . . . . . . . . . . . . . . . . .
6.7 Technical Specifications of the Function Blocks 6-24. . . . . . . . . . . . . . . . . . . . . .
7 Startup Characteristics and Operating 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 Diagnosis via the Display Elements of the CP 440 8-3. . . . . . . . . . . . . . . . . . .
8.3 Diagnostic Messages of the Function Blocks 8-5. . . . . . . . . . . . . . . . . . . . . . . .
8.4 Diagnostics Using the Diagnostic Buffer of the CP 440 8-14. . . . . . . . . . . . . . .
9 Programming Example – Standard Blocks 9-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
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.6.1 “CP440 SEND RECV” Program Example 9-8. . . . . . . . . . . . . . . . . . . . . . . . . . .
9.6.2 “CP440 1 CYC” Program Example 9-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.6.3 “CP440 ASCII BCC” Program Example 9-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.6.4 “CP440 MASTER” Program Example 9-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
9.6.5 “CP440 SLAVE” Program Example 9-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .