EasyManua.ls Logo

Siemens SIMATIC FM 351 - Sample Program 5 Diagnosticandinterrupt

Siemens SIMATIC FM 351
204 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Samples
12-14
FM 351 Positioning Module
C79000-G7076-C351-02
12.11 Sample Program 5 “DiagnosticAndInterrupt”
Aim:
This sample contains a user program with the same task as in Sample Program 4
“OneChannel”. In this sample, we will show you how to evaluate a diagnostic
interrupt for certain modules and how to process this in the user program to
produce a general module error.
Requirements:
You have set the parameters for your positioning module as described in “Getting
Started”.
The address of your module is entered correctly in the channel DB in the
parameter MOD_ADDR and the channel number in the parameter CH_NO.
The address of your module is correctly entered in the diagnostic DB in the
MOD_ADDR parameter.
The supplied channel DB already contains the DB number (30) of the
corresponding parameter DB for the machine data in the PARADBNO parameter.
The machine data of your system are stored in the data block PARADB_1.
In the hardware configuration, enable the diagnostic interrupt for this module with
Edit > Object Properties > Basic Parameters > Select Interrupt > Diagnostics.
Compile the hardware configuration and download it to the CPU.
Startup:
In the startup OB (OB100), the startup flag (step 0) for the user program is set in
the instance DB.
Operation:
As in Sample Program 4 “OneChannel”.

Table of Contents

Other manuals for Siemens SIMATIC FM 351

Related product manuals