EasyManua.ls Logo

Siemens S7-300 - Sample Program 4 Interrupts

Siemens S7-300
226 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...
Examples
13.10 Sample program 4 "Interrupts"
FM 352 electronic cam controller
160 Operating Instructions, 05/2011, A5E01071724-03
13.10 Sample program 4 "Interrupts"
Objective
This sample contains a user program with the same task as in sample program 3 "One
Module". In this sample, you are shown how to evaluate a diagnostic interrupt for specific
modules, and how to process this in the user program to produce a general module error.
Requirements
You have assigned the cam controller parameters as described in the "Getting Started."
The module address is entered in the MOD_ADDR block parameter in the channel and
diagnostic DBs.
In HW Config, enable the diagnostic interrupt for this module with Edit > Object Properties
> Basic Parameters > Select Interrupt > Diagnostics. Compile the hardware configuration,
and then download it to the CPU.
The included channel DB already contains the DB number (3) of the parameter DB in the
PARADBNO parameter.
PARADB included in this example contains default machine and cam data.
Startup
In the startup OB (OB100), the startup identifier (step 0) for the user program is set in the
instance DB.
Operation
As in sample program 3 "One Module".
Error evaluation
As in sample program 3 "One Module".
Generate diagnostic interrupts by disconnecting the auxiliary power supply to the module, or
by removing the front connector. The module error MOD_ERR and diagnostic error
OB82_ERR will be set to 1, and the step number assumes a -1. The error identifiers will be
canceled once you have cleared the error. Cam processing and simulation, however, remain
disabled.

Table of Contents

Other manuals for Siemens S7-300

Related product manuals