Data exchange with SM 335
3.4 Evaluating the diagnostics data of SM 335
3.4.1
Hardware interrupt
OB 40
OB 40 is called after SM 335 has generated a hardware interrupt. Information about the
event causing the hardware interrupt is stored in the lo9cal data of OB 40.
Local data
The events which triggered a hardware interrupt at SM 335 are stored in byte 8 of the local
data.
Figure 3-10
Table 3- 15
Byte
8
9
10
11
1) The number of measuring cycles can also be read from the input range ModAddr+8; refer to
Table 3- 16
Byte
8
9
1)
10
1)
11
1)
1) Bytes 9 to 11 are not used for comparator mode 0
60
Byte 8 of local data after generation of a hardware interrupt on SM 335
End of cycle interrupt
Content
Cause of the hardware interrupt = 2#0000 0001
Number of measuring cycles
Not used
Not used
chapter Input values.
Interrupt was triggered by a comparator
Content
Cause of the hardware interrupt = 2#0000 0001
Comparator time [ms]
The comparator time is set in byte 10 of the parameterization data set DS 1
Measured value low byte of Comparator 2
Measured value high byte of Comparator 2
1)
SM 335 - High-speed analog mixed module for SIMATIC S7-300
Manual, 02/2009, A5E02409063-01