Programming Example for Standard Function Blocks
9.6 Installation, Error Messages
PtP coupling and configuration of CP 340
Manual, 04/2011, A5E00369892-03
155
9.6
Installation, Error Messages
Scope of Supply and Installation
The program example of the CP 340, the CP 340: Point–to–Point Communication,
Parameter Assignment and the function blocks are available on a data carrier that is
included with this manual.
The program examples are installed together with the parameterization interface (see
Chapter Parameterizing the Communications Protocols (Page 94)). Following installation,
you will find the sample program in the following project: CP340p
Open the project using the STEP 7 SIMATIC Manager by calling the menu command File >
Open > Project.
The sample program is available both in compiled form and as an ASCII source file. A list of
all the symbols used in the example is also included.
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 (STOP operating mode), transfer the complete example to
the user memory. Then use the mode selector switch to change from STOP to RUN.
Malfunction
If an error occurs during start-up, the cyclically processed module calls are not executed and
the error display is activated.
After every block call in the cyclic program, if an error has occurred (BR = "0"), an error
memory bit is set, which can only be displayed at the outputs Q 4.2/4.6 with the computer
connection.
If there is an error message, the parameter output ERROR (Q 4.1/4.5) of the modules is also
set. A more detailed description of the error is then stored in the STATUS parameter of the
modules. If STATUS contains one of the error messages 16#1E0E or 16#1E0F, the exact
error description is stored in the SFCERR or SFCSTATUS variable in the instance DB. You´ll
find detailed information in "Variable SFCERR or SFCSTATUS calling".
Содержание SIMATIC CP 340
Страница 6: ...Preface PtP coupling and configuration of CP 340 6 Manual 04 2011 A5E00369892 03 ...
Страница 10: ...Table of contents PtP coupling and configuration of CP 340 10 Manual 04 2011 A5E00369892 03 ...
Страница 186: ...Accessories and Order Numbers PtP coupling and configuration of CP 340 186 Manual 04 2011 A5E00369892 03 ...
Страница 190: ...Literature on SIMATIC S7 PtP coupling and configuration of CP 340 190 Manual 04 2011 A5E00369892 03 ...
Страница 200: ...Index PtP coupling and configuration of CP 340 200 Manual 04 2011 A5E00369892 03 ...