Samples
12-12
FM 452 Electronic Cam Controller
C79000-G7076-C452-04
12.10
Sample Program 4 “Interrupts”
Aim:
This sample contains a user program with the same task as in sample program 3
“OneModule”. 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 assigned parameters for the cam controller as described in the “Getting
Started” primer.
The address of your module has been entered in the block parameter MOD_ADDR
in the channel DB and diagnostic DB.
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.
The supplied channel DB already contains the DB number (3) of the parameter DB
in the PARADBNO parameter.
The PARADB contained in the sample already has machine and cam data.
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 3 “OneModule”.
Error Evaluation:
As in sample program 3 “OneModule”.
Produce a diagnostic interrupt by disconnecting the power supply for the module or
by removing the front connector. The module error MOD_ERR and the diagnostic
error OB82_ERR are set to 1 and the step number becomes -1. When you
eliminate the problem, the error flags are also reset. Cam processing and
simulation, however, remain disabled.
Summary of Contents for SIMATIC FM 452
Page 8: ...Contents viii FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 14: ...Product Overview 1 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 28: ...Installing and Removing the FM 452 3 2 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 38: ...Installing the Software 5 2 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 62: ...Programming the FM 452 6 24 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 68: ...Putting the FM 452 into Operation 7 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 130: ...Settings 9 32 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 140: ...Encoders 10 10 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 146: ...Diagnostics 11 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 162: ...Samples 12 16 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 168: ...Technical Specifications A 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 174: ...Connection Diagrams B 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Page 200: ...Data Blocks Error Lists C 26 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...