Data Exchange with the SM 335
3-30
SM 335 – High-Speed Analog Input/Output Module for the SIMATIC S7-300
6ES7 335-7HG00-8BA1
3.4.1 Hardware interrupt
OB 40
OB 40 is invoked when the SM 335 generates a hardware interrupt. Information
about the cause of the hardware interrupt is entered in the local data section of
OB 40.
Local data
The reasons for the SM 335 hardware interrupt are entered in byte 8 of the local
data (see Figure 3-10).
76543210
End-of-cycle interrupt
Interrupt triggered by comparator
Fig. 3-10 Byte 8 in local data in the event of a hardware interrupt generated
by the SM 335
Table 3-16 End-of-cycle interrupt
Byte
Content
8 Cause of hardware interrupt (see Figure 3-10) = 2#0000 0001
9 Number of measuring cycles
1)
10 not assigned
11 not assigned
1) The number of measuring cycles can also be read in the input range ModAdd+8.
(see Subsection 3.1.1, Input Values)