Programming the FM 452
6-16
FM 452 Electronic Cam Controller
C79000-G7076-C452-04
6.7
Interrupts
Interrupt Handling
The FM 452 can trigger hardware interrupts and diagnostic interrupts. You service
these interrupts in an interrupt OB. If an interrupt is triggered and the
corresponding OB is not loaded, the CPU changes to STOP (refer to the manual
Programming with STEP 7).
You can enable interrupt servicing at the following levels:
1. Enabling general interrupts for the entire module:
– Select the module in HW Config
– Using the menu command Edit > Object Properties > Basic Parameters,
enable diagnostic and/or hardware interrupts.
– Select the OB number for the hardware interrupt using Edit > Object
Properties > Addresses.
– Save and compile the hardware configuration.
– Download the hardware configuration to the CPU.
2. Enabling events for hardware interrupts in the machine data.
3. Setting parameters for hardware interrupts in the cam data for cams 0 to 7.
Evaluation of a Hardware Interrupt
If a hardware interrupt is triggered by the FM 452, the following information is
available in the variable OB40_POINT_ADDR (or in the corresponding variable of
a different hardware interrupt OB):
Table 6-2
Contents of the Double Word OB40_POINT_ADDR
Byte
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
0
0
0
0
0
0
0
1
0
0
Start of
meas.
0
0
Cam
End of
meas.
0
2
Cam 7
on
Cam 7
off
Cam 6
on
Cam 6
off
Cam 5
on
Cam 5
off
Cam 4
on
Cam 4
off
3
Cam 3
on
Cam 3
off
Cam 2
on
Cam 2
off
Cam 1
on
Cam 1
off
Cam 0
on
Cam 0
off
You can see the cause of the interrupt in Byte 1:
•
Cam:
Evaluate byte 2 and byte 3 according to the table.
•
Measurement start/measurement end:
Using the CAM_MSRM function, you can read the current measured values
from the module.
Содержание SIMATIC FM 452
Страница 8: ...Contents viii FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 14: ...Product Overview 1 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 28: ...Installing and Removing the FM 452 3 2 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 36: ...Wiring the FM 452 Electronic Cam Controller 4 8 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 38: ...Installing the Software 5 2 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 62: ...Programming the FM 452 6 24 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 68: ...Putting the FM 452 into Operation 7 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 130: ...Settings 9 32 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 140: ...Encoders 10 10 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 146: ...Diagnostics 11 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 162: ...Samples 12 16 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 168: ...Technical Specifications A 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 174: ...Connection Diagrams B 6 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...
Страница 200: ...Data Blocks Error Lists C 26 FM 452 Electronic Cam Controller C79000 G7076 C452 04 ...