Errors and diagnostics
10.2 Triggering diagnostics interrupts
FM 350-1 Counter module
Manual, 05/2011, A5E03648639-01
179
Byte Bit Meaning Remarks Event ID
0...3 Type class Always assigned the value 8
1
4 Channel information Always assigned the value 1
2 3 Time monitoring (watchdog) triggered Module defective, or heavy interference 8:x:33
3 RAM defective Module defective, or heavy interference 8:x:43 3
6 Hardware interrupt lost Check the configuration. A hardware
interrupt was detected and can not be
reported, because the same event is not
yet acknowledged by the CPU
8:x:46
Diagnostics data record DS1
The diagnostics data record DS1 consists of 16 bytes. The first 4 bytes are identical with
those of diagnostics data record DS0. The table below shows the assignments of the
remaining bytes. Any bits not listed bits are insignificant, and zero. FC DIAG_INF writes this
data record to the DB of FC CNT_CTRL1, starting at DW54.
Table 10- 3 Assignments of bits in bytes 4 to 11 of the diagnostics data record DS
Byte Bit Meaning Remarks Event ID
0...6 Channel type Always assigned the value 76H 4
7 Further channel types Always assigned zero value
5 0...7 Diagnostics data length Always assigned the value 10H
6 0...7 Number of channels Always assigned the value 1
7 0 Channel error vector Assigned 1 on channel error
0 Signal A error 8:x:B0
1 Signal B error 8:x:B1
2 Signal N error 8:x:B2
4 Error at the 5.2-V encoder supply 8:x:B4
8
5...7 Reserved
9 ... 15 Reserved
How to enter diagnostics messages in the diagnostics buffer
If you want to enter the diagnostics message in the diagnostics buffer, you must call the
SFC 52 "Enter user-specific message in diagnostics buffer" in your user program. The event
number of the diagnostics message is defined at input parameter EVENTN. The interrupt is
identified by the entries x=1 as incoming and x=0 as outgoing event in the diagnostics buffer.
The diagnostics buffer contains the relevant diagnostics text entry in the `Meaning' column,
including the time of its entry.
Defaults
The diagnostics interrupt is disabled by default.