Sample Program 4 "Interrupts - Siemens S7-300 Operating Instructions Manual

Fm 352 electronic cam controller
Hide thumbs Also See for S7-300:
Table of Contents

Advertisement

Examples

13.10 Sample program 4 "Interrupts"

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
● In HW Config, enable the diagnostic interrupt for this module with Edit > Object Properties
● The included channel DB already contains the DB number (3) of the parameter DB in the
● 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.
160
diagnostic DBs.
> Basic Parameters > Select Interrupt > Diagnostics. Compile the hardware configuration,
and then download it to the CPU.
PARADBNO parameter.
FM 352 electronic cam controller
Operating Instructions, 05/2011, A5E01071724-03

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents